File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed
docs/components/content/examples Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ const schema = Joi.object({
10
10
})
11
11
12
12
const state = ref ({
13
- email : undefined ,
14
- password : undefined
13
+ emailJoi : undefined ,
14
+ passwordJoi : undefined
15
15
})
16
16
17
17
const form = ref ()
@@ -30,11 +30,11 @@ async function submit () {
30
30
@submit.prevent =" submit"
31
31
>
32
32
<UFormGroup label =" Email" name =" emailJoi" >
33
- <UInput v-model =" state.email " />
33
+ <UInput v-model =" state.emailJoi " />
34
34
</UFormGroup >
35
35
36
36
<UFormGroup label =" Password" name =" passwordJoi" >
37
- <UInput v-model =" state.password " type =" password" />
37
+ <UInput v-model =" state.passwordJoi " type =" password" />
38
38
</UFormGroup >
39
39
40
40
<UButton type =" submit" >
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ const schema = object({
13
13
type Schema = InferType <typeof schema >
14
14
15
15
const state = ref ({
16
- email : undefined ,
17
- password : undefined
16
+ emailYup : undefined ,
17
+ passwordYup : undefined
18
18
})
19
19
20
20
const form = ref <Form <Schema >>()
@@ -33,11 +33,11 @@ async function submit () {
33
33
@submit.prevent =" submit"
34
34
>
35
35
<UFormGroup label =" Email" name =" emailYup" >
36
- <UInput v-model =" state.email " />
36
+ <UInput v-model =" state.emailYup " />
37
37
</UFormGroup >
38
38
39
39
<UFormGroup label =" Password" name =" passwordYup" >
40
- <UInput v-model =" state.password " type =" password" />
40
+ <UInput v-model =" state.passwordYup " type =" password" />
41
41
</UFormGroup >
42
42
43
43
<UButton type =" submit" >
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ const schema = z.object({
11
11
type Schema = z .output <typeof schema >
12
12
13
13
const state = ref ({
14
- email : undefined ,
15
- password : undefined
14
+ emailZod : undefined ,
15
+ passwordZod : undefined
16
16
})
17
17
18
18
const form = ref <Form <Schema >>()
@@ -31,11 +31,11 @@ async function submit () {
31
31
@submit.prevent =" submit"
32
32
>
33
33
<UFormGroup label =" Email" name =" emailZod" >
34
- <UInput v-model =" state.email " />
34
+ <UInput v-model =" state.emailZod " />
35
35
</UFormGroup >
36
36
37
37
<UFormGroup label =" Password" name =" passwordZod" >
38
- <UInput v-model =" state.password " type =" password" />
38
+ <UInput v-model =" state.passwordZod " type =" password" />
39
39
</UFormGroup >
40
40
41
41
<UButton type =" submit" >
You can’t perform that action at this time.
0 commit comments