diff --git a/src/modules/laydate.js b/src/modules/laydate.js index 3bf30cb8..6c431bd5 100644 --- a/src/modules/laydate.js +++ b/src/modules/laydate.js @@ -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 @@ } } } + */ }) }