"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 () { } } });