mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
Merge pull request #16570 from christophehurpeau/patch-1
fix: Upload prop onRemove: allow Promise as return type
This commit is contained in:
commit
263a3e77dd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user