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