Component({ data: { visible: false }, properties: { dialogVisible: { type: Boolean, value: false, observer: function () { this.setData({ visible: !this.data.visible }) } }, title: { type: String, value: "" }, content: { type: String, 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 () { } } })