mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
38474628fd
* fix: prepend use-client directive for with Next.js App Router * Update components/affix/index.tsx Co-authored-by: MadCcc <1075746765@qq.com> Signed-off-by: lijianan <574980606@qq.com> * Update components/badge/index.tsx Co-authored-by: MadCcc <1075746765@qq.com> Signed-off-by: lijianan <574980606@qq.com> * Update components/divider/index.tsx Co-authored-by: MadCcc <1075746765@qq.com> Signed-off-by: lijianan <574980606@qq.com> * Update components/cascader/index.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/list/index.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/mentions/index.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/mentions/index.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/mentions/index.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/mentions/index.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/qrcode/index.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/spin/index.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/select/index.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/spin/index.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/spin/index.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/steps/index.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/time-picker/index.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/transfer/index.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/tree-select/index.tsx Signed-off-by: lijianan <574980606@qq.com> --------- Signed-off-by: lijianan <574980606@qq.com> Co-authored-by: MadCcc <1075746765@qq.com>
30 lines
734 B
TypeScript
30 lines
734 B
TypeScript
'use client';
|
|
|
|
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;
|