nathanreyes / v-calendar

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

day-content slot not providing attributes & day prop #1352

Closed marius-mcfly closed 8 months ago

marius-mcfly commented 12 months ago

Hello there,

I asked a few month ago to implement the day-content slot again. It was done, so thanks so far for adding it and resolving the issue! :) But sadly it's not fully working as in the earlier versions. The props attributes and day are not provided for this slot anymore, but they were supported until 3.0.0-alpha.8. Is it possible to provide the props again? It would make the calendar more powerful and customizable again. 🔥

We are using the day-content slot like this currently:

<template #day-content="{ day, attributes }">
    <MyComponent :current-day="day"
    <p>{{ attributes.customData }}</p>
</template
nathanreyes commented 8 months ago

I'm not sure exactly which version this was fixed, but it should be working again in latest 3.0 version.