From 1fc109704b08ddebe03a3393c3187adb10cba8e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=A0=86=E8=8F=A0=E8=90=9D?= <53335668+JavanShen@users.noreply.github.com> Date: Mon, 18 Dec 2023 10:45:27 +0800 Subject: [PATCH] fix: Form disabled no effect on Upload (#7110) * fix: Form disabled no effect on Upload * docs: update Upload disabled api default value --- components/upload/Upload.tsx | 1 - components/upload/index.en-US.md | 2 +- components/upload/index.zh-CN.md | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/components/upload/Upload.tsx b/components/upload/Upload.tsx index 03023e397..577c6ee87 100644 --- a/components/upload/Upload.tsx +++ b/components/upload/Upload.tsx @@ -34,7 +34,6 @@ export default defineComponent({ accept: '', showUploadList: true, listType: 'text', // or picture - disabled: false, supportServerRender: true, }), setup(props, { slots, attrs, expose }) { diff --git a/components/upload/index.en-US.md b/components/upload/index.en-US.md index d1c478db2..50cea56f2 100644 --- a/components/upload/index.en-US.md +++ b/components/upload/index.en-US.md @@ -26,7 +26,7 @@ Uploading is the process of publishing information (web pages, text, pictures, v | customRequest | override for the default xhr behavior allowing for additional customization and ability to implement your own XMLHttpRequest | function | - | | | | data | Uploading params or function which can return uploading params. | object\|function(file) | - | | | | directory | Support upload whole directory([caniuse](https://caniuse.com/#feat=input-file-directory)) | boolean | false | 3.0 | | -| disabled | disable upload button | boolean | false | | | +| disabled | disable upload button | boolean | - | | | | downloadIcon | custom download icon | v-slot:iconRender="{file: UploadFile}" | - | 3.0 | | | fileList | List of files that have been uploaded (controlled). Here is a common issue [#2423](https://github.com/ant-design/ant-design/issues/2423) when using it | object\[] | - | | | | headers | Set request headers, valid above IE10. | object | - | | | diff --git a/components/upload/index.zh-CN.md b/components/upload/index.zh-CN.md index ecceb38de..5d2f98406 100644 --- a/components/upload/index.zh-CN.md +++ b/components/upload/index.zh-CN.md @@ -27,7 +27,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*l1nlSryXib8AAA | customRequest | 通过覆盖默认的上传行为,可以自定义自己的上传实现 | function | 无 | | | | data | 上传所需参数或返回上传参数的方法 | object\|(file) => object | 无 | | | | directory | 支持上传文件夹([caniuse](https://caniuse.com/#feat=input-file-directory)) | boolean | false | 3.0 | | -| disabled | 是否禁用 | boolean | false | | | +| disabled | 是否禁用 | boolean | - | | | | downloadIcon | 自定义下载 icon | v-slot:iconRender="{file: UploadFile}" | - | 3.0 | | | fileList | 已经上传的文件列表(受控) | object\[] | 无 | | | | headers | 设置上传的请求头部,IE10 以上有效 | object | 无 | | |