Migrating from v7
Breaking changes
- Default week-picker format is changed to week numbers
- Tabbing out from the overlay will shift focus to the action row button if present
- Removed deprecated props
- Removed
highlight-week-dayshighlight-disabled-dayshighlightprop typesDate[]string[]number[]
- Removed
idfor calendar days is changed to formatted value instead of ISO valuedate-fns-tzlibrary is removeddate-fnslibrary is updated tov3
highlight
Info
For prop definition, check highlight prop
js
<template>
<VueDatePicker
:highlight="[new Date()]"
:highlight="{ days: [ new Date() ] }"
/>
</template>highlight-week-days
This prop is now part of the highlight prop
Info
For prop definition, check highlight prop
js
<template>
<VueDatePicker
:highlight-week-days="[1, 2, 3]"
:highlight="{ weekdays: [1, 2, 3] }"
/>
</template>highlight-disabled-days
This prop is now part of the highlight prop
Info
For prop definition, check highlight prop
js
<template>
<VueDatePicker
highlight-disabled-days
:highlight="{ options: { highlightDisabled: true } }"
/>
</template>Calendar cells id
js
import { format } from 'date-fns';
const today = new Date();
const cellEl = document.getElementById(today.toISOString().split("T")[0]);
const cellEl = document.getElementById(format(today, 'yyyy-MM-dd')) date-fns and date-fns-tz
date-fns-tzlibrary is removed as peer dependency from the pickerdate-fnslibrary is updated tov3. If you use it somewhere else in your project, make sure to check the changelog for potential breaking changes
