回退 'Pull Request !870 : fix: 菜单名称过长时没有正确显示省略号'
parent
53b96f87a0
commit
5e6b6bdd8e
|
|
@ -10,20 +10,12 @@ export const useRenderMenuTitle = () => {
|
|||
return icon ? (
|
||||
<>
|
||||
<Icon icon={meta.icon}></Icon>
|
||||
<span
|
||||
class="v-menu__title truncate"
|
||||
style="padding-right: calc(var(--el-menu-base-level-padding) + 12px);"
|
||||
title={t(title as string)}
|
||||
>
|
||||
<span class="v-menu__title overflow-hidden overflow-ellipsis whitespace-nowrap">
|
||||
{t(title as string)}
|
||||
</span>
|
||||
</>
|
||||
) : (
|
||||
<span
|
||||
class="v-menu__title truncate"
|
||||
style="padding-right: calc(var(--el-menu-base-level-padding) + 12px);"
|
||||
title={t(title as string)}
|
||||
>
|
||||
<span class="v-menu__title overflow-hidden overflow-ellipsis whitespace-nowrap">
|
||||
{t(title as string)}
|
||||
</span>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue