54 lines
1.3 KiB
Vue
Raw Normal View History

2021-12-16 20:08:05 +08:00
<template>
2021-12-18 16:36:43 +08:00
<n-layout-header bordered class="go-header">
2021-12-16 20:08:05 +08:00
<header class="go-header-box">
<div class="header-item left">
<n-space>
<slot name="left"></slot>
</n-space>
2021-12-16 20:08:05 +08:00
</div>
<div class="header-item center">
2022-01-05 20:52:49 +08:00
<slot name="center"></slot>
</div>
<div class="header-item right">
<n-space>
2021-12-18 16:36:43 +08:00
<slot name="ri-left"> </slot>
<lang-select></lang-select>
<theme-color-select></theme-color-select>
2022-03-17 20:18:46 +08:00
<Theme-select></Theme-select>
2021-12-18 16:36:43 +08:00
<slot name="ri-right"> </slot>
</n-space>
2021-12-16 20:08:05 +08:00
</div>
</header>
2021-12-18 16:36:43 +08:00
</n-layout-header>
2021-12-16 20:08:05 +08:00
</template>
<script setup lang="ts">
import { ThemeSelect } from '@/components/ThemeSelect'
import { LangSelect } from '@/components/LangSelect'
2022-03-12 18:46:51 +08:00
import { ThemeColorSelect } from '@/components/ThemeColorSelect'
2021-12-16 20:08:05 +08:00
</script>
<style lang="scss" scoped>
@include go(header) {
&-box {
display: grid;
grid-template-columns: repeat(3, 33.33%);
.header-item {
display: flex;
align-items: center;
&.left {
justify-content: start;
}
&.center {
justify-content: center;
}
&.right {
justify-content: end;
}
}
2021-12-16 20:08:05 +08:00
height: $--header-height;
padding: 0 60px;
2021-12-16 20:08:05 +08:00
}
}
</style>