BoxTitle.vue 924 Bytes
<!--
 * @Description: 
 * @Author: huyue
 * @Date: 2023-07-06 11:46:13
 * @LastEditors: huyue
 * @LastEditTime: 2023-07-07 18:01:41
-->
<template>
  <div class="main-box">
    <div class="trapezoid"> <div class="text-box">{{title}}</div></div>
  </div>
</template>

<script>
export default {
  name: 'BoxTitle',

  props: {
    title: {
      type: String,
      default: '标题'
    }
  },

  data() {
    return {}
  },

  mounted() {},

  methods: {}
}
</script>

<style lang="scss" scoped>
.main-box {
  position: relative;
  background-image: url('../assets/images/title-bg.png');
  background-repeat: no-repeat;
  background-size: 9.04vw 3.33vh;
}
.trapezoid {
  height: 3.33vh;
  .text-box {
      // width: 126px;
      height: 3.33vh;
      font-family: PingFangSC-Medium;
      font-weight: 500;
      font-size: 14px;
      color: #FFFFFF;
      line-height: 3.33vh;
      margin-left: 1.67vw;
    }
}

</style>