mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 20:28:09 +01:00
docs(form): improve joi example
This commit is contained in:
@@ -15,7 +15,7 @@ const state = reactive({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const toast = useToast()
|
const toast = useToast()
|
||||||
async function onSubmit(event: FormSubmitEvent<typeof schema>) {
|
async function onSubmit(event: FormSubmitEvent<typeof state>) {
|
||||||
toast.add({ title: 'Success', description: 'The form has been submitted.', color: 'success' })
|
toast.add({ title: 'Success', description: 'The form has been submitted.', color: 'success' })
|
||||||
console.log(event.data)
|
console.log(event.data)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user