ant-design / ant-design/pro-components

🐛[BUG]Prolist 中 同时设置 grid 和 rowSelection ,为什么不显示多选框

Open
#8,722 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

提问前先看看:

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

🐛 bug 描述
Prolist 中 同时设置 grid 和 rowSelection ,并不会出现多选框,有没有什么办法能够让其显示这个多选框?

📷 复现步骤
🏞 期望结果
在卡片模式下,也能显示多选框

💻 复现代码
grid={
showType === 'block'
? {
gutter: 4,
column: { xs: 4, sm: 8, md: 10, lg: 12 } as unknown as number,
}
: undefined
}

© 版本信息
ProComponents 版本: [e.g. 4.0.0]
umi 版本
浏览器环境
开发环境 [e.g. Windows]
🚑 其他信息
![屏幕截图 2024-09-11 140812](https://github.com/user-attachments/assets/96c45598-93e5-4b05-b04f-149c45e3df3c)
![屏幕截图 2024-09-11 140831](https://github.com/user-attachments/assets/f9ee8598-515d-44bb-9144-6cba9e6a650b)

Contributor guide

Open the contributing guide

Research direction

Review the ProList implementation for the interaction between grid and rowSelection, using the provided grid snippet as the starting reproduction. Confirm whether card mode should render selection controls; done requires a documented or tested resolution, with the missing version and environment details filled in.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.