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

表单检校的错误信息失焦后自动消失了 | 柚子816 #12

Open
leemotive opened this issue May 9, 2023 · 0 comments
Open

Comments

@leemotive
Copy link
Owner

https://leemotive.github.io/2023/04/28/%E8%A1%A8%E5%8D%95%E6%A3%80%E6%A0%A1%E7%9A%84%E9%94%99%E8%AF%AF%E4%BF%A1%E6%81%AF%E5%A4%B1%E7%84%A6%E5%90%8E%E8%87%AA%E5%8A%A8%E6%B6%88%E5%A4%B1%E4%BA%86/index.html?

在浏览项目时,发现一个有意思的事情,就是表单校检的错误信息在失焦后就自动消失了。真是离谱到家了 可以看出来在输入数字时,不会有错误提示,如果没有任何输入,在失焦时会提示这项是必填的,在输入一些特殊字符时,会立刻提示错误信息,但是在输入框失焦后这个错误信息又消失了。 这个 demo 中使用了 vue2 + elementui。表单校检也是使用了 elementui 的表单校验。这个输入框一共添加了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant