mirror of
https://github.com/ant-design/ant-design.git
synced 2025-07-31 12:18:42 +08:00
update upload API, #863
This commit is contained in:
parent
f0d1b94163
commit
dba6b70e38
@ -36,6 +36,8 @@ Uploading is the process of publishing information (web pages, text, pictures, v
|
||||
| onPreview | A callback function, will be executed when file link is clicked. | Function(file) | - |
|
||||
| onRemove | A callback function, will be executed when removing file button is clicked | Function(file) | - |
|
||||
| supportServerRender | Need to be turned on while the server side is rendering.| Boolean | false |
|
||||
| disabled | disable upload button | Boolean | false |
|
||||
| withCredentials | ajax upload with cookie sent | Boolean | false |
|
||||
|
||||
### onChange
|
||||
|
||||
|
@ -38,6 +38,7 @@ title: Upload
|
||||
| onRemove | 点击移除文件时的回调 | Function(file) | 无 |
|
||||
| supportServerRender | 服务端渲染时需要打开这个 | Boolean | false |
|
||||
| disabled | 是否禁用 | Boolean | false |
|
||||
| withCredentials | 上传请求时是否携带 cookie | Boolean | false |
|
||||
|
||||
### onChange
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user