mirror of https://github.com/layui/layui
优化 laydate 的 `shortcuts` 属性机制,当点击快捷选项时自动确认
parent
ae2f94c6d1
commit
59fe789706
|
@ -633,6 +633,11 @@
|
||||||
|
|
||||||
lay(this).addClass(THIS);
|
lay(this).addClass(THIS);
|
||||||
|
|
||||||
|
// 自动确认
|
||||||
|
if(options.position !== 'static'){
|
||||||
|
that.setValue(that.parse()).done().remove();
|
||||||
|
}
|
||||||
|
/*
|
||||||
if (options.position !== 'static' && !options.range && options.autoConfirm) {
|
if (options.position !== 'static' && !options.range && options.autoConfirm) {
|
||||||
if (type === 'date') {
|
if (type === 'date') {
|
||||||
that.choose(lay(elem).find('td.layui-this'))
|
that.choose(lay(elem).find('td.layui-this'))
|
||||||
|
@ -642,6 +647,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue