mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 00:15:05 +01:00
docs(Form): fixed invalid state attributes in examples (#479)
This commit is contained in:
committed by
Benjamin Canac
parent
75d26e0c2b
commit
e2146a5a58
@@ -10,8 +10,8 @@ const schema = Joi.object({
|
||||
})
|
||||
|
||||
const state = ref({
|
||||
email: undefined,
|
||||
password: undefined
|
||||
emailJoi: undefined,
|
||||
passwordJoi: undefined
|
||||
})
|
||||
|
||||
const form = ref()
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user