From 66c0e4f8c7bcc1743712f03655ce8d988c7cf222 Mon Sep 17 00:00:00 2001 From: Hooray Hu <304327508@qq.com> Date: Tue, 9 Jul 2024 18:02:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=8A=E4=BC=A0=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FileUpload/index.vue | 2 ++ src/components/ImageUpload/index.vue | 2 ++ src/components/ImagesUpload/index.vue | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 5ea5bf9ac..ec59adad0 100755 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -17,6 +17,7 @@ const props = withDefaults( files?: UploadUserFile[] notip?: boolean ext?: string[] + httpRequest?: UploadProps['httpRequest'] }>(), { name: 'file', @@ -68,6 +69,7 @@ const onSuccess: UploadProps['onSuccess'] = (res, file, fileList) => { :before-upload="beforeUpload" :on-exceed="onExceed" :on-success="onSuccess" + :http-request="httpRequest" :file-list="files" :limit="max" drag diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index 18b34c28a..e53ec86c2 100755 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -18,6 +18,7 @@ const props = withDefaults( placeholder?: string notip?: boolean ext?: string[] + httpRequest?: UploadProps['httpRequest'] }>(), { name: 'file', @@ -97,6 +98,7 @@ const onSuccess: UploadProps['onSuccess'] = (res) => { :before-upload="beforeUpload" :on-progress="onProgress" :on-success="onSuccess" + :http-request="httpRequest" drag class="image-upload" > diff --git a/src/components/ImagesUpload/index.vue b/src/components/ImagesUpload/index.vue index 57f0e753a..9024f87ca 100755 --- a/src/components/ImagesUpload/index.vue +++ b/src/components/ImagesUpload/index.vue @@ -19,6 +19,7 @@ const props = withDefaults( placeholder?: string notip?: boolean ext?: string[] + httpRequest?: UploadProps['httpRequest'] }>(), { name: 'file', @@ -131,6 +132,7 @@ const onSuccess: UploadProps['onSuccess'] = (res) => { :before-upload="beforeUpload" :on-progress="onProgress" :on-success="onSuccess" + :http-request="httpRequest" drag class="images-upload" >