element-plus菜单折叠以后图标消失
挺奇葩的一个问题,在于写法需要调整,如下:
原写法:
<template #title>
<el-icon>
<list />
</el-icon>
<span>{{ item.name }}</span>
</template>
改成:
<el-icon>
<list />
</el-icon>
<template #title><span>{{ item.name }}</span></template>
PS:转载请注明来源 https://www.cnblogs.com/sunshine-wy,疑问和勘误可在下方留言。
浙公网安备 33010602011771号