WIP Изменила сайдбар приложения
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.flex.flex-col.w-full.h-full.gap-y-2
|
.flex.flex-col.w-full.h-full.gap-y-2.pb-2
|
||||||
the-header(
|
the-header(
|
||||||
:url="url",
|
:url="url",
|
||||||
:is-open-form="isOpenForm",
|
:is-open-form="isOpenForm",
|
||||||
@@ -61,5 +61,5 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
.page-wrapper
|
.page-wrapper
|
||||||
height: calc(100vh - 56px - 8px)
|
height: calc(100vh - 56px - 16px)
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.sidebar.flex.flex-col.justify-between.flex-auto.py-6.box-border(:style="bordersStyle")
|
.sidebar.flex.flex-col.justify-between.flex-auto.pt-4.px-2.pb-7.rounded
|
||||||
.flex.flex-col.gap-y-6
|
.flex.flex-col.gap-y-4
|
||||||
base-button-sidebar(
|
base-button-sidebar(
|
||||||
v-for="button in pageSettings.filter((el) => el.id !== 'settings')",
|
v-for="button in pageSettings.filter((el) => el.id !== 'settings')",
|
||||||
:path="button.path",
|
:path="button.path",
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
:active="button.active",
|
:active="button.active",
|
||||||
:change-style-page="changeStylePage"
|
:change-style-page="changeStylePage"
|
||||||
)
|
)
|
||||||
q-icon(:name="`app:${button.icon}`", size="36px")
|
q-icon(:name="`app:${button.icon}`", size="25px")
|
||||||
.flex.text-4xl.flex-col.gap-y-6
|
.flex.text-4xl.flex-col.gap-y-6
|
||||||
base-button-sidebar(
|
base-button-sidebar(
|
||||||
:path="getSettings.path",
|
:path="getSettings.path",
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
:active="getSettings.active",
|
:active="getSettings.active",
|
||||||
:change-style-page="changeStylePage"
|
:change-style-page="changeStylePage"
|
||||||
)
|
)
|
||||||
q-icon(:name="`app:${getSettings.icon}`", size="36px")
|
q-icon(:name="`app:${getSettings.icon}`", size="25px")
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -63,12 +63,6 @@ export default {
|
|||||||
getSettings() {
|
getSettings() {
|
||||||
return this.pageSettings.find((el) => el.id === "settings");
|
return this.pageSettings.find((el) => el.id === "settings");
|
||||||
},
|
},
|
||||||
bordersStyle() {
|
|
||||||
return {
|
|
||||||
"border-top-right-radius": this.currentPageBorder ? "0px" : "4px",
|
|
||||||
//"border-bottom-right-radius": this.currentPageBorder ? "0px" : "4px",
|
|
||||||
};
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let href = window.location.href.slice(22);
|
let href = window.location.href.slice(22);
|
||||||
@@ -93,7 +87,7 @@ export default {
|
|||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
.sidebar
|
.sidebar
|
||||||
max-width: 80px
|
max-width: 64px
|
||||||
min-width: 80px
|
min-width: 64px
|
||||||
background-color: var(--default-white)
|
background-color: var(--default-white)
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
q-btn(
|
q-btn(
|
||||||
padding="14px 14px 14px 10px",
|
style="width: 48px; height: 48px"
|
||||||
style="width: 76px"
|
|
||||||
:class="checkActive",
|
:class="checkActive",
|
||||||
:href="path",
|
:href="path",
|
||||||
:id="id",
|
:id="id",
|
||||||
@click="(e) => changeStylePage(e)"
|
@click="(e) => changeStylePage(e)"
|
||||||
|
rounded
|
||||||
)
|
)
|
||||||
slot
|
slot
|
||||||
</template>
|
</template>
|
||||||
@@ -35,14 +35,10 @@ export default {
|
|||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
.button
|
.button
|
||||||
background-color: trnsparent
|
background-color: trnsparent
|
||||||
border-radius: 0 4px 4px 0
|
|
||||||
border-left: 4px solid transparent
|
|
||||||
.active
|
.active
|
||||||
background-color: var(--btn-blue-color-1)
|
background-color: var(--btn-blue-color-1)
|
||||||
border-left-color: var(--btn-blue-color)
|
|
||||||
color: var(--btn-blue-color)
|
color: var(--btn-blue-color)
|
||||||
.button:hover
|
.button:hover
|
||||||
background-color: var(--btn-blue-color-1)
|
background-color: var(--btn-blue-color-1)
|
||||||
border-left-color: var(--btn-blue-color)
|
|
||||||
color: var(--btn-blue-color)
|
color: var(--btn-blue-color)
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ export default {
|
|||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
.wrapper-table
|
.wrapper-table
|
||||||
background-color: var(--default-white)
|
background-color: var(--default-white)
|
||||||
height: calc(100vh - 64px)
|
height: calc(100vh - 72px)
|
||||||
.table-container
|
.table-container
|
||||||
overflow: auto
|
overflow: auto
|
||||||
&::-webkit-scrollbar
|
&::-webkit-scrollbar
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.wrapper.flex.w-full.relative
|
.wrapper.flex.w-full.relative.rounded
|
||||||
clients-table(
|
clients-table(
|
||||||
:open-form="openForm",
|
:open-form="openForm",
|
||||||
:is-open-form="isOpenForm",
|
:is-open-form="isOpenForm",
|
||||||
@@ -33,6 +33,4 @@ export default {
|
|||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
.wrapper
|
.wrapper
|
||||||
overflow: auto
|
overflow: auto
|
||||||
border-top-left-radius: 4px
|
|
||||||
border-top-right-radius: 4px
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,16 +1,18 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.calendar-container.flex
|
.w-full.flex.gap-x-2
|
||||||
calendar-open-sidebar(v-if="isOpen", :open-sidebar="openSidebar")
|
calendar-open-sidebar(v-if="isOpen", :open-sidebar="openSidebar")
|
||||||
calendar-sidebar(v-else, :open-sidebar="openSidebar")
|
calendar-sidebar(v-else, :open-sidebar="openSidebar")
|
||||||
|
calendar-wrapper
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import CalendarSidebar from "@/pages/newCalendar/components/CalendarSidebar";
|
import CalendarSidebar from "@/pages/newCalendar/components/CalendarSidebar";
|
||||||
import CalendarOpenSidebar from "@/pages/newCalendar/components/CalendarOpenSidebar";
|
import CalendarOpenSidebar from "@/pages/newCalendar/components/CalendarOpenSidebar";
|
||||||
|
import CalendarWrapper from "@/pages/newCalendar/components/CalendarWrapper";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TheCalendar",
|
name: "TheCalendar",
|
||||||
components: { CalendarSidebar, CalendarOpenSidebar },
|
components: { CalendarSidebar, CalendarOpenSidebar, CalendarWrapper },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
isOpen: false,
|
isOpen: false,
|
||||||
@@ -23,8 +25,3 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="sass" scoped>
|
|
||||||
.calendar-container
|
|
||||||
width: calc(100vw - 80px)
|
|
||||||
</style>
|
|
||||||
|
|||||||
40
src/pages/newCalendar/components/CalendarHeader.vue
Normal file
40
src/pages/newCalendar/components/CalendarHeader.vue
Normal 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>
|
||||||
16
src/pages/newCalendar/components/CalendarWrapper.vue
Normal file
16
src/pages/newCalendar/components/CalendarWrapper.vue
Normal 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>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.w-full.h-full
|
.w-full.h-full.flex.flex-col
|
||||||
.flex.w-full.gap-x-2.pb-2
|
.flex.w-full.gap-x-2.pb-2
|
||||||
medical-header(
|
medical-header(
|
||||||
v-model="currentMenuItem",
|
v-model="currentMenuItem",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template lang="pug">
|
<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")
|
medical-sidebar(v-model="currentMenuItem")
|
||||||
component(
|
component(
|
||||||
v-if="currentMenuItem",
|
v-if="currentMenuItem",
|
||||||
@@ -31,6 +31,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
.base-info-wrapper
|
.base-info-wrapper
|
||||||
height: 79.7%
|
height: 80.4%
|
||||||
max-height: calc(100% - 190px - 16px)
|
max-height: calc(100% - 190px - 8px)
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user