From b5f933b76e1094b7ac10ebd610e132301c8b4728 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 17 Aug 2019 11:25:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20longbow-tree=20=E5=A2=9E=E5=8A=A0=20sho?= =?UTF-8?q?w=20=E5=85=B3=E9=94=AE=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/wwwroot/lib/longbow-tree/longbow-tree.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Bootstrap.Admin/wwwroot/lib/longbow-tree/longbow-tree.js b/Bootstrap.Admin/wwwroot/lib/longbow-tree/longbow-tree.js index ca102dc7..d44178de 100644 --- a/Bootstrap.Admin/wwwroot/lib/longbow-tree/longbow-tree.js +++ b/Bootstrap.Admin/wwwroot/lib/longbow-tree/longbow-tree.js @@ -24,7 +24,8 @@ LI: 'nav-item', LINK: 'nav-link', TREEVIEW_MENU: 'nav-treeview', - OPEN: 'menu-open' + OPEN: 'menu-open', + SHOW: 'show' }; var Default = { trigger: Selector.DATA_WIDGET + " " + Selector.LINK, @@ -63,6 +64,7 @@ this.collapse(openTreeview, openMenuLi); } + parentLi.addClass(ClassName.SHOW); treeviewMenu.slideDown(this._config.animationSpeed, function () { parentLi.addClass(ClassName.OPEN); $(_this._element).trigger(expandedEvent); @@ -73,6 +75,7 @@ var _this2 = this; var collapsedEvent = $.Event(Event.COLLAPSED); + parentLi.removeClass(ClassName.SHOW); treeviewMenu.slideUp(this._config.animationSpeed, function () { parentLi.removeClass(ClassName.OPEN); $(_this2._element).trigger(collapsedEvent);