panel.vue 777 Bytes
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
<template>
<div id="wrapper" class="d-flex" :class="{ 'toggled': !sidebarShow }">
<sidebar />
<div id="page-content-wrapper">
<main-header />
<div class="container-fluid">
<transition name="fade">
<router-view />
</transition>
</div>
</div>
</div>
</template>

<script>
import Sidebar from '../containers/Sidebar'
import MainHeader from '../containers/MainHeader'
import { mapGetters } from 'vuex'
export default {
name: 'PanelLayout',
components: {
Sidebar, MainHeader
},
computed: mapGetters({
sidebarShow: 'ui/sidebarShow'
})
}
</script>

<style scoped>
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.3s;
}
.fade-enter,
.fade-leave-to {
opacity: 0;
}
</style>