fix: 表格固定高度 getVxePopupContainer
This commit is contained in:
parent
7463df053a
commit
5e1de6fc79
@ -52,11 +52,13 @@ export function getVxePopupContainer(
|
|||||||
return tableContainer as HTMLElement;
|
return tableContainer as HTMLElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 非固定列情况下,为了保证滚动跟随,找到最近的单元格或行
|
/**
|
||||||
const cell =
|
* 设置行高度需要特殊处理
|
||||||
node.closest('.vxe-cell') || node.closest('td') || node.closest('tr');
|
*/
|
||||||
if (cell) {
|
const fixedHeightElement = node.closest('td.col--cs-height');
|
||||||
return cell as HTMLElement;
|
if (fixedHeightElement) {
|
||||||
|
// 默认为hidden 显示异常
|
||||||
|
(fixedHeightElement as HTMLTableCellElement).style.overflow = 'visible';
|
||||||
}
|
}
|
||||||
|
|
||||||
// 兜底方案:使用元素的父节点或文档体
|
// 兜底方案:使用元素的父节点或文档体
|
||||||
|
Loading…
Reference in New Issue
Block a user