Popconfirm 气泡确认框

点击某个元素弹出一个简单的气泡确认框

基础用法

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

自定义弹出框的内容

可以在 Popconfirm 中自定义内容。

多种让 Popconfirm 出现的方法

点击按钮触发事件

属性

属性说明类型可选值默认值
title标题String
confirmButtonText确认按钮文字String
cancelButtonText取消按钮文字String
confirmButtonType确认按钮类型StringPrimary
cancelButtonType取消按钮类型StringText
icon自定义图标String / ComponentQuestionFilled
icon-colorIcon 颜色String#f90
hide-icon是否隐藏 IconBooleanfalse
teleportedwhether popconfirm is teleported to the bodybooleantrue / falsetrue
persistentwhen popconfirm inactive and persistent is false , popconfirm will be destroyedbooleanfalse

插槽

插槽名说明
reference触发 Popconfirm 显示的 HTML 元素

事件

事件名说明回调参数
confirm点击确认按钮时触发
cancel点击取消按钮时触发