样式问题优化

This commit is contained in:
BianLzhaoMin 2025-04-15 09:34:35 +08:00
parent 33c6693601
commit dae8c6d2c1
4 changed files with 24 additions and 8 deletions

View File

@ -121,7 +121,7 @@ aside {
//main-container全局样式 //main-container全局样式
.app-container { .app-container {
height: calc(100vh - 84px); // height: calc(100vh - 84px);
padding: 20px; padding: 20px;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;

View File

@ -4,7 +4,10 @@
height: 100%; height: 100%;
transition: margin-left .28s; transition: margin-left .28s;
margin-left: $base-sidebar-width; margin-left: $base-sidebar-width;
position: relative; position: relative;
display: flex;
flex-direction: column;
overflow: hidden;
} }
.sidebarHide { .sidebarHide {

View File

@ -10,7 +10,7 @@
</template> </template>
<script> <script>
import iframeToggle from "./IframeToggle/index" import iframeToggle from './IframeToggle/index'
export default { export default {
name: 'AppMain', name: 'AppMain',
@ -21,18 +21,20 @@ export default {
}, },
key() { key() {
return this.$route.path return this.$route.path
} },
} },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.app-main { .app-main {
/* 50= navbar 50 */ /* 50= navbar 50 */
min-height: calc(100vh - 50px); // min-height: calc(100vh - 50px);
flex: 1;
width: 100%; width: 100%;
position: relative; position: relative;
overflow: hidden; overflow: auto;
// background-color: skyblue;
} }
.fixed-header + .app-main { .fixed-header + .app-main {
@ -41,8 +43,10 @@ export default {
.hasTagsView { .hasTagsView {
.app-main { .app-main {
flex: 1;
overflow: auto;
/* 84 = navbar + tags-view = 50 + 34 */ /* 84 = navbar + tags-view = 50 + 34 */
min-height: calc(100vh - 84px); // min-height: calc(100vh - 84px);
} }
.fixed-header + .app-main { .fixed-header + .app-main {

View File

@ -0,0 +1,9 @@
<template>
<div class="app-container"> 高支模分组管理 </div>
</template>
<script>
export default {}
</script>
<style></style>