chore: update

This commit is contained in:
sadeghbarati 2023-09-25 15:48:52 +03:30
parent d4bb455a44
commit 55cf147f66

View File

@ -28,14 +28,6 @@ import {
} from '@/lib/registry/default/ui/popover' } from '@/lib/registry/default/ui/popover'
import { Calendar } from '@/lib/registry/new-york/ui/calendar' import { Calendar } from '@/lib/registry/new-york/ui/calendar'
configure({
bails: true,
validateOnBlur: false,
validateOnChange: false,
validateOnInput: true,
validateOnModelUpdate: false,
})
const accountForm = ref({ const accountForm = ref({
name: '', name: '',
dob: null, dob: null,
@ -100,11 +92,11 @@ async function handleSubmit() {
</div> </div>
<Separator /> <Separator />
<Form :validation-schema="accountFormSchema" class="space-y-8" @submit="handleSubmit"> <Form :validation-schema="accountFormSchema" class="space-y-8" @submit="handleSubmit">
<FormField v-slot="{ field }" name="example" type="password"> <FormField v-slot="{ field }" name="example">
<FormItem> <FormItem>
<FormLabel>Name</FormLabel> <FormLabel>Name</FormLabel>
<FormControl> <FormControl>
<Input placeholder="Your name" v-bind="field" /> <Input type="text" placeholder="Your name" v-bind="field" />
</FormControl> </FormControl>
<FormMessage /> <FormMessage />
</FormItem> </FormItem>