Календарь начало
This commit is contained in:
1 parent
271db55de7
commit
067973c154
3 files changed
+57
-11
No files matched your search
BIN
Binary file not shown.
@@ -1,19 +1,62 @@
|
|||||||
<template>
|
<template>
|
||||||
<full-calendar :events="events" />
|
<full-calendar :events="events" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import FullCalendar from 'vue-fullcalendar';
|
import FullCalendar from "@fullcalendar/vue3";
|
||||||
export default {
|
|
||||||
|
export default {
|
||||||
name: 'Calendar',
|
name: 'Calendar',
|
||||||
props: ['events'],
|
props: ['events'],
|
||||||
components: {
|
components: {
|
||||||
FullCalendar
|
FullCalendar
|
||||||
}
|
},
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
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 {
|
.red {
|
||||||
background: rgb(235, 77, 77) !important;
|
background: rgb(235, 77, 77) !important;
|
||||||
color: whitesmoke !important;
|
color: whitesmoke !important;
|
||||||
@@ -41,4 +84,4 @@
|
|||||||
.event-item {
|
.event-item {
|
||||||
padding: 2px 0 2px 4px !important;
|
padding: 2px 0 2px 4px !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -86,6 +86,7 @@
|
|||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col class="pt-1 pr-0 pb-0 flex-col">
|
<v-col class="pt-1 pr-0 pb-0 flex-col">
|
||||||
|
<calendar/>
|
||||||
<!-- <v-locale-provider > -->
|
<!-- <v-locale-provider > -->
|
||||||
<!-- <v-date-picker
|
<!-- <v-date-picker
|
||||||
v-model="date1"
|
v-model="date1"
|
||||||
@@ -140,6 +141,7 @@
|
|||||||
import CarouselNumbers from '@/components/carousel-numbers.vue'
|
import CarouselNumbers from '@/components/carousel-numbers.vue'
|
||||||
import { axiosApiInstance } from '@/utils/axios-api'
|
import { axiosApiInstance } from '@/utils/axios-api'
|
||||||
import { VDatePicker } from 'vuetify/labs/VDatePicker'
|
import { VDatePicker } from 'vuetify/labs/VDatePicker'
|
||||||
|
import Calendar from '@/components/UI/calendar.vue'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -148,7 +150,8 @@
|
|||||||
NewsList,
|
NewsList,
|
||||||
CarouselList,
|
CarouselList,
|
||||||
CarouselNumbers,
|
CarouselNumbers,
|
||||||
VDatePicker
|
VDatePicker,
|
||||||
|
Calendar
|
||||||
},
|
},
|
||||||
|
|
||||||
setup(){
|
setup(){
|
||||||
|
|||||||
Reference in new issue
Block a user