ant-design / ant-design/pro-components
👑 [需求]ProTable增加tableRef用来获取antd Table ref
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
### 🔩 所属模块或组件
率属组件:ProTable
### 🥰 需求描述
protable增加tableRef用来指定table的ref
### ⛰ 功能需求适用场景
目前虚拟滚动,切换分页,无法将滚动条滚动至顶部
### 🧐 解决方案
Table传入ref={tableRef}即可,目录:packages/table/src/Table.tsx
### 🚑 其他信息
Contributor guide
Research direction
Start with packages/table/src/Table.tsx, the entry point named in the issue, and inspect how ProTable passes options to the underlying antd Table. Confirm how a caller can provide tableRef and verify the virtual-scroll and pagination scenarios can move the scrollbar to the top. There are no tests or other files named in the issue, so identify the relevant existing Table test coverage before making the change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100