You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import Dragger from './Dragger';
|
|
|
|
import type { UploadProps } from './Upload';
|
|
|
|
import InternalUpload, { LIST_IGNORE } 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;
|