此可组合函数引用 QForm,它包装了你想要与其通信的自定义组件。
语法
import { useFormChild } from 'quasar'
setup () {
// function validate () { ... }
// function resetValidation () { ... }
useFormChild({
validate, // Function; Can be async;
// Should return a Boolean (or a Promise resolving to a Boolean)
resetValidation, // Optional function which resets validation
requiresQForm: true // should it error out if no parent QForm is found?
})
}
content_paste