事件名字从0.0.105
后从confirm
和cancel
重命名为on-confirm
和on-cancel
### 监听事件
``` vux height=200 components=Confirm,Group,Switch
<template>
<group>
<switch title="Toggle" :value.sync="show"></switch>
</group>
<confirm :show.sync="show" confirm-text="确定" cancel-text="取消" title="操作提示" @on-confirm="onAction('确认')" @on-cancel="onAction('取消')">
<p style="text-align:center;">操作不可撤消哦?</p>
</confirm>
</template>
<script>
export default {
methods: {
onAction: function (type) {
alert(type)
}
},
data () {
return {
show: false
}
}
}
</script>