From 77bb19352cdf4b79cf239eeda200324f8621b42d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Sat, 3 Sep 2022 21:05:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20laydate=20=E4=B8=AD=20min/?= =?UTF-8?q?max/value=20=E7=9A=84=E6=8F=90=E7=A4=BA=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/laydate.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/laydate.js b/src/modules/laydate.js index ee1128d1..fb31f9d4 100644 --- a/src/modules/laydate.js +++ b/src/modules/laydate.js @@ -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;