ant-design / ant-design/pro-components
为什么使用proTable的时候,操作options时,点击重置按钮,是回到你上次刷新前的状态 存在二级的时候:当你将一级隐藏之后,再次点击二级不显示。当你把二级全部隐藏后,再点击一级全部不显示
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
### 🧐 问题描述
版本: "@ant-design/pro-table": "^2.60.0"
1. 点击重置按钮,是回到你上次刷新前的状态
2. 存在二级的时候:当你将一级隐藏之后,再次点击二级不显示。当你把二级全部隐藏后,再点击一级全部不显示


onChange只暴露了一个映射关系,没有暴露我点击的是那个元素(一级还是二级)
很急,求解决
@MadCcc @afc163 @zombieJ @chenshuai2144 @vagusX @arvinxx
Contributor guide
Research direction
Start with ProTable's options handling and the onChange callback, using the reported @ant-design/pro-table version as context. Reproduce the reset behavior and the nested-column visibility cases described in the issue. Done means reset restores the intended state and toggling parent and child columns remains consistent.
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
- Mostly clear
- Newbie friendliness
- 35/100