leisure-core 0.5.77 → 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.
- package/le-home/src/main.vue +16 -2
- package/package.json +1 -1
package/le-home/src/main.vue
CHANGED
|
@@ -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>
|
|
@@ -250,7 +251,7 @@ export default {
|
|
|
250
251
|
this.menuData = this.$store.getters.menu.filter(function (item) {
|
|
251
252
|
if (item.children) {
|
|
252
253
|
item.children = item.children.filter(function (item1) {
|
|
253
|
-
return item1.
|
|
254
|
+
return item1.ishide === 0;
|
|
254
255
|
});
|
|
255
256
|
}
|
|
256
257
|
return item;
|
|
@@ -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>
|