@lambo-design/pro-layout 1.0.0-beta.211 → 1.0.0-beta.213
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
|
@@ -41,7 +41,7 @@ export default {
|
|
|
41
41
|
methods: {
|
|
42
42
|
initListener() {
|
|
43
43
|
Bus.$on('system-info',(data) => {
|
|
44
|
-
this.initSystemInfo();
|
|
44
|
+
this.initSystemInfo(data);
|
|
45
45
|
})
|
|
46
46
|
Bus.$on('nav-list', (data) => {
|
|
47
47
|
this.initNav(data)
|
|
@@ -160,6 +160,8 @@ export default {
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
/deep/ .ivu-menu-submenu {
|
|
163
|
+
background: var(--menu-dark-title, @_menu-dark-title);
|
|
164
|
+
color: var(--heading-color-dark, @_heading-color-dark);
|
|
163
165
|
.ivu-menu-submenu-title > i {
|
|
164
166
|
&.ivu-menu-submenu-title-icon {
|
|
165
167
|
|
|
@@ -47,38 +47,6 @@ export default {
|
|
|
47
47
|
methods: {
|
|
48
48
|
toggleCollect(item) {
|
|
49
49
|
Bus.$emit('toggle-collect-menu',!this.collectMap[item.name],item)
|
|
50
|
-
|
|
51
|
-
/*const self = this
|
|
52
|
-
let list = this.$store.state.app.originalPermissionList
|
|
53
|
-
let item1 = list.find(item1 => item1.name == item.name)
|
|
54
|
-
const apiUrl = self.isCollected.get(item.name) ?
|
|
55
|
-
self.serverContext + '/manage/upmsMenuCollect/remove' :
|
|
56
|
-
self.serverContext + '/manage/upmsMenuCollect/add'
|
|
57
|
-
const data = {
|
|
58
|
-
appId: item1.appId,
|
|
59
|
-
permissionId: item1.permissionId
|
|
60
|
-
}
|
|
61
|
-
ajax.post(apiUrl, data).then(function (resp) {
|
|
62
|
-
if (resp.data.code == 1) {
|
|
63
|
-
|
|
64
|
-
if (self.isCollected.get(item.name)){
|
|
65
|
-
self.isCollected.delete(item.name)
|
|
66
|
-
}else {
|
|
67
|
-
self.isCollected.set(item.name,true)
|
|
68
|
-
}
|
|
69
|
-
//重新赋值刷新dom元素
|
|
70
|
-
self.isCollected = new Map(self.isCollected);
|
|
71
|
-
const message = self.isCollected.get(item.name) ? '收藏成功' : '取消收藏成功'
|
|
72
|
-
Bus.$emit('change-top-collect',self.isCollected.get(item.name))
|
|
73
|
-
self.$Message.success(message)
|
|
74
|
-
} else {
|
|
75
|
-
const message = self.isCollected.get(item.name) ? '取消收藏失败' : '收藏失败'
|
|
76
|
-
self.$Message.error(message + ', 请联系系统管理员')
|
|
77
|
-
}
|
|
78
|
-
}).catch(function (err) {
|
|
79
|
-
console.error('收藏操作失败:', err)
|
|
80
|
-
self.$Message.error('操作失败, 请联系系统管理员')
|
|
81
|
-
})*/
|
|
82
50
|
}
|
|
83
51
|
}
|
|
84
52
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<div class="search-fast-con">
|
|
3
3
|
<div class="search-fast-con-side" >
|
|
4
4
|
<div class="sideInput" @click="handleSideClick">
|
|
5
|
-
<Input v-if="searchType === 0" v-model="searchText" clearable
|
|
6
|
-
@on-change="handleInput" :border="false" @on-blur="searchSideModal= false">
|
|
5
|
+
<Input v-if="searchType === 0" v-model="searchText" clearable placeholder="搜索菜单" font-size="8px"
|
|
6
|
+
@on-change="handleInput" :border="false" @on-blur="searchSideModal = false">
|
|
7
7
|
<template #prefix>
|
|
8
8
|
<Icon type="ios-search" size="17"/>
|
|
9
9
|
</template>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
<Modal v-model="searchSideModal" class="search-fast-con-side-modal" footer-hide :closable="false" :mask="false"
|
|
14
|
-
scrollable
|
|
14
|
+
scrollable width="255px">
|
|
15
15
|
<div v-if="spinShow" style="height: 300px;font-size: 19px;">
|
|
16
16
|
<Spin size="large" :show="spinShow">
|
|
17
17
|
<Icon type="ios-loading" size=18 class="search-spin-icon-load"></Icon>
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
<div v-for="(item,index) in menuData" :key="index" >
|
|
23
23
|
<div class="menu-side-style" @click="handleSelect(item)" @mouseenter="handleMouseEnter(index)" @mouseleave="handleMouseLeave(index)">
|
|
24
24
|
<div :style="getScrollingStyle(item.label)" class="text" :class="{ 'scrolling': isHovered[index] && shouldScroll(item.label) }">
|
|
25
|
-
<Icon :type="item.icon" style="margin-left: 10.6px" size="
|
|
26
|
-
<span style="margin-left:
|
|
25
|
+
<Icon :type="item.icon" style="margin-left: 10.6px;min-width: 14px" size="14"></Icon>
|
|
26
|
+
<span style="margin-left: 9.5px">{{ item.label }}</span>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
@@ -158,94 +158,101 @@ export default {
|
|
|
158
158
|
.sideInput{
|
|
159
159
|
width: 221px;
|
|
160
160
|
transform: translateX(-13px);
|
|
161
|
+
background-color: var(--menu-dark-active-bg ,@_menu-dark-active-bg );
|
|
162
|
+
/deep/.ivu-input-prefix{
|
|
163
|
+
top:1px;
|
|
164
|
+
}
|
|
161
165
|
}
|
|
162
|
-
|
|
166
|
+
/deep/.ivu-input{
|
|
163
167
|
font-size: 13px;
|
|
164
168
|
margin-top: -4px;
|
|
165
169
|
width: 228.5px;
|
|
166
170
|
height: 40px;
|
|
167
171
|
font-weight: 400;
|
|
168
172
|
border: none;
|
|
169
|
-
background-color: var(--
|
|
173
|
+
background-color: var(--menu-dark-active-bg ,@_menu-dark-active-bg );
|
|
170
174
|
text-align:left; /* 确保文本默认左对齐 */
|
|
171
|
-
color: var(--
|
|
175
|
+
color: var(--menu-dark-subsidiary-color, @_menu-dark-subsidiary-color);
|
|
172
176
|
padding-right: 99px;
|
|
173
177
|
padding-left: 58px;
|
|
174
|
-
|
|
175
|
-
font-size:
|
|
176
|
-
font-family: Microsoft YaHei;
|
|
178
|
+
&::placeholder{
|
|
179
|
+
font-size: 14px;
|
|
177
180
|
font-weight: 400;
|
|
178
|
-
color: var(--
|
|
181
|
+
color: var(--menu-dark-subsidiary-color, @_menu-dark-subsidiary-color);
|
|
179
182
|
}
|
|
180
183
|
}
|
|
181
|
-
|
|
184
|
+
/deep/.ivu-icon-ios-search:before {
|
|
182
185
|
margin-right: -54px; /* 向右移动10像素 */
|
|
183
|
-
color: var(--
|
|
186
|
+
color: var(--menu-dark-subsidiary-color, @_menu-dark-subsidiary-color);
|
|
184
187
|
line-height: 1.6
|
|
185
188
|
}
|
|
186
189
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
+
}
|
|
191
|
+
.search-fast-con-side-modal {
|
|
192
|
+
.search-spin-icon-load{
|
|
193
|
+
animation: ani-search-spin 1s linear infinite;
|
|
194
|
+
}
|
|
195
|
+
.search-content {
|
|
196
|
+
padding-left: 10px;
|
|
197
|
+
height: 270px;
|
|
198
|
+
width: 211px;
|
|
199
|
+
margin-left: -13px;
|
|
200
|
+
overflow-x: hidden;
|
|
201
|
+
overflow-y: auto;
|
|
202
|
+
background-color: var(--menu-dark-active-bg ,@_menu-dark-active-bg );
|
|
203
|
+
-ms-overflow-style: none; /* Internet Explorer 10+ */
|
|
204
|
+
scrollbar-width: none; /* Firefox */
|
|
205
|
+
&::-webkit-scrollbar {
|
|
206
|
+
display: none; /* Chrome, Safari 和 Opera */
|
|
190
207
|
}
|
|
191
|
-
.
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
&::-webkit-scrollbar {
|
|
214
|
-
display: none; /* Chrome, Safari 和 Opera */
|
|
215
|
-
}
|
|
216
|
-
.menu-side-style{
|
|
217
|
-
font-size: 14px;
|
|
218
|
-
font-family: Microsoft YaHei;
|
|
219
|
-
font-weight: 400;
|
|
220
|
-
width: 200px;
|
|
221
|
-
color:#EBEBEB;
|
|
222
|
-
margin-bottom: 8px;
|
|
223
|
-
white-space: nowrap;
|
|
224
|
-
text-overflow: ellipsis;
|
|
225
|
-
.text {
|
|
226
|
-
display: inline-block;
|
|
227
|
-
&.scrolling {
|
|
228
|
-
animation: scrollText linear infinite;
|
|
229
|
-
animation-duration: 2s; /* 调整滚动速度和持续时间 */
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
&:hover {
|
|
233
|
-
overflow: visible;
|
|
234
|
-
cursor: pointer;
|
|
235
|
-
color: red;
|
|
236
|
-
.text {
|
|
237
|
-
animation-play-state: running;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
208
|
+
.menu-side-style{
|
|
209
|
+
font-size: 14px;
|
|
210
|
+
font-weight: 400;
|
|
211
|
+
width: 200px;
|
|
212
|
+
color: var(--menu-dark-subsidiary-color, @_menu-dark-subsidiary-color);
|
|
213
|
+
margin-bottom: 8px;
|
|
214
|
+
white-space: nowrap;
|
|
215
|
+
text-overflow: ellipsis;
|
|
216
|
+
cursor: pointer;
|
|
217
|
+
.text {
|
|
218
|
+
display: inline-block;
|
|
219
|
+
&.scrolling {
|
|
220
|
+
animation: scrollText linear infinite;
|
|
221
|
+
animation-duration: 2s; /* 调整滚动速度和持续时间 */
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
&:hover {
|
|
225
|
+
overflow: visible;
|
|
226
|
+
cursor: pointer;
|
|
227
|
+
color: var(--primary-color-tint-20,@_primary-color-tint-20);
|
|
228
|
+
.text {
|
|
229
|
+
animation-play-state: running;
|
|
242
230
|
}
|
|
243
231
|
}
|
|
244
232
|
}
|
|
245
233
|
}
|
|
246
234
|
}
|
|
235
|
+
|
|
247
236
|
</style>
|
|
248
237
|
<style lang="less">
|
|
238
|
+
@import "@lambo-design/core/src/styles/default.less";
|
|
239
|
+
.search-fast-con-side-modal {
|
|
240
|
+
.ivu-modal{
|
|
241
|
+
padding-top: 1px;
|
|
242
|
+
margin-left: 0px;
|
|
243
|
+
margin-top: 1px;
|
|
244
|
+
.ivu-modal-content{
|
|
245
|
+
background-color: var(--menu-dark-active-bg ,@_menu-dark-active-bg );
|
|
246
|
+
width: 218px;
|
|
247
|
+
margin-top: -18px;
|
|
248
|
+
height: 270px;
|
|
249
|
+
.ivu-modal-body{
|
|
250
|
+
padding: 0px 16px 16px 16px;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
249
256
|
.v-transfer-dom ::-webkit-scrollbar {
|
|
250
257
|
display: none; /* Chrome, Safari 和 Opera */
|
|
251
258
|
overflow: hidden !important;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</Col>
|
|
12
12
|
<Col>
|
|
13
13
|
<div class="user-avatar-dropdown">
|
|
14
|
-
<Dropdown @on-click="handleClick">
|
|
14
|
+
<Dropdown @on-click="handleClick" :transfer="false">
|
|
15
15
|
<span>欢迎,{{ userInfo.userName }}</span>
|
|
16
16
|
<Icon type="ios-arrow-down"/>
|
|
17
17
|
<DropdownMenu v-if="userInfo.dropList.length > 0" slot="list">
|