vue form validation does not pass, can still perform the click event inside the code?

Problems encountered: when the form is submitted, the written rules, obviously not verify through a click event still execute code inside.

This validation What is the use?

Then I see elementUI components only to find that I missed a few lines of code.

methods which write

 

The perfect solution to the problems encountered, elementui component library was still considered very comprehensive.

Reference website: https://element.eleme.cn/#/zh-CN/component/form

 

 

 

Guess you like

Origin www.cnblogs.com/duanhuarong/p/11943503.html
Recommended