ant-design / ant-design/pro-components
🧐[问题]ProForm中设置grid 后, 在ProFormList里的组件设置colProps会不生效
- 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
### 🧐 问题描述
### 💻 示例代码
其中ProFormList中ProFormSelect的colProps会无效,原因是ant-pro-form-list-container并不是一个有效的ant-row,需要把ant-pro-form-list-container设为flex布局
目前有两个解决方案:
[{dom}]} />
或者
请问还有更好的方案吗?
Contributor guide
Research direction
Start at the ProFormList implementation and inspect how its ant-pro-form-list-container handles the parent ProForm grid and child colProps. Reproduce the example with ProFormSelect, then compare the itemContainerRender and containerClassName workarounds; done means the child colProps take effect without requiring either workaround.
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
- 30/100