feat(table): 新增 table.getTotalRow

pull/1540/head
sight 11 months ago
parent 1a5258b292
commit 4af5b1cda4

@ -1551,6 +1551,15 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
that.renderTotal(data, totalRowData)
}
/**
* 获取合计行数据
* @param {string} id 表格 ID
*/
table.getTotalRow = function(id){
var that = getThisTable(id);
return that.dataTotal;
}
//找到对应的列元素
Class.prototype.getColElem = function(parent, key){
var that = this;

Loading…
Cancel
Save