修改选择年月控件时选择月份后关闭控件

当选择type:"month",showBottom:false时,选择月份后直接选取月份后,关闭日期控件
pull/63/head
yangyanbin 2017-09-13 16:55:33 +08:00 committed by GitHub
parent 60c03454bd
commit a92c6dab95
1 changed files with 6 additions and 2 deletions

View File

@ -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 @@
}()
);
}();
}();