-
期望:从同一份 schema 里渲染出来的 field 应该是独立的,各自的 field.componentProps 应该也是相互隔离的。 |
Beta Was this translation helpful? Give feedback.
Answered by
janryWang
May 17, 2021
Replies: 2 comments
-
初步想法是给ArrayTable这些组件在递归渲染的时候单独深拷贝schema,其实在1.x中就是这样做的,具体实现还得想想 |
Beta Was this translation helpful? Give feedback.
0 replies
-
已经修复了,主要解决思路是本身compiler就是一次深度递归编译,所以就在toFieldProps的时候,直接复用compiled的Schema即可 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
janryWang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
已经修复了,主要解决思路是本身compiler就是一次深度递归编译,所以就在toFieldProps的时候,直接复用compiled的Schema即可