Skip to content

Commit

Permalink
docs: remove duplicate 'half' enum definitions (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
huberthsieh authored Nov 2, 2024
1 parent 3955d63 commit 8caea50
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dist
coverage

.DS_STORE

.idea
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ It will be exposed to global as `window.Vorms`
```ts
import { useForm } from '@vorms/core'

const sugarOptions = ['no', 'light', 'half', 'half', 'standard']
const sugarOptions = ['no', 'light', 'half', 'standard']

const { register, handleSubmit, handleReset } = useForm({
initialValues: {
Expand Down
4 changes: 2 additions & 2 deletions docs/advanced/smart-form-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import SmartSelect from './components/SmartSelect.vue'
interface Values {
drink: string,
sugar: 'no' | 'light' | 'half' | 'half' | 'standard'
sugar: 'no' | 'light' | 'half' | 'standard'
}
const initialValues = {
Expand All @@ -31,7 +31,7 @@ const onSubmit = (values: Values) => {
<div>
<SmartForm :initial-values="initialValues" @submit="onSubmit">
<SmartTextField name="name" />
<SmartSelect name="sugar" :options="['no', 'light', 'half', 'half', 'standard']" />
<SmartSelect name="sugar" :options="['no', 'light', 'half', 'standard']" />
<button type="submit">Submit</button>
</SmartForm>
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ It will be exposed to global as `window.Vorms`
<script setup lang="ts">
import { useForm } from '@vorms/core'
const sugarOptions = ['no', 'light', 'half', 'half', 'standard']
const sugarOptions = ['no', 'light', 'half', 'standard']
const { register, handleSubmit, handleReset } = useForm({
initialValues: {
Expand Down
4 changes: 2 additions & 2 deletions docs/zh-tw/advanced/smart-form-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import SmartSelect from './components/SmartSelect.vue'
interface Values {
drink: string,
sugar: 'no' | 'light' | 'half' | 'half' | 'standard'
sugar: 'no' | 'light' | 'half' | 'standard'
}
const initialValues = {
Expand All @@ -31,7 +31,7 @@ const onSubmit = (values: Values) => {
<div>
<SmartForm :initial-values="initialValues" @submit="onSubmit">
<SmartTextField name="name" />
<SmartSelect name="sugar" :options="['no', 'light', 'half', 'half', 'standard']" />
<SmartSelect name="sugar" :options="['no', 'light', 'half', 'standard']" />
<button type="submit">Submit</button>
</SmartForm>
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-tw/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ npm install @vorms/core
<script setup lang="ts">
import { useForm } from '@vorms/core'
const sugarOptions = ['no', 'light', 'half', 'half', 'standard']
const sugarOptions = ['no', 'light', 'half', 'standard']
const { register, handleSubmit, handleReset } = useForm({
initialValues: {
Expand Down

0 comments on commit 8caea50

Please sign in to comment.