文档
组件
悬浮层

悬浮层

位置

合法的位置样式类名: top-center bottom-center left-center right-center top-left top-right bottom-left bottom-right left-top right-top left-bottom right-bottom

<div class="popover">
  <label class="trigger btn solid" tabindex="0">click</label>
  <div class="content top-center" tabindex="0">
    <div class="arrow"></div>
    <div class="p-4 text-sm">Popover content.</div>
  </div>
</div>
演示

代码

HTML

代码

JSX/TSX
Popover content.
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!
Popover content. With right place!

强制显示

使用 open 类名来强制显示提示.

演示

代码

HTML

代码

JSX/TSX
Popover content.

悬停显示

悬浮层组件的默认激活显示的方式是点击触发器,但您可以在其上添加 hover-show 类名来更改此行为。

演示

代码

HTML

代码

JSX/TSX
Popover content.