2022-06-22 14:57:09 +08:00
|
|
|
import InternalCard from './Card';
|
2017-07-07 13:36:54 +08:00
|
|
|
import Grid from './Grid';
|
2017-08-09 14:34:10 +08:00
|
|
|
import Meta from './Meta';
|
2019-08-05 18:38:10 +08:00
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
export type { CardProps, CardTabListType } from './Card';
|
|
|
|
export type { CardGridProps } from './Grid';
|
|
|
|
export type { CardMetaProps } from './Meta';
|
2017-09-25 22:14:49 +08:00
|
|
|
|
2022-05-26 20:50:16 +08:00
|
|
|
type InternalCardType = typeof InternalCard;
|
2017-08-09 14:34:10 +08:00
|
|
|
|
2022-05-26 20:50:16 +08:00
|
|
|
export interface CardInterface extends InternalCardType {
|
2020-05-17 00:49:05 +08:00
|
|
|
Grid: typeof Grid;
|
|
|
|
Meta: typeof Meta;
|
|
|
|
}
|
2019-08-05 18:38:10 +08:00
|
|
|
|
2022-05-26 20:50:16 +08:00
|
|
|
const Card = InternalCard as CardInterface;
|
2020-05-17 00:49:05 +08:00
|
|
|
|
|
|
|
Card.Grid = Grid;
|
|
|
|
Card.Meta = Meta;
|
|
|
|
|
2023-01-08 21:30:41 +08:00
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
|
|
Card.displayName = 'Card';
|
|
|
|
}
|
|
|
|
|
2020-05-17 00:49:05 +08:00
|
|
|
export default Card;
|