Component({ options: { addGlobalClass: true, }, externalClasses: [ 'custom-class', ], properties: { id: Number, name: String, phone: String, address: String, isDefault: { type: Boolean, value: false, }, isLink: { type: Boolean, value: false, }, isEdit: { type: Boolean, value: false, }, isEnvelope: { type: Boolean, value: false, }, disableSwipe: { type: Boolean, value: false, }, isEmpty: { type: Boolean, value: false, }, }, methods: { onSelect() { this.triggerEvent('select', { row: this.data }); }, onEdit() { this.triggerEvent('edit', { row: this.data }); }, onDelete() { this.triggerEvent('delete', { row: this.data }); }, onLink(e: WechatMiniprogram.TouchEvent) { this.triggerEvent('link', e); }, onAdd(e: WechatMiniprogram.TouchEvent) { this.triggerEvent('add', e); }, }, });