diff --git a/docs/component/form.md b/docs/component/form.md index b6cfd11e..03a35b16 100644 --- a/docs/component/form.md +++ b/docs/component/form.md @@ -137,7 +137,7 @@ const model = reactive<{ const form = ref() -function handleSubmit1() { +function handleSubmit() { form.value .validate() .then(({ valid, errors }) => { @@ -154,7 +154,6 @@ function handleSubmit1() { ``` - ::: ## 校验规则 @@ -403,62 +402,59 @@ const submit = () => { ::: code-group ```html [vue] - + + + 提交 + - - - 提交 - ``` ```typescript [typescript]