选择器
eui-tooltip-content
继承
无
输入
名称 | 类型 | 描述 | 默认 |
---|---|---|---|
tooltipCls | string | 提示框样式类。 | null |
tooltipStyle | Object | 提示框内联样式。 | null |
content | string | 提示框内容。 | null |
position | string | 提示框的位置。可选的值:'left','right','top','bottom'。 | bottom |
target | HTMLElement | 当悬停在目标元素上时显示提示框消息的目标元素。 | null |
trackMouse | boolean | 使提示框与鼠标一起移动。 | false |
deltaX | number | 与提示框位置的水平距离。 | 0 |
deltaY | number | 与提示框位置的垂直距离。 | 0 |
方法
名称 | 参数 | 返回值 | 描述 |
---|---|---|---|
show | 无 | void | 显示提示框内容。 |
hide | 无 | void | 隐藏提示框内容。 |
reposition | 无 | void | 重置提示框位置。 |