You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/upload/index.en-US.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Uploading is the process of publishing information (web pages, text, pictures, v
22
22
| accept | File types that can be accepted. See [input accept Attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept)| string | - |||
| beforeUpload | Hook function which will be executed before uploading. Uploading will be stopped with `false` or a rejected Promise returned. | (file, fileList) => `boolean`\|`Promise`| - ||
25
-
| customRequest | override for the default xhr behavior allowing for additional customization and ability to implement your own XMLHttpRequest |Function| - |||
25
+
| customRequest | override for the default xhr behavior allowing for additional customization and ability to implement your own XMLHttpRequest |function| - |||
26
26
| data | Uploading params or function which can return uploading params. | object\|function(file) | - |||
| showUploadList | Whether to show default upload list, could be an object to specify `showPreviewIcon`, `showRemoveIcon` and `showDownloadIcon` individually |Boolean or { showPreviewIcon?: boolean, showRemoveIcon?: boolean, showDownloadIcon?: boolean } | true | showDownloadIcon(3.0) ||
46
+
| showUploadList | Whether to show default upload list, could be an object to specify `showPreviewIcon`, `showRemoveIcon` and `showDownloadIcon` individually |boolean \| { showPreviewIcon?: boolean, showRemoveIcon?: boolean, showDownloadIcon?: boolean } | true | showDownloadIcon(3.0) ||
47
47
| supportServerRender | Need to be turned on while the server side is rendering. | boolean | false |||
48
48
| withCredentials | ajax upload with cookie sent | boolean | false |||
49
49
50
50
### events
51
51
52
52
| Events Name | Description | Arguments | Version ||
53
53
| --- | --- | --- | --- | --- |
54
-
| change | A callback function, can be executed when uploading state is changing. See [change](#change)|Function| - ||
55
-
| download | Click the method to download the file, pass the method to perform the method logic, do not pass the default jump to the new TAB. |Function(file): void | Jump to new TAB | 1.5.0 |
54
+
| change | A callback function, can be executed when uploading state is changing. See [change](#change)|function| - ||
55
+
| download | Click the method to download the file, pass the method to perform the method logic, do not pass the default jump to the new TAB. |function(file): void | Jump to new TAB | 1.5.0 |
56
56
| drop | A callback function executed when files are dragged and dropped into upload area | (event: DragEvent) => void | - | 3.0 |
57
-
| preview | A callback function, will be executed when file link or preview icon is clicked. |Function(file) | - ||
58
-
| reject | A callback function, will be executed when drop files is not accept. |Function(fileList) | - ||
57
+
| preview | A callback function, will be executed when file link or preview icon is clicked. |function(file) | - ||
58
+
| reject | A callback function, will be executed when drop files is not accept. |function(fileList) | - ||
59
59
| remove | A callback function, will be executed when removing file button is clicked, remove event will be prevented when return value is false or a Promise which resolve(false) or reject | function(file): boolean \| Promise | - | 3.0 |
0 commit comments