Skip to content

Tooltip 文字提示

基础用法

使用 content 属性来决定 hover 时的提示信息。 由 placement 属性决定展示效果: placement 属性值为:[方向];四个方向:topleftrightbottom

更多内容的文字提示

使用 maxWidth 属性来决定 Tooltip 的自动换行宽度 。

API

Options

NameDescriptionTypeDefaultVersion
content显示的内容,也可被 slot 覆盖string
placementTooltip 组件出现的位置top-left |top | top-right | left | right | bottom-left | bottom | bottom-righttop
maxWidth最大宽度,内容超出则换行number500
spaceTooltip 组件与出发内容的距离number8

贡献者

lazy

变更记录

c0ae5 - fix: 修正类型 on 11/20/2023
9f682 - feat: tooltip on 11/3/2023

Released under the MIT License.