ant-design / ant-design/pro-components
👑 [需求]: ProTable 控制刷新展开的嵌套table
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
### 🥰 需求描述
官网嵌套table示例:
https://procomponents.ant.design/components/table?tab=api¤t=1&pageSize=5#packages-table-src-components-table-tab-api-demo-table-nested
### ⛰ 功能需求适用场景
1. 父table 数据来自 parentDatas(接口1)
2. 子table 根据父table的parentId, 查询出 childDatas(接口2)
3. 现在做完某个操作需要 更新所有展开的子table数据
大佬们,有没有什么好办法
Contributor guide
Research direction
Start with the nested-table demo linked in the issue and the ProTable entry points it uses. Trace how expanded child tables receive each parentId and how their data is loaded, then determine how a parent operation could request refreshes for all currently expanded children. Done means the requested refresh behavior is defined and covered for the parentDatas/childDatas scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100