From c1bb26f762ba49862cce5513aa18f2c13419f61d Mon Sep 17 00:00:00 2001 From: wanzhende Date: Tue, 11 Apr 2017 20:00:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BD=93=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=9A=84=E5=B0=8F=E6=97=B6=E5=A4=A7=E4=BA=8E?= =?UTF-8?q?min=E5=8F=82=E6=95=B0=E7=9A=84=E5=B0=8F=E6=97=B6=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E5=88=86=E9=92=9F=E9=80=89=E6=8B=A9=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=8F=96=E6=B6=88=E9=99=90=E5=88=B6=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复当用户选择的小时大于min参数的小时情况下分钟选择没有取消限制的问题 --- src/lay/modules/laydate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lay/modules/laydate.js b/src/lay/modules/laydate.js index 9f07222..381c6eb 100644 --- a/src/lay/modules/laydate.js +++ b/src/lay/modules/laydate.js @@ -206,7 +206,7 @@ layui.define(function(exports){ if(Dates.ymd[1]+1 == Dates.mins[1] && Dates.ymd[2] == Dates.mins[2]){ if(index === 0 && (times < Dates.mins[3])){ return 1; - } else if(index === 1 && times < Dates.mins[4]){ + } else if(index === 1 && times < Dates.mins[4] && Dates.hmsin[0].value <= Dates.mins[3]){ return 1; } else if(index === 2 && times < Dates.mins[5]){ return 1; @@ -826,4 +826,4 @@ layui.define(function(exports){ exports('laydate', laydate); -}); \ No newline at end of file +});