跳转到内容

气泡卡片 Popover

鼠标移入或点击,弹出气泡,可对浮层上元素进行操作,承载复杂内容和操作。

Popover支持 12 个不同的方位。分别为:上左 上右 下左 下右 左上 左下 右上 右下

通过设置 trigger,可以指定不同的触发方式。

<popover> 组件继承 <trigger> 组件的全部属性

参数名 描述 类型 默认值
popup-visible (v-model) 文字气泡是否可见 boolean -
default-popup-visible 文字气泡默认是否可见(非受控模式) boolean false
title 标题 string -
content 内容 string -
trigger 触发方式 'hover' | 'click' | 'focus' | 'contextMenu' 'hover'
position 弹出位置 'top' | 'tl' | 'tr' | 'bottom' | 'bl' | 'br' | 'left' | 'lt' | 'lb' | 'right' | 'rt' | 'rb' 'top'
content-class 弹出框内容的类名 ClassName -
content-style 弹出框内容的样式 CSSProperties -
arrow-class 弹出框箭头的类名 ClassName -
arrow-style 弹出框箭头的样式 CSSProperties -
popup-container 弹出框的挂载容器 string | HTMLElement -
事件名 描述 参数
popup-visible-change 文字气泡显示状态改变时触发 visible: boolean
插槽名 描述 参数
title 标题 -
content 内容 -