123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- Component({
- options: {
- addGlobalClass: true,
- multipleSlots: true,
- },
- properties: {
- address: {
- type: Object,
- value: {},
- },
- customIcon: {
- type: String,
- value: 'edit-1',
- },
- extraSpace: {
- type: Boolean,
- value: true,
- },
- isDrawLine: {
- type: Boolean,
- value: true,
- },
- isManage: {
- type: Boolean,
- value: true,
- },
- isEdit: {
- type: Boolean,
- value: true,
- },
- },
- externalClasses: [
- 'item-wrapper-class',
- 'title-class',
- 'default-tag-class',
- 'normal-tag-class',
- 'address-info-class',
- 'delete-class',
- ],
- methods: {
- onDelete(e: WechatMiniprogram.CustomEvent<{}, {}, { item: any }>) {
- const { item } = e.currentTarget.dataset
- this.triggerEvent('onDelete', item)
- },
- onSelect(e: WechatMiniprogram.CustomEvent<{}, {}, { item: any }>) {
- const { item } = e.currentTarget.dataset
- this.triggerEvent('onSelect', item)
- },
- onEdit(e: WechatMiniprogram.CustomEvent<{}, {}, { item: any }>) {
- const { item } = e.currentTarget.dataset
- this.triggerEvent('onEdit', item)
- },
- },
- })
|