ant-design / ant-design/pro-components
StepsForm 🧐[问题]
- 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
### 🧐 问题描述
formMapRef和formRef 我都赋予了初始值
并没有赋予表单初始值 我应该怎么做才能根据我初始化的数据自动赋值到表单中 因为有进行编辑操作 麻烦提供参考和建议
### 💻 示例代码
` (
setCreateModalOpen(false)}
open={createModalOpen}
footer={submitter}
destroyOnClose
>
{dom}
)}
>
name="tables"
title="数据库表"
onFinish={async () => {
return true;
}}
>
{
console.log(formMapRef.current);
return true;
}}
>
`
### 🚑 其他信息
Contributor guide
Research direction
Start with the StepsForm and StepsForm.StepForm usage shown in the report, focusing on formMapRef, formRef, initialValue, and the edit flow. Determine how initialized data is expected to populate the fields, then verify that the tableName and module fields display the edit values when the form opens.
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
- 25/100