Календарь начало
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>
|
||||
@@ -86,6 +86,7 @@
|
||||
|
||||
</v-col>
|
||||
<v-col class="pt-1 pr-0 pb-0 flex-col">
|
||||
<calendar/>
|
||||
<!-- <v-locale-provider > -->
|
||||
<!-- <v-date-picker
|
||||
v-model="date1"
|
||||
@@ -140,6 +141,7 @@
|
||||
import CarouselNumbers from '@/components/carousel-numbers.vue'
|
||||
import { axiosApiInstance } from '@/utils/axios-api'
|
||||
import { VDatePicker } from 'vuetify/labs/VDatePicker'
|
||||
import Calendar from '@/components/UI/calendar.vue'
|
||||
|
||||
|
||||
export default {
|
||||
@@ -148,7 +150,8 @@
|
||||
NewsList,
|
||||
CarouselList,
|
||||
CarouselNumbers,
|
||||
VDatePicker
|
||||
VDatePicker,
|
||||
Calendar
|
||||
},
|
||||
|
||||
setup(){
|
||||
|
||||
Reference in new issue
Block a user