You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
751 B

5 years ago
5 years ago
  1. <template>
  2. <div class="app-wrapper" :class="{hideSidebar:!sidebar.opened}">
  3. <sidebar class="sidebar-container"></sidebar>
  4. <div class="main-container">
  5. <navbar></navbar>
  6. <tags-view></tags-view>
  7. <app-main></app-main>
  8. </div>
  9. </div>
  10. </template>
  11. <script>
  12. import { Navbar, Sidebar, AppMain, TagsView } from './components'
  13. export default {
  14. name: 'layout',
  15. components: {
  16. Navbar,
  17. Sidebar,
  18. AppMain,
  19. TagsView
  20. },
  21. computed: {
  22. sidebar() {
  23. return this.$store.state.app.sidebar
  24. }
  25. }
  26. }
  27. </script>
  28. <style rel="stylesheet/scss" lang="scss" scoped>
  29. @import "src/styles/mixin.scss";
  30. .app-wrapper {
  31. @include clearfix;
  32. position: relative;
  33. height: 100%;
  34. width: 100%;
  35. }
  36. </style>