Skip to content

Popover 气泡提示

介绍

在元素上点击或长按时,展示额外的气泡提示。

基础用法

html
<vd-popover message="提示消息内容">
  <view>展示消息</view>
</vd-popover>

API

Props

参数说明类型默认值
message提示信息string-
trigger触发方式'click' | 'longpress''click'
position弹出位置top top-start top-end bottom bottom-start bottom-end left left-start left-end right right-start right-end'top'
transition动画名称string'zoom-in'
duration展示时长number300
show-arrow是否显示箭头booleantrue
lazy-render是否懒渲染booleantrue

代替原始 Props

参数说明类型默认值
custom-id根节点idstring-
custom-class根节点类名ClassValue-
custom-style根节点样式StyleValue-

Events

事件名说明回调参数
open打开时触发-
opened打开动画结束时触发-
close关闭时触发-
closed关闭动画结束时触发-

Slots

名称说明
default触发容器
message提示信息

赣ICP备2025061025号-1