文字提示气泡框,在鼠标悬停时显示,代替了系统的title提示。
最简单的用法。
组件提供了12个不同的方向显示Tooltip,具体配置可查看API。
提示内容可以是html结构的字符串
提示内容可以是自定义的组件
提示是一个confirm框
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
text | 提示的内容 | String | null |
html | 提示的内容,是html结构的字符串 | String | null |
component | 提示的内容,是一个vue组件 | Object | null |
direction | 提示的朝向,相对于dom来说,默认是朝下。可选值有“left”、“right”、“top”、“bottom” | String | bottom |
align | 提示的文字相对于dom的位置,默认是center。可选值有“top”、“bottom”、“center”、“right”、“left” | String | center |
confirm | 是否是询问模式 | Boolean | false |
onOk | 点击确认触发 | Function | null |
align | 点击取消触发 | Function | null |