BasicLayout.vue 906 Bytes
<template>
  <el-container>
    <el-header>
      <global-header />
    </el-header>
    <el-main class="content-container">
      <div class="condition">condition</div>
      <div class="content">
        <router-view />
      </div>
    </el-main>
  </el-container>
</template>

<script>
import GlobalHeader from './components/GlobalHeader'

export default {
  name: 'BasicLayout',
  components: { GlobalHeader }
}
</script>

<style lang="scss">
@import '~@/styles/variables.scss';

.content-container {
  padding: 0;
}
.content {
  margin: $headerHeight 165px 0;
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  height: 100vh;
  line-height: 160px;
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, 1);
  transition: all 0.3s linear;
}

.condition {
  width: 100%;
  position: fixed;
  top: $headerHeight;
  height: 60px;
  line-height: 60px;
  background: #f0d;
  text-align: center;
}
</style>