Menu: check $slots.title when rendering title tooltip (#10193)

pull/9251/head
花裤衩 2018-03-16 11:01:29 +08:00 committed by 杨奕
parent 2df0f22bf0
commit 130007210d
1 changed files with 1 additions and 1 deletions

View File

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