Skip to content

Commit 2cd7f49

Browse files
committed
docs(file-upload): improve examples
1 parent 9a8742b commit 2cd7f49

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/app/components/content/examples/file-upload/FileUploadDefaultSlotExample.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ const schema = z.object({
5151
)
5252
})
5353
54-
type schema = z.output<typeof schema>
54+
type Schema = z.output<typeof schema>
5555
56-
const state = reactive<Partial<schema>>({
56+
const state = reactive<Partial<Schema>>({
5757
avatar: undefined
5858
})
5959
6060
function createObjectUrl(file: File): string {
6161
return URL.createObjectURL(file)
6262
}
6363
64-
async function onSubmit(event: FormSubmitEvent<schema>) {
64+
async function onSubmit(event: FormSubmitEvent<Schema>) {
6565
console.log(event.data)
6666
}
6767
</script>

docs/app/components/content/examples/file-upload/FileUploadFormValidationExample.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ const schema = z.object({
5151
)
5252
})
5353
54-
type schema = z.output<typeof schema>
54+
type Schema = z.output<typeof schema>
5555
56-
const state = reactive<Partial<schema>>({
56+
const state = reactive<Partial<Schema>>({
5757
image: undefined
5858
})
5959
60-
async function onSubmit(event: FormSubmitEvent<schema>) {
60+
async function onSubmit(event: FormSubmitEvent<Schema>) {
6161
console.log(event.data)
6262
}
6363
</script>

0 commit comments

Comments
 (0)