Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: remove duplicate 'half' enum definitions #60

Merged
Merged
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 .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
Loading