Add size prop to DatePicker and fix range end

This commit is contained in:
Gregor Vostrak
2026-03-23 02:21:28 +01:00
parent 12bbbf64e9
commit b94872b07b
5 changed files with 10 additions and 6 deletions

View File

@@ -58,13 +58,14 @@ const modelValue = computed<CalendarDateRange>({
}),
set: (newValue) => {
if (newValue.start) {
console.log(newValue.start);
const date = newValue.start.toDate(getUserTimezone());
emit('update:start', getLocalizedDayJs(date.toString()).format());
}
if (newValue.end) {
const date = newValue.end.toDate(getUserTimezone());
emit('update:end', getLocalizedDayJs(date.toString()).format());
} else {
emit('update:end', '');
}
},
});