[WIP] Добавил форму создания записи на странице календаря

This commit is contained in:
megavrilinvv
2023-06-08 16:38:42 +03:00
parent ecb4e6f3e2
commit a4dce57eef
9 changed files with 141 additions and 7 deletions

View File

@@ -1,29 +1,40 @@
<template lang="pug">
.w-full.flex
calendar-sidebar(v-if="!isOpen", :open-sidebar="openSidebar")
calendar-open-sidebar(v-else, :open-sidebar="openSidebar")
calendar-sidebar(v-if="!isOpen", :open-sidebar="openSidebar", :create-form="createForm")
calendar-open-sidebar(v-else, :open-sidebar="openSidebar", :create-form="createForm")
calendar-wrapper.ml-2(:open-sidebar="isOpen")
record-creation-form(:is-show-form="isShowForm")
</template>
<script>
import CalendarSidebar from "@/pages/newCalendar/components/CalendarSidebar";
import CalendarOpenSidebar from "@/pages/newCalendar/components/CalendarOpenSidebar";
import CalendarWrapper from "@/pages/newCalendar/components/CalendarWrapper";
import RecordCreationForm from "@/pages/newCalendar/components/RecordCreationForm";
import * as moment from "moment/moment";
export default {
name: "TheCalendar",
components: { CalendarSidebar, CalendarOpenSidebar, CalendarWrapper },
components: {
CalendarSidebar,
CalendarOpenSidebar,
CalendarWrapper,
RecordCreationForm,
},
data() {
return {
isOpen: false,
currentDate: moment(),
isShowForm: false,
};
},
methods: {
openSidebar() {
this.isOpen = !this.isOpen;
},
createForm() {
this.isShowForm = true;
},
},
};
</script>