优化 laydate 的 shortcuts 属性机制,当点击快捷选项时自动确认

This commit is contained in:
贤心
2023-05-04 10:00:36 +08:00
parent ae2f94c6d1
commit 59fe789706

View File

@@ -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 @@
}
}
}
*/
})
}