fix: 修复当左侧菜单收起后,切换到horizontal导航模式时文字不展示的问题

This commit is contained in:
xiaoxian521 2023-02-15 20:21:39 +08:00
parent fad1db8c57
commit 3ee8c51f90

View File

@ -274,6 +274,9 @@ function resolvePath(routePath) {
:is="useRenderIcon(props.item.meta && toRaw(props.item.meta.icon))" :is="useRenderIcon(props.item.meta && toRaw(props.item.meta.icon))"
/> />
</div> </div>
<span v-if="layout === 'horizontal'">
{{ transformI18n(props.item.meta.title) }}
</span>
<div <div
:style="getSubMenuDivStyle(props.item)" :style="getSubMenuDivStyle(props.item)"
v-if=" v-if="
@ -284,9 +287,6 @@ function resolvePath(routePath) {
) )
" "
> >
<span v-if="layout === 'horizontal'">
{{ transformI18n(props.item.meta.title) }}
</span>
<el-tooltip <el-tooltip
v-if="layout !== 'horizontal'" v-if="layout !== 'horizontal'"
placement="top" placement="top"