mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-01 04:37:57 +01:00
docs(calendar): fix date picker example (#3284)
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user