layout.vue 522 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div class="Layout">
  3. <main class="Layout__main">
  4. <article class="Layout__content">
  5. <router-view />
  6. </article>
  7. </main>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'layout',
  13. }
  14. </script>
  15. <style lang="scss" scoped>
  16. .Layout {
  17. display: flex;
  18. width: 100vw;
  19. height: 100vh;
  20. overflow: hidden;
  21. background: #fff;
  22. }
  23. .Layout__main {
  24. display: flex;
  25. flex-direction: column;
  26. flex: 1;
  27. overflow: hidden;
  28. }
  29. .Layout__content {
  30. flex: 1;
  31. overflow: hidden;
  32. }
  33. </style>