VisActor / VisActor/VTable

[Bug] 表格增减列后调用updateColumns后列宽显示异常

Open
#3,912 4 comments 0 reactions 1 assignee View on GitHub

@hokkine is already working on this.

Since May 22, 2025.

bug good first issue
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

Version

1.18.2

Link to Minimal Reproduction

官方示例即可复现。

Steps to Reproduce
  1. VTable拖拽修改某列的宽度;
  2. 增加一个显示的列,并调用updateColumns更新columns配置;
Current Behavior

增减列,调用updateColumns后,前面被修改列宽的列仍然保持前面修改时的宽度,未重新分配计算宽度,从而导致一些显示和定位上的问题。

Expected Behavior

增减列,调用updateColumns后,表格应按照新的列重新为各列分配列宽,以保证整个表格各要素正常渲染。
将updateColumns,替换成updateOption去更新就OK。应该是updateColumns API的bug。

Environment
- OS:
- Browser:
- Framework:
Any additional comments?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.