多表单异步验证 可以用 Promise validate

https://www.jb51.net/article/140062.htm

vue动态绑定组件子父组件多表单验证功能的实现代码

// 加载组件:每次下拉框监听则给changValue新赋值,如果下拉options的value从0开始则绑定组件时不用-1
<component :is= "componentName[changValue - 1]" ref= "subjectChild" @isSubmit= "getSubmit" ></component>

猜你喜欢

转载自www.cnblogs.com/pengchenggang/p/10389777.html