index.vue 752 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <div class="go-project">
  3. <n-layout has-sider position="absolute">
  4. <n-space vertical>
  5. <Sider />
  6. </n-space>
  7. <n-layout>
  8. <Header />
  9. <n-layout
  10. class="content-top"
  11. position="absolute"
  12. :native-scrollbar="false"
  13. >
  14. <n-layout-content>
  15. <router-view></router-view>
  16. </n-layout-content>
  17. </n-layout>
  18. </n-layout>
  19. </n-layout>
  20. </div>
  21. </template>
  22. <script setup lang="ts">
  23. import { Sider } from './layout/components/Sider'
  24. import { Header } from './layout/components/Header/index'
  25. </script>
  26. <style lang="scss" scoped>
  27. @include go(project) {
  28. .content-top {
  29. top: $--header-height;
  30. margin-top: 1px;
  31. }
  32. }
  33. </style>