Tencent / Tencent/tdesign-react

[Table] 设置resizable及ellipsis,拖动调整表格列宽自适应问题

Open
#3,951 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🐞 bug
Dominant language
TypeScript
Stars
965
Forks
373
Avg merge
3d 6h
Merged PRs (30d)
17

Description

tdesign-react 版本

1.15.8

重现链接

https://stackblitz.com/edit/njptshcd?file=package.json

重现步骤

https://github.com/user-attachments/assets/96c6a4fd-9086-4d6e-81ea-afa56b307a32

Image Image Image
期望结果

当设置了ellipsis,调整表格宽度时,应该自适应相邻两列的列宽,超出省略,而不是出现滚动条

实际结果

相邻两列的列宽没有自适应,会出现滚动条,出现滚动条后再次拖动,会出现表格整体宽度变小的情况

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

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.

Research direction

Start with the linked StackBlitz reproduction and inspect the Table component behavior when both resizable and ellipsis are enabled. Reproduce the column drag, then verify that adjacent columns adapt, overflowing content is ellipsized, and no scrollbar or shrinking table width appears on subsequent drags.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.