fix tooltip bug

This commit is contained in:
tjz 2018-04-13 22:41:20 +08:00
parent ce191c946c
commit 01570ca308

View File

@ -148,7 +148,8 @@ export default {
render (h) {
const { $props, $data, $slots } = this
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
// Hide tooltip when there is no title
if (!hasProp(this, 'visible') && this.isNoTitle()) {