Merge branch 'ASTRA-102' into 'master'
[WIP] Добавил анимацию сайдбара See merge request andrusyakka/urban-couscous!400
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.w-full.flex.gap-x-2
|
.w-full.flex.gap-x-2
|
||||||
calendar-open-sidebar(v-if="isOpen", :open-sidebar="openSidebar")
|
calendar-open-sidebar(:class="{'close': !isOpen, 'active': isOpen}" :open-sidebar="openSidebar")
|
||||||
calendar-sidebar(v-else, :open-sidebar="openSidebar")
|
calendar-sidebar.-ml-2(v-if="!isOpen", :open-sidebar="openSidebar")
|
||||||
calendar-wrapper
|
calendar-wrapper
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -27,3 +27,17 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="sass" scoped>
|
||||||
|
.close
|
||||||
|
opacity: 0
|
||||||
|
width: 0px
|
||||||
|
height: 0
|
||||||
|
transition: opacity 0.2s, width 0.3s
|
||||||
|
|
||||||
|
.active
|
||||||
|
opacity: 1
|
||||||
|
width: 232px
|
||||||
|
height: 100%
|
||||||
|
transition: opacity 0.5s, width 0.3s
|
||||||
|
</style>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.sidebar.flex.flex-col.gap-y-1
|
.flex.flex-col.gap-y-1
|
||||||
|
.item.flex.flex-col
|
||||||
.form.flex.items-center.justify-end.py-4.pr-4.rounded-t
|
.form.flex.items-center.justify-end.py-4.pr-4.rounded-t
|
||||||
q-btn.rotate-180(
|
q-btn.rotate-180(
|
||||||
@click="openSidebar",
|
@click="openSidebar",
|
||||||
@@ -137,9 +138,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
.sidebar
|
|
||||||
width: 232px
|
|
||||||
|
|
||||||
.form
|
.form
|
||||||
background: var(--default-white)
|
background: var(--default-white)
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|||||||
Reference in New Issue
Block a user