mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-14 16:19:15 +08:00
f0c105d262
* feat: remove the hardcode of `use client` * chore: update `@ant-design/tools` * test: update * fix: incorrect dictionary * chore: update dep * ci: check use client * chore: update ci * fix: should be LIB_DIR * ci: should only run in dist * chore: update check tsx files
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;
|