docs(components): [upload] modify the abort method description (#23363)

docs(components): perfecting the abort method description
This commit is contained in:
Yang
2026-01-11 15:26:06 +08:00
committed by GitHub
parent 6535556183
commit eac19da9e1

View File

@@ -144,13 +144,13 @@ upload/manual
### Exposes
| Name | Description | Type |
| ------------ | ------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------- |
| abort | cancel upload request. | ^[Function]`(file?: UploadFile) => void` |
| submit | upload the file list manually. | ^[Function]`() => void` |
| clearFiles | clear the file list (this method is not supported in the `before-upload` hook). | ^[Function]`(status?: UploadStatus[]) => void` |
| handleStart | select the file manually. | ^[Function]`(rawFile: UploadRawFile) => void` |
| handleRemove | remove the file manually. `file` and `rawFile` has been merged. `rawFile` will be removed in `v2.2.0`. | ^[Function]`(file: UploadFile \| UploadRawFile, rawFile?: UploadRawFile) => void` |
| Name | Description | Type |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------- |
| abort | cancel upload request. When a `file` is specified, abort the corresponding pending upload; when no file is specified, abort all pending uploads. | ^[Function]`(file?: UploadFile) => void` |
| submit | upload the file list manually. | ^[Function]`() => void` |
| clearFiles | clear the file list (this method is not supported in the `before-upload` hook). | ^[Function]`(status?: UploadStatus[]) => void` |
| handleStart | select the file manually. | ^[Function]`(rawFile: UploadRawFile) => void` |
| handleRemove | remove the file manually. `file` and `rawFile` has been merged. `rawFile` will be removed in `v2.2.0`. | ^[Function]`(file: UploadFile \| UploadRawFile, rawFile?: UploadRawFile) => void` |
## Type Declarations