Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

51 строка
1.4 KiB

  1. <script>
  2. import FooterComponents from "@/components/footer.vue"
  3. import Navbar from "@/components/navbar.vue"
  4. import MenuComponents from "@/components/customSidebar.vue"
  5. export default {
  6. name: "VERTICAL",
  7. components: {
  8. Navbar, FooterComponents, MenuComponents
  9. },
  10. methods: {
  11. handleOutsideClick(event) {
  12. if (
  13. this.$store.state.isMobileSidebarActive &&
  14. !this.$el.contains(event.target)
  15. ) {
  16. this.$store.commit('toggleMobileSidebar');
  17. }
  18. },
  19. },
  20. computed: {
  21. isFixedWidth() {
  22. return this.$store.getters.isFixedWidth;
  23. },
  24. },
  25. }
  26. </script>
  27. <template>
  28. <div class="pc-sidebar" @click="handleOutsideClick"
  29. :class="{ 'pc-sidebar-hide': $store.state.isSidebarHidden, 'mob-sidebar-active': $store.state.isMobileSidebarActive }">
  30. <MenuComponents></MenuComponents>
  31. <div v-if="$store.state.isMobileSidebarActive" class="pc-menu-overlay"></div>
  32. </div>
  33. <div class="pc-header">
  34. <Navbar />
  35. </div>
  36. <div class="pc-container">
  37. <div class="pc-content" :class="{ 'container': isFixedWidth }">
  38. <!-- Start Content-->
  39. <div>
  40. <slot />
  41. </div>
  42. </div>
  43. </div>
  44. <div class="pc-footer">
  45. <FooterComponents />
  46. </div>
  47. </template>