Skip to content

Tooltip 文字提示

基础用法

通过设置 placement 属性可以设置 tooltip 的位置;

可选位置:top/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-end

主题

通过theme属性可以设置主题,可选值light/dark

多行文本

通过给slot=content的元素设置style="word-break: initial;white-space: initial"来实现多行文本的需求

MIT Licensed