锦水居民端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

61 lines
861 B

Component({
data: {
visible: false
},
properties:{
dialogVisible: {
type: Boolean,
value: false,
observer: function () {
this.setData({
visible: !this.data.visible
})
}
},
title: {
type: String,
value: ""
},
content: {
type: Array,
value: []
},
cancelText: {
type: String,
value: ""
},
confirmText: {
type: String,
value: ""
}
},
lifetimes: {
created () {
},
attached () {
},
detached () {
}
},
methods: {
closeDialog () {
this.setData({
visible: false
})
this.triggerEvent("cancel")
},
confirmDialog () {
this.setData({
visible: false
})
this.triggerEvent("confirm")
},
catchmove () {
}
}
})