Поправила баг в документах

This commit is contained in:
Daria Golova
2023-09-19 17:05:29 +03:00
parent 48e2571c77
commit 7b2e07f0d2
7 changed files with 34 additions and 11 deletions

View File

@@ -2,7 +2,7 @@
.calendar-column-wrapper.flex.flex-col
.header.flex.flex-col.items-center.justify-center.top-0.pt-3.pb-10px
span.font-bold.text-base.color-black {{ date?.format("D MMMM")}}
span.text-smm.color-grey {{ transformDayName(date?.format("dddd"))}}
span.text-smm.color-grey {{ capitalizeFirstChar(date?.format("dddd"))}}
.body.h-full.px-1.py-1
calendar-record-card(
v-for="record in filteredRecords",
@@ -19,6 +19,7 @@
<script>
import * as moment from "moment/moment";
import { columnMixin } from "@/pages/newCalendar/mixins/columnMixin.js";
import { capitalizeFirstChar } from "@/pages/newCalendar/utils/calendarFunctions.js";
export default {
name: "CalendarColumn",
mixins: [columnMixin],
@@ -26,6 +27,11 @@ export default {
date: Object,
expandedDisplayType: Boolean,
},
data() {
return {
capitalizeFirstChar: capitalizeFirstChar,
};
},
computed: {
filteredRecords() {
return this.events.filter(
@@ -35,11 +41,6 @@ export default {
);
},
},
methods: {
transformDayName(name) {
return name[0]?.toUpperCase() + name?.slice(1);
},
},
};
</script>