Browse Source

Upload prop onRemove: fix action

d0cf0eecee (api)
pull/16716/head
Christophe Hurpeau 6 years ago
committed by GitHub
parent
commit
acaae5c850
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/upload/interface.tsx

2
components/upload/interface.tsx

@ -58,7 +58,7 @@ export interface UploadProps {
name?: string;
defaultFileList?: Array<UploadFile>;
fileList?: Array<UploadFile>;
action?: string | ((file: UploadFile) => PromiseLike<any>);
action?: string | ((file: UploadFile) => string) | ((file: UploadFile) => PromiseLike<string>);
directory?: boolean;
data?: Object | ((file: UploadFile) => any);
headers?: HttpRequestHeader;

Loading…
Cancel
Save