mirror of https://github.com/ElemeFE/element
Menu: check $slots.title when rendering title tooltip (#10193)
parent
2df0f22bf0
commit
130007210d
|
@ -14,7 +14,7 @@
|
||||||
@mouseleave="onMouseLeave"
|
@mouseleave="onMouseLeave"
|
||||||
>
|
>
|
||||||
<el-tooltip
|
<el-tooltip
|
||||||
v-if="parentMenu.$options.componentName === 'ElMenu' && rootMenu.collapse"
|
v-if="parentMenu.$options.componentName === 'ElMenu' && rootMenu.collapse && $slots.title"
|
||||||
effect="dark"
|
effect="dark"
|
||||||
placement="right">
|
placement="right">
|
||||||
<div slot="content"><slot name="title"></slot></div>
|
<div slot="content"><slot name="title"></slot></div>
|
||||||
|
|
Loading…
Reference in New Issue