fix: long text style in sidemenu. fixed #4749 (#4770)

pull/48/MERGE
Netfan 2024-10-30 21:43:41 +08:00 committed by GitHub
parent c2d59dea69
commit 353e8be289
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View File

@ -718,6 +718,10 @@ $namespace: vben;
align-items: center;
width: 100%;
height: var(--menu-item-height);
span {
@include menu-title;
}
}
&.is-collapse-show-title {

View File

@ -42,7 +42,9 @@ const hasChildren = computed(() => {
:icon="menu.icon"
:path="menu.path"
>
<template #title>{{ menu.name }}</template>
<template #title>
<span>{{ menu.name }}</span>
</template>
</MenuItem>
<SubMenuComp
v-else
@ -59,7 +61,9 @@ const hasChildren = computed(() => {
class="right-6"
/>
</template>
<template #title>{{ menu.name }}</template>
<template #title>
<span>{{ menu.name }}</span>
</template>
<template v-for="childItem in menu.children || []" :key="childItem.path">
<SubMenu :menu="childItem" />
</template>