Merge pull request #166 from catchonme/master

修复table同时使用combinNum和fixed时td高度显示错误问题
This commit is contained in:
liaoxuezhi 2019-08-15 20:04:00 +08:00 committed by GitHub
commit fff0892cea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -505,7 +505,7 @@ export default class Table extends React.Component<TableProps, object> {
widths[item.getAttribute('data-index') as string] = item.clientWidth;
});
forEach(
table.querySelectorAll('tbody>tr>*:first-child'),
table.querySelectorAll('tbody>tr>*:last-child'),
(item: HTMLElement, index: number) => (heights[index] = item.clientHeight)
);