Календарь начало

This commit is contained in:
iriska-gri committed 2023-09-21 08:50:15 +03:00
1 parent 271db55de7
commit 067973c154
3 files changed
+48 -2

No files matched your search

BIN
View File
Binary file not shown.
+44 -1
View File
@@ -3,12 +3,55 @@
</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
},
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> </script>
+4 -1
View File
@@ -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(){