Fixed #1351 - Update FullCalendar to 5.7.2
parent
4adb9dd468
commit
5d257140b3
|
@ -26,10 +26,11 @@
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.4.4",
|
"@babel/cli": "^7.4.4",
|
||||||
"@fullcalendar/core": "5.4.0",
|
"@fullcalendar/core": "^5.7.2",
|
||||||
"@fullcalendar/daygrid": "5.4.0",
|
"@fullcalendar/daygrid": "^5.7.2",
|
||||||
"@fullcalendar/interaction": "5.4.0",
|
"@fullcalendar/interaction": "^5.7.2",
|
||||||
"@fullcalendar/timegrid": "5.4.0",
|
"@fullcalendar/timegrid": "^5.7.2",
|
||||||
|
"@fullcalendar/vue3": "^5.7.2",
|
||||||
"@vue/cli-plugin-babel": "~4.5.0",
|
"@vue/cli-plugin-babel": "~4.5.0",
|
||||||
"@vue/cli-plugin-eslint": "~4.5.0",
|
"@vue/cli-plugin-eslint": "~4.5.0",
|
||||||
"@vue/cli-plugin-router": "~4.5.0",
|
"@vue/cli-plugin-router": "~4.5.0",
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import '@fullcalendar/core/vdom'; // vite support
|
||||||
import {Calendar} from '@fullcalendar/core';
|
import {Calendar} from '@fullcalendar/core';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="content-section introduction">
|
<div class="content-section introduction">
|
||||||
<div class="feature-intro">
|
<div class="feature-intro">
|
||||||
<h1>FullCalendar</h1>
|
<h1>FullCalendar</h1>
|
||||||
<p>An event calendar based on the <a href="https://fullcalendar.io/">FullCalendar</a> library.</p>
|
<p><a href="https://fullcalendar.io/docs/vue">FullCalendar Vue</a> library is fully compatible with PrimeVue themes.</p>
|
||||||
</div>
|
</div>
|
||||||
<AppDemoActions />
|
<AppDemoActions />
|
||||||
</div>
|
</div>
|
||||||
|
@ -32,11 +32,14 @@ export default {
|
||||||
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
|
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
|
||||||
initialDate : '2019-01-01',
|
initialDate : '2019-01-01',
|
||||||
headerToolbar: {
|
headerToolbar: {
|
||||||
left: 'prev,next',
|
left: 'prev,next today',
|
||||||
center: 'title',
|
center: 'title',
|
||||||
right: 'dayGridMonth,timeGridWeek,timeGridDay'
|
right: 'dayGridMonth,timeGridWeek,timeGridDay'
|
||||||
},
|
},
|
||||||
editable: true
|
editable: true,
|
||||||
|
selectable:true,
|
||||||
|
selectMirror: true,
|
||||||
|
dayMaxEvents: true
|
||||||
},
|
},
|
||||||
events: null
|
events: null
|
||||||
};
|
};
|
||||||
|
@ -53,3 +56,12 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
@media screen and (max-width: 960px) {
|
||||||
|
::v-deep(.fc-header-toolbar) {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -1,6 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<AppDoc name="FullCalendarDemo" :sources="sources" :service="['EventService']" :data="['events']" github="fullcalendar/FullCalendarDemo.vue"
|
<AppDoc name="FullCalendarDemo" :sources="sources" :service="['EventService']" :data="['events']" github="fullcalendar/FullCalendarDemo.vue"
|
||||||
:dependencies="{'@fullcalendar/core': '5.4.0', '@fullcalendar/daygrid': '5.4.0', '@fullcalendar/interaction': '5.4.0', '@fullcalendar/timegrid': '5.4.0'}" component="FullCalendar">
|
:dependencies="{'@fullcalendar/core': '^5.7.2', '@fullcalendar/vue3': '^5.7.2', '@fullcalendar/daygrid': '^5.7.2', '@fullcalendar/interaction': '^5.7.2', '@fullcalendar/timegrid': '^5.7.2'}" component="FullCalendar">
|
||||||
|
<h4><strong>Note:</strong> This documentation explains how to use PrimeVue's FullCalendar component and <a href="https://fullcalendar.io/docs/v4">FullCalendar 4.0.1+</a>.
|
||||||
|
In PrimeVue 5.7.2+, FullCalendar component is deprecated. Now, PrimeVue provides full theming support to the <a href="https://fullcalendar.io/docs/vue">FullCalendar Vue</a> library.
|
||||||
|
In this way, it is aimed to use it compatible with other PrimeVue components.</h4>
|
||||||
|
|
||||||
<h5>Import</h5>
|
<h5>Import</h5>
|
||||||
<pre v-code.script><code>
|
<pre v-code.script><code>
|
||||||
import FullCalendar from 'primevue/fullcalendar';
|
import FullCalendar from 'primevue/fullcalendar';
|
||||||
|
@ -128,11 +132,14 @@ export default {
|
||||||
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
|
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
|
||||||
initialDate: '2019-01-01',
|
initialDate: '2019-01-01',
|
||||||
headerToolbar: {
|
headerToolbar: {
|
||||||
left: 'prev,next',
|
left: 'prev,next today',
|
||||||
center: 'title',
|
center: 'title',
|
||||||
right: 'dayGridMonth,timeGridWeek,timeGridDay'
|
right: 'dayGridMonth,timeGridWeek,timeGridDay'
|
||||||
},
|
},
|
||||||
editable: true
|
editable: true,
|
||||||
|
selectable:true,
|
||||||
|
selectMirror: true,
|
||||||
|
dayMaxEvents: true
|
||||||
},
|
},
|
||||||
events: null
|
events: null
|
||||||
};
|
};
|
||||||
|
@ -158,7 +165,7 @@ export default {
|
||||||
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
|
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
|
||||||
initialDate: '2019-01-01',
|
initialDate: '2019-01-01',
|
||||||
headerToolbar: {
|
headerToolbar: {
|
||||||
left: 'prev,next',
|
left: 'prev,next today',
|
||||||
center: 'title',
|
center: 'title',
|
||||||
right: 'dayGridMonth,timeGridWeek,timeGridDay'
|
right: 'dayGridMonth,timeGridWeek,timeGridDay'
|
||||||
},
|
},
|
||||||
|
@ -234,11 +241,14 @@ export default {
|
||||||
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
|
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
|
||||||
initialDate : '2017-02-01',
|
initialDate : '2017-02-01',
|
||||||
headerToolbar: {
|
headerToolbar: {
|
||||||
left: 'prev,next',
|
left: 'prev,next today',
|
||||||
center: 'title',
|
center: 'title',
|
||||||
right: 'dayGridMonth,timeGridWeek,timeGridDay'
|
right: 'dayGridMonth,timeGridWeek,timeGridDay'
|
||||||
},
|
},
|
||||||
editable: true
|
editable: true,
|
||||||
|
selectable:true,
|
||||||
|
selectMirror: true,
|
||||||
|
dayMaxEvents: true
|
||||||
},
|
},
|
||||||
events: null
|
events: null
|
||||||
};
|
};
|
||||||
|
@ -289,11 +299,14 @@ export default {
|
||||||
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
|
plugins:[dayGridPlugin, timeGridPlugin, interactionPlugin],
|
||||||
initialDate : '2017-02-01',
|
initialDate : '2017-02-01',
|
||||||
headerToolbar: {
|
headerToolbar: {
|
||||||
left: 'prev,next',
|
left: 'prev,next today',
|
||||||
center: 'title',
|
center: 'title',
|
||||||
right: 'dayGridMonth,timeGridWeek,timeGridDay'
|
right: 'dayGridMonth,timeGridWeek,timeGridDay'
|
||||||
},
|
},
|
||||||
editable: true
|
editable: true,
|
||||||
|
selectable:true,
|
||||||
|
selectMirror: true,
|
||||||
|
dayMaxEvents: true
|
||||||
});
|
});
|
||||||
const events = ref(null);
|
const events = ref(null);
|
||||||
const eventService = ref(new EventService());
|
const eventService = ref(new EventService());
|
||||||
|
|
Loading…
Reference in New Issue