WIP Поправила меню и формы

This commit is contained in:
Daria Golova
2023-01-24 16:45:13 +03:00
parent 59a1f884ab
commit 4aac8a3f35
7 changed files with 39 additions and 70 deletions

View File

@@ -1,7 +1,5 @@
<template lang="pug">
.flex.flex-col.gap-y-6.pt-6.pb-7.px-8.event-form.fixed.right-6.bottom-6(
v-click-outside="closeForm"
)
.flex.flex-col.gap-y-6.pt-6.pb-7.px-8.event-form.fixed.right-6.bottom-6
.flex.justify-between
span.title.text-xl.font-bold Замена смен
.flex.pt-2
@@ -48,12 +46,21 @@ import BaseInput from "@/components/base/BaseInput.vue";
export default {
name: "FormChangeShift",
components: { BaseSelect, BaseInput },
props: { closeForm: Function, timesShift: Object },
emits: ["update:model-value"],
props: {
timesShift: Object,
modelValue: Boolean,
},
data() {
return {
currentEmployee: { label: "", id: null },
};
},
methods: {
closeForm() {
this.$emit("update:model-value", false);
},
},
};
</script>

View File

@@ -1,12 +1,6 @@
<template lang="pug">
.flex.flex-col.gap-y-5
.flex.justify-center.pl-8.pr-20.font-bold.text-xl Планировщик смен
transition(name="form")
form-change-shift(
v-if="showForm",
:close-form="closeForm",
:times-shift="timesShift"
)
.flex
.calendar-header-wrapper.flex.items-center.justify-between.py-3.pl-5.pr-6
.flex
@@ -45,8 +39,12 @@
color="primary",
no-caps,
padding="8px 24px",
@click="openForm",
)
q-menu(v-model="showForm")
form-change-shift(
v-model="showForm",
:times-shift="timesShift"
)
</template>
<script>
@@ -87,9 +85,6 @@ export default {
openForm() {
this.showForm = true;
},
closeForm() {
this.showForm = false;
},
previousHandler() {
this.$emit("switch-previous-month");
},
@@ -126,25 +121,6 @@ export default {
.text
color: var(--font-dark-blue-color)
.form-enter-from
opacity: 0
transform: translateY(300px)
pointer-events: none
.form-enter-active
transition: 0.5s ease
.form-leave-to
opacity: 0
transform: translateY(300px)
pointer-events: none
.form-leave-active
transition: 0.5s ease
.form-move
transition: 0.5s ease
.secondary
background-color: var(--btn-blue-sec-color)
border: 1px solid var(--btn-blue-sec-color)