✨(component): 新增 table 组件 totalRowMethod 属性, 并修复一些问题
This commit is contained in:
@@ -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:"备注",
|
||||
|
||||
Reference in New Issue
Block a user