[Feature Request] Form表单验证动态规则,在规则为空时清除对应字段的校验结果
Open
- Dominant language
- Vue
- Stars
- 54k
- Forks
- 14.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Existing Component
是
### Component Name
Form-Item
### Description
某个form-item, 一开始有rules,此时校验错误,会有错误信息展示。当我的规则动态变为空(空数组)后,我不想展示错误信息。想把校验状态清除,不展示错误信息。也就是在192行的if里面应该把上次的校验状态清除。现在我是给了一个始终校验正确的规则,使之走下面的逻辑帮我清除
https://github.com/ElemeFE/element/blob/473ef53f9317ad6ca8c629655982244902751e63/packages/form/src/form-item.vue#L189-L219
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.