From 351d5ebfb2f348d4aa5a43ac5c60ff2de65f89cc Mon Sep 17 00:00:00 2001 From: mek <250023777@qq.com> Date: Tue, 7 Feb 2023 16:58:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E5=88=86?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/dropdown.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/dropdown.js b/src/modules/dropdown.js index c0ae6148..66044446 100644 --- a/src/modules/dropdown.js +++ b/src/modules/dropdown.js @@ -106,12 +106,12 @@ layui.define(['jquery', 'laytpl', 'lay'], function(exports){ } //若重复执行 render,则视为 reload 处理 - if(!rerender && elem[0] && elem.data(MOD_INDEX)){; + if(!rerender && elem[0] && elem.data(MOD_INDEX)){ var newThat = thisModule.getThis(elem.data(MOD_INDEX)); if(!newThat) return; return newThat.reload(options); - }; + } //初始化 id 参数 options.id = ('id' in options) ? options.id : that.index; @@ -482,7 +482,7 @@ layui.define(['jquery', 'laytpl', 'lay'], function(exports){ if(('isAllowSpread' in options) ? options.isAllowSpread : true){ thisModule.spread(elemGroup); - }; + } }); //判断子级菜单是否超出屏幕 @@ -507,7 +507,7 @@ layui.define(['jquery', 'laytpl', 'lay'], function(exports){ //是否超出底部屏幕 if(rect.bottom > _WIN.height()){ elemPanel.eq(0).css('margin-top', -(rect.bottom - _WIN.height() + 5)); - }; + } }).on('mouseleave', ELEM_LI_PAR, function(e){ var othis = $(this) ,elemPanel = othis.children('.'+ STR_MENU_PANEL);