高度调整

This commit is contained in:
zhujiyan
2024-08-27 16:38:26 +08:00
parent 93fe619465
commit 2eb346e4c8
5 changed files with 12 additions and 11 deletions

View File

@@ -2,7 +2,7 @@
<Maximize v-show="maximize" /> <Maximize v-show="maximize" />
<Tabs v-if="tabs && showMenuFlag" /> <Tabs v-if="tabs && showMenuFlag" />
<el-main> <el-main>
<router-view v-slot="{ Component, route }" style="height: calc(100vh - 157px);overflow-y:auto; overflow-x:hidden;"> <router-view v-slot="{ Component, route }" style="height: calc(100vh - 157px);overflow-y:auto; overflow-x:hidden;" :style='{height:showMenuFlag?"calc(100vh - 157px)":" calc(100vh - 120px)"}'>
<transition appear name="fade-transform" mode="out-in"> <transition appear name="fade-transform" mode="out-in">
<keep-alive :include="keepAliveName"> <keep-alive :include="keepAliveName">
<component <component

View File

@@ -1,8 +1,9 @@
<template> <template>
<div class="home"> <div class="homeView" style=" height: calc(100vh - 120px) !important;">
<model v-if="!authStore.showMenuFlag"></model> <model v-if="!authStore.showMenuFlag"></model>
<dashboard v-if="authStore.showMenuFlag"></dashboard> <dashboard v-if="authStore.showMenuFlag"></dashboard>
</div> </div>
<!-- <div class="main"> <!-- <div class="main">
<div class="main_container"> <div class="main_container">
<div class="mode" v-for="(item, index) in modeList" :key="index"> <div class="mode" v-for="(item, index) in modeList" :key="index">
@@ -79,8 +80,8 @@ onMounted(() => {
}); });
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.home{ .homeView{
width: 100%; width: 100%;
height: 100%; height: calc(100vh - 120px);
} }
</style> </style>

View File

@@ -417,7 +417,7 @@ onMounted(() => {
<style lang="scss" scoped> <style lang="scss" scoped>
.static { .static {
width: 100%; width: 100%;
height: calc(100vh - 120px); height: calc(100vh - 165px);
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
background-color: #eee; background-color: #eee;

View File

@@ -5,8 +5,8 @@
class="main_container" class="main_container"
:style="{ :style="{
height: authStore.showMenuFlag height: authStore.showMenuFlag
? 'calc(100vh - 120px)' ? 'calc(100vh - 165px)'
: 'calc(100vh - 80px)', : 'calc(100vh - 125px)',
}" }"
> >
<div class="mode" v-for="(item, index) in modeList" :key="index"> <div class="mode" v-for="(item, index) in modeList" :key="index">
@@ -82,7 +82,7 @@ onMounted(() => {
<style lang="scss" scoped> <style lang="scss" scoped>
.main_container { .main_container {
width: 100%; width: 100%;
height: calc(100vh - 120px); height: calc(100vh - 165px);
// overflow-y: auto; // overflow-y: auto;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@@ -94,7 +94,7 @@ onMounted(() => {
// height: 100%; // height: 100%;
flex: none; flex: none;
width: 32.5%; width: 32.5%;
height: 100%; height: 100% !important;
border: 1px solid #eee; border: 1px solid #eee;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -102,7 +102,7 @@ onMounted(() => {
// justify-content: space-around; // justify-content: space-around;
background: #fff; background: #fff;
border-radius: 6px; border-radius: 6px;
margin-bottom: 20px; // margin-bottom: 20px;
background: linear-gradient( background: linear-gradient(
180deg, 180deg,
rgba(0, 153, 255, 1) 0%, rgba(0, 153, 255, 1) 0%,

View File

@@ -447,7 +447,7 @@ onMounted(() => {
<style lang="scss" scoped> <style lang="scss" scoped>
.planList { .planList {
width: 100%; width: 100%;
height: calc(100vh - 120px); height: calc(100vh - 165px);
} }
::v-deep .el-select { ::v-deep .el-select {
width: 150px !important; width: 150px !important;