forked from p96170835/amis
修复有超级表头时 itemActions 位置显示不正确的问题
This commit is contained in:
parent
871c84981b
commit
5575a1d6a1
|
@ -585,10 +585,13 @@ export default class Table extends React.Component<TableProps, object> {
|
|||
let heights: {
|
||||
[propName: string]: number;
|
||||
} = (this.heights = {});
|
||||
|
||||
heights.header ||
|
||||
(heights.header = table.querySelector('thead')!.offsetHeight);
|
||||
|
||||
forEach(
|
||||
table.querySelectorAll('thead>tr:last-child>th'),
|
||||
(item: HTMLElement) => {
|
||||
heights.header || (heights.header = item.offsetHeight);
|
||||
widths[item.getAttribute('data-index') as string] = item.offsetWidth;
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue