<template>
    <div class="label">
        <div class="chunk" :style="{background: backColor}"></div>
        <div class="target-text" :style="{color: textColor}">{{label}}</div>
    </div>
</template>

<script>
export default {
  name: 'label',
  props: {
      label: String,
      backColor: String,
      textColor: String
  }
}
</script>
<style scoped lang="less">
.label {
    width: 10vw;
    display: flex;
    align-items: center;
    .chunk {
        width: 0.6vw;
        height: 0.8vh;
        margin-right: 0.1vw;
    }
    .target-text {
        font-size: 0.16rem;
        font-weight: 400;
        
    }
}
</style>