import * as React from "react"; import Meta from "./Meta"; import { ConfigConsumerProps } from "../Config"; interface IProps { /** * 卡片标题 * * @default "" **/ title?: string | React.ReactNode; /** * 卡片右上角的操作区域 * * @default "" **/ extra?: string | React.ReactNode; /** * 卡片封面 * * @default "" **/ cover?: React.ReactNode; /** * 样式前缀 * * @default "lg" **/ prefixCls?: string; /** * 自定义样式 * * @default **/ style?: React.CSSProperties; /** * 自定义标题区域样式 * * @default "" **/ headStyle?: React.CSSProperties; /** * 内容区域自定义样式 * * @default "" **/ bodyStyle?: React.CSSProperties; /** * 自定义样式 * * @default "" **/ className?: string; /** * card 的尺寸 * * @default "default" **/ size?: "default" | "small" | "middle"; /** * 是否有阴影 * * @default false **/ hasShadow?: boolean; /** * 鼠标hover显示阴影 * * @default false **/ hasHoverShadow?: boolean; /** * 卡片操作组,位置在卡片底部 * * @default **/ actions?: Array; } export default class Card extends React.PureComponent { static Meta: typeof Meta; static defaultProps: { size: string; }; renderCard: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export {};