From 996f498bfc8e90e176ddcb7753b807d6b7b68c49 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Sun, 12 Jan 2025 12:00:19 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=20=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/upload/src/file-upload.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/web-antd/src/components/upload/src/file-upload.vue b/apps/web-antd/src/components/upload/src/file-upload.vue index 08d20e13..809fa1b7 100644 --- a/apps/web-antd/src/components/upload/src/file-upload.vue +++ b/apps/web-antd/src/components/upload/src/file-upload.vue @@ -45,6 +45,10 @@ const props = withDefaults( // support xxx.xxx.xx // 返回的字段 默认url resultField?: 'fileName' | 'ossId' | 'url' | string; + /** + * 是否显示下面的描述 + */ + showDescription?: boolean; value?: string[]; }>(), { @@ -57,6 +61,7 @@ const props = withDefaults( multiple: false, api: uploadApi, resultField: '', + showDescription: true, }, ); const emit = defineEmits(['change', 'update:value', 'delete']); @@ -214,11 +219,11 @@ function getValue() { {{ $t('component.upload.upload') }} -
+
请上传不超过 -
[{{ maxSize }}MB]
+
{{ maxSize }}MB
的 -
[{{ accept.join(', ') }}]
+
{{ accept.join('/') }}
格式文件