zydx-plus 1.35.560 → 1.35.561
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -353,7 +353,7 @@ export default {
|
|
|
353
353
|
default: []
|
|
354
354
|
}
|
|
355
355
|
},
|
|
356
|
-
emits: ['see', 'del', 'complete', 'update:data', 'enclosureSuccess', 'download', 'updateData'],
|
|
356
|
+
emits: ['see', 'del', 'complete', 'update:data', 'enclosureSuccess', 'download', 'updateData', 'syncDel'],
|
|
357
357
|
watch: {
|
|
358
358
|
// 强制监听data变化
|
|
359
359
|
data: {
|
|
@@ -724,6 +724,7 @@ export default {
|
|
|
724
724
|
}
|
|
725
725
|
})
|
|
726
726
|
} else {
|
|
727
|
+
this.$emit('syncDel', {syncDel: true, index: index, data: that.uploadAttData[index] }) // 为了同步当前组件和父组件附件的数据(新加的syncDel,使用原来的del怕有问题)
|
|
727
728
|
that.uploadAttData.splice(index, 1)
|
|
728
729
|
}
|
|
729
730
|
},
|