ant-design / ant-design/pro-components

🧐[问题]请问怎么在SchemaForm里自定义一个像 FormGroup 的容器组件呢

Open
#9,035 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

### 🧐 问题描述

我想自定义一个容器组件来分类不同的表单项, 例如用Antd 的 ```Collapse``` 或 ```Card``` 来实现, 但要怎么渲染columns呢?

### 💻 示例代码

能否在 ```renderFormItem``` 这里传入一些函数可以渲染columns
### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start by reading the SchemaForm entry point and the renderFormItem API, then inspect how columns are currently rendered. Compare the requested Collapse or Card container behavior with existing examples or documentation. Done should mean a documented, supported way to group columns in a custom container, or a clearly recorded limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.