mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-24 15:46:10 +08:00
38cf5e8a75
* docs: unify component export file as index.tsx * docs: compatible with old anchors * chore: clean * test: update snapshot * fix: window env --------- Co-authored-by: Peach <scdzwyxst@gmail.com>
28 lines
719 B
TypeScript
28 lines
719 B
TypeScript
import Dragger from './Dragger';
|
|
import type { UploadProps } from './Upload';
|
|
import InternalUpload, { LIST_IGNORE } from './Upload';
|
|
|
|
export type { DraggerProps } from './Dragger';
|
|
export type {
|
|
RcFile,
|
|
UploadChangeParam,
|
|
UploadFile,
|
|
UploadListProps,
|
|
UploadProps,
|
|
} from './interface';
|
|
|
|
type InternalUploadType = typeof InternalUpload;
|
|
type CompoundedComponent<T = any> = InternalUploadType & {
|
|
<U extends T>(
|
|
props: React.PropsWithChildren<UploadProps<U>> & React.RefAttributes<any>,
|
|
): React.ReactElement;
|
|
Dragger: typeof Dragger;
|
|
LIST_IGNORE: string;
|
|
};
|
|
|
|
const Upload = InternalUpload as CompoundedComponent;
|
|
Upload.Dragger = Dragger;
|
|
Upload.LIST_IGNORE = LIST_IGNORE;
|
|
|
|
export default Upload;
|