primevue-mirror/plugins/fullcalendar.client.js

19 lines
587 B
JavaScript

import '@fullcalendar/core/vdom'; // solve problem with Vite
import dayGridPlugin from '@fullcalendar/daygrid';
import interactionPlugin from '@fullcalendar/interaction';
import timeGridPlugin from '@fullcalendar/timegrid';
import FullCalendar from '@fullcalendar/vue3';
FullCalendar.options = {
plugins: [dayGridPlugin, timeGridPlugin, interactionPlugin]
};
const $fullCalendar = {
install: (Vue, options) => {
Vue.config.globalProperties.$fullCalendar = FullCalendar;
}
};
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use($fullCalendar);
});