parent
475c9aa41f
commit
d06227e349
|
|
@ -148,6 +148,7 @@ layui.define(['table', 'jquery', 'element', 'yaml','form', 'tab', 'menu', 'frame
|
||||||
close: true
|
close: true
|
||||||
}, 300);
|
}, 300);
|
||||||
compatible();
|
compatible();
|
||||||
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
bodyFrame = pearFrame.render({
|
bodyFrame = pearFrame.render({
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,13 @@ layui.define(['table', 'jquery', 'element'], function(exports) {
|
||||||
if (domsss.text() != '') {
|
if (domsss.text() != '') {
|
||||||
data['menuPath'] = domsss.find("span").text() + " / " + data['menuPath'];
|
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);
|
clickEvent(dom, data);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ menu:
|
||||||
## 菜单数据来源
|
## 菜单数据来源
|
||||||
data: "admin/data/menu.json"
|
data: "admin/data/menu.json"
|
||||||
## 是否同时只打开一个菜单目录
|
## 是否同时只打开一个菜单目录
|
||||||
accordion: true
|
accordion: false
|
||||||
## 是否开启多系统菜单模式
|
## 是否开启多系统菜单模式
|
||||||
control: false
|
control: false
|
||||||
## 默认选中的菜单项
|
## 默认选中的菜单项
|
||||||
|
|
@ -24,7 +24,7 @@ tab:
|
||||||
## 切换选项卡时,是否刷新页面状态
|
## 切换选项卡时,是否刷新页面状态
|
||||||
keepState: true
|
keepState: true
|
||||||
## 是否开启 Tab 记忆
|
## 是否开启 Tab 记忆
|
||||||
session: true
|
session: false
|
||||||
## 最大可打开的选项卡数量
|
## 最大可打开的选项卡数量
|
||||||
tabMax: "30"
|
tabMax: "30"
|
||||||
## 默认选项卡数据
|
## 默认选项卡数据
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue