layout.vue 806 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <a-layout class="a-layout" >
  3. <SiderBar />
  4. <a-layout >
  5. <Navbar />
  6. <span style="padding: 0 24px 24px;margin-top: 24px;overflow: hidden;overflow-y: scroll" >
  7. <RouterView></RouterView>
  8. </span>
  9. </a-layout>
  10. </a-layout>
  11. </template>
  12. <script lang="ts" setup >
  13. import Navbar from './navbar.vue'
  14. import SiderBar from './components/Sidebar/index.vue'
  15. </script>
  16. <style>
  17. .a-layout {
  18. /* width: 100vw; */
  19. height: 100vh;
  20. }
  21. #components-layout-demo-top-side-2 .logo {
  22. float: left;
  23. width: 120px;
  24. height: 31px;
  25. margin: 16px 24px 16px 0;
  26. background: rgba(255, 255, 255, 0.3);
  27. }
  28. .ant-row-rtl #components-layout-demo-top-side-2 .logo {
  29. float: right;
  30. margin: 16px 0 16px 24px;
  31. }
  32. .site-layout-background {
  33. background: #fff;
  34. }
  35. </style>