parent
c2d59dea69
commit
353e8be289
@ -718,6 +718,10 @@ $namespace: vben;
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: var(--menu-item-height);
|
height: var(--menu-item-height);
|
||||||
|
|
||||||
|
span {
|
||||||
|
@include menu-title;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.is-collapse-show-title {
|
&.is-collapse-show-title {
|
||||||
|
@ -42,7 +42,9 @@ const hasChildren = computed(() => {
|
|||||||
:icon="menu.icon"
|
:icon="menu.icon"
|
||||||
:path="menu.path"
|
:path="menu.path"
|
||||||
>
|
>
|
||||||
<template #title>{{ menu.name }}</template>
|
<template #title>
|
||||||
|
<span>{{ menu.name }}</span>
|
||||||
|
</template>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<SubMenuComp
|
<SubMenuComp
|
||||||
v-else
|
v-else
|
||||||
@ -59,7 +61,9 @@ const hasChildren = computed(() => {
|
|||||||
class="right-6"
|
class="right-6"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #title>{{ menu.name }}</template>
|
<template #title>
|
||||||
|
<span>{{ menu.name }}</span>
|
||||||
|
</template>
|
||||||
<template v-for="childItem in menu.children || []" :key="childItem.path">
|
<template v-for="childItem in menu.children || []" :key="childItem.path">
|
||||||
<SubMenu :menu="childItem" />
|
<SubMenu :menu="childItem" />
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user