<template>
  <div id="centerRight2">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span>
          <el-icon class="el-icon-menu"></el-icon>
        </span>
        <span class="fs-xl text mx-2">工序成品率</span>
      </div>
      <div class="d-flex ai-center flex-column body-box heightCover">
        <dv-capsule-chart class="dv-cap-chart" :config="config" />
      </div>
    </div>
  </div>
</template>

<script>

export default {
  data() {
    return {
      /*config: {
        data: [
          {
            name: '冷加工',
            value: 98
          },
          {
            name: '热弯成型',
            value: 100
          },
          {
            name: '化学钢化',
            value: 99
          },
          {
            name: '镀膜',
            value: 100
          },
          {
            name: '夹层',
            value: 98
          },
          {
            name: '包边',
            value: 100
          },
          {
            name: '装框',
            value: 100
          }
        ]
      }*/
    }
  },
  props:{
    config:{
      type:Object,
      default:()=>{
        return {}
      }
    }
  },
}
</script>

<style lang="scss" scoped>
#centerRight2 {
  $box-height: 100%;
  $box-width: 100%;
  padding: 5px;
  height: $box-height;
  width: $box-width;
  border-radius: 5px;
  .bg-color-black {
    padding: 5px;
    height: $box-height;
    width: $box-width;
    border-radius: 10px;
  }
  .text {
    color: #c3cbde;
  }
  .body-box {
    border-radius: 10px;
    overflow: hidden;
    .dv-cap-chart {
      width: 100%;
      height: 90%;
    }
  }
  .heightCover{
    height: 100%;
  }
}
</style>
