docs(calendar): fix date picker example (#3284)

This commit is contained in:
Hugo Richard
2025-02-10 15:13:21 +01:00
committed by GitHub
parent 3413608168
commit 39c0a60955

View File

@@ -11,7 +11,7 @@ const modelValue = shallowRef(new CalendarDate(2022, 1, 10))
<template> <template>
<UPopover> <UPopover>
<UButton color="neutral" variant="subtle" icon="i-lucide-calendar"> <UButton color="neutral" variant="subtle" icon="i-lucide-calendar">
{{ df.format(modelValue.toDate(getLocalTimeZone())) }} {{ modelValue ? df.format(modelValue.toDate(getLocalTimeZone())) : 'Select a date' }}
</UButton> </UButton>
<template #content> <template #content>