Feature: maxWidth prop for table column

オープン
#1,257 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react, typescript
領域
frontend

調査の方向性

まず、rc-table の列定義と、既存の width および minWidth のサイズ調整の挙動を確認します。柔軟なレイアウトが長い文字列をどのように処理するかを調べ、width、minWidth、maxWidth の間で期待される相互作用を判断します。列定義が maxWidth を受け付け、列がその上限を超えて拡大できないことを、関連するサイズ調整ケースのカバレッジで確認できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I’d like to suggest adding a maxWidth property to the column definition in rc-table. This would allow developers to set an upper limit on how wide a column can grow, which is especially useful when dealing with content like long strings.

Image

At the moment, rc-table supports width and minWidth for column sizing, but there is no support for maxWidth. This makes it difficult to constrain columns when flexible layouts are needed.

Has anyone previously explored adding maxWidth support or worked around this limitation? Are there any known reasons this hasn’t been implemented?

Would you accept such a pull request?

ref: UIEN-7296

主要言語
TypeScript
スター
1.4k
フォーク
618
平均マージ
10時間 19分
マージ済み PR(30日)
2

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

react-component/table のほかの issue

react-component/table の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。