mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
docs(Form): fixed invalid state attributes in examples (#479)
This commit is contained in:
committed by
Benjamin Canac
parent
75d26e0c2b
commit
e2146a5a58
@@ -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>>()
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user