import * as React from 'react'; import { expandObj } from "../../types"; import './index.scss'; type fitEnum = 'contain-in' | 'contain-out' | 'width' | 'height'; type backgroundColorEnum = 'primary' | 'pm' | 'protection'; type iconTypeMap = 'check-circle' | 'warning' | 'cancel'; interface CardProps { /** 自定义样式类 */ className?: string; /** 卡片最大高 */ maxHeight?: boolean | string; /** 卡片标题 */ title?: string | React.ReactNode; /** 卡片内容 */ content?: string | Array | React.ReactNode; /** 卡片背景颜色 */ backgroundColor?: backgroundColorEnum | string; /** 图片列表 */ imgList?: Array; /** 条码 */ barcode?: BarcodeProps; /** 操作配置 */ action?: ActionProps; /** 卡片状态 */ status?: string; /** 卡片tag */ tag?: expandObj; /** 提示-类型 */ infoType?: iconTypeMap; /** 提示-标题 */ infoTitle?: string; /** 提示-标签 */ infoTags?: Array; /** 提示-内容 */ infoMessage?: string; /** 标题自定义内联样式 */ titleStyle?: React.CSSProperties; /** 内容自定义内联样式 */ contentStyle?: React.CSSProperties; } interface ImageProps { url: string; fit?: fitEnum; } interface BarcodeProps { id: string; value: string; [propsName: string]: string | number | boolean; } interface ActionProps { name: string; hotkey?: string; onAction?: () => void; } declare const Card: React.FC; export default Card;