跳到主要内容

eo-tooltip

<eo-tooltip>

提示

Examples​

Basic​

Playground

Icon​

Playground

Trigger​

Playground

Placement​

Playground

Hoist​

Playground

Slot​

Playground

Properties​

NameDescriptionTypeDefaultRequired
icon

图标

GeneralIconProps
content

内容

string
placement

弹出位置

Placement
disabled

是否禁用

boolean false
open

是否显示

boolean
trigger

激活方式,包括 click | hover | focus | manual,可以多选用空格分隔

string
hoist

是否使用固定定位防止内容被裁切

boolean
maxWidth

最大长度, 默认 250px

string "250px"
textContent

文本内容

string

Slots​

NameDescription
(default)

提示的目标元素

content

放置在提示中的元素

Events​

NameDescriptionEvent Detail
open.change

当提示可见性开始变化时触发

boolean - 当前是否可见
after.open.change

当提示可见性变化完成并完成所有动画后触发。

boolean - 当前是否可见

Methods​

NameDescriptionParamsReturns
show

显示提示

hide

隐藏提示

Type references​

Placement​

"top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end"