react-component / react-component/table
fixFooter 判断不准确,导致 Summary 组件的 fixed 为 'top' 不符合预期
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 618
- Avg merge
- 10h 19m
- Merged PRs (30d)
- 2
Description
https://github.com/react-component/table/blob/ef7afbca9c582bc49c006b7011ee0cc84f6e4ad3/src/Table.tsx#L362
https://github.com/react-component/table/blob/ef7afbca9c582bc49c006b7011ee0cc84f6e4ad3/src/Table.tsx#L376-L380
如果不给 Table 组件传 scorll.y 或 sticky 属性,那么 Summary 的 fixed 属性赋值为 'top' 是失效的,比如:
https://stackblitz.com/edit/react-gxnxdv?embed=1&file=demo.tsx
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 in src/Table.tsx at the linked lines around fixFooter and the Summary fixed handling. Reproduce the behavior with the linked StackBlitz example without scroll.y or sticky, then trace why fixed='top' is ineffective in that configuration. Done means Summary fixed='top' behaves as expected without those props, with the existing reproduction confirming the result.
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
- Clearly specified
- Newbie friendliness
- 55/100