气泡确认框 Popover

演示

基础用法

Popconfirm 的属性与 Popover 很类似, 因此对于重复属性,请参考 Popover 的文档,在此文档中不做详尽解释。

自定义弹出框的内容

可以在 Popconfirm 中自定义内容。

API

Popover Props 属性参考 Popover props

名称类型可选值默认值说明
contentstring--弹出框的显示内容
confirm-button-textstring-确定确认按钮文字
cancel-button-textstring-取消 取消按钮文字
confirm-button-idstring--确认按钮Id
cancel-button-idstring--取消按钮Id
confirm-button-classstring--确认按钮class
cancel-button-classstring--取消按钮class
statusstringdefault | danger | primarydefault二次确认框状态,default下没有图标
before-cancelfunction(done),done 用于关闭 Popconfirm--取消前的回调,会暂停 Popconfirm的关闭
before-confirmfunction(done),done 用于关闭 Popconfirm--确定前的回调,会暂停 Popconfirm的关闭
triggterstringclick | hover | manuallyclick触发方式

Popover 插槽

名称名说明
mainPopconfirm 显示的元素内容
footer按钮区域显示的元素内容

Popover 事件

名称名类型说明
cancel-点击取消按钮时触发
confirm-点击确认按钮时触发

最近更新于: