V0.1.2.20250718

———————————————
1.路由重定向
2.Home页面头部完成
———————————————
This commit is contained in:
Childish-Ghost 2025-07-18 23:26:29 +08:00
parent 83ed803799
commit ad1dcacd08
3 changed files with 35 additions and 8 deletions

View File

@ -15,10 +15,12 @@ body{
}
/*菜单*/
/*菜单*//*重定高度*/
.el-menu--horizontal {
display: flex;
flex-wrap: nowrap;
max-height: 70px;
--el-menu-horizontal-height: 65%;
}
/* 使用 Flex 布局控制菜单 */
.el-menu-demo {
@ -33,8 +35,16 @@ body{
width: 10vw;
white-space: nowrap;
}
/*重定高度*/
.el-menu--horizontal {
--el-menu-horizontal-height: 65%;
max-height: 70px;
/*头像*/
.demo-type {
display: flex;
}
.demo-type > div {
flex: 1;
text-align: center;
}
.demo-type > div:not(:last-child) {
border-right: 1px solid var(--el-border-color);
}

View File

@ -1,6 +1,6 @@
<script setup lang="ts">
import "@/assets/ordinary/Home.css"
import { ref } from 'vue'
import {ref} from 'vue'
const activeIndex = ref('1')
const handleSelect = (key: string, keyPath: string[]) => {
@ -25,10 +25,16 @@ const handleSelect = (key: string, keyPath: string[]) => {
<el-menu-item index="3">期刊</el-menu-item>
<el-menu-item index="4">报纸</el-menu-item>
<!-- 弹性空间 -->
<div class="flex-grow" ></div>
<div class="flex-grow"></div>
<!-- 头像-->
<div style="margin: auto 0;">
<el-avatar
src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
/>
</div>
<el-menu-item index="5">读者登录</el-menu-item>
</el-menu>
<div class="h-6" />
<div class="h-6"/>
</div>
</header>
</template>

View File

@ -0,0 +1,11 @@
<script setup lang="ts">
</script>
<template>
</template>
<style scoped>
</style>