Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Vue Form Validation with Composition API
<a href="https://vorms.mini-ghost.dev/" target="__blank"><img src="https://img.shields.io/static/v1?label=&message=docs&color=3D957F" alt="Documentations"></a>
<a href="https://www.npmjs.com/package/@vorms/core" target="__blank"><img alt="NPM Downloads" src="https://img.shields.io/npm/dm/@vorms/core?color=00629E&label="></a>
<br>
<a href="https://github.com//Mini-ghost/vorms" target="__blank"><img alt="GitHub stars" src="https://img.shields.io/github/stars/Mini-ghost/vorms?style=social"></a>
<a href="https://github.com/Mini-ghost/vorms" target="__blank"><img alt="GitHub stars" src="https://img.shields.io/github/stars/Mini-ghost/vorms?style=social"></a>
</p>

## Feature
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/smart-form-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ const { value, attrs } = useField(nameRef)
</template>
```

Now, you can create and compose complex from in your project without the tears. This ideal is inspired by [React Hook Form](https://react-hook-form.com/advanced-usage#SmartFormComponent)
Now, you can create and compose complex forms in your project without the tears. This idea is inspired by [React Hook Form](https://react-hook-form.com/advanced-usage#SmartFormComponent)
2 changes: 1 addition & 1 deletion docs/api/use-field-array.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ console.log(fields.value.map(field => field.value))

### remove

Remove the item by it index, or remove all when no index is provided.
Remove the item by its index, or remove all when no index is provided.

- Type `(index?: number) => void`

Expand Down
4 changes: 2 additions & 2 deletions docs/api/use-form.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ This option allows you to configure the validation strategy **before** first sub
This option allows you to configure the validation strategy **after** first submit. By default, validation is triggered during the input change event.

:::info
Even if your `reValidationMode` is not set to `submit`, Vorms will revalidate before submitting.
Even if your `reValidateMode` is not set to `submit`, Vorms will revalidate before submitting.
:::

- Type `'blur' | 'input' | 'change' | 'submit'`
Expand Down Expand Up @@ -218,7 +218,7 @@ This validate value could either be:

### onSubmit (Required)

This is your form submission handler, witch will pass your form's `values`. But this will not be called if the validation failed.
This is your form submission handler, which will pass your form's `values`. But this will not be called if the validation failed.

- Type

Expand Down
2 changes: 1 addition & 1 deletion docs/zh-tw/api/use-form.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const { value: sugar, attrs: sugarFieldAttrs } = register('sugar', {
默認情況下,驗證是在輸入事件變更(input change event)時觸發的。

:::info
即使您的 `reValidationMode` 沒有設置為 `submit`,Vorms 仍然會在提交之前重新驗證。
即使您的 `reValidateMode` 沒有設置為 `submit`,Vorms 仍然會在提交之前重新驗證。
:::

- Type `'blur' | 'input' | 'change' | 'submit'`
Expand Down