ant-design/components/upload/index.tsx
Camol 6a08a46ecc
fix: upload circle ref (#34379)
Co-authored-by: kanweiwei <kanweiwei@nutstore.net>
2022-04-24 20:55:18 +08:00

21 lines
654 B
TypeScript

import Dragger from './Dragger';
import InternalUpload, { LIST_IGNORE, UploadProps } from './Upload';
export { UploadProps, UploadListProps, UploadChangeParam, RcFile } from './interface';
export { DraggerProps } from './Dragger';
type InternalUploadType = typeof InternalUpload;
interface UploadInterface<T = any> extends InternalUploadType {
<U extends T>(
props: React.PropsWithChildren<UploadProps<U>> & React.RefAttributes<any>,
): React.ReactElement;
Dragger: typeof Dragger;
LIST_IGNORE: string;
}
const Upload = InternalUpload as UploadInterface;
Upload.Dragger = Dragger;
Upload.LIST_IGNORE = LIST_IGNORE;
export default Upload;