layui得表格怎么使用合计
最后一行的合计希望是理由
totalRow: true和totalRowText: '合计'来写
其他的就省略啦,只写主要得。
totalRow:true,
cols: [
[{
type: 'numbers',
}, {
field: 'itemname',
title: '项目',
minWidth: 200,
}, {
field: 'moto',
minWidth: 80,
title: '备注',
totalRowText: '合计'//合计两个字在这一列的最下面
}, {
field: 'money',
title: '金额(元)',
minWidth: 120,
totalRow:true, //统计的是这一列的和
}