Skip to content

AlertDialog 确认对话框 ​

重要操作要求用户确认或取消。遮罩点击不发出关闭请求。

vue
<ll-alert-dialog v-model:open="open" title="替换内容" confirm-label="确认替换" cancel-label="保留" @confirm="replace" />

Attributes ​

参数说明类型可选值默认值
open可见状态boolean—必填
title标题string—必填
confirm-label确认操作文字string—必填
cancel-label取消操作文字string—必填
destructive使用危险样式boolean—false

Events ​

事件名称说明
confirm请求执行确认操作
cancel取消或按 Escape
update:open随后请求关闭

Slots ​

名称说明
default对话框说明