index.js
455 Bytes
Component({
/**
* 组件的属性列表
*/
properties: {
info: Object,
show: Boolean
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
cancel() {
this.sumbit = false
this.setData({
show: false
})
},
confirm() {
if (this.sumbit) return
this.sumbit = true
this.cancel()
this.triggerEvent('sumbit')
},
}
})