Merge pull request #16570 from christophehurpeau/patch-1

fix: Upload prop onRemove: allow Promise as return type
This commit is contained in:
偏右 2019-05-22 00:13:02 +08:00 committed by GitHub
commit 263a3e77dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ export interface UploadProps {
listType?: UploadListType;
className?: string;
onPreview?: (file: UploadFile) => void;
onRemove?: (file: UploadFile) => void | boolean;
onRemove?: (file: UploadFile) => void | boolean | Promise<void | boolean>;
supportServerRender?: boolean;
style?: React.CSSProperties;
disabled?: boolean;