Appearance
类型: dialogOptions<>
属性
beforeClose
• beforeClose: undefined
| boolean
点击按钮自动关闭,若设置为 false,则需要手动调用 close 方法
cancel
• cancel: undefined
| () => void
点击取消时触发
cancelColor
• cancelColor: undefined
| string
定义取消按钮颜色
cancelText
• cancelText: undefined
| string
定义取消按钮文本
confirm
• confirm: undefined
| (result
: any
) => void
| Promise
<void
>
点击确认时触发,若是异步函数,则等待 resolve 后才关闭弹窗
confirmColor
• confirmColor: undefined
| string
定义确定按钮颜色
confirmText
• confirmText: undefined
| string
定义确定按钮文本
content
• content: undefined
| string
对话框内容
maskClosable
• maskClosable: undefined
| boolean
允许点击遮罩关闭弹窗
showCancel
• showCancel: undefined
| boolean
是否显示取消按钮
showConfirm
• showConfirm: undefined
| boolean
是否显示确认按钮
title
• title: undefined
| string
对话框标题
type
• type: undefined
| "success"
| "error"
| "warn"
| "info"
对话框标题主题