<template>
  <div class="containerBox">
    <div class="title">
      <div class="titleZn">{{ title }}</div>
      <div>
        <slot></slot>
      </div>
    </div>

  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  props: {
    title: {
      type: String,
      default: `区域排行`,
    },

  },
  mounted() {
  },
  methods: {
    getEchart() {
    },
  },
  beforeDestroy() {
  },
}
</script>

<style lang="less" scoped>
.containerBox {
  .title {
    height: 40px;
    background-image: url('~@/assets/img/item Title.png');
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .titleZn {
      height: 30px;
      font-family: YouSheBiaoTiHei, sans-serif;
      font-size: 20px;
      background: linear-gradient(0deg, rgba(27, 146, 255, 1) 0%, rgba(255, 255, 255, 1) 50%);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      line-height: 30px;
      text-align: left;
      text-indent: 44px;
    }
  }

  .line {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
    margin-top: 2px;
    position: relative;

    &::before,
    &::after {
      background-color: #fff;
      height: 1px;
      width: 4px;
      right: 0;
      top: 0;
      position: absolute;
      content: ' ';
      display: block;
    }

    &::before {
      left: 0;
    }
  }
}
</style>
