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
1.2 KiB
61 lines
1.2 KiB
"use strict";
|
|
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: function () {
|
|
},
|
|
hide: function () {
|
|
}
|
|
},
|
|
lifetimes: {
|
|
attached: function () {
|
|
},
|
|
detached: function () {
|
|
}
|
|
},
|
|
methods: {
|
|
close: function () {
|
|
this.triggerEvent("close");
|
|
this.setData({
|
|
visible: false
|
|
});
|
|
},
|
|
confirm: function () {
|
|
this.triggerEvent("confirm");
|
|
this.setData({
|
|
visible: false
|
|
});
|
|
},
|
|
catchmove: function () {
|
|
}
|
|
}
|
|
});
|
|
|