Tooltip (文字提示)

围绕触发元素的悬停 / 聚焦提示,可定位到任意一侧。

基础用法

Basic.vue

位置

Placements.vue

箭头

Arrow.vue

长内容

LongContent.vue

富内容

RichContent.vue

快捷键

Shortcut.vue

属性

属性类型默认值说明
classNamestring""
delayHidenumber0
delayShownumber100
hideOnMobilebooleantrue
position"top" | "right" | "bottom" | "left""top"
roundedKunUIRounded—
shortcutstring""A keyboard shortcut shown after the text as KunKbd keys, e.g. `'Mod+K'` for "Search ⌘K". Display only — binding the key is yours.
showArrowbooleanfalseRender a caret pointing at the trigger.
textstring""

插槽

插槽作用域
#content—
#default—