Skip to content

Commit ffbd06b

Browse files
add api list
1 parent a33b7fd commit ffbd06b

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,22 @@ export default defineComponent({
6565
[![Edit Vue Hooks Form Demo](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/vue-hooks-form-demo-lqtp0?fontsize=14&hidenavigation=1&theme=dark)
6666

6767

68-
## API
68+
## API(TODO)
69+
70+
### `useForm`
71+
```js
72+
const {
73+
values,
74+
getFieldValues,
75+
errors,
76+
validateFields,
77+
validateField,
78+
get,
79+
set,
80+
useField,
81+
} = useForm({
82+
defaultValues: {},
83+
shouldUnregister: true,
84+
validateMode: 'change',
85+
})
86+
```

0 commit comments

Comments
 (0)