swordpass-ui 1.1.9 → 1.1.11

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swordpass-ui",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "author": "sword",
5
5
  "private": false,
6
6
  "scripts": {
@@ -23,6 +23,7 @@
23
23
  :multiple="multiple"
24
24
  :accept="acceptType"
25
25
  :before-upload="beforeUpload"
26
+ :on-progress="handleProgress"
26
27
  :on-success="uploadSuccess"
27
28
  :on-error="onError"
28
29
  :limit="limit"
@@ -307,7 +308,7 @@ export default {
307
308
  },
308
309
  },
309
310
  created() {
310
- this.refreshFileUploadDebounce = _.debounce(this.refreshFileUpload, 1000)
311
+ this.refreshFileUploadDebounce = _.debounce(this.refreshFileUpload, 100)
311
312
  if (this.value) {
312
313
  this.inputVal = JSON.parse(this.value)
313
314
  }
@@ -119,7 +119,7 @@ export default {
119
119
  },
120
120
  methods: {
121
121
  reload(files) {
122
- this.files = files
122
+ this.$set(this, 'files', files)
123
123
  },
124
124
  // 附件是否超过最大尺寸
125
125
  exceedFileSize(file) {