ant-design / ant-design/pro-components

为什么使用proTable的时候,操作options时,点击重置按钮,是回到你上次刷新前的状态 存在二级的时候:当你将一级隐藏之后,再次点击二级不显示。当你把二级全部隐藏后,再点击一级全部不显示

Open
#8,898 1 comment 0 reactions 0 assignees View on GitHub
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. 存在二级的时候:当你将一级隐藏之后,再次点击二级不显示。当你把二级全部隐藏后,再点击一级全部不显示

![image](https://github.com/user-attachments/assets/0391bd67-80ae-4cb5-a9d3-58e9b2244eda)

![image](https://github.com/user-attachments/assets/addbad05-ed42-438c-b1ae-553d97c15613)
onChange只暴露了一个映射关系,没有暴露我点击的是那个元素(一级还是二级)

很急,求解决
@MadCcc @afc163 @zombieJ @chenshuai2144 @vagusX @arvinxx

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.