lw-cdp-ui 1.4.18 → 1.4.19

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,7 +1,7 @@
1
1
  <template>
2
2
  <div class="layout-aside">
3
3
 
4
- <slot name="logo">
4
+ <slot name="logo" v-if="unPassport">
5
5
  <img class="logo" src="../../../assets/images/logo.svg" alt="" @click="openMneu">
6
6
  </slot>
7
7
 
@@ -38,6 +38,11 @@
38
38
  export default {
39
39
  name: 'layoutAside',
40
40
  props: {
41
+ // 不是passport
42
+ unPassport: {
43
+ type: Boolean,
44
+ default: true
45
+ },
41
46
  },
42
47
  data() {
43
48
  return {
@@ -1,48 +1,39 @@
1
1
  <template>
2
2
  <div class="user-bar">
3
- <slot name="userbarActionBox"></slot>
4
- <!-- 任务中心 -->
5
- <task v-if="isShowTask" />
3
+ <template v-if="unPassport">
4
+ <slot name="userbarActionBox"></slot>
5
+ <!-- 任务中心 -->
6
+ <task v-if="isShowTask" />
6
7
 
7
- <!-- 下拉BU -->
8
- <bu v-if="isShowBu"
9
- :isInitialized="isInitialized" />
8
+ <!-- 下拉BU -->
9
+ <bu v-if="isShowBu" :isInitialized="isInitialized" />
10
+ </template>
10
11
 
11
- <el-dropdown class="user panel-item"
12
- trigger="click"
13
- @command="handleUser">
12
+
13
+ <el-dropdown class="user panel-item" trigger="click" @command="handleUser">
14
14
  <div class="user-avatar">
15
- <el-avatar :size="30"
16
- :src="$store.state.user.img || empty"></el-avatar>
15
+ <el-avatar :size="30" :src="$store.state.user.img || empty"></el-avatar>
17
16
  </div>
18
17
  <template #dropdown>
19
18
  <el-dropdown-menu>
20
19
  <el-dropdown-item command="uc">
21
20
  <div class="user-body">
22
- <el-avatar :size="30"
23
- :src="$store.state.user.img || empty"></el-avatar>
21
+ <el-avatar :size="30" :src="$store.state.user.img || empty"></el-avatar>
24
22
  <div class="user-name">
25
23
  <label>{{ $store.state.user.realName }}</label>
26
24
  <label>{{ $store.state.user.username }}</label>
27
25
  </div>
28
26
  </div>
29
27
  </el-dropdown-item>
30
- <el-dropdown-item divided
31
- command="setting">{{$t('lwLayout.layout.layoutConfiguration')}}</el-dropdown-item>
32
- <el-dropdown-item
33
- command="clearCache">{{$t('lwLayout.layout.clearCache')}}</el-dropdown-item>
34
- <el-dropdown-item divided
35
- command="outLogin">{{$t('lwLayout.layout.outLogin')}}</el-dropdown-item>
28
+ <el-dropdown-item divided command="setting">{{ $t('lwLayout.layout.layoutConfiguration') }}</el-dropdown-item>
29
+ <el-dropdown-item command="clearCache">{{ $t('lwLayout.layout.clearCache') }}</el-dropdown-item>
30
+ <el-dropdown-item divided command="outLogin">{{ $t('lwLayout.layout.outLogin') }}</el-dropdown-item>
36
31
  </el-dropdown-menu>
37
32
  </template>
38
33
  </el-dropdown>
39
34
  </div>
40
35
 
41
- <el-drawer title="布局实时演示"
42
- v-model="settingDialog"
43
- :size="400"
44
- append-to-body
45
- destroy-on-close>
36
+ <el-drawer title="布局实时演示" v-model="settingDialog" :size="400" append-to-body destroy-on-close>
46
37
  <setting></setting>
47
38
  </el-drawer>
48
39
  </template>
@@ -66,6 +57,11 @@ export default {
66
57
  type: Boolean,
67
58
  default: true
68
59
  },
60
+ // 不是passport
61
+ unPassport: {
62
+ type: Boolean,
63
+ default: true
64
+ },
69
65
  },
70
66
  components: {
71
67
  bu,
@@ -149,6 +145,7 @@ export default {
149
145
  align-items: center;
150
146
  height: 100%;
151
147
  }
148
+
152
149
  .user-bar .panel-item {
153
150
  padding: 0 10px;
154
151
  cursor: pointer;
@@ -156,17 +153,21 @@ export default {
156
153
  display: flex;
157
154
  align-items: center;
158
155
  }
156
+
159
157
  .user-bar .panel-item i {
160
158
  font-size: 16px;
161
159
  }
160
+
162
161
  .user-bar .panel-item:hover {
163
162
  background: rgba(0, 0, 0, 0.1);
164
163
  }
164
+
165
165
  .user-bar .user-avatar {
166
166
  height: 49px;
167
167
  display: flex;
168
168
  align-items: center;
169
169
  }
170
+
170
171
  .user-bar .user-avatar label {
171
172
  display: inline-block;
172
173
  margin-left: 5px;
@@ -177,31 +178,38 @@ export default {
177
178
  .msg-list li {
178
179
  border-top: 1px solid #eee;
179
180
  }
181
+
180
182
  .msg-list li a {
181
183
  display: flex;
182
184
  padding: 20px;
183
185
  }
186
+
184
187
  .msg-list li a:hover {
185
188
  background: #ecf5ff;
186
189
  }
190
+
187
191
  .msg-list__icon {
188
192
  width: 40px;
189
193
  margin-right: 15px;
190
194
  }
195
+
191
196
  .msg-list__main {
192
197
  flex: 1;
193
198
  }
199
+
194
200
  .msg-list__main h2 {
195
201
  font-size: 15px;
196
202
  font-weight: normal;
197
203
  color: #333;
198
204
  }
205
+
199
206
  .msg-list__main p {
200
207
  font-size: 12px;
201
208
  color: #999;
202
209
  line-height: 1.8;
203
210
  margin-top: 5px;
204
211
  }
212
+
205
213
  .msg-list__time {
206
214
  width: 100px;
207
215
  text-align: right;
@@ -211,9 +219,11 @@ export default {
211
219
  .dark .msg-list__main h2 {
212
220
  color: #d0d0d0;
213
221
  }
222
+
214
223
  .dark .msg-list li {
215
224
  border-top: 1px solid #363636;
216
225
  }
226
+
217
227
  .dark .msg-list li a:hover {
218
228
  background: #383838;
219
229
  }
@@ -223,9 +233,11 @@ export default {
223
233
  align-items: center;
224
234
  gap: 20px;
225
235
  min-width: 100px;
236
+
226
237
  :deep(.el-avatar) {
227
238
  min-width: 30px;
228
239
  }
240
+
229
241
  .user-name {
230
242
  display: flex;
231
243
  flex-direction: column;
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <!-- 经典布局 -->
3
- <template v-if="layout == 'menu'">
3
+ <template v-if="layout == 'menu' && unPassport">
4
4
  <section class="aminui-body-menu">
5
5
  <div class="aminui-side-split-left">
6
6
  <Aside>
@@ -66,61 +66,21 @@
66
66
  </section>
67
67
  </template>
68
68
 
69
- <!-- 默认布局 -->
70
- <!-- <template v-else>
71
- <div class="aminui-body-default">
72
- <div class="aminui-title-name">
73
- {{ menuIsCollapse ? $config.APP_NAME.charAt(0) : $config.APP_NAME }}
69
+ <!-- passport 模块 -->
70
+ <template v-if="!unPassport">
71
+ <section class="aminui-body-passport">
72
+ <div class="aminui-body-menu-top">
73
+ <div class="left">
74
+ <Aside class="menu" :unPassport="unPassport"></Aside>
75
+ <span class="title">{{ $t('loginPage.accountLogin') }}</span>
76
+ </div>
77
+ <userbar :isShowBu="isShowBu" :isInitialized="isInitialized" :unPassport="unPassport"></userbar>
74
78
  </div>
75
-
76
- <Aside></Aside>
77
-
78
- <div class="adminui-side-bottom"
79
- @click="$store.commit('TOGGLE_menuIsCollapse')">
80
- <el-icon>
81
- <el-icon-expand v-if="menuIsCollapse" />
82
- <el-icon-fold v-else />
83
- </el-icon>
79
+ <div class="adminui-main" id="adminui-main">
80
+ <router-view></router-view>
84
81
  </div>
85
-
86
- <Side-m v-if="ismobile"></Side-m>
87
-
88
- <el-scrollbar>
89
- <el-menu :default-active="active"
90
- router
91
- :collapse="menuIsCollapse"
92
- :unique-opened="$config.MENU_UNIQUE_OPENED">
93
- <NavMenu :navMenus="menu"></NavMenu>
94
- </el-menu>
95
- </el-scrollbar>
96
-
97
- <Topbar v-if="!ismobile"></Topbar>
98
-
99
- <userbar :isShowBu="isShowBu"
100
- :isShowTask="isShowTask"
101
- :isInitialized="isInitialized">
102
- <template #userbarActionBox>
103
- <slot name="userbarActionBox"></slot>
104
- </template>
105
- </userbar>
106
-
107
- <Tags v-if="!ismobile && layoutTags"
108
- :tagShowID="tagShowID"></Tags>
109
-
110
- <div class="adminui-main">
111
- <slot name="routerView">
112
- <router-view v-slot="{ Component }">
113
- <keep-alive :include="this.$store.state.keepAlive.keepLiveRoute">
114
- <component :is="Component"
115
- :key="$route.fullPath"
116
- v-if="$store.state.keepAlive.routeShow" />
117
- </keep-alive>
118
- </router-view>
119
- </slot>
120
- <iframe-view></iframe-view>
121
- </div>
122
- </div>
123
- </template> -->
82
+ </section>
83
+ </template>
124
84
 
125
85
  </template>
126
86
 
@@ -153,6 +113,11 @@ export default {
153
113
  type: Boolean,
154
114
  default: false
155
115
  },
116
+ // 不是passport
117
+ unPassport: {
118
+ type: Boolean,
119
+ default: true
120
+ },
156
121
  // 应用名称
157
122
  appName: {
158
123
  type: String,