summary={(data) => { let totalCount = 0; data.forEach((item: any) => { if (item.styleId == getStyle) { totalCount += parseInt(item.count); } }); return ( <> <Table.Summary.Row> <Table.Summary.Cell index={0}>合计</Table.Summary.Cell> <Table.Summary.Cell index={1}></Table.Summary.Cell> <Table.Summary.Cell index={2}></Table.Summary.Cell> <Table.Summary.Cell index={3}> <span>{totalCount}</span> </Table.Summary.Cell> </Table.Summary.Row> </> ); }}