ant-design / ant-design/pro-components

🐛[BUG] ProForm 的表单元素(例如ProFormText)layout未生效

Open
#9,254 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 描述

Image
Form的布局均为 layout="vertical",name为y的表单组件,传入了layout="horizontal"

**ProFormText 却不能够按照horizontal 来布局**,antd 可以按照horizontal布局

### 📷 复现步骤










### 🏞 期望结果

### 💻 复现代码

### © 版本信息

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

### 🚑 其他信息

Contributor guide

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.