fix calendar title

This commit is contained in:
jxxghp
2023-07-01 07:17:23 +08:00
parent 5d96aa57b9
commit 80ea36e17d
+15 -11
View File
@@ -16,17 +16,22 @@ const calendarOptions = {
list: '列表' list: '列表'
}, },
plugins: [ plugins: [
dayGridPlugin, dayGridPlugin,
timeGridPlugin, timeGridPlugin,
interactionPlugin // needed for dateClick interactionPlugin // needed for dateClick
], ],
initialView: 'dayGridMonth', initialView: 'dayGridMonth',
weekends: false, weekends: false,
headerToolbar: { headerToolbar: {
left: 'prev,next', left: 'prev,next',
center: 'title', center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay' right: 'dayGridMonth,timeGridWeek,timeGridDay'
}, },
views: {
week: {
titleFormat: { day: 'numeric' }
}
},
events: [ events: [
{ title: 'Meeting', start: new Date() } { title: 'Meeting', start: new Date() }
], ],
@@ -34,7 +39,7 @@ const calendarOptions = {
</script> </script>
<template> <template>
<FullCalendar :options='calendarOptions' locale="zh-cn"/> <FullCalendar :options='calendarOptions' locale="zh-cn" />
</template> </template>
<style lang="scss"> <style lang="scss">
@@ -203,7 +208,7 @@ const calendarOptions = {
padding-inline: 0.25rem; padding-inline: 0.25rem;
} }
.v-application .fc tbody[role="rowgroup"] > tr > td[role="presentation"] { .v-application .fc tbody[role="rowgroup"]>tr>td[role="presentation"] {
border: none; border: none;
} }
@@ -300,5 +305,4 @@ const calendarOptions = {
.v-layout .v-card[data-v-85990893] { .v-layout .v-card[data-v-85990893] {
overflow: visible; overflow: visible;
} }
</style> </style>