Skip to content

Commit

Permalink
docs(Form): fixed invalid state attributes in examples (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
romhml authored Aug 1, 2023
1 parent a4141f9 commit b696b15
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions docs/components/content/examples/FormExampleJoi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const schema = Joi.object({
})
const state = ref({
email: undefined,
password: undefined
emailJoi: undefined,
passwordJoi: undefined
})
const form = ref()
Expand All @@ -30,11 +30,11 @@ async function submit () {
@submit.prevent="submit"
>
<UFormGroup label="Email" name="emailJoi">
<UInput v-model="state.email" />
<UInput v-model="state.emailJoi" />
</UFormGroup>

<UFormGroup label="Password" name="passwordJoi">
<UInput v-model="state.password" type="password" />
<UInput v-model="state.passwordJoi" type="password" />
</UFormGroup>

<UButton type="submit">
Expand Down
8 changes: 4 additions & 4 deletions docs/components/content/examples/FormExampleYup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const schema = object({
type Schema = InferType<typeof schema>
const state = ref({
email: undefined,
password: undefined
emailYup: undefined,
passwordYup: undefined
})
const form = ref<Form<Schema>>()
Expand All @@ -33,11 +33,11 @@ async function submit () {
@submit.prevent="submit"
>
<UFormGroup label="Email" name="emailYup">
<UInput v-model="state.email" />
<UInput v-model="state.emailYup" />
</UFormGroup>

<UFormGroup label="Password" name="passwordYup">
<UInput v-model="state.password" type="password" />
<UInput v-model="state.passwordYup" type="password" />
</UFormGroup>

<UButton type="submit">
Expand Down
8 changes: 4 additions & 4 deletions docs/components/content/examples/FormExampleZod.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const schema = z.object({
type Schema = z.output<typeof schema>
const state = ref({
email: undefined,
password: undefined
emailZod: undefined,
passwordZod: undefined
})
const form = ref<Form<Schema>>()
Expand All @@ -31,11 +31,11 @@ async function submit () {
@submit.prevent="submit"
>
<UFormGroup label="Email" name="emailZod">
<UInput v-model="state.email" />
<UInput v-model="state.emailZod" />
</UFormGroup>

<UFormGroup label="Password" name="passwordZod">
<UInput v-model="state.password" type="password" />
<UInput v-model="state.passwordZod" type="password" />
</UFormGroup>

<UButton type="submit">
Expand Down

1 comment on commit b696b15

@vercel
Copy link

@vercel vercel bot commented on b696b15 Aug 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-nuxtlabs.vercel.app
ui-git-dev-nuxtlabs.vercel.app
ui.nuxtlabs.com

Please sign in to comment.