Skip to content

Popconfirm 气泡确认框 ​

在目标元素旁就地展示轻量化二次确认,避免频繁打断用户上下文,适合删除、重置等危险动作确认。

基础与危险操作确认 ​

<VbPopconfirm
  title="确认删除该条记录吗?"
  description="删除后无法撤销。"
  confirm-type="danger"
  confirm-text="删除"
  placement="bottom"
  @confirm="VbMessage.warning('已执行删除')"
>
  <VbButton type="danger">删除记录</VbButton>
</VbPopconfirm>

API ​

Props ​

属性名说明类型默认值
title确认提示标题string—
description补充说明string—
icon提示图标名BuiltinIconName'warning'
placement弹出位置'top' | 'bottom' | 'left' | 'right''top'
confirmType确认按钮样式'primary' | 'danger''primary'
confirmLoading确认按钮加载态booleanfalse
disabled是否禁用弹出booleanfalse

基于 MIT 协议开源发布 · @vobo-design/ui v0.5.0