Confirm

使用场景

confirm用于需要用户确认操作的情况。

Props

参数

说明

类型

默认值

cancel-text

可选,取消按钮文字

String

cancel

confirm-text

可选,确认按钮文字

String

confirm

默认slot

可选,提示消息内容

DOM

title

必选,提示标题

String

show

必选,是否显示,双向绑定

Boolean

false

on-confirm

确认事件

事件

on-cancel

取消事件

事件

事件名字从0.0.105后从confirmcancel重命名为on-confirmon-cancel

Demo

默认按钮文字

``` vux height=200 components=Confirm,Group,Switch

Are you sure?

export default { data () { return { show: false } } }

Last updated