leisure-core 0.5.78 → 0.5.79

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.
@@ -51,9 +51,10 @@
51
51
  :key="item2.id"
52
52
  :index="item2.name"
53
53
  @click="clickMenuItem(item2)"
54
+ :title="shouldShowTooltip(item2.title) ? item2.title : ''"
54
55
  >
55
56
    
56
- <span>{{ item2.title }}</span>
57
+ <span class="menu-item-text">{{ item2.title }}</span>
57
58
  </el-menu-item>
58
59
  </el-submenu>
59
60
  </el-menu>
@@ -442,6 +443,9 @@ export default {
442
443
  this.aside_open_close = true;
443
444
  }
444
445
  },
446
+ shouldShowTooltip(text) {
447
+ return text && text.length > 8;
448
+ },
445
449
  },
446
450
  };
447
451
  </script>
@@ -605,4 +609,14 @@ export default {
605
609
  height: 0;
606
610
  background-color: transparent;
607
611
  }
612
+
613
+ .menuItem {
614
+ .menu-item-text {
615
+ display: inline-block;
616
+ max-width: 140px;
617
+ overflow: hidden;
618
+ text-overflow: ellipsis;
619
+ white-space: nowrap;
620
+ }
621
+ }
608
622
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.5.78",
3
+ "version": "0.5.79",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",