react-component / react-component/table
Cell Override Lack record and column identification
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 618
- Avg merge
- 10h 19m
- Merged PRs (30d)
- 2
Description
目前的component override API 缺乏在 cell component 中获取 行以及列的方式。见源代码这里:
https://github.com/react-component/table/blob/master/src/TableCell.js#L97-L101
TableCell 中仅仅为 cell component 填取这几个信息。
<BodyCell className={className} onClick={this.handleClick} {...tdProps}>
{indentText}
{expandIcon}
{text}
</BodyCell>
假如我希望可以使用不同宽度的列,每个列里面的cell component 则需要从 column 项中获得该列的宽度。目前的 cell componet API 并不提供这样的信息。
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start with src/TableCell.js around lines 97-101, where the cell component receives its current props. Trace the component override API and the column data passed into TableCell to determine how row and column information could be exposed. Done means cell overrides can identify their row and column, including column-specific properties such as width; the issue mentions no test file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100