@zscreate/zhxy-app-component 1.0.225 → 1.0.227

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.
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <view>
3
- <u-upload ref="uUpload" :file-list="fileList" :action="action" :deletable="!disabled"
3
+ <u-upload v-if="!refresh" ref="uUpload" :file-list="fileList" :action="action" :deletable="!disabled"
4
4
  @afterRead="afterRead"
5
5
  @delete="onRemove"
6
6
  :header="header"
@@ -46,7 +46,7 @@ export default {
46
46
  },
47
47
  data() {
48
48
  return {
49
-
49
+ refresh: false,
50
50
  percent: 0,
51
51
  upimg: '',
52
52
  maxCount: 8,
@@ -279,11 +279,14 @@ export default {
279
279
  this.emitList.push(imgObj)
280
280
  this.$emit('filePost', imgObj)
281
281
  },
282
- onRemove(index, lists, name) {
282
+ async onRemove(index, lists, name) {
283
+
284
+ this.refresh = true
283
285
  if (typeof (index) === 'object') index = index.index
284
286
  this.emitList.splice(index, 1);
285
287
  this.fileList.splice(index, 1);
286
288
  this.$emit('fileDelete', index)
289
+ this.refresh = false
287
290
  }
288
291
  }
289
292
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.225",
3
+ "version": "1.0.227",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",