(component): 新增 table 组件 totalRowMethod 属性, 并修复一些问题

This commit is contained in:
就眠儀式
2022-10-11 10:36:36 +08:00
parent d7a0ab1832
commit f4c7f4a489
2 changed files with 39 additions and 20 deletions

View File

@@ -1057,8 +1057,7 @@ export default {
},{
title:"年龄",
width: "300px",
key:"age",
totalRow: true
key:"age"
},{
title:"备注",
width: "180px",
@@ -1459,6 +1458,10 @@ export default {
width: "300px",
key:"age",
ellipsisTooltip: true,
totalRow: true,
totalRowMethod: (currentColumn, dataSource) => {
return "<span style='color:red'>自定义统计</span>";
}
},
{
title:"备注",