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
3.1.0
vue 3.2.31
表单中使用select 组件的mode为multiple时,重置表单方法不能正确重置表单数据
将表单数据重置为初始状态
表单数据未正确重置
The text was updated successfully, but these errors were encountered:
数据重置是 formState.multiple.length = 0; restform函数中的 formRef.value.resetFields(); 是验证格式用的
formState.multiple.length = 0;
formRef.value.resetFields();
官方文档是说的resetFields "对整个表单进行重置,将所有字段值重置为初始值并移除校验结果" 那调用是不是应该重置表单字段为初始的呢
Sorry, something went wrong.
用rules必须将name和你的form对应,你的初始值也要和规则的类型一致
已解决,感谢
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.
No branches or pull requests
Version
3.1.0
Environment
vue 3.2.31
Reproduction link
Steps to reproduce
表单中使用select 组件的mode为multiple时,重置表单方法不能正确重置表单数据
What is expected?
将表单数据重置为初始状态
What is actually happening?
表单数据未正确重置
The text was updated successfully, but these errors were encountered: