Pre Merge pull request !870 from 李家辉/fix-text-overflow
commit
9ebca319db
|
|
@ -10,12 +10,20 @@ export const useRenderMenuTitle = () => {
|
||||||
return icon ? (
|
return icon ? (
|
||||||
<>
|
<>
|
||||||
<Icon icon={meta.icon}></Icon>
|
<Icon icon={meta.icon}></Icon>
|
||||||
<span class="v-menu__title overflow-hidden overflow-ellipsis whitespace-nowrap">
|
<span
|
||||||
|
class="v-menu__title truncate"
|
||||||
|
style="padding-right: calc(var(--el-menu-base-level-padding) + 12px);"
|
||||||
|
title={t(title as string)}
|
||||||
|
>
|
||||||
{t(title as string)}
|
{t(title as string)}
|
||||||
</span>
|
</span>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<span class="v-menu__title overflow-hidden overflow-ellipsis whitespace-nowrap">
|
<span
|
||||||
|
class="v-menu__title truncate"
|
||||||
|
style="padding-right: calc(var(--el-menu-base-level-padding) + 12px);"
|
||||||
|
title={t(title as string)}
|
||||||
|
>
|
||||||
{t(title as string)}
|
{t(title as string)}
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue