<template>
  <div class="main">
    <yh-navigation />
    <div class="content">
      <div class="common-bg">
        <router-view />
      </div>
    </div>
  </div>
</template>

<script>
import yhNavigation from './components/common/navigation';

const newVar = {
  name: 'mainBox',
  components: {
    yhNavigation
  },
  data() {
    return {
      loading: false
    }
  }
}
export default newVar
</script>

<style lang="scss" scoped>
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.content {
  width: 1200px;
  padding: 8px 0;
  box-sizing: border-box;
  .common-bg {
    height: calc(100vh - 76px);
    & > div {
      height: 100%;
      padding: 20px;
      background-color: #fff;
      overflow-y: auto;
    }
  }
}
</style>
