Tab 切换刷新加入 pear.config.json 配置 KeepState 选项
parent
5592172ce6
commit
30e06c9c54
|
|
@ -62,6 +62,10 @@ layui.define(['table', 'jquery', 'element', 'form', 'tab', 'menu', 'frame'],
|
|||
}]
|
||||
});
|
||||
bodyTab.click(function(id) {
|
||||
// 选 项 卡 切 换 刷 新
|
||||
if(!option.tab.keepState){
|
||||
bodyTab.refresh(200);
|
||||
}
|
||||
bodyTab.positionTab();
|
||||
sideMenu.selectItem(id);
|
||||
})
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
},
|
||||
"tab": {
|
||||
"muiltTab": true,
|
||||
"keepState": false,
|
||||
"tabMax": 30,
|
||||
"index": {
|
||||
"id": "0",
|
||||
|
|
|
|||
Loading…
Reference in New Issue