fix calendar title

This commit is contained in:
jxxghp
2023-07-01 07:17:23 +08:00
parent 5d96aa57b9
commit 80ea36e17d
+7 -3
View File
@@ -27,6 +27,11 @@ const calendarOptions = {
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>