react-component / react-component/table
表格固定高度、自适应高度
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 618
- Avg merge
- 10h 19m
- Merged PRs (30d)
- 2
Description
表格Table组件需要添加height属性,设置height以后,table的高度固定为height的值,tableBody的高度=height-header高度-footer高度;
当数据高度比表格高度小的时候,不显示表格的y轴高度,固定列的时候需要控制表头不要添加rc-table-cell-scrollbar。
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 at the Table component entry point and trace height handling for the table, header, footer, body, fixed columns, and scrollbar cell. Done means a configured height constrains the body correctly, short data does not show a vertical scrollbar, and fixed columns do not add rc-table-cell-scrollbar to the header.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100