Upload: add missing definition (#12839)

pull/12733/head^2
hetech 2018-09-20 16:50:27 +08:00 committed by GitHub
parent 69f790f4d5
commit 861b0b294b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 3 deletions

View File

@ -429,4 +429,5 @@ on-exceed | hook function when limit is exceeded | function(files, fileList) |
| Methods Name | Description | Parameters |
|---------- |-------- |---------- |
| clearFiles | clear the uploaded file list (this method is not supported in the `before-upload` hook) | — |
| abort | cancel upload request | file: fileList's item |
| abort | cancel upload request | file: fileList's item |
| submit | upload the file list manually | — |

View File

@ -423,3 +423,4 @@ Puede arrastrar el archivo dentro de un área en especifico para cargar el archi
| ----------------- | ---------------------------------------- | ------------------------- |
| clearFiles | limpia la lista de archivos cargados (este método no esta soportado en el _hook_ `before-upload`) | — |
| abort | cancela la petición de carga | file: fileList's item |
| submit | Upload the file list manually | — |

View File

@ -435,6 +435,7 @@
### Methods
| 方法名 | 说明 | 参数 |
|---------- |-------------- | -- |
|----------- |-------------- | -- |
| clearFiles | 清空已上传的文件列表(该方法不支持在 before-upload 中调用) | — |
| abort | 取消上传请求 | file: fileList 中的 file 对象 |
| abort | 取消上传请求 | file: fileList 中的 file 对象 |
| submit | 手动上传文件列表 | — |

3
types/upload.d.ts vendored
View File

@ -118,4 +118,7 @@ export declare class ElUpload extends ElementUIComponent {
/** Abort specified file */
abort (file: ElUploadInternalFileDetail): void
/** Upload the file list manually */
submit ():void;
}