Skip to content

Commit

Permalink
Upload: Update the parameter fileList type (#15716)
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin authored and island205 committed Jun 4, 2019
1 parent a71a5e5 commit c0a9be7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/upload.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ export declare class ElUpload extends ElementUIComponent {
onRemove: (file: ElUploadInternalFileDetail, fileList: ElUploadInternalFileDetail[]) => void

/** Hook function when uploaded successfully */
onSuccess: (response: any, file: ElUploadInternalFileDetail, fileList: ElUploadInternalFileDetail) => void
onSuccess: (response: any, file: ElUploadInternalFileDetail, fileList: ElUploadInternalFileDetail[]) => void

/** Hook function when some errors occurs */
onError: (err: ErrorEvent, file: ElUploadInternalFileDetail, fileList: ElUploadInternalFileDetail) => void
onError: (err: ErrorEvent, file: ElUploadInternalFileDetail, fileList: ElUploadInternalFileDetail[]) => void

/** Hook function when some progress occurs */
onProgress: (event: ElUploadProgressEvent, file: ElUploadInternalFileDetail, fileList: ElUploadInternalFileDetail) => void
onProgress: (event: ElUploadProgressEvent, file: ElUploadInternalFileDetail, fileList: ElUploadInternalFileDetail[]) => void

/** Hook function when file status change */
onChange: (file: ElUploadInternalFileDetail, fileList: ElUploadInternalFileDetail[]) => void
Expand Down

0 comments on commit c0a9be7

Please sign in to comment.