fix tooltip bug
parent
ce191c946c
commit
01570ca308
|
@ -148,7 +148,8 @@ export default {
|
||||||
render (h) {
|
render (h) {
|
||||||
const { $props, $data, $slots } = this
|
const { $props, $data, $slots } = this
|
||||||
const { prefixCls, openClassName, getPopupContainer } = $props
|
const { prefixCls, openClassName, getPopupContainer } = $props
|
||||||
const children = ($slots.default || []).filter(c => c.tag || c.text.trim() !== '')
|
let children = ($slots.default || []).filter(c => c.tag || c.text.trim() !== '')
|
||||||
|
children = children.length === 1 ? children[0] : children
|
||||||
let sVisible = $data.sVisible
|
let sVisible = $data.sVisible
|
||||||
// Hide tooltip when there is no title
|
// Hide tooltip when there is no title
|
||||||
if (!hasProp(this, 'visible') && this.isNoTitle()) {
|
if (!hasProp(this, 'visible') && this.isNoTitle()) {
|
||||||
|
|
Loading…
Reference in New Issue