修复菜单组件细节性问题

develop 3.5.8.Release
就眠仪式 2021-01-28 16:18:26 +08:00
parent 475c9aa41f
commit d06227e349
3 changed files with 10 additions and 2 deletions

View File

@ -148,6 +148,7 @@ layui.define(['table', 'jquery', 'element', 'yaml','form', 'tab', 'menu', 'frame
close: true
}, 300);
compatible();
})
} else {
bodyFrame = pearFrame.render({

View File

@ -64,6 +64,13 @@ layui.define(['table', 'jquery', 'element'], function(exports) {
if (domsss.text() != '') {
data['menuPath'] = domsss.find("span").text() + " / " + data['menuPath'];
}
if ($("#" + _this.option.elem).is(".pear-nav-mini")) {
if(_this.option.accordion){
activeMenus = $(this).parent().parent().parent().children("a");
}else{
activeMenus.push($(this).parent().parent().parent().children("a"));
}
}
clickEvent(dom, data);
})
}

View File

@ -10,7 +10,7 @@ menu:
## 菜单数据来源
data: "admin/data/menu.json"
## 是否同时只打开一个菜单目录
accordion: true
accordion: false
## 是否开启多系统菜单模式
control: false
## 默认选中的菜单项
@ -24,7 +24,7 @@ tab:
## 切换选项卡时,是否刷新页面状态
keepState: true
## 是否开启 Tab 记忆
session: true
session: false
## 最大可打开的选项卡数量
tabMax: "30"
## 默认选项卡数据