Skip to content

Commit 8caea50

Browse files
authored
docs: remove duplicate 'half' enum definitions (#60)
1 parent 3955d63 commit 8caea50

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ dist
33
coverage
44

55
.DS_STORE
6-
6+
.idea

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ It will be exposed to global as `window.Vorms`
4141
```ts
4242
import { useForm } from '@vorms/core'
4343

44-
const sugarOptions = ['no', 'light', 'half', 'half', 'standard']
44+
const sugarOptions = ['no', 'light', 'half', 'standard']
4545

4646
const { register, handleSubmit, handleReset } = useForm({
4747
initialValues: {

docs/advanced/smart-form-component.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import SmartSelect from './components/SmartSelect.vue'
1212
1313
interface Values {
1414
drink: string,
15-
sugar: 'no' | 'light' | 'half' | 'half' | 'standard'
15+
sugar: 'no' | 'light' | 'half' | 'standard'
1616
}
1717
1818
const initialValues = {
@@ -31,7 +31,7 @@ const onSubmit = (values: Values) => {
3131
<div>
3232
<SmartForm :initial-values="initialValues" @submit="onSubmit">
3333
<SmartTextField name="name" />
34-
<SmartSelect name="sugar" :options="['no', 'light', 'half', 'half', 'standard']" />
34+
<SmartSelect name="sugar" :options="['no', 'light', 'half', 'standard']" />
3535
3636
<button type="submit">Submit</button>
3737
</SmartForm>

docs/guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ It will be exposed to global as `window.Vorms`
2222
<script setup lang="ts">
2323
import { useForm } from '@vorms/core'
2424
25-
const sugarOptions = ['no', 'light', 'half', 'half', 'standard']
25+
const sugarOptions = ['no', 'light', 'half', 'standard']
2626
2727
const { register, handleSubmit, handleReset } = useForm({
2828
initialValues: {

docs/zh-tw/advanced/smart-form-component.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import SmartSelect from './components/SmartSelect.vue'
1212
1313
interface Values {
1414
drink: string,
15-
sugar: 'no' | 'light' | 'half' | 'half' | 'standard'
15+
sugar: 'no' | 'light' | 'half' | 'standard'
1616
}
1717
1818
const initialValues = {
@@ -31,7 +31,7 @@ const onSubmit = (values: Values) => {
3131
<div>
3232
<SmartForm :initial-values="initialValues" @submit="onSubmit">
3333
<SmartTextField name="name" />
34-
<SmartSelect name="sugar" :options="['no', 'light', 'half', 'half', 'standard']" />
34+
<SmartSelect name="sugar" :options="['no', 'light', 'half', 'standard']" />
3535
3636
<button type="submit">Submit</button>
3737
</SmartForm>

docs/zh-tw/guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ npm install @vorms/core
2121
<script setup lang="ts">
2222
import { useForm } from '@vorms/core'
2323
24-
const sugarOptions = ['no', 'light', 'half', 'half', 'standard']
24+
const sugarOptions = ['no', 'light', 'half', 'standard']
2525
2626
const { register, handleSubmit, handleReset } = useForm({
2727
initialValues: {

0 commit comments

Comments
 (0)