[Bug] 表格增减列后调用updateColumns后列宽显示异常
Open
@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
- VTable拖拽修改某列的宽度;
- 增加一个显示的列,并调用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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.