@lambo-design/pro-layout 1.0.0-beta.172 → 1.0.0-beta.175

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.172",
3
+ "version": "1.0.0-beta.175",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {},
@@ -12,17 +12,18 @@
12
12
  <div class="tools-box">
13
13
  <LamboProTools></LamboProTools>
14
14
  </div>
15
-
16
- <!-- <FastSearch-->
17
- <!-- style="margin-right: 10px"-->
18
- <!-- :searchType="1"-->
19
- <!-- @on-select="handleSelect"-->
20
- <!-- ></FastSearch>-->
21
- <Menu ref="menu"
22
- :active-name="activeName"
23
- :open-names="openedNames"
24
- @on-select="handleSelect">
25
- </Menu>
15
+ <!-- <div class="search-box" v-if="isShowSearch === '1'" >-->
16
+ <!-- <FastSearch-->
17
+ <!-- style="margin-right: 10px"-->
18
+ <!-- :searchType="1"-->
19
+ <!-- @on-select="handleSelect"-->
20
+ <!-- ></FastSearch>-->
21
+ <!-- </div>-->
22
+ <!-- <Menu ref="menu"-->
23
+ <!-- :active-name="activeName"-->
24
+ <!-- :open-names="openedNames"-->
25
+ <!-- @on-select="handleSelect">-->
26
+ <!-- </Menu>-->
26
27
  </div>
27
28
  </template>
28
29
 
@@ -47,6 +48,8 @@ export default {
47
48
  },
48
49
  data(){
49
50
  return {
51
+ systemInfo: {},
52
+ isShowSearch:'1',
50
53
  navList: [],
51
54
  originMenuList:[],
52
55
  menuList: [],
@@ -75,10 +78,14 @@ export default {
75
78
  FastSearch
76
79
  },
77
80
  methods:{
81
+
78
82
  handleClick(){
79
83
  this.$emit('clickLogo')
80
84
  },
81
85
  initListener(){
86
+ Bus.$on('system-info',(data)=>{
87
+ this.initSystem(data)
88
+ });
82
89
  Bus.$on('nav-list',(data)=>{
83
90
  this.initNav(data)
84
91
  });
@@ -105,9 +112,25 @@ export default {
105
112
  Bus.$off('change-app')
106
113
  Bus.$off('tag-list')
107
114
  Bus.$off('menu-click')
115
+ Bus.$off('system-info')
116
+ },
117
+ initSystem(data){
118
+ if (data) {
119
+ this.systemInfo = data;
120
+ if (data.isShowSearch) {
121
+ //console.log('head中的isShowSearch',data.isShowSearch)
122
+ this.isShowSearch = data.isShowSearch;
123
+ }
124
+ }
125
+ },
126
+ initNav(data){
127
+ if (data.toString() === this.navList.toString()) {
128
+ return;
129
+ }
130
+ this.navList = data;
108
131
  },
109
132
  handleSelect(name,uri,pid){
110
- // console.log('head中的handleSelect',name,uri,pid)
133
+ //console.log('head中的handleSelect',name,uri,pid)
111
134
  let menu = null;
112
135
  if (name.indexOf("isTurnByHref_") > -1) {
113
136
  name = name.replace("isTurnByHref_","");
@@ -145,7 +168,7 @@ export default {
145
168
  this.activeName = menu.name; // 设置当前菜单为激活状态
146
169
  }
147
170
  }
148
- //console.log("nextTick之前,openedNames:", this.openedNames);
171
+ // console.log("nextTick之前,openedNames:", this.openedNames);
149
172
 
150
173
  this.$nextTick(() => {
151
174
  // console.log("nextTick内部,openedNames:", JSON.parse(JSON.stringify(this.openedNames)));
@@ -52,10 +52,10 @@
52
52
 
53
53
  <div class="search-fast-con-side" >
54
54
  <div class="sideInput" @click="handleSideClick">
55
- <Input v-if="searchType === 0" v-model="searchText" clearable id="modalInput" placeholder="搜索菜单"
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="22"/>
58
+ <Icon type="ios-search" size="23"/>
59
59
  </template>
60
60
  </Input>
61
61
  </div>
@@ -360,20 +360,24 @@ export default {
360
360
  //background: #22262f;
361
361
  }
362
362
  .search-fast-con-side .ivu-input{
363
- font-size: 15px;
363
+ font-size: 9.5px;
364
364
  width: 228.5px;
365
+ height: 40px;
365
366
  font-family: Microsoft YaHei;
366
367
  font-weight: 400;
367
368
  border: none;
368
369
  background-color: rgba(2,55,133);
369
- text-align: center; /* 确保文本默认左对齐 */
370
+ text-align:left; /* 确保文本默认左对齐 */
370
371
  color: rgba(42, 97 ,200);
371
372
  padding-right: 90px;
373
+ padding-left: 50px;
372
374
  }
373
375
  .search-fast-con-side-modal .ivu-modal-body .modal1-content {
374
376
  padding-top: 6px;
377
+ padding-left: 10px;
375
378
  height: 270px;
376
- width: 203px;
379
+ width: 211px;
380
+ margin-left: -13px;
377
381
  overflow-x: hidden;
378
382
  overflow-y: auto;
379
383
  background-color: rgba(0, 44, 107);
@@ -411,6 +415,7 @@ search-fast-con-side-modal .ivu-modal-body{
411
415
  .search-fast-con-side .ivu-icon-ios-search:before {
412
416
  margin-right: -30px; /* 向右移动10像素 */
413
417
  color: rgba(42, 97 ,200);
418
+ line-height: 1.6
414
419
  }
415
420
  .search-fast-con-top .ivu-icon-ios-search-outline:before {
416
421
  //margin-right: -1000px;