Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Form】验证通过后返回所有字段数据 #2671

Open
1 task
langziyang opened this issue May 8, 2024 · 0 comments
Open
1 task

【Form】验证通过后返回所有字段数据 #2671

langziyang opened this issue May 8, 2024 · 0 comments

Comments

@langziyang
Copy link

Basic Info

  • Package Name And Version: @arco-design/web-react@2.62.0
  • Framework version: React
  • Browser: chrome124.0.0.0

Steps to reproduce

在做表单时,initialValues可能是来自于数据库,有10个字段,但实际表单只修改一部分(可能只有3个字段),现在form验证通过后返回的数据只有这3个字段的数据,希望能加上initialValues中其它7个字段的数据。另外:Form.List,如果没有数据,验证通过后这个数据里就没有这个字段的数据了,这样在使用PATCH提交给后端时,这个字段就会产生歧义,本义需要把这个List设置为空数组,但是因为没有字段,就保留了原数据

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant