ViewContainer.vue 868 Bytes
<!--
 * @Description: 
 * @Author: huyue
 * @Date: 2023-07-04 16:12:38
 * @LastEditors: huyue
 * @LastEditTime: 2023-07-04 16:12:44
-->
<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;
  &-title {
    height: 6.1vh;
    width:100%;
    background-image: url('../assets/images/bg-title.jpg');
    background-repeat: no-repeat;
    background-size:cover;
  }
  &-body {
    height: 93.9vh;
  }
}
</style>