Popover 气泡卡片
点击或悬停元素弹出的富内容卡片,支持标题、正文插槽、四方向定位与 Esc/点击外部自动关闭。
点击与悬停触发
vue
<template>
<VbPopover title="项目信息" content="气泡卡片正文内容" trigger="click">
<VbButton type="primary">点击展开</VbButton>
</VbPopover>
</template>API
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
title | 卡片标题(支持 #title 插槽) | string | — |
content | 卡片正文(支持 #content 插槽) | string | — |
trigger | 触发方式 | 'hover' | 'click' | 'focus' | 'hover' |
placement | 弹出位置 | 'top' | 'bottom' | 'left' | 'right' | 'top' |
open | 受控显隐(v-model:open) | boolean | — |