import React, { memo } from 'react'; import { Card, Radio } from 'antd'; import { Charts } from 'ant-design-pro'; import { FormattedMessage } from 'umi-plugin-react/locale'; import styles from '../style.less'; import Yuan from '../utils/Yuan'; const { Pie } = Charts; 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;