跳转到内容

文字气泡 Tooltip

鼠标移入,气泡出现,鼠标移出,气泡消失。

通过 background-color 属性自定义背景颜色。

适用于小场景或数字气泡样式。

文字气泡支持 12 个不同的方位。分别为:上左上右下左下右左上左下右上右下

<tooltip> 组件继承 <trigger> 组件的全部属性

参数名描述类型默认值
popup-visible (v-model)文字气泡是否可见boolean-
default-popup-visible文字气泡默认是否可见(非受控模式)booleanfalse
disabled文字气泡是否禁用booleanfalse
content文字气泡内容string-
position弹出位置'top' | 'tl' | 'tr' | 'bottom' | 'bl' | 'br' | 'left' | 'lt' | 'lb' | 'right' | 'rt' | 'rb''top'
mini是否展示为迷你尺寸booleanfalse
background-color弹出框的背景颜色string-
content-class弹出框内容的类名ClassName-
content-style弹出框内容的样式CSSProperties-
arrow-class弹出框箭头的类名ClassName-
arrow-style弹出框箭头的样式CSSProperties-
popup-container弹出框的挂载容器string | HTMLElement-
事件名描述参数
popup-visible-change文字气泡显示状态改变时触发visible: boolean
插槽名描述参数
content内容-