Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload: add missing definition #12839

Merged
merged 1 commit into from
Sep 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/docs/en-US/upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | — |
1 change: 1 addition & 0 deletions examples/docs/es/upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | — |
5 changes: 3 additions & 2 deletions examples/docs/zh-CN/upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@

### Methods
| 方法名 | 说明 | 参数 |
|---------- |-------------- | -- |
|----------- |-------------- | -- |
| clearFiles | 清空已上传的文件列表(该方法不支持在 before-upload 中调用) | — |
| abort | 取消上传请求 | ( file: fileList 中的 file 对象 ) |
| abort | 取消上传请求 | ( file: fileList 中的 file 对象 ) |
| submit | 手动上传文件列表 | — |
3 changes: 3 additions & 0 deletions types/upload.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,7 @@ export declare class ElUpload extends ElementUIComponent {

/** Abort specified file */
abort (file: ElUploadInternalFileDetail): void

/** Upload the file list manually */
submit ():void;
}