import React from 'react'; import { Row, Col, Avatar, Tooltip, Typography } from 'antd'; import classNames from '@pansy/classnames'; import { get } from 'lodash'; import styles from './index.less'; import { formatNumber } from '../../utils'; const { Text } = Typography; interface IApplicationDigest { digestData?: { type?: string; count?: number; name?: string; }[]; applicationInfo?: any; openAlarm?: () => void; } const ApplicationDigest = (props: IApplicationDigest) => { const { digestData = [], applicationInfo = {}, openAlarm } = props; const span = Array.isArray(digestData) && digestData.length > 0 ? 12 : 24; // 判断展示数据个数 let offset = 0; if (digestData.length <= 4 && digestData.length > 0) { offset = (4 - digestData.length) * 3; } return (