<template>
      <div class="box1" 
        :style="{width: width,height, background: `url(${require('@/assets/' + img + '.png')}) no-repeat`, backgroundSize: '100% 100%'}"
      >
          <div class="label">
              {{label}}
          </div>
        
            <slot>
              
            </slot>
      </div>
</template>

<script>

export default {
  name: 'SlotTemp',
  props: {
    width: String,

    height: {
      type: String,
      default: '27vh'
    },

    img: {
      type: String,
      default: 'box1'
    },
    label: {
      type: String,
      default: '销售目标'
    }
  }
}
</script>
<style scoped lang="less">
 .box1 {
        // background: url(../assets/box1.png) no-repeat;
        background-size: 100% 100%;
        width: 21.8vw;
        padding: 0.65vh 1.3vw 1.2vh 1.3vw;
        box-sizing: border-box;
        .label {
            font-size: 0.22rem;
            font-weight: 500;
            color: #FFFFFF;
        }
        .shop {
          font-size: 0.15 rem;
          font-weight: 500;
          color: #09ACEA;
          margin-top: 1.5vh;
        }
    }
</style>