@lambo-design/pro-layout 1.0.0-beta.215 → 1.0.0-beta.216
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/pro-layout",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.216",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"registry": "https://registry.npmjs.org/"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@lambo-design/
|
|
14
|
-
"@lambo-design/
|
|
13
|
+
"@lambo-design/shared": "^1.0.0-beta.115",
|
|
14
|
+
"@lambo-design/core": "^4.7.1-beta.118"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {}
|
|
17
17
|
}
|
|
@@ -74,7 +74,7 @@ import ProLayoutSiderMenuItem from './pro-layout-sider-menu-item'
|
|
|
74
74
|
import ProLayoutSiderCollapsedMenu from './pro-layout-sider-collapsed-menu'
|
|
75
75
|
import {
|
|
76
76
|
filterMenuName,
|
|
77
|
-
filterMenuUri,
|
|
77
|
+
filterMenuUri,
|
|
78
78
|
tagExists,isOpenBlank
|
|
79
79
|
} from "@lambo-design/shared/utils/platform";
|
|
80
80
|
import config from "@lambo-design/shared/config/config";
|
|
@@ -189,17 +189,14 @@ export default {
|
|
|
189
189
|
this.openedNames = this.getOpenedNamesByActiveName();
|
|
190
190
|
},
|
|
191
191
|
selectMenu(name,menu) {
|
|
192
|
-
console.log("name=",name)
|
|
193
192
|
if (!menu) {
|
|
194
193
|
let res = this.originMenuList.filter(item => item.name == name)
|
|
195
194
|
if (res && res.length > 0) {
|
|
196
195
|
menu = res[0];
|
|
197
196
|
}
|
|
198
197
|
}
|
|
199
|
-
console.log("menu=",menu)
|
|
200
198
|
if (menu.appId && menu.appId != this.appId) {
|
|
201
199
|
let appInfo = this.navList.filter(app => app.appId === menu.appId);
|
|
202
|
-
console.log("appInfo=",appInfo)
|
|
203
200
|
Bus.$emit('change-app', {appId:menu.appId,appInfo:appInfo[0]})
|
|
204
201
|
}
|
|
205
202
|
setTimeout(()=>{
|
|
@@ -227,7 +224,6 @@ export default {
|
|
|
227
224
|
}
|
|
228
225
|
if (menu.meta && Array.isArray(menu.meta.crumbs)) {
|
|
229
226
|
let parentMenu = menu.meta.crumbs[0]
|
|
230
|
-
//console.log('parentMenu',parentMenu)
|
|
231
227
|
this.$set(this, 'selectedTopParent', parentMenu.name);
|
|
232
228
|
} else {
|
|
233
229
|
// 处理没有父菜单的情况
|
|
@@ -251,7 +247,6 @@ export default {
|
|
|
251
247
|
return menu.parent ? this.getTopParent(menu.parent) : menu.name;
|
|
252
248
|
},
|
|
253
249
|
activeIconBackground(item) {
|
|
254
|
-
// console.log('activeBack')
|
|
255
250
|
// 如果当前菜单项是激活的,返回一个颜色值,否则返回空
|
|
256
251
|
return this.selectedMenuParent=== item.parent ? '#ff0000' : '';
|
|
257
252
|
},
|