Merge pull request !876 from 芋道源码/revert-merge-870-masterpull/851/MERGE
commit
3a1f520dc6
|
|
@ -10,20 +10,12 @@ export const useRenderMenuTitle = () => {
|
||||||
return icon ? (
|
return icon ? (
|
||||||
<>
|
<>
|
||||||
<Icon icon={meta.icon}></Icon>
|
<Icon icon={meta.icon}></Icon>
|
||||||
<span
|
<span class="v-menu__title overflow-hidden overflow-ellipsis whitespace-nowrap">
|
||||||
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
|
<span class="v-menu__title overflow-hidden overflow-ellipsis whitespace-nowrap">
|
||||||
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