表格合计
summary={() => ( <Table.Summary fixed={'bottom'}> <Table.Summary.Row> <Table.Summary.Cell index={0} colSpan={2}> 合计 </Table.Summary.Cell> <Table.Summary.Cell index={3} colSpan={3}> <div style={{ textAlign:"center"}}>{totalAmount}</div> </Table.Summary.Cell> </Table.Summary.Row> </Table.Summary> )} const totalAmount = dataSource.reduce((acc, curr) => acc + curr.planEndDate, 0);
本文来自博客园,作者:zjxgdq,转载请注明原文链接:https://www.cnblogs.com/zjxzhj/p/18336312