P粉0256324372023-08-10 15:10:39
You can wrap it with v-form and use v-model
to track the validity of the form
const isValid = ref(false) function emitIfValid() { if (isValid.value) emitFunction() }
<v-form v-model="isValid">
<v-text-field
:rules="validationRules"
@blur="emitIfValid"
/>
</v-form>