Closed sunny20131314 closed 4 years ago
How would you tag this issue?
Describe your issue:
由于组件中每组要渲染的结构是不定的,很有可能会不一样,所以就决定把每组要渲染的结构放在state中保存 在这种情况下,删除时就需要把某项的值和对应的schema删除,然而删除后表单值没有正常回显
What is the expected behavior? 删除后表单值正常回显
Which versions of UForm? 1.0.0-rc.3
Did this work in previous versions of UForm?
https://codesandbox.io/s/uformdeleteerror-4mw11
遍历过程需要指定key,否则删除的时候内部组件无法正常unmount
感谢回复; 我这边试了试,添加了6组并随便赋值后,随意删除2组后,值显示正常,但是继续删除,剩余的3组的值并没有正常回显,烦请指导,谢谢
这个问题我已解决,谢谢 解决如下:移除值放在CustomForm组件内部处理
Help us to manage our issues by answering the following:
How would you tag this issue?
Describe your issue:
由于组件中每组要渲染的结构是不定的,很有可能会不一样,所以就决定把每组要渲染的结构放在state中保存 在这种情况下,删除时就需要把某项的值和对应的schema删除,然而删除后表单值没有正常回显
What is the expected behavior? 删除后表单值正常回显
Which versions of UForm? 1.0.0-rc.3
Did this work in previous versions of UForm?
https://codesandbox.io/s/uformdeleteerror-4mw11