refactor: 样式优化

This commit is contained in:
meilin.huang
2025-08-04 21:02:27 +08:00
parent 7d344c71e1
commit 614a144f60
38 changed files with 274 additions and 313 deletions

View File

@@ -1,26 +1,11 @@
<template>
<el-header class="layout-header" :height="setHeaderHeight">
<el-header class="layout-header">
<NavBarsIndex />
</el-header>
</template>
<script lang="ts">
import { computed } from 'vue';
import NavBarsIndex from '@/layout/navBars/index.vue';
import { useThemeConfig } from '@/store/themeConfig';
export default {
name: 'layoutHeader',
components: { NavBarsIndex },
setup() {
// 设置 header 的高度
const setHeaderHeight = computed(() => {
let { isTagsview, layout } = useThemeConfig().themeConfig;
if (isTagsview && layout !== 'classic') return '84px';
else return '50px';
});
return {
setHeaderHeight,
};
},
};
<script setup lang="ts" name="layoutHeader">
import { defineAsyncComponent } from 'vue';
const NavBarsIndex = defineAsyncComponent(() => import('@/layout/navBars/index.vue'));
</script>