import type { UploadProps as AntdUploadProps } from 'tntd/lib/upload'; import { FC } from 'react'; import { Upload as AntdUpload } from 'tntd'; import type { UploadChangeParam, UploadFile } from 'antd/lib/upload/interface'; type IUpload
= FC
& {
Dragger: typeof AntdUpload.Dragger;
};
export type UploadProps = AntdUploadProps & {
value?: UploadFile | UploadFile[];
maxCount?: number;
maxSize?: number;
inline?: boolean;
downloadTemplate?: {
url: string;
text?: string;
};
onChange?: (value: UploadFile[] | UploadFile, changeInfo: UploadChangeParam) => void;
};
export declare const Upload: IUpload