跳转到内容

气泡卡片 Popover

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

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

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

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

参数名描述类型默认值
popup-visible (v-model)文字气泡是否可见boolean-
default-popup-visible文字气泡默认是否可见(非受控模式)booleanfalse
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内容-