WIP Изменила сайдбар приложения

This commit is contained in:
Daria Golova
2023-05-25 16:45:42 +03:00
parent 09df012d5e
commit 164a531a5a
10 changed files with 76 additions and 35 deletions

View File

@@ -325,7 +325,7 @@ export default {
<style lang="sass" scoped>
.wrapper-table
background-color: var(--default-white)
height: calc(100vh - 64px)
height: calc(100vh - 72px)
.table-container
overflow: auto
&::-webkit-scrollbar

View File

@@ -1,5 +1,5 @@
<template lang="pug">
.wrapper.flex.w-full.relative
.wrapper.flex.w-full.relative.rounded
clients-table(
:open-form="openForm",
:is-open-form="isOpenForm",
@@ -33,6 +33,4 @@ export default {
<style lang="sass" scoped>
.wrapper
overflow: auto
border-top-left-radius: 4px
border-top-right-radius: 4px
</style>

View File

@@ -1,16 +1,18 @@
<template lang="pug">
.calendar-container.flex
.w-full.flex.gap-x-2
calendar-open-sidebar(v-if="isOpen", :open-sidebar="openSidebar")
calendar-sidebar(v-else, :open-sidebar="openSidebar")
calendar-wrapper
</template>
<script>
import CalendarSidebar from "@/pages/newCalendar/components/CalendarSidebar";
import CalendarOpenSidebar from "@/pages/newCalendar/components/CalendarOpenSidebar";
import CalendarWrapper from "@/pages/newCalendar/components/CalendarWrapper";
export default {
name: "TheCalendar",
components: { CalendarSidebar, CalendarOpenSidebar },
components: { CalendarSidebar, CalendarOpenSidebar, CalendarWrapper },
data() {
return {
isOpen: false,
@@ -23,8 +25,3 @@ export default {
},
};
</script>
<style lang="sass" scoped>
.calendar-container
width: calc(100vw - 80px)
</style>

View File

@@ -0,0 +1,40 @@
<template lang="pug">
.calendar-header-wrapper.w-full.flex.items-center.justify-between.py-4.pl-4.pr-6
</template>
<script>
export default {
name: "CalendarHeader",
};
</script>
<style lang="sass" scoped>
.calendar-header-wrapper
background-color: var(--default-white)
height: 72px
border-radius: 4px
z-index: 10
.left-arrow
padding: 3px 4px 0 4px !important
transform: rotate(90deg)
.right-arrow
padding: 3px 4px 0 4px !important
transform: rotate(270deg)
.text
color: var(--font-dark-blue-color)
.today
opacity: 0.5
.bg-blue-grey-1
background: var(--bg-light-grey) !important
.q-btn--round
width: 32px !important
height: 32px !important
min-width: 32px !important
min-height: 32px !important
</style>

View File

@@ -0,0 +1,16 @@
<template lang="pug">
calendar-header.flex-1
</template>
<script>
import CalendarHeader from "@/pages/newCalendar/components/CalendarHeader";
export default {
name: "CalendarWrapper",
components: { CalendarHeader },
data() {
return {};
},
};
</script>
<style lang="sass" scoped></style>

View File

@@ -1,5 +1,5 @@
<template lang="pug">
.w-full.h-full
.w-full.h-full.flex.flex-col
.flex.w-full.gap-x-2.pb-2
medical-header(
v-model="currentMenuItem",

View File

@@ -1,5 +1,5 @@
<template lang="pug">
.base-info-wrapper.w-full.flex.gap-x-2
.base-info-wrapper.w-full.flex.gap-x-2.flex-1
medical-sidebar(v-model="currentMenuItem")
component(
v-if="currentMenuItem",
@@ -31,6 +31,6 @@ export default {
</script>
<style lang="sass" scoped>
.base-info-wrapper
height: 79.7%
max-height: calc(100% - 190px - 16px)
height: 80.4%
max-height: calc(100% - 190px - 8px)
</style>