Skip to content

类型: 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

定义确定按钮文本


inputType

inputType: undefined | string

输入框类型,参见 https://developers.weixin.qq.com/miniprogram/dev/component/input.html


maskClosable

maskClosable: undefined | boolean

允许点击遮罩关闭弹窗


placeholder

placeholder: undefined | string

输入框占位文本


showCancel

showCancel: undefined | string

是否显示取消按钮


title

title: undefined | string

对话框标题


type

type: undefined | "success" | "error" | "warn" | "info"

对话框标题主题


value

value: undefined | string

输入框值