VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Bug] 设置了rightFrozenColCount,对右侧固定的列双击自适应宽度时,frozenColumnLine 样式没有跟随列宽进行调整

Open longtengsong opened this issue 3 months ago • 2 comments

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 左侧的固定样式(阴影)没有跟随列宽进行调整,如下图:

Image

Current Behavior

应该需要列宽调整时,需要检查是否时固定列,如果时,需要渲染整个固定列,而不是仅仅更新列宽

Expected Behavior

期望 frozenColumnLine 的样式也跟随列宽移动

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

longtengsong avatar Sep 28 '25 02:09 longtengsong

暂时通过检查双击边界线事件,然后更新界面来处理

const isRightFrozen = table.isRightFrozenColumn(col);
if (isRightFrozen) {
  setTimeout(() => {
    table.renderWithRecreateCells();
  }, 0);
}

longtengsong avatar Sep 28 '25 03:09 longtengsong

认领该issue

wumo1016 avatar Oct 09 '25 08:10 wumo1016