This commit is contained in:
liushaozhen 2020-06-16 17:36:41 +08:00
parent 18a268f4b8
commit 6507b08ce6
1 changed files with 2 additions and 1 deletions

View File

@ -1407,7 +1407,8 @@ var Table = function (_Component) {
}
});
var fixedColumnsExpandedRowsHeight = {};
expandedRows.length > 0 && expandedRows.forEach(function (row) {
//expandedRows为NodeList Array.prototype.forEach ie 下报错 对象不支持 “forEach” 方法
expandedRows.length > 0 && Array.prototype.forEach.call(expandedRows, function (row) {
var parentRowKey = row && row.previousSibling && row.previousSibling.getAttribute("data-row-key"),
height = row && row.getBoundingClientRect().height || 'auto';
fixedColumnsExpandedRowsHeight[parentRowKey] = height;