mirror of https://github.com/layui/layui
修复之前的提交导致范围选择的时候切换年月报错问题
parent
0a4bb74c57
commit
47c45ac4a3
|
@ -786,6 +786,9 @@
|
|||
|
||||
//校验日期有效数字
|
||||
,checkValid = function(dateTime){
|
||||
if (!dateTime) {
|
||||
return;
|
||||
}
|
||||
if(dateTime.year > LIMIT_YEAR[1]) dateTime.year = LIMIT_YEAR[1], error = true; //不能超过20万年
|
||||
if(dateTime.month > 11) dateTime.month = 11, error = true;
|
||||
if(dateTime.seconds > 59) dateTime.seconds = 0, dateTime.minutes++, error = true;
|
||||
|
|
Loading…
Reference in New Issue