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

嵌套属性reset表单崩溃 #16

Closed
daimazai opened this issue Oct 31, 2018 · 2 comments
Closed

嵌套属性reset表单崩溃 #16

daimazai opened this issue Oct 31, 2018 · 2 comments

Comments

@daimazai
Copy link

数据结构如下

image
详细报错如下
image
在获取完form数据后,完调用this.core.reset(),出现上述异常 有几个问题如下:

  1. 如果是嵌套表单,IF条件不满足的属性为什么如何不显示?或者不存在最终的 this.core.getValues()
  2. 结果中, 除了reset方法有其他清空表单数据的方法么?
@quirkyshop
Copy link
Contributor

@daimazai 应该是处理嵌套Form的willRecevieProps的处理没做好,现在看下,下个版本(今晚晚些时候)会修复。

  1. If 是有作用域的,如果是嵌套表单,则这个作用域就是在嵌套表单下。第二个问题话没理解
  2. 没有,但是可以通过setItemValue('key', null) 的形式去处理。

@quirkyshop
Copy link
Contributor

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

2 participants