ViewContainer.vue 1.16 KB
<!--
 * @Description: 内容
 * @Author: huyue
 * @Date: 2023-07-04 16:12:38
 * @LastEditors: huyue
 * @LastEditTime: 2023-07-05 10:40:02
-->
<template>
  <div class="ViewContainer">
    <div class="ViewContainer-title">
      <slot name="title" />
    </div>
    <div class="title-line"></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: linear-gradient(90deg, #0A214A 0%, #061422 50%, #0A214A 100%);
    // background-image: url('../assets/images/bg-title.jpg');
    // background-repeat: no-repeat;
    // background-size:cover;
  }
  &-body {
    height: calc(93.9vh - 2px);
  }
  .title-line {
    width: 100%;
    height: 2px;
    background-image: linear-gradient(90deg, #27B0FF 0%, #4792ff00 34%, #5784ff00 66%, #6379FF 100%);
  }
}
</style>