ant-design / ant-design/pro-components
🐛[BUG] ProForm 的表单元素(例如ProFormText)layout未生效
- 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 描述
Form的布局均为 layout="vertical",name为y的表单组件,传入了layout="horizontal"
**ProFormText 却不能够按照horizontal 来布局**,antd 可以按照horizontal布局
### 📷 复现步骤
### 🏞 期望结果
### 💻 复现代码
### © 版本信息
- ProComponents 版本: 2.8.10
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]
### 🚑 其他信息
Contributor guide
Research direction
Start from the ProFormText component and its layout prop, using the reported ProForm and Form.Item examples to compare nested layout behavior. The issue is done when a ProForm with vertical layout allows an individual ProFormText with layout="horizontal" to render horizontally, matching the Ant Design Form.Item example.
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