diff --git a/src/laydate.js b/src/laydate.js index ca30988..dc386c7 100644 --- a/src/laydate.js +++ b/src/laydate.js @@ -1250,7 +1250,11 @@ that.checkDate('limit').calendar(); that.closeList(); } - + if(!options.range&&!options.showBottom&&options.type==="month"&&type==="month"){ + that.done(); + that.setValue(that.parse()).remove(); + return; + } that.setBtnStatus(); //同步按钮可点状态 options.range || that.done(null, 'change'); lay(that.footer).find(ELEM_TIME_BTN).removeClass(DISABLED); @@ -1853,4 +1857,4 @@ }() ); -}(); \ No newline at end of file +}();