File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -51,30 +51,3 @@ const { regsiter } = useForm<Inputs>()
51
51
- [ @vue-use-form/class-validator ] ( https://github.com/vue-use-form/vue-use-form/tree/master/packages/resolver-class-validator )
52
52
- [ @vue-use-form/yup ] ( https://github.com/vue-use-form/vue-use-form/tree/master/packages/resolver-yup )
53
53
54
-
55
- ``` html
56
- <script lang =" ts" setup >
57
- import { useForm } from ' vue-use-form'
58
- import * as yup from ' yup'
59
- import { useYupResolver } from ' @vue-use-form/yup'
60
-
61
- const schema = yup .object ().shape ({
62
- name: yup .string ().required (),
63
- })
64
-
65
- const resolver = useYupResolver (schema)
66
-
67
- const {
68
- register ,
69
- formState: { errors },
70
- } = useForm ({
71
- resolver,
72
- mode: ' onChange' ,
73
- })
74
- </script >
75
-
76
- <template >
77
- <input : =" register('name')" >
78
- </template >
79
-
80
- ```
You can’t perform that action at this time.
0 commit comments