nathanreyes / v-calendar

An elegant calendar and datepicker plugin for Vue.
https://vcalendar.io
MIT License
4.32k stars 841 forks source link

Available-dates in vue 3 #1419

Open kauenzo opened 6 months ago

kauenzo commented 6 months ago

Please, include a available-dates feature in vue 3.

onur-colak commented 6 months ago

I used the structure below as a quick solution.

<date-picker v-model="selectDate" :attributes="activeDays"

... </ date-picker>

const selectDate = ref("2023-12-19") const days = ref(["2023-12-19", "2023-12-12", "2023-12-11"]) const activeDays = ref([ { highlight: { color: "#3D91FE", fillMode: "outline", }, dates: days.value }, ]);