diff --git a/src/modules/table.js b/src/modules/table.js index d32a8ddb..7f532542 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -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;