@lambo-design/pro-layout 1.0.0-beta.333 → 1.0.0-beta.334

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/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # Changelog
2
+ ## [1.0.0-beta.334](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design/pro-layout@1.0.0-beta.333...@lambo-design/pro-layout@1.0.0-beta.334) (2024-05-24)
3
+
2
4
  ## [1.0.0-beta.333](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design/pro-layout@1.0.0-beta.327...@lambo-design/pro-layout@1.0.0-beta.333) (2024-05-24)
3
5
 
4
6
  ## [1.0.0-beta.327](http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/@lambo-design/pro-layout@1.0.0-beta.326...@lambo-design/pro-layout@1.0.0-beta.327) (2024-05-14)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/pro-layout",
3
- "version": "1.0.0-beta.333",
3
+ "version": "1.0.0-beta.334",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="search-fast-con">
2
+ <div class="search-fast-con" :class="tabsHeight != 46 ? 'custom-tabs' : ''">
3
3
  <div class="search-fast-con-side" >
4
4
  <div class="sideInput" @click="handleSideClick">
5
5
  <Input v-if="searchType === 0" v-model="searchText" clearable placeholder="搜索菜单" font-size="8px"
@@ -38,6 +38,7 @@
38
38
  <script>
39
39
  import Bus from "@lambo-design/shared/utils/bus";
40
40
  import {deepCopy} from "@lambo-design/shared/utils/assist";
41
+ import {getThemeVarByKey} from "@lambo-design/shared/utils/theme";
41
42
  export default {
42
43
  name: "FastSearch",
43
44
  props: {
@@ -63,7 +64,8 @@ export default {
63
64
  spinShow:false,
64
65
  systemInfo: {},
65
66
  originMenuList: [],
66
- searchMenuList: []
67
+ searchMenuList: [],
68
+ tabsHeight: 46
67
69
  }
68
70
  },
69
71
  computed:{
@@ -155,10 +157,18 @@ export default {
155
157
  "--scroll-duration": `0s`,
156
158
  }
157
159
  }
160
+ },
161
+ loadingCustomStyle(){
162
+ let themeKey = localStorage.getItem("theme") ? localStorage.getItem("theme") : "default"
163
+ let tabsHeight = getThemeVarByKey(themeKey,'--layout-tabs-height');
164
+ if (tabsHeight) {
165
+ this.tabsHeight = tabsHeight;
166
+ }
158
167
  }
159
168
  },
160
169
  created(){
161
170
  this.initListener();
171
+ this.loadingCustomStyle();
162
172
  },
163
173
  beforeDestroy(){
164
174
  this.destroyListener();
@@ -203,6 +213,20 @@ export default {
203
213
  line-height: 1.6
204
214
  }
205
215
  }
216
+ &.custom-tabs{
217
+ .search-fast-con-side{
218
+ .sideInput {
219
+ height: 23px;
220
+ .ivu-icon{
221
+ height: 28px;
222
+ line-height: 28px;
223
+ }
224
+ .ivu-input-prefix{
225
+ top: -1.5px
226
+ }
227
+ }
228
+ }
229
+ }
206
230
  }
207
231
  .search-fast-con-side-modal {
208
232
  .search-spin-icon-load{
@@ -276,6 +300,11 @@ export default {
276
300
  margin-top : 28px;
277
301
  }
278
302
  }
303
+ &.custom-tabs{
304
+ .ivu-modal {
305
+ margin-top : 0px;
306
+ }
307
+ }
279
308
  }
280
309
 
281
310
  .v-transfer-dom ::-webkit-scrollbar {
@@ -1,5 +1,6 @@
1
1
  <template>
2
- <div ref="listenWidth" class="pro-layout-sider-wrapper" :class="[collapsed ? 'menu-has-collapsed' : '']">
2
+ <div ref="listenWidth" class="pro-layout-sider-wrapper"
3
+ :class="[collapsed ? 'menu-has-collapsed' : '',tabsHeight != 46 ? 'custom-tabs' : '']">
3
4
  <Menu v-show="!collapsed" ref="menu"
4
5
  :accordion="accordion" :active-name="activeName"
5
6
  :open-names="openedNames" theme="dark"
@@ -103,6 +104,7 @@ import {
103
104
  isOpenBlank, buildSinglePermission,arraysEqual
104
105
  } from "@lambo-design/shared/utils/platform";
105
106
  import config from "@lambo-design/shared/config/config";
107
+ import {getThemeVarByKey} from "@lambo-design/shared/utils/theme";
106
108
 
107
109
  export default {
108
110
  name: "pro-layout-sider",
@@ -142,7 +144,8 @@ export default {
142
144
  tagList: [],
143
145
  collectMenuList: [],
144
146
  isCollected: {},
145
- systemInfo:{}
147
+ systemInfo:{},
148
+ tabsHeight: 46
146
149
  }
147
150
  },
148
151
  mixins:[sider],
@@ -384,6 +387,13 @@ export default {
384
387
  item: item
385
388
  }
386
389
  },
390
+ loadingCustomStyle(){
391
+ let themeKey = localStorage.getItem("theme") ? localStorage.getItem("theme") : "default"
392
+ let tabsHeight = getThemeVarByKey(themeKey,'--layout-tabs-height');
393
+ if (tabsHeight) {
394
+ this.tabsHeight = tabsHeight;
395
+ }
396
+ }
387
397
  },
388
398
  watch:{
389
399
  activeName(){
@@ -399,6 +409,7 @@ export default {
399
409
  mounted() {
400
410
  window.addEventListener('resize', this.handleResize); // 监听窗口大小变化事件
401
411
  this.handleResize(); // 初始化时获取一次宽度
412
+ this.loadingCustomStyle();
402
413
  },
403
414
  created(){
404
415
  this.initListener();
@@ -431,5 +442,8 @@ export default {
431
442
  &.menu-has-collapsed{
432
443
  padding-top: 0px;
433
444
  }
445
+ &.custom-tabs{
446
+ padding-top: 30px;
447
+ }
434
448
  }
435
449
  </style>
@@ -269,7 +269,6 @@ export default {
269
269
  let tabsHeight = getThemeVarByKey(themeKey,'--layout-tabs-height');
270
270
  if (tabsHeight) {
271
271
  this.tabsHeight = tabsHeight;
272
- console.log("tabsHeight=",tabsHeight)
273
272
  }
274
273
  }
275
274
  },