@lambo-design/pro-layout 1.0.0-beta.355 → 1.0.0-beta.357
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.357",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"registry": "https://registry.npmjs.org/"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@lambo-design/core": "^4.7.1-beta.
|
|
13
|
+
"@lambo-design/core": "^4.7.1-beta.149",
|
|
14
14
|
"@lambo-design/shared": "^1.0.0-beta.237"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="pro-layout-header-wrapper">
|
|
3
3
|
<div class="trigger-box" :style="menuScalingStyle">
|
|
4
4
|
<slot name="pro-layout-trigger">
|
|
5
|
-
<LamboProTrigger v-if="systemInfo.menuScaling === '1'"></LamboProTrigger>
|
|
5
|
+
<LamboProTrigger v-if="systemInfo.menuScaling === '1'" :hide-menu-logo="hideMenuLogo"></LamboProTrigger>
|
|
6
6
|
</slot>
|
|
7
7
|
</div>
|
|
8
8
|
<div class="logo-box">
|
|
@@ -44,6 +44,10 @@ export default {
|
|
|
44
44
|
acceptAppId: {
|
|
45
45
|
type: String,
|
|
46
46
|
default:''
|
|
47
|
+
},
|
|
48
|
+
hideMenuLogo: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default:true
|
|
47
51
|
}
|
|
48
52
|
},
|
|
49
53
|
data(){
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<a @click="handleChange" type="text" :class="['sider-trigger-a', collapsed ? 'collapsed' : '']">
|
|
3
|
-
<Icon type="md-menu" size="26" />
|
|
3
|
+
<Icon type="md-menu" size="26" v-show="hideMenuLogo" />
|
|
4
4
|
</a>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
import Bus from '@lambo-design/shared/utils/bus'
|
|
9
9
|
export default {
|
|
10
10
|
name: "pro-layout-trigger",
|
|
11
|
+
props:{
|
|
12
|
+
hideMenuLogo: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default:true
|
|
15
|
+
}
|
|
16
|
+
},
|
|
11
17
|
data(){
|
|
12
18
|
return {
|
|
13
19
|
collapsed: false
|
package/src/index.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<i-layout class="pro-layout" :class="layoutClass">
|
|
3
3
|
<i-header class="pro-layout-header" :style="systemInfo.headBackground ? headBackgroundStyle : ''">
|
|
4
|
-
<LamboProLayoutHeader>
|
|
4
|
+
<LamboProLayoutHeader :hide-menu-logo="isHideLeftMenu">
|
|
5
5
|
<template slot = "pro-layout-trigger">
|
|
6
6
|
<slot name="pro-layout-trigger"></slot>
|
|
7
7
|
</template>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</LamboProLayoutHeader>
|
|
21
21
|
</i-header>
|
|
22
22
|
<i-layout>
|
|
23
|
-
<i-sider
|
|
23
|
+
<i-sider v-show="isHideLeftMenu"
|
|
24
24
|
class="pro-layout-sider"
|
|
25
25
|
hide-trigger
|
|
26
26
|
collapsible
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
</i-sider>
|
|
32
32
|
<i-content class="pro-layout-content">
|
|
33
33
|
<i-layout class="pro-layout-content-layout">
|
|
34
|
-
<div class="pro-layout-tabs">
|
|
34
|
+
<div class="pro-layout-tabs" v-show="isHideLeftMenu">
|
|
35
35
|
<LamboProLayoutTabs></LamboProLayoutTabs>
|
|
36
36
|
</div>
|
|
37
37
|
<i-content class="pro-layout-page">
|
|
@@ -114,7 +114,8 @@ export default {
|
|
|
114
114
|
collapsed: false,
|
|
115
115
|
appId: '',
|
|
116
116
|
activeName: '',
|
|
117
|
-
tagList: []
|
|
117
|
+
tagList: [],
|
|
118
|
+
isHideLeftMenu: true
|
|
118
119
|
}
|
|
119
120
|
},
|
|
120
121
|
components: {
|
|
@@ -259,6 +260,7 @@ export default {
|
|
|
259
260
|
if (!appInfo) {
|
|
260
261
|
appInfo = this.navList.filter(item => item.appId == appId)[0];
|
|
261
262
|
}
|
|
263
|
+
this.isHideLeftMenu=appInfo.extendProps.is_hide_left_menu!='1'
|
|
262
264
|
this.appId = appId;
|
|
263
265
|
this.$emit('change-app',{appId,appInfo})
|
|
264
266
|
},
|