mirror of https://github.com/ElemeFE/element
Upload: Update the parameter `fileList` type (#15716)
parent
cead2a8be3
commit
d274358dcc
|
@ -75,13 +75,13 @@ export declare class ElUpload extends ElementUIComponent {
|
||||||
onRemove: (file: ElUploadInternalFileDetail, fileList: ElUploadInternalFileDetail[]) => void
|
onRemove: (file: ElUploadInternalFileDetail, fileList: ElUploadInternalFileDetail[]) => void
|
||||||
|
|
||||||
/** Hook function when uploaded successfully */
|
/** 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 */
|
/** 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 */
|
/** 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 */
|
/** Hook function when file status change */
|
||||||
onChange: (file: ElUploadInternalFileDetail, fileList: ElUploadInternalFileDetail[]) => void
|
onChange: (file: ElUploadInternalFileDetail, fileList: ElUploadInternalFileDetail[]) => void
|
||||||
|
|
Loading…
Reference in New Issue