diff --git a/docs/docs/zh-cn.md b/docs/docs/zh-cn.md index b8c5d19..3d10791 100644 --- a/docs/docs/zh-cn.md +++ b/docs/docs/zh-cn.md @@ -806,6 +806,37 @@ Add, update, remove pre-filter ``` +### @uploaded + +文件列表全部已上传 后 + +* **参数:** + + * `files: File | Object | undefined` `只读` + + +* **示例:** + ```html + + + ``` + ## 实例 / 数据 diff --git a/src/FileUpload.vue b/src/FileUpload.vue index 93d27c1..5e3c0b8 100644 --- a/src/FileUpload.vue +++ b/src/FileUpload.vue @@ -260,6 +260,7 @@ export default { return false } } + this.emitUploaded() return true }, @@ -739,6 +740,10 @@ export default { this.$emit('input', this.files) }, + emitUploaded() { + this.$emit('uploaded', this.files) + }, + // 上传 upload(id) {