Appearance
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 | 对话框说明 |