react-component / react-component/table

【咨询】为什么antd要自己监听滚动,设置table的位置呢?

Open
#1,035 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.