@lambo-design/pro-layout 1.0.0-beta.460 → 1.0.0-beta.461
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 +3 -3
- package/src/index.vue +5 -5
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.461",
|
|
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/core": "^4.7.1-beta.182",
|
|
14
|
+
"@lambo-design/shared": "^1.0.0-beta.367"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"release-pro-layout": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
|
package/src/index.vue
CHANGED
|
@@ -82,7 +82,7 @@ export default {
|
|
|
82
82
|
},
|
|
83
83
|
showLeftMenu: {
|
|
84
84
|
type: Boolean,
|
|
85
|
-
default:
|
|
85
|
+
default: false
|
|
86
86
|
},
|
|
87
87
|
systemInfo: {
|
|
88
88
|
type: Object,
|
|
@@ -198,7 +198,7 @@ export default {
|
|
|
198
198
|
},
|
|
199
199
|
showLeftMenu: {
|
|
200
200
|
handler(val) {
|
|
201
|
-
if (val
|
|
201
|
+
if (val === false) {
|
|
202
202
|
this.isHideLeftMenu = val;
|
|
203
203
|
}
|
|
204
204
|
},
|
|
@@ -348,12 +348,12 @@ export default {
|
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
// 优先使用 appConfig,其次使用传入的 showLeftMenu prop,最后使用默认值
|
|
351
|
-
if (appConfig && appConfig.is_hide_left_menu){
|
|
352
|
-
this.isHideLeftMenu=appConfig.is_hide_left_menu!='1'
|
|
351
|
+
if (appConfig && appConfig.hasOwnProperty("is_hide_left_menu")){
|
|
352
|
+
this.isHideLeftMenu = appConfig.is_hide_left_menu != '1'
|
|
353
353
|
} else if (this.showLeftMenu !== null) {
|
|
354
354
|
this.isHideLeftMenu = this.showLeftMenu;
|
|
355
355
|
} else{
|
|
356
|
-
this.isHideLeftMenu=true
|
|
356
|
+
this.isHideLeftMenu = true
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
this.appId = appId;
|