Component({ data: { visible: false }, properties: { dialogVisible: { type: Boolean, value: false, observer: function (value) { 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 () { } } })