回退 'Pull Request !870 : fix: 菜单名称过长时没有正确显示省略号'

revert-merge-870-master
芋道源码 2026-05-03 10:55:35 +00:00 committed by Gitee
parent 53b96f87a0
commit 5e6b6bdd8e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 10 deletions

View File

@ -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>
)