mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-14 11:12:16 +01:00
Add size prop to DatePicker and fix range end
This commit is contained in:
@@ -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', '');
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user