mirror of
https://gitee.com/layui/layui.git
synced 2025-10-25 18:29:11 +08:00
优化 laydate 的 shortcuts 属性机制,当点击快捷选项时自动确认
This commit is contained in:
@@ -633,6 +633,11 @@
|
||||
|
||||
lay(this).addClass(THIS);
|
||||
|
||||
// 自动确认
|
||||
if(options.position !== 'static'){
|
||||
that.setValue(that.parse()).done().remove();
|
||||
}
|
||||
/*
|
||||
if (options.position !== 'static' && !options.range && options.autoConfirm) {
|
||||
if (type === 'date') {
|
||||
that.choose(lay(elem).find('td.layui-this'))
|
||||
@@ -642,6 +647,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user