修复 laydate 中 min/max/value 的提示逻辑错误

This commit is contained in:
贤心
2022-09-03 21:05:14 +08:00
parent 30a3996413
commit 77bb19352c

View File

@@ -836,8 +836,11 @@
}
}
//初始值不在最大最小范围内
minMaxError && that.setValue(that.parse()).hint('初始值' + lang.invalidDate + lang.formatError[1]);
// 初始值不在最大最小范围内
if(minMaxError && value){
that.setValue(that.parse());
that.hint('value ' + lang.invalidDate + lang.formatError[1]);
}
fn && fn();
return that;