修复table同时使用combinNum和fixed时td高度显示错误问题

This commit is contained in:
catchonme 2019-08-15 20:00:12 +08:00
parent 6a5b6c11d5
commit f86339a8fd

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)
);