We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在“Topic”字段中随意输入值,然后选择其他“类型”字段,再次修改“Topci”字段,formValues中不会有topic字段
在选择不同的类型后,始终保留topic字段
topic字段会被删除,再输入时不会存在与values中
@formily/react@2.3.1
这个场景我理解是一个很普遍的场景,public、private字段会受type字段改变visible值,这2个字段下都有某个相同的字段时,该字段会在切换后就不出现在values中了。
我尝试使用 x-hidden,但无法达到我的要求,因为我希望给到后端的字段是非冗余的。
期待您的回复!感谢!
The text was updated successfully, but these errors were encountered:
我也遇到过这个问题,整个表单好像不能有相同的字段,我自己的解决方案是把topic放到父层,用两个不同的内部变量_topic1, _topic2去渲染,然后 topic通过"x-value":"{{$values.type===x?$values._topic1:$values._topic2}}" 来设置值,最后提交的时候防止字段冗余把内部变量删掉。
Sorry, something went wrong.
No branches or pull requests
Reproduction link
Steps to reproduce
在“Topic”字段中随意输入值,然后选择其他“类型”字段,再次修改“Topci”字段,formValues中不会有topic字段
What is expected?
在选择不同的类型后,始终保留topic字段
What is actually happening?
topic字段会被删除,再输入时不会存在与values中
Package
@formily/react@2.3.1
这个场景我理解是一个很普遍的场景,public、private字段会受type字段改变visible值,这2个字段下都有某个相同的字段时,该字段会在切换后就不出现在values中了。
我尝试使用 x-hidden,但无法达到我的要求,因为我希望给到后端的字段是非冗余的。
期待您的回复!感谢!
The text was updated successfully, but these errors were encountered: