mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
56 lines
1.3 KiB
Vue
56 lines
1.3 KiB
Vue
<template>
|
|
<n-layout-header bordered class="go-header">
|
|
<header class="go-header-box">
|
|
<div class="header-item left">
|
|
<n-space>
|
|
<slot name="left"></slot>
|
|
</n-space>
|
|
</div>
|
|
<div class="header-item center">
|
|
<slot name="center"></slot>
|
|
</div>
|
|
<div class="header-item right">
|
|
<n-space>
|
|
<slot name="ri-left"> </slot>
|
|
<go-lang-select></go-lang-select>
|
|
<theme-color-select></theme-color-select>
|
|
<go-theme-select></go-theme-select>
|
|
<slot name="ri-right"> </slot>
|
|
</n-space>
|
|
</div>
|
|
</header>
|
|
</n-layout-header>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { GoThemeSelect } from '@/components/GoThemeSelect'
|
|
import { GoLangSelect } from '@/components/GoLangSelect'
|
|
import { ThemeColorSelect } from '@/components/Pages/ThemeColorSelect'
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
$min-width: 520px;
|
|
@include go(header) {
|
|
&-box {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 33.33%);
|
|
.header-item {
|
|
display: flex;
|
|
align-items: center;
|
|
min-width: $min-width;
|
|
&.left {
|
|
justify-content: start;
|
|
}
|
|
&.center {
|
|
justify-content: center;
|
|
}
|
|
&.right {
|
|
justify-content: end;
|
|
}
|
|
}
|
|
height: $--header-height;
|
|
padding: 0 60px;
|
|
}
|
|
}
|
|
</style>
|