From 3b919e1b7a608c393c8fc8d5822a7df1380ed783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Thu, 14 Sep 2023 11:53:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20laydate=20=E5=BC=80?= =?UTF-8?q?=E5=90=AF=20`rangeLinked`=20=E5=B1=9E=E6=80=A7=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E7=82=B9=E5=87=BB=E7=9B=AE=E6=A0=87=E5=85=83=E7=B4=A0?= =?UTF-8?q?=E5=8F=AF=E9=87=8D=E6=96=B0=E6=B8=B2=E6=9F=93=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 --- src/modules/laydate.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/laydate.js b/src/modules/laydate.js index 7afccf78..99b33b79 100644 --- a/src/modules/laydate.js +++ b/src/modules/laydate.js @@ -2178,9 +2178,9 @@ return that; }; - //初始执行 + // 初始执行 ready.run = function(lay){ - //绑定关闭控件事件 + // 绑定关闭控件事件 lay(document).on('mousedown', function(e){ if(!laydate.thisId) return; var that = thisModule.getThis(laydate.thisId); @@ -2191,7 +2191,8 @@ if( e.target === options.elem[0] || e.target === options.eventElem[0] || - e.target === lay(options.closeStop)[0] + e.target === lay(options.closeStop)[0] || + (options.elem[0] && options.elem[0].contains(e.target)) ) return; that.remove();