Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
861b0b29
Commit
861b0b29
authored
Sep 20, 2018
by
hetech
Committed by
GitHub
Sep 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload: add missing definition (#12839)
parent
69f790f4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
examples/docs/en-US/upload.md
examples/docs/en-US/upload.md
+2
-1
examples/docs/es/upload.md
examples/docs/es/upload.md
+1
-0
examples/docs/zh-CN/upload.md
examples/docs/zh-CN/upload.md
+3
-2
types/upload.d.ts
types/upload.d.ts
+3
-0
No files found.
examples/docs/en-US/upload.md
View file @
861b0b29
...
@@ -429,4 +429,5 @@ on-exceed | hook function when limit is exceeded | function(files, fileList) |
...
@@ -429,4 +429,5 @@ on-exceed | hook function when limit is exceeded | function(files, fileList) |
| Methods Name | Description | Parameters |
| Methods Name | Description | Parameters |
|---------- |-------- |---------- |
|---------- |-------- |---------- |
| clearFiles | clear the uploaded file list (this method is not supported in the
`before-upload`
hook) | — |
| 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 | — |
examples/docs/es/upload.md
View file @
861b0b29
...
@@ -423,3 +423,4 @@ Puede arrastrar el archivo dentro de un área en especifico para cargar el archi
...
@@ -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`
) | — |
| 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 ) |
| abort | cancela la petición de carga | ( file: fileList's item ) |
| submit | Upload the file list manually | — |
examples/docs/zh-CN/upload.md
View file @
861b0b29
...
@@ -435,6 +435,7 @@
...
@@ -435,6 +435,7 @@
### Methods
### Methods
| 方法名 | 说明 | 参数 |
| 方法名 | 说明 | 参数 |
|---------- |-------------- | -- |
|----------
-
|-------------- | -- |
| clearFiles | 清空已上传的文件列表(该方法不支持在 before-upload 中调用) | — |
| clearFiles | 清空已上传的文件列表(该方法不支持在 before-upload 中调用) | — |
| abort | 取消上传请求 | ( file: fileList 中的 file 对象 ) |
| abort | 取消上传请求 | ( file: fileList 中的 file 对象 ) |
| submit | 手动上传文件列表 | — |
types/upload.d.ts
View file @
861b0b29
...
@@ -118,4 +118,7 @@ export declare class ElUpload extends ElementUIComponent {
...
@@ -118,4 +118,7 @@ export declare class ElUpload extends ElementUIComponent {
/** Abort specified file */
/** Abort specified file */
abort
(
file
:
ElUploadInternalFileDetail
):
void
abort
(
file
:
ElUploadInternalFileDetail
):
void
/** Upload the file list manually */
submit
():
void
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment