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.
65 lines
890 B
65 lines
890 B
5 years ago
|
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: []
|
||
|
},
|
||
|
confirmText: {
|
||
|
type: String,
|
||
|
value: ""
|
||
|
},
|
||
|
cancelText: {
|
||
|
type: String,
|
||
|
value: ""
|
||
|
}
|
||
|
},
|
||
|
pageLifetimes: {
|
||
|
show () {
|
||
|
|
||
|
},
|
||
|
hide () {
|
||
|
|
||
|
}
|
||
|
},
|
||
|
lifetimes: {
|
||
|
attached () {
|
||
|
|
||
|
},
|
||
|
detached () {
|
||
|
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
close () {
|
||
|
this.triggerEvent("close")
|
||
|
this.setData({
|
||
|
visible: false
|
||
|
})
|
||
|
},
|
||
|
confirm () {
|
||
|
this.triggerEvent("confirm")
|
||
|
this.setData({
|
||
|
visible: false
|
||
|
})
|
||
|
},
|
||
|
catchmove () {
|
||
|
|
||
|
}
|
||
|
}
|
||
|
})
|