Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: Form disabled no effect on Upload #7110

Merged
merged 2 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion components/upload/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default defineComponent({
accept: '',
showUploadList: true,
listType: 'text', // or picture
disabled: false,
supportServerRender: true,
}),
setup(props, { slots, attrs, expose }) {
Expand Down
2 changes: 1 addition & 1 deletion components/upload/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | - | | |
Expand Down
2 changes: 1 addition & 1 deletion components/upload/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | 无 | | |
Expand Down