mirror of
https://github.com/vform666/variant-form3-vite.git
synced 2024-11-10 09:39:20 +08:00
修复validateForm方法错误。
This commit is contained in:
parent
dca013e56b
commit
366486658b
@ -548,14 +548,14 @@
|
||||
this.$refs.renderForm.clearValidate(props)
|
||||
},
|
||||
|
||||
/* 验证表单,通过返回true,不通过返回false */
|
||||
validateForm() {
|
||||
let result = null
|
||||
/**
|
||||
* 校验表单
|
||||
* @param callback 回调函数
|
||||
*/
|
||||
validateForm(callback) {
|
||||
this.$refs['renderForm'].validate((valid) => {
|
||||
result = valid
|
||||
callback(valid)
|
||||
})
|
||||
|
||||
return result
|
||||
},
|
||||
|
||||
validateFields() {
|
||||
|
Loading…
Reference in New Issue
Block a user