fix: Form disabled no effect on Upload (#7110)

* fix: Form disabled no effect on Upload

* docs: update Upload disabled api default value
feat-4.1
一堆菠萝 2023-12-18 10:45:27 +08:00 committed by GitHub
parent d140523c89
commit 1fc109704b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -34,7 +34,6 @@ export default defineComponent({
accept: '',
showUploadList: true,
listType: 'text', // or picture
disabled: false,
supportServerRender: true,
}),
setup(props, { slots, attrs, expose }) {

View File

@ -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 | - | | |

View File

@ -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 | 无 | | |