Migrating from v12
Breaking changes
- All class names are renamed from
underscoretodash - The following class words are changed:
dp__date_hoveris renamed todp--date-hoverabledp__active_dateis renamed todp--activedp__date_hover_startrenamed todp--date-hoverable-startdp__date_hover_endrenamed todp--date-hoverable-end
- Removed classes:
dp__range_end,dp__range_start,dp--extended-fixed-start,dp--extended-fixed-end week-startwill now default tolocaleprop instead of Monday.
Change
In case you modified the classes or overridden the built-in styles, you need to update the class names.
Replace all underscores with dashes. The wording of the class name is the same.
css
.dp__calendar_row {
/* Custom overrides */
}
.dp--calendar-row {
/* Custom overrides */
}
.dp__calendar_header_cell {
/* Custom overrides */
}
.dp--calendar-header-cell {
/* Custom overrides */
}week-start
Since default locale is enUS, the default week-start will be Sunday. To retain previous behavior, override week-start to Monday
vue
<template>
<VueDatePicker />
<VueDatePicker :week-start="WeekStart.Monday" />
</template>
<script lang="ts" setup>
import { WeekStart } from "@vuepic/vue-datepicker"
</script>