react-component / react-component/table

需要Column的一个maxWidth 属性,其它列可按给定width number值伸缩,但某个列有最大宽

Open
#1,403 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.4k
Forks
618
Avg merge
10h 19m
Merged PRs (30d)
2

Description

在用户侧Table外层自己加ResizeObserver是可以自定义实现的,希望这个能力直接放rc-table内。

建议实现maxWidth 逻辑, 或 导出column resize 的 prop,供用户自定义,以避免外层ResizeObserver定制
Image

Contributor guide

No contributing guide indexed for this repository

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 by reviewing the rc-table column sizing behavior and the issue's attached image. Compare the proposed maxWidth column property with exposing column-resize behavior for consumer-side customization. Done means agreeing on one API direction and defining how fixed widths, flexible columns, and a maximum width interact.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.