Календарь начало
This commit is contained in:
1 parent
271db55de7
commit
067973c154
3 files changed
+62
-16
No files matched your search
@@ -1,20 +1,63 @@
|
||||
<template>
|
||||
<full-calendar :events="events" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import FullCalendar from 'vue-fullcalendar';
|
||||
export default {
|
||||
name: 'Calendar',
|
||||
<template>
|
||||
<full-calendar :events="events" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import FullCalendar from "@fullcalendar/vue3";
|
||||
|
||||
export default {
|
||||
name: 'Calendar',
|
||||
props: ['events'],
|
||||
components: {
|
||||
FullCalendar
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.red {
|
||||
},
|
||||
|
||||
setup() {
|
||||
|
||||
|
||||
const events = [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "All Day Event",
|
||||
"start": "2019-01-01"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "Long Event",
|
||||
"start": "2019-01-07",
|
||||
"end": "2019-01-10"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"title": "Repeating Event",
|
||||
"start": "2019-01-09T16:00:00"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"title": "Repeating Event",
|
||||
"start": "2019-01-16T16:00:00"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"title": "Conference",
|
||||
"start": "2019-01-11",
|
||||
"end": "2019-01-13"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"title": "Meeting",
|
||||
"start": "2019-01-12T10:30:00",
|
||||
"end": "2019-01-12T12:30:00"
|
||||
}
|
||||
]
|
||||
|
||||
return { events}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.red {
|
||||
background: rgb(235, 77, 77) !important;
|
||||
color: whitesmoke !important;
|
||||
}
|
||||
@@ -41,4 +84,4 @@
|
||||
.event-item {
|
||||
padding: 2px 0 2px 4px !important;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
Reference in new issue
Block a user