@lambo-design/pro-layout 1.0.0-beta.176 → 1.0.0-beta.179
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 +1 -1
- package/src/components/search-fast.vue +24 -11
package/package.json
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
<Input v-if="searchType === 0" v-model="searchText" clearable id="modalInput" placeholder="搜索菜单" font-size="8px"
|
|
56
56
|
@on-change="handleInput" :border="false" @on-blur="searchSideModal= false">
|
|
57
57
|
<template #prefix>
|
|
58
|
-
<Icon type="ios-search" size="
|
|
58
|
+
<Icon type="ios-search" size="17"/>
|
|
59
59
|
</template>
|
|
60
60
|
</Input>
|
|
61
61
|
</div>
|
|
@@ -170,7 +170,6 @@ export default {
|
|
|
170
170
|
// },
|
|
171
171
|
|
|
172
172
|
handleSelect(item){
|
|
173
|
-
//console.log('handleSelect的',item.name,item.uri,item.pid)
|
|
174
173
|
this.$emit('on-select', item.name,item.uri,item.pid)
|
|
175
174
|
this.searchSideModal = false
|
|
176
175
|
},
|
|
@@ -203,6 +202,7 @@ export default {
|
|
|
203
202
|
// },
|
|
204
203
|
handleInput() {
|
|
205
204
|
let self = this;
|
|
205
|
+
self.searchSideModal = true
|
|
206
206
|
// 使用 filter 方法找到所有匹配的菜单项
|
|
207
207
|
const regex = new RegExp(this.searchText, "i");
|
|
208
208
|
self.menuData = self.originMenuList1.filter(menuItem => {
|
|
@@ -213,6 +213,7 @@ export default {
|
|
|
213
213
|
|
|
214
214
|
handleTopInput() {
|
|
215
215
|
let self = this;
|
|
216
|
+
self.searchTopModal = true
|
|
216
217
|
// 使用 filter 方法找到所有匹配的菜单项
|
|
217
218
|
const regex = new RegExp(this.searchTopText, "i");
|
|
218
219
|
self.menuData1 = self.originMenuList1.filter(menuItem => {
|
|
@@ -304,6 +305,14 @@ export default {
|
|
|
304
305
|
</script>
|
|
305
306
|
|
|
306
307
|
<style lang="less" >
|
|
308
|
+
@import "@lambo-design/shared/config/themes/blue/blue.less";
|
|
309
|
+
@import "@lambo-design/shared/config/themes/default/default.less";
|
|
310
|
+
@import "@lambo-design/shared/config/themes/gold/gold.less";
|
|
311
|
+
@import "@lambo-design/shared/config/themes/atrovirens/atrovirens.less";
|
|
312
|
+
@import "@lambo-design/shared/config/themes/eap/eap.less";
|
|
313
|
+
@import "@lambo-design/shared/config/themes/lime/lime.less";
|
|
314
|
+
@import "@lambo-design/shared/config/themes/orange/orange.less";
|
|
315
|
+
@import "@lambo-design/shared/config/themes/red/red.less";
|
|
307
316
|
.search-fast-con-top .ivu-tooltip-rel {
|
|
308
317
|
float: left;
|
|
309
318
|
height: 64px;
|
|
@@ -326,7 +335,7 @@ export default {
|
|
|
326
335
|
margin-top: 1px;
|
|
327
336
|
}
|
|
328
337
|
.search-fast-con-side-modal .ivu-modal-content{
|
|
329
|
-
background-color:
|
|
338
|
+
background-color: var(--menu-dark-active-bg ,@menu-dark-active-bg );
|
|
330
339
|
width: 218px;
|
|
331
340
|
margin-top: -18px;
|
|
332
341
|
height: 270px;
|
|
@@ -360,15 +369,16 @@ export default {
|
|
|
360
369
|
//background: #22262f;
|
|
361
370
|
}
|
|
362
371
|
.search-fast-con-side .ivu-input{
|
|
363
|
-
font-size:
|
|
372
|
+
font-size: 13px;
|
|
373
|
+
margin-top: -4px;
|
|
364
374
|
width: 228.5px;
|
|
365
375
|
height: 40px;
|
|
366
376
|
font-family: Microsoft YaHei;
|
|
367
377
|
font-weight: 400;
|
|
368
378
|
border: none;
|
|
369
|
-
background-color:
|
|
379
|
+
background-color: var(--legend-color ,@legend-color);//修改这里
|
|
370
380
|
text-align:left; /* 确保文本默认左对齐 */
|
|
371
|
-
color: rgba(42, 97 ,200);
|
|
381
|
+
//color: rgba(42, 97 ,200);
|
|
372
382
|
padding-right: 90px;
|
|
373
383
|
padding-left: 50px;
|
|
374
384
|
}
|
|
@@ -380,7 +390,7 @@ export default {
|
|
|
380
390
|
margin-left: -13px;
|
|
381
391
|
overflow-x: hidden;
|
|
382
392
|
overflow-y: auto;
|
|
383
|
-
background-color:
|
|
393
|
+
background-color: var(--menu-dark-active-bg ,@menu-dark-active-bg );
|
|
384
394
|
}
|
|
385
395
|
.search-fast-con-modal .ivu-modal-body{
|
|
386
396
|
height: 280px;
|
|
@@ -413,8 +423,9 @@ search-fast-con-side-modal .ivu-modal-body{
|
|
|
413
423
|
// text-align: right;
|
|
414
424
|
// }
|
|
415
425
|
.search-fast-con-side .ivu-icon-ios-search:before {
|
|
416
|
-
margin-right: -
|
|
417
|
-
color: rgba(42, 97 ,200);
|
|
426
|
+
margin-right: -33px; /* 向右移动10像素 */
|
|
427
|
+
//color: rgba(42, 97 ,200);
|
|
428
|
+
color: var(--head-bg ,@head-bg );
|
|
418
429
|
line-height: 1.6
|
|
419
430
|
}
|
|
420
431
|
.search-fast-con-top .ivu-icon-ios-search-outline:before {
|
|
@@ -429,10 +440,12 @@ search-fast-con-side-modal .ivu-modal-body{
|
|
|
429
440
|
color: rgba(255, 255, 255,0.7);
|
|
430
441
|
}
|
|
431
442
|
.search-fast-con-side .ivu-input::placeholder{
|
|
432
|
-
font-size:
|
|
443
|
+
font-size: 13px;
|
|
433
444
|
font-family: Microsoft YaHei;
|
|
434
445
|
font-weight: 400;
|
|
435
|
-
color: rgba(42, 97 ,200)!important;
|
|
446
|
+
// color: rgba(42, 97 ,200)!important;
|
|
447
|
+
color: var(--head-bg ,@head-bg ) !important;;
|
|
448
|
+
|
|
436
449
|
}
|
|
437
450
|
.search-fast-con-top .ivu-input {
|
|
438
451
|
font-size: 15px;
|