From 7ac594721708487d3ace2678f926dabddf41cf4d 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, 6 Jul 2020 17:36:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=A9=E8=BF=9B=E9=83=A8=E5=88=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/layui/lay/extends/pearMenu.js | 9 +-------- component/layui/lay/extends/pearTab.js | 3 --- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/component/layui/lay/extends/pearMenu.js b/component/layui/lay/extends/pearMenu.js index 54dcfe4..10e82a1 100644 --- a/component/layui/lay/extends/pearMenu.js +++ b/component/layui/lay/extends/pearMenu.js @@ -163,8 +163,6 @@ layui.define(['table', 'jquery', 'element'], function(exports) { } $("#" + this.option.elem + " a[menu-id='" + pearId + "']").parent().addClass("layui-this"); - - } @@ -437,8 +435,6 @@ layui.define(['table', 'jquery', 'element'], function(exports) { return content; } - - function downShow(option) { $("body #" + option.elem).on("click", "a[menu-type='0']", function() { @@ -450,12 +446,10 @@ layui.define(['table', 'jquery', 'element'], function(exports) { var height = ele.height(); if ($(this).parent().is(".layui-nav-itemed")) { - if (option.accordion) { // 手 风 琴 实 现 $(this).parent().parent().find(".layui-nav-itemed").removeClass("layui-nav-itemed"); $(this).parent().addClass("layui-nav-itemed"); - } ele.height(0); @@ -469,7 +463,6 @@ layui.define(['table', 'jquery', 'element'], function(exports) { }); } else { - $(this).parent().addClass("layui-nav-itemed"); ele.animate({ @@ -502,7 +495,7 @@ layui.define(['table', 'jquery', 'element'], function(exports) { var left = $(this).offset().left + 132; - $(this).children(".layui-nav-child").offset({ + $(this).children(".layui-nav-child").offset({ left: left }); diff --git a/component/layui/lay/extends/pearTab.js b/component/layui/lay/extends/pearTab.js index 09c9436..8ef0136 100644 --- a/component/layui/lay/extends/pearTab.js +++ b/component/layui/lay/extends/pearTab.js @@ -79,9 +79,6 @@ layui.define(['jquery', 'element'], function(exports) { }, 200); } - - - pearTab.prototype.addTab = function(opt) { var title = '';