index.vue 654 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <div class="l-flex c-app">
  3. <sidebar class="l-flex__none" />
  4. <div class="l-flex__auto l-flex--col c-app__content">
  5. <navbar class="l-flex__none" />
  6. <app-main class="l-flex__fill" />
  7. </div>
  8. </div>
  9. </template>
  10. <script>
  11. import Sidebar from './components/Sidebar'
  12. import Navbar from './components/Navbar'
  13. import AppMain from './components/AppMain'
  14. export default {
  15. name: 'Layout',
  16. components: {
  17. Sidebar,
  18. Navbar,
  19. AppMain
  20. }
  21. }
  22. </script>
  23. <style lang="scss" scoped>
  24. .c-app {
  25. position: relative;
  26. height: 100%;
  27. width: 100%;
  28. &__content {
  29. position: relative;
  30. overflow: hidden;
  31. }
  32. }
  33. </style>