為何捐款
API 瀏覽器
useFormChild composable

此 composable 指的是 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?
  })
}