1 | import * as React from 'react';
|
2 | import Grid from './Grid';
|
3 | import Meta from './Meta';
|
4 | import { TabsProps } from '../tabs';
|
5 | import { Omit } from '../_util/type';
|
6 | export { CardGridProps } from './Grid';
|
7 | export { CardMetaProps } from './Meta';
|
8 | export declare type CardType = 'inner';
|
9 | export declare type CardSize = 'default' | 'small';
|
10 | export interface CardTabListType {
|
11 | key: string;
|
12 | tab: React.ReactNode;
|
13 | disabled?: boolean;
|
14 | }
|
15 | export interface CardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
16 | prefixCls?: string;
|
17 | title?: React.ReactNode;
|
18 | extra?: React.ReactNode;
|
19 | bordered?: boolean;
|
20 | headStyle?: React.CSSProperties;
|
21 | bodyStyle?: React.CSSProperties;
|
22 | style?: React.CSSProperties;
|
23 | loading?: boolean;
|
24 | hoverable?: boolean;
|
25 | children?: React.ReactNode;
|
26 | id?: string;
|
27 | className?: string;
|
28 | size?: CardSize;
|
29 | type?: CardType;
|
30 | cover?: React.ReactNode;
|
31 | actions?: React.ReactNode[];
|
32 | tabList?: CardTabListType[];
|
33 | tabBarExtraContent?: React.ReactNode | null;
|
34 | onTabChange?: (key: string) => void;
|
35 | activeTabKey?: string;
|
36 | defaultActiveTabKey?: string;
|
37 | tabProps?: TabsProps;
|
38 | }
|
39 | export interface CardInterface extends React.FC<CardProps> {
|
40 | Grid: typeof Grid;
|
41 | Meta: typeof Meta;
|
42 | }
|
43 | declare const Card: CardInterface;
|
44 | export default Card;
|