import React, { memo } from 'react'; import { Card, Radio } from 'antd'; import { FormattedMessage } from 'umi/locale'; import styles from './Analysis.less'; import { Pie } from '@/components/Charts'; import Yuan from '@/utils/Yuan'; const ProportionSales = memo( ({ dropdownGroup, salesType, loading, salesPieData, handleChangeSalesType }) => ( } bodyStyle={{ padding: 24 }} extra={
{dropdownGroup}
} style={{ marginTop: 24 }} >

} total={() => {salesPieData.reduce((pre, now) => now.y + pre, 0)}} data={salesPieData} valueFormat={value => {value}} height={248} lineWidth={4} />
) ); export default ProportionSales;