From c203547ff1e3330faaf8bfbcc581805b55da75b8 Mon Sep 17 00:00:00 2001 From: sassassin <530521314@qq.com> Date: Thu, 9 Jul 2020 21:29:16 +0800 Subject: [PATCH] =?UTF-8?q?pearTab=E5=88=A0=E9=99=A4=E5=AE=8C=E6=AF=95?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E8=A7=A6=E5=8F=91pearAdmin=E4=B8=AD=E6=96=B9?= =?UTF-8?q?=E6=B3=95=EF=BC=8C=E6=96=B9=E4=BE=BF=E5=B7=A6=E4=BE=A7=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E5=BD=92=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/layui/lay/extends/pearTab.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/component/layui/lay/extends/pearTab.js b/component/layui/lay/extends/pearTab.js index 8ef0136..92286c8 100644 --- a/component/layui/lay/extends/pearTab.js +++ b/component/layui/lay/extends/pearTab.js @@ -409,6 +409,8 @@ layui.define(['jquery', 'element'], function(exports) { tabContent.remove(); + // 方便左侧菜单滚动到相应菜单项 + $("#" + elem + " .layui-tab-title .layui-this").click(); } -- Gitee