1 | import { Component, CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
2 | import Grid from './Grid';
|
3 | import Meta from './Meta';
|
4 | export { CardGridProps } from './Grid';
|
5 | export { CardMetaProps } from './Meta';
|
6 | export declare type CardType = 'inner';
|
7 | export interface CardTabListType {
|
8 | key: string;
|
9 | tab: ReactNode;
|
10 | }
|
11 | export interface CardProps {
|
12 | prefixCls?: string;
|
13 | title?: ReactNode;
|
14 | extra?: ReactNode;
|
15 | bordered?: boolean;
|
16 | bodyStyle?: CSSProperties;
|
17 | style?: CSSProperties;
|
18 | loading?: boolean;
|
19 | noHovering?: boolean;
|
20 | hoverable?: boolean;
|
21 | children?: ReactNode;
|
22 | id?: string;
|
23 | className?: string;
|
24 | type?: CardType;
|
25 | cover?: ReactNode;
|
26 | actions?: ReactNode[];
|
27 | tabList?: CardTabListType[];
|
28 | onTabChange?: (key: string) => void;
|
29 | onHeadClick?: MouseEventHandler<any>;
|
30 | activeTabKey?: string;
|
31 | defaultActiveTabKey?: string;
|
32 | }
|
33 | export default class Card extends Component<CardProps, {}> {
|
34 | static displayName: string;
|
35 | static Grid: typeof Grid;
|
36 | static Meta: typeof Meta;
|
37 | resizeEvent: any;
|
38 | updateWiderPaddingCalled: boolean;
|
39 | state: {
|
40 | widerPadding: boolean;
|
41 | };
|
42 | private container;
|
43 | componentDidMount(): void;
|
44 | componentWillUnmount(): void;
|
45 | updateWiderPadding(): void;
|
46 | onTabChange: (key: string) => void;
|
47 | saveRef: (node: HTMLDivElement) => void;
|
48 | isContainGrid(): boolean;
|
49 | getAction(actions: ReactNode[]): JSX.Element[] | null;
|
50 | getCompatibleHoverable(): boolean | undefined;
|
51 | render(): JSX.Element;
|
52 | }
|