cloud-web-corejs 1.0.232 → 1.0.234
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="app-wrapper openSidebar">
|
|
3
|
-
<sidebar class="sidebar-container" :class="{ hoverold: hoverSidebar }" @selfClose="hoverSidebar = false"
|
|
4
|
-
@selfEnter="hoverSidebar = true"/>
|
|
5
|
-
<div class="main-container">
|
|
6
|
-
<div class="fixed-header">
|
|
7
|
-
<tags-view v-if="needTagsView"/>
|
|
2
|
+
<div :class="{'app-wrapper openSidebar':showSidebar,'empty-home-wrapper':!showSidebar}">
|
|
3
|
+
<sidebar v-show="showSidebar" class="sidebar-container" :class="{ hoverold: hoverSidebar }" @selfClose="hoverSidebar = false"
|
|
4
|
+
@selfEnter="hoverSidebar = true" :isMenu.sync="isMenu"/>
|
|
5
|
+
<div :class="{'main-container':showSidebar,telescopMenu:!isMenu}">
|
|
6
|
+
<div class="fixed-header" v-show="showSidebar">
|
|
7
|
+
<tags-view v-if="needTagsView" :isMenu.sync="isMenu"/>
|
|
8
8
|
</div>
|
|
9
9
|
<app-main v-if="showAppMain" ref="appMain"/>
|
|
10
10
|
</div>
|
|
@@ -38,6 +38,10 @@ export default {
|
|
|
38
38
|
withoutAnimation: this.sidebar.withoutAnimation,
|
|
39
39
|
mobile: this.device === 'mobile'
|
|
40
40
|
};
|
|
41
|
+
},
|
|
42
|
+
showSidebar() {
|
|
43
|
+
let result = true
|
|
44
|
+
return result;
|
|
41
45
|
}
|
|
42
46
|
},
|
|
43
47
|
data() {
|
|
@@ -45,7 +49,8 @@ export default {
|
|
|
45
49
|
hoverSidebar: false,
|
|
46
50
|
showAppMain: false,
|
|
47
51
|
showModifyPasswordDialog: true,
|
|
48
|
-
passwordStatus: 2
|
|
52
|
+
passwordStatus: 2,
|
|
53
|
+
isMenu:true
|
|
49
54
|
};
|
|
50
55
|
},
|
|
51
56
|
created() {
|
|
@@ -57,6 +62,9 @@ export default {
|
|
|
57
62
|
success: res => {
|
|
58
63
|
}
|
|
59
64
|
});
|
|
65
|
+
this.$baseEventBus.$on("triggerMenu",(value)=>{
|
|
66
|
+
this.isMenu = !this.isMenu;
|
|
67
|
+
});
|
|
60
68
|
},
|
|
61
69
|
async mounted() {
|
|
62
70
|
if (sessionStorage.getItem('toHome') == '1') {
|
|
@@ -92,7 +100,7 @@ export default {
|
|
|
92
100
|
position: relative;
|
|
93
101
|
height: 100%;
|
|
94
102
|
width: 100%;
|
|
95
|
-
|
|
103
|
+
overflow: hidden;
|
|
96
104
|
&.mobile.openSidebar {
|
|
97
105
|
position: fixed;
|
|
98
106
|
top: 0;
|
|
@@ -120,7 +128,7 @@ export default {
|
|
|
120
128
|
padding-top: 2px;
|
|
121
129
|
//box-shadow:0 2px 6px rgba(0,0,0,0.04);
|
|
122
130
|
//background:#FFF;
|
|
123
|
-
border-bottom: solid 2px $baseColor;
|
|
131
|
+
// border-bottom: solid 2px $baseColor;
|
|
124
132
|
display: -moz-box;
|
|
125
133
|
display: -webkit-box;
|
|
126
134
|
display: box;
|