Skip to content

Commit 1fc1097

Browse files
authored
fix: Form disabled no effect on Upload (#7110)
* fix: Form disabled no effect on Upload * docs: update Upload disabled api default value
1 parent d140523 commit 1fc1097

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Diff for: components/upload/Upload.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export default defineComponent({
3434
accept: '',
3535
showUploadList: true,
3636
listType: 'text', // or picture
37-
disabled: false,
3837
supportServerRender: true,
3938
}),
4039
setup(props, { slots, attrs, expose }) {

Diff for: components/upload/index.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Uploading is the process of publishing information (web pages, text, pictures, v
2626
| customRequest | override for the default xhr behavior allowing for additional customization and ability to implement your own XMLHttpRequest | function | - | | |
2727
| data | Uploading params or function which can return uploading params. | object\|function(file) | - | | |
2828
| directory | Support upload whole directory([caniuse](https://caniuse.com/#feat=input-file-directory)| boolean | false | 3.0 | |
29-
| disabled | disable upload button | boolean | false | | |
29+
| disabled | disable upload button | boolean | - | | |
3030
| downloadIcon | custom download icon | v-slot:iconRender="{file: UploadFile}" | - | 3.0 | |
3131
| 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\[] | - | | |
3232
| headers | Set request headers, valid above IE10. | object | - | | |

Diff for: components/upload/index.zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*l1nlSryXib8AAA
2727
| customRequest | 通过覆盖默认的上传行为,可以自定义自己的上传实现 | function || | |
2828
| data | 上传所需参数或返回上传参数的方法 | object\|(file) => object || | |
2929
| directory | 支持上传文件夹([caniuse](https://caniuse.com/#feat=input-file-directory)| boolean | false | 3.0 | |
30-
| disabled | 是否禁用 | boolean | false | | |
30+
| disabled | 是否禁用 | boolean | - | | |
3131
| downloadIcon | 自定义下载 icon | v-slot:iconRender="{file: UploadFile}" | - | 3.0 | |
3232
| fileList | 已经上传的文件列表(受控) | object\[] || | |
3333
| headers | 设置上传的请求头部,IE10 以上有效 | object || | |

0 commit comments

Comments
 (0)