ViewContainer.vue 628 Bytes
<template>
  <div class="ViewContainer">
    <div class="ViewContainer-title">
      <slot name="title" />
    </div>
    <div class="ViewContainer-body">
      <slot name="content" />
    </div>
  </div>
</template>

<script type='text/ecmascript-6'>
export default {
  name: 'ViewContainer',
  props: {
  },
  data () {
    return {
    }
  },
  mounted () { },
  methods: {}
}
</script>

<style scoped lang='scss'>
.ViewContainer {
  width: 100vw;
  height: 100vh;
  background: #0a0909;
  &-title {
    // height: 48px;
    height: 5.85vh;
  }
  &-body {
    // height: calc(100% - 48px);
    height: 94.15vh;
  }
}
</style>