swordpass-ui 1.1.10 → 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
|
@@ -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,
|
|
311
|
+
this.refreshFileUploadDebounce = _.debounce(this.refreshFileUpload, 100)
|
|
311
312
|
if (this.value) {
|
|
312
313
|
this.inputVal = JSON.parse(this.value)
|
|
313
314
|
}
|
|
@@ -469,7 +470,6 @@ export default {
|
|
|
469
470
|
this.$refs.fileUpload.reload(this.inputVal)
|
|
470
471
|
} else {
|
|
471
472
|
console.warn('FileUpload 组件尚未渲染或已卸载')
|
|
472
|
-
this.refreshFileUpload()
|
|
473
473
|
}
|
|
474
474
|
})
|
|
475
475
|
},
|