Compare commits

...

2 Commits

Author SHA1 Message Date
yangws aaf03eb60d Merge pull request 'fix:样式问题;' (#190) from yangws into main
Reviewed-on: #190
2024-09-11 09:49:07 +08:00
yangws 08075746c0 fix:样式问题; 2024-09-11 09:48:27 +08:00
3 changed files with 6 additions and 5 deletions

View File

@ -4,6 +4,7 @@
class="el-menu-vertical-demo"
:default-active="activeIndex"
@select="handleSelect"
unique-opened
>
<template v-for="(item,index) in classList" :key="index">
<el-sub-menu :index="`${index}`">

View File

@ -1,5 +1,5 @@
<template>
<el-card style="width: 100%;height: 100%">
<el-card style="width: 100%;height: 100%;overflow: auto">
<!-- <template #header>-->
<!-- <div class="card-header" style="text-align: left">-->
<!-- <el-button type="primary" @click="addGroup">新建分组</el-button>-->

View File

@ -2,8 +2,8 @@
<div class="common-layout">
<el-container>
<el-aside style="width: 200px;margin-top: 20px">
<el-card style="width: 200px" class="el-card-demo" :style="{'min-height': (viewportHeight - 120) + 'px'}">
<div :style="{'max-height': (viewportHeight - 120) + 'px','overflow-y': 'auto'}">
<el-card style="width: 200px" class="el-card-demo" :style="{'min-height': (viewportHeight - 164) + 'px'}">
<div :style="{'max-height': (viewportHeight - 164) + 'px','overflow-y': 'auto'}">
<Aside :menuItems="menuItems" :classList="classList" @handleSelect="handleSelect"></Aside>
</div>
<!-- 隐藏操作按钮-->
@ -19,9 +19,9 @@
</template>
</el-card>
</el-aside>
<el-main :style="{'min-height': (viewportHeight - 160) + 'px'}">
<el-main :style="{'min-height': (viewportHeight - 204) + 'px'}">
<!-- <router-view :style="{'height': (viewportHeight - 120) + 'px','overflow-y': 'auto'}" :key="route.path"></router-view>-->
<div :style="{'height': (viewportHeight - 120) + 'px','overflow-y': 'auto'}">
<div :style="{'height': (viewportHeight - 164) + 'px','overflow-y': 'auto'}">
<!-- 班级概况-->
<ClassInfo v-if="currentIndex==0" :classId="classId"></ClassInfo>
<!-- 学生列表-->