<template>
  <div class="layout">
    <y-header />
    <keep-alive>
      <router-view class="main" />
    </keep-alive>
    <y-footer />
  </div>
</template>
<script lang="ts">
import { Component, Vue, Watch } from "vue-property-decorator";
import yHeader from "./components/header.vue";
import yFooter from "./components/footer.vue";
@Component({
  components: {
    yHeader,
    yFooter
  }
})
export default class extends Vue {}
</script>
<style lang="scss" scoped>
.layout {
  height: 100%;
  .main {
    // min-height: calc(100% - 250px);
    overflow: hidden;
  }
}
</style>
