Element UI version
2.4.5
OS/Browsers version
Win10/ Chrome 版本 78.0.3904.108(正式版本) (64 位)
Vue version
2.6.10
Reproduction Link
https://codepen.io/YinXiaobo/pen/NWPwdWb
Steps to reproduce
当form表单有自定义校验项,但是 callback() 漏写或者没有正确书写时,那么 this.$refs[formName].validate(valid => {}) 就不能正确执行,也没有报错提示。
What is Expected?
希望在callback() 没有正确书写时,能给一个错误提示。
What is actually happening?
希望在callback() 没有正确书写时,能给一个错误提示。
3条答案
按热度按时间zbdgwd5y1#
Translation of this issue:
Element UI version
2.4.5
OS/Browsers version
Win10 / Chrome version 78.0.3904.108 (official) (64 bit)
Vue version
2.6.10
Reproduction Link
https://codepen.io/YinXiaobo/pen/NWPwdWb
Steps to reproduce
When the form form has a custom check item, but the callback() is missing or not written correctly, then this. $refs [formname]. Validate (valid = > {}) cannot be executed correctly and there is no error prompt.
What is Expected?
I hope to give an error prompt when callback () is not written correctly.
What is actually happening?
I hope to give an error prompt when callback () is not written correctly.
zsohkypk2#
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
deyfvvtc3#
支持,遇到了同样的问题