项目中存在两种合计(例子:表尾合计行、原生总结栏)方式。原先只有表尾合计行,后来新增了原生总结栏(使用antd自带的)。
效果:


使用方法:
表尾合计行
原生总结栏

两者参数一致,showSummary 设置true就会使用原先的 表尾合计行 方式,设置false或者不设置就使用新的 原生总结栏 方式。
原生总结栏的优势:
1.表头列宽拖动,合计行不会错位
2.能解决在非配置api情况下,列进行过滤时,合计行统计值未更新的问题
3.列添加customSummaryRender自定义渲染函数