index.vue 987 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <n-layout-header bordered class="go-header">
  3. <header class="go-header-box">
  4. <div>
  5. <n-space>
  6. <slot name="left"></slot>
  7. </n-space>
  8. </div>
  9. <div>
  10. <slot name="center"></slot>
  11. </div>
  12. <div>
  13. <n-space>
  14. <slot name="ri-left"> </slot>
  15. <lang-select></lang-select>
  16. <theme-color-select></theme-color-select>
  17. <Theme-select></Theme-select>
  18. <slot name="ri-right"> </slot>
  19. </n-space>
  20. </div>
  21. </header>
  22. </n-layout-header>
  23. </template>
  24. <script setup lang="ts">
  25. import { ThemeSelect } from '@/components/ThemeSelect'
  26. import { LangSelect } from '@/components/LangSelect'
  27. import { ThemeColorSelect } from '@/components/ThemeColorSelect'
  28. </script>
  29. <style lang="scss" scoped>
  30. @include go(header) {
  31. &-box {
  32. display: flex;
  33. justify-content: space-between;
  34. align-items: center;
  35. padding: 0 60px;
  36. height: $--header-height;
  37. }
  38. }
  39. </style>