react-component / react-component/table
【咨询】为什么antd要自己监听滚动,设置table的位置呢?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 618
- Avg merge
- 10h 19m
- Merged PRs (30d)
- 2
Description
看到 antd 源码有大量的处理 scroll 代码,为什么要这样做?
现状在多列场景下,某列在视窗外,如果基于浏览器的 ctrl + f 搜索,浏览器会默认把检索到的元素出现在视窗。由于antd的逻辑处理,浏览器这块介入不了
https://ant.design/components/table-cn#components-table-demo-fixed-columns
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 the table's scroll-handling code and the fixed-columns demo linked in the issue. Reproduce browser Ctrl+F behavior when a matching column is outside the viewport, then trace how the table positions and scrolls that content. Done should establish whether this is an actionable bug and define expected browser-search behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100