Loading...
Loading...
ALWAYS use when writing code importing "vee-validate". Consult for debugging, best practices, or modifying vee-validate, vee validate.
npx skill4agent add harlan-zw/vue-ecosystem-skills vee-validate-skilldvee-validatev-modelconfigure({ validateOnModelUpdate: true })syncVModeldefineFielddefineComponentBindsdefineInputBindsuseFormContextsetValueFielduseSetFieldValueuseSetFormValuesuseSetFormErrorshandleBlurshouldValidatesyncVModelisValidatinguseFormmove(oldIdx, newIdx)FieldArrayuseIsFieldDirtyuseIsFormValiduseFieldValuehandleInputhandleChangelabeldefineFieldResetFormOptsforceuseResetFormdefineComponentBindsdefineInputBindsuseFieldModelunsetValueOnUnmountkeepValuesOnUnmountuseFormuseResetFormnested field meta queryingdefineField()v-modelconst [email, emailProps] = defineField('email', {
validateOnBlur: true,
props: state => ({ 'aria-invalid': !!state.errors.length })
});meta.touchedtoTypedSchema()import { toTypedSchema } from '@vee-validate/zod';
import * as z from 'zod';
const { values } = useForm({
validationSchema: toTypedSchema(z.object({ email: z.string().email() }))
});markRawrefreactiveimport { string } from 'yup'useField() => props.namekeepValuesOnUnmountv-ifconst { values } = useForm({
keepValuesOnUnmount: true
});field.keyv-foruseFieldArray[][user.name]handleSubmit.withControlled()useFielddefineField