VTable
VTable copied to clipboard
[Bug] 设置了rightFrozenColCount,对右侧固定的列双击自适应宽度时,frozenColumnLine 样式没有跟随列宽进行调整
Version
1.20.0
Link to Minimal Reproduction
https://codesandbox.io/p/sandbox/vtable-list-table-forked-ypr5ln
Steps to Reproduce
1、双击 Sales 列边界线 2、列宽调整后,Sales 左侧的固定样式(阴影)没有跟随列宽进行调整,如下图:
Current Behavior
应该需要列宽调整时,需要检查是否时固定列,如果时,需要渲染整个固定列,而不是仅仅更新列宽
Expected Behavior
期望 frozenColumnLine 的样式也跟随列宽移动
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
暂时通过检查双击边界线事件,然后更新界面来处理
const isRightFrozen = table.isRightFrozenColumn(col);
if (isRightFrozen) {
setTimeout(() => {
table.renderWithRecreateCells();
}, 0);
}
认领该issue