mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 20:19:44 +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>
28 lines
583 B
TypeScript
28 lines
583 B
TypeScript
'use client';
|
|
|
|
import InternalCard from './Card';
|
|
import Grid from './Grid';
|
|
import Meta from './Meta';
|
|
|
|
export type { CardProps, CardTabListType } from './Card';
|
|
export type { CardGridProps } from './Grid';
|
|
export type { CardMetaProps } from './Meta';
|
|
|
|
type InternalCardType = typeof InternalCard;
|
|
|
|
export interface CardInterface extends InternalCardType {
|
|
Grid: typeof Grid;
|
|
Meta: typeof Meta;
|
|
}
|
|
|
|
const Card = InternalCard as CardInterface;
|
|
|
|
Card.Grid = Grid;
|
|
Card.Meta = Meta;
|
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
Card.displayName = 'Card';
|
|
}
|
|
|
|
export default Card;
|