描述

当组件内容为空(null,undefined、空字符串)时,tip自动隐藏。

示例

1、提示内容的数据类型为字符串,将空字符串赋值给内容变量,不显示tip

mouseover to show tip

tipStr:{{tipStr}}

2、提示内容为模板,模板为undefined时,不显示tip

mouseover to show tip

showTipTemplate:{{showTipTemplate}}

{{context.label}}

3、提示内容为组件,设置组件为null时,不显示tip

mouseover to show tip

组件:{{component}}