From fbba86cafe03eb119942d2be61680fe696bcb6d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E4=BB=AA=E5=BC=8F?= <854085467@qq.com> Date: Mon, 24 Aug 2020 17:56:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E9=94=99=E4=BD=8D=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/data/menu.json | 2 +- component/pear/module/menu.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/data/menu.json b/admin/data/menu.json index 30eff4d..bbd0367 100644 --- a/admin/data/menu.json +++ b/admin/data/menu.json @@ -35,7 +35,7 @@ "href": "", "children": [{ "id": 201, - "title": "基础组件", + "title": "基础组件 宽度测试", "icon": "layui-icon layui-icon-console", "type": 0, "children": [{ diff --git a/component/pear/module/menu.js b/component/pear/module/menu.js index 97f0801..76aefd1 100644 --- a/component/pear/module/menu.js +++ b/component/pear/module/menu.js @@ -375,7 +375,7 @@ layui.define(['table', 'jquery', 'element'], function(exports) { topLength = height-thisHeight-10; } if (!$(this).is(".layui-nav-item")) { - var left = $(this).offset().left + 132; + var left = $(this).offset().left + $(this).width()+2; $(this).children(".layui-nav-child").offset({ left: left });