fix:样式问题;

This commit is contained in:
yangws 2024-09-11 09:48:27 +08:00
parent 8ec93353bc
commit 08075746c0
3 changed files with 6 additions and 5 deletions

View File

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

View File

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

View File

@ -2,8 +2,8 @@
<div class="common-layout"> <div class="common-layout">
<el-container> <el-container>
<el-aside style="width: 200px;margin-top: 20px"> <el-aside style="width: 200px;margin-top: 20px">
<el-card style="width: 200px" class="el-card-demo" :style="{'min-height': (viewportHeight - 120) + 'px'}"> <el-card style="width: 200px" class="el-card-demo" :style="{'min-height': (viewportHeight - 164) + 'px'}">
<div :style="{'max-height': (viewportHeight - 120) + 'px','overflow-y': 'auto'}"> <div :style="{'max-height': (viewportHeight - 164) + 'px','overflow-y': 'auto'}">
<Aside :menuItems="menuItems" :classList="classList" @handleSelect="handleSelect"></Aside> <Aside :menuItems="menuItems" :classList="classList" @handleSelect="handleSelect"></Aside>
</div> </div>
<!-- 隐藏操作按钮--> <!-- 隐藏操作按钮-->
@ -19,9 +19,9 @@
</template> </template>
</el-card> </el-card>
</el-aside> </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>--> <!-- <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> <ClassInfo v-if="currentIndex==0" :classId="classId"></ClassInfo>
<!-- 学生列表--> <!-- 学生列表-->