mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
chore: fix ts definition of Upload (#5041)
This commit is contained in:
parent
6df92ce16f
commit
88100a29a3
@ -42,7 +42,7 @@ export interface UploadProps {
|
||||
showUploadList?: boolean | ShowUploadListInterface;
|
||||
multiple?: boolean;
|
||||
accept?: string;
|
||||
beforeUpload?: (file: File) => boolean | PromiseLike<any>;
|
||||
beforeUpload?: (file: File, FileList: File[]) => boolean | PromiseLike<any>;
|
||||
onChange?: (info: UploadChangeParam) => void;
|
||||
listType?: 'text' | 'picture' | 'picture-card';
|
||||
className?: string;
|
||||
@ -52,6 +52,8 @@ export interface UploadProps {
|
||||
style?: React.CSSProperties;
|
||||
disabled?: boolean;
|
||||
prefixCls?: string;
|
||||
customRequest?: (option: any) => void;
|
||||
withCredentials?: boolean;
|
||||
}
|
||||
|
||||
export interface UploadListProps {
|
||||
|
Loading…
Reference in New Issue
Block a user