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

Use useForm to verify the dynamic form error, unable to dynamically add rules #4498

Closed
1 task
nabaonan opened this issue Aug 11, 2021 · 1 comment
Closed
1 task
Labels

Comments

@nabaonan
Copy link
Contributor

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.5

Environment

bigsur 11.5.1

Reproduction link

Edit on CodeSandbox

Steps to reproduce

直接点击验证可以生效,是因为我在规则中配置了,
点击添加一个的时候,会报错,此时我向规则对象中动态添加一个数据,感觉既然是reactive的对象应该是响应式的,但是报错了
假如添加的时候不包含类似index的变量,可以添加成功,但是不会提示错误信息

What is expected?

点击添加按钮的时候,动态添加规则信息可以生效

What is actually happening?

add方法中动态添加规则的时候,报错

@github-actions github-actions bot changed the title 使用useForm验证动态表单报错,无法动态添加规则 Use useForm to verify the dynamic form error, unable to dynamically add rules Aug 11, 2021
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant