2017-03-17 11:47:05 +08:00
|
|
|
import Dragger from './Dragger';
|
2022-05-07 14:31:54 +08:00
|
|
|
import type { UploadProps } from './Upload';
|
|
|
|
import InternalUpload, { LIST_IGNORE } from './Upload';
|
2016-08-01 16:35:01 +08:00
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
export type { DraggerProps } from './Dragger';
|
|
|
|
export type {
|
|
|
|
RcFile,
|
|
|
|
UploadChangeParam,
|
|
|
|
UploadFile,
|
|
|
|
UploadListProps,
|
|
|
|
UploadProps,
|
|
|
|
} from './interface';
|
2017-09-25 22:14:49 +08:00
|
|
|
|
2022-04-24 20:55:18 +08:00
|
|
|
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;
|
2017-03-17 11:47:05 +08:00
|
|
|
Upload.Dragger = Dragger;
|
2022-04-24 20:55:18 +08:00
|
|
|
Upload.LIST_IGNORE = LIST_IGNORE;
|
|
|
|
|
2017-03-17 11:47:05 +08:00
|
|
|
export default Upload;
|