From e6dfeaf1c111abd034e279db3bc1b95a6ce17237 Mon Sep 17 00:00:00 2001 From: dolymood Date: Mon, 18 May 2020 12:59:27 +0800 Subject: [PATCH] feat(upload): file-click add index param --- src/components/upload/upload.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/upload/upload.vue b/src/components/upload/upload.vue index 06529102..32b01304 100644 --- a/src/components/upload/upload.vue +++ b/src/components/upload/upload.vue @@ -2,7 +2,7 @@
- +
@@ -129,8 +129,8 @@ this.files.splice(index, 1) this.upload() }, - fileClick(file) { - this.$emit(EVENT_CLICK, file) + fileClick(file, index) { + this.$emit(EVENT_CLICK, file, index) }, upload(retry) { const options = this.actionOptions -- GitLab