diff --git a/ui/src/components/loa/loaForm.vue b/ui/src/components/loa/loaForm.vue index ec8cfd7..f49407d 100644 --- a/ui/src/components/loa/loaForm.vue +++ b/ui/src/components/loa/loaForm.vue @@ -10,8 +10,9 @@ import { fromDate, getLocalTimeZone, parseDate, + today, } from "@internationalized/date" -import type { DateRange } from "reka-ui" +import type { DateRange, DateValue } from "reka-ui" import type { Ref } from "vue" import Popover from "@/components/ui/popover/Popover.vue"; import PopoverTrigger from "@/components/ui/popover/PopoverTrigger.vue"; @@ -84,6 +85,11 @@ onMounted(async () => { console.log(currentMember.value); resetForm({ values: { member_id: currentMember.value?.member_id } }); }); +import type { LayoutTypes } from '@/components/ui/calendar' + +const defaultPlaceholder = today(getLocalTimeZone()) +const date = ref(today(getLocalTimeZone())) as Ref +const layout = ref('month-and-year') @@ -175,7 +181,7 @@ onMounted(async () => { @@ -204,7 +210,8 @@ onMounted(async () => { + :default-placeholder="defaultPlaceholder" layout="month-and-year"> +
@@ -233,5 +240,11 @@ onMounted(async () => {
+ +
+ +
+ \ No newline at end of file diff --git a/ui/src/components/ui/calendar/Calendar.vue b/ui/src/components/ui/calendar/Calendar.vue index e3f69e2..3d421ec 100644 --- a/ui/src/components/ui/calendar/Calendar.vue +++ b/ui/src/components/ui/calendar/Calendar.vue @@ -1,7 +1,14 @@