ant-design / ant-design/pro-components

🐛[BUG]Protable使用列设置清空展示列后,修改columns,列设置全选状态与勾选状态不一致

Open
#8,525 0 comments 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

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

### 🐛 bug 描述
Protable使用列设置清空展示列后,修改columns,列设置全选状态与勾选状态不一致

### 📷 复现步骤
先通过列设置取消所有列选中,点击”显示详情“按钮,查看列设置状态:详情字段为选中,全选按钮未勾选
![image](https://github.com/ant-design/pro-components/assets/85143531/68e5fe5b-53ee-4c5b-89bb-942e4190ab5b)
![image](https://github.com/ant-design/pro-components/assets/85143531/84ef88d1-eee3-47bf-9b4a-98ea6245a8aa)

### 🏞 期望结果
列设置全选状态与内容对应

### 💻 复现代码
https://codesandbox.io/p/sandbox/cha-xun-biao-ge-forked-vpmq2j?file=%2FApp.tsx%3A11%2C14

### © 版本信息

- ProComponents 版本: [e.g. 2.7.10]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]

十分感谢你的帮助!!

Contributor guide

Open the contributing guide

Research direction

Open the linked CodeSandbox and start with App.tsx around the referenced lines, then reproduce the issue by clearing all columns and clicking “显示详情”. Done means the column-settings select-all state matches the checked column fields after columns are modified.

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.