Commit 6d83bb3e by xinla

微服务加载优化

1 parent 3a35be31
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<!-- <keep-alive :include="cachedViews"> <!-- <keep-alive :include="cachedViews">
</keep-alive> --> </keep-alive> -->
</transition> </transition>
<div v-loading="loading" class="height100"> <div v-loading="loading" class="height100 micro-app-wrap container">
<div id="micro-app" class="container" v-show="isActiveMicroApp"> <div id="micro-app" class="height100" v-show="isActiveMicroApp">
<!-- <div id="app" class="mask" style="position: absolute"> <!-- <div id="app" class="mask" style="position: absolute">
<i class="el-icon-loading cc"></i> <i class="el-icon-loading cc"></i>
</div> --> </div> -->
...@@ -81,12 +81,12 @@ export default { ...@@ -81,12 +81,12 @@ export default {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
flex: auto; flex: auto;
margin-top: 20px;
} }
.container { .container {
position: relative; position: relative;
max-height: calc(100% - 20px); max-height: 100%;
margin: 20px 0 0;
padding: 0 20px;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
...@@ -97,9 +97,13 @@ export default { ...@@ -97,9 +97,13 @@ export default {
} }
} }
.page { .page {
padding: 0 20px;
// background: #fff; // background: #fff;
// border-radius: var(--border-radius-big); // border-radius: var(--border-radius-big);
} }
.micro-app-wrap {
margin: 0 20px;
}
.fixed-header + .app-main { .fixed-header + .app-main {
padding-top: 50px; padding-top: 50px;
} }
...@@ -114,9 +118,6 @@ export default { ...@@ -114,9 +118,6 @@ export default {
padding-top: 84px; padding-top: 84px;
} }
} }
#micro-app {
}
</style> </style>
<style lang="scss"> <style lang="scss">
...@@ -126,4 +127,7 @@ export default { ...@@ -126,4 +127,7 @@ export default {
padding-right: 15px; padding-right: 15px;
} }
} }
#micro-app > div {
height: 100%;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!