mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
Upload prop onRemove: allow Promise as return type
This commit is contained in:
parent
6379999012
commit
2d986ba2c2
@ -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