antoniandre / vue-cal-v4

A Vue.js full calendar, no dependency, no BS. :metal:
https://antoniandre.github.io/vue-cal-v4/
MIT License
1.25k stars 235 forks source link

@event-drop originalEvent return string date instead of Date object #588

Open NightFurySL2001 opened 2 months ago

NightFurySL2001 commented 2 months ago

The start and end date of originalEvent param returned by @event-drop is of type string, not Date object. The originalEvent param returned by @event-duration-change does use Date object. Demo code:


<template>
<vue-cal @event-drop="eventDrop">
</template>

<script setup>
const eventDrop = (event, originalEvent) => {
    console.log("changing", event, originalEvent)
    console.log("changing type", typeof event.start,typeof originalEvent.start)
};
</script>