[WIP] Добавил форму создания записи на странице календаря
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user