ant-design / ant-design/pro-components
🐛[BUG] 使用BetaSchemaForm时, 当指定renderFormItem,返回defaultRender中包含mode: multiple时表单绘制不出来
- 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 描述
使用BetaSchemaForm时, 指定了multiple, select绘制不出来
不指定multiple 或不指定renderFormItem时是正常的。
### 📷 复现步骤
指定: fieldProps: {
placeholder: "一多选就不行了",
mode: "multiple",
}
指定renderFormItem, 且返回defaultRender 时, select无法绘制出来
### 🏞 期望结果
用schema指定select时,支持单选、多选、tags等
### 💻 复现代码
https://codesandbox.io/p/sandbox/7y2hdf
参考L53 L55行
### © 版本信息
- ProComponents 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]
### 🚑 其他信息
Contributor guide
Research direction
Start with the reproduction sandbox linked in the issue, especially lines 53 and 55, and confirm the failure when fieldProps.mode is set to multiple alongside renderFormItem returning defaultRender. Trace the BetaSchemaForm select rendering path and verify that single-select, multiple, and tags modes all render when the schema uses renderFormItem.
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
- 48/100