You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
1.7 KiB
87 lines
1.7 KiB
<template>
|
|
<el-container class="full-height">
|
|
<el-header class="header">Header</el-header>
|
|
<el-container>
|
|
<el-aside class="aside">
|
|
<div class="aside-content">
|
|
<div class="aside-item" @click="$router.push('/')">主页</div>
|
|
<div class="aside-item" @click="$router.push('/clubView')">博股俱乐部</div>
|
|
<div class="aside-item" @click="$router.push('/channelView')">频道</div>
|
|
<div class="aside-item" @click="$router.push('/bookView')">电子书</div>
|
|
<div class="aside-item" @click="$router.push('/liveView')">直播广场</div>
|
|
</div>
|
|
</el-aside>
|
|
<el-main class="main">
|
|
<RouterView />
|
|
</el-main>
|
|
</el-container>
|
|
</el-container>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ElContainer, ElHeader, ElAside, ElMain } from 'element-plus';
|
|
</script>
|
|
|
|
<style scoped>
|
|
.full-height {
|
|
height: 100%;
|
|
}
|
|
|
|
.header {
|
|
background-color: #e6f2ff;
|
|
text-align: center;
|
|
line-height: 60px;
|
|
font-size: 18px;
|
|
height: 60px !important;
|
|
}
|
|
|
|
.aside {
|
|
width: 200px;
|
|
background-color: #f0f0f0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.aside-content {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.aside-item {
|
|
padding: 15px;
|
|
margin: 5px 0;
|
|
background-color: #e0e0e0;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
color: #333;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.aside-item:hover {
|
|
background-color: #d0d0d0;
|
|
}
|
|
|
|
.aside-item.active {
|
|
background-color: #409eff;
|
|
color: white;
|
|
}
|
|
|
|
.main {
|
|
background-color: #f5f5f5;
|
|
padding: 20px;
|
|
text-align: center;
|
|
line-height: 40px;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
</style>
|