<template>
  <div id="centerRight1">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span>
          <icon name="chart-line" class="text-icon"></icon>
        </span>
        <div class="d-flex">
          <!-- <dv-decoration-7 style="width:150px;height:10px;font-size: 15px;"> 本周解  缴计划 </dv-decoration-7> -->
          <dv-decoration-9 style="width:20px;height:20px;" />
          <span class="fs-xl text mx-2">任务完成排行榜</span>
        </div>
      </div>
      <!-- jc-center body-box -->
      <div class="d-flex jc-center ">
        <dv-scroll-board class="dv-scr-board" :config="config" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      config: {
        header: ['组件', '分支', '覆盖率', '分支', '覆盖率', '分支', '覆盖率'],
        data: [
          ['组件1','组件1','组件1','组件1','组件1', 'dev-1', "<span  class='colorGrass'>↑75%</span>"],
          ['组件1','组件1','组件1','组件1','组件1', 'dev-1', "<span  class='colorGrass'>↑75%</span>"],
          ['组件1','组件1','组件1','组件1','组件1', 'dev-1', "<span  class='colorGrass'>↑75%</span>"],
          ['组件1','组件1','组件1','组件1','组件1', 'dev-1', "<span  class='colorGrass'>↑75%</span>"],
          ['组件1','组件1','组件1','组件1','组件1', 'dev-1', "<span  class='colorGrass'>↑75%</span>"],
          ['组件1','组件1','组件1','组件1','组件1', 'dev-1', "<span  class='colorGrass'>↑75%</span>"],
          ['组件1','组件1','组件1','组件1','组件1', 'dev-1', "<span  class='colorGrass'>↑75%</span>"],
          ['组件1','组件1','组件1','组件1','组件1', 'dev-1', "<span  class='colorGrass'>↑75%</span>"],
          ['组件1','组件1','组件1','组件1','组件1', 'dev-1', "<span  class='colorGrass'>↑75%</span>"],
          ['组件1','组件1','组件1','组件1','组件1', 'dev-1', "<span  class='colorGrass'>↑75%</span>"],
          ['组件1','组件1','组件1','组件1','组件1', 'dev-1', "<span  class='colorGrass'>↑75%</span>"]
        ],
        rowNum: 2, //表格行数
        headerHeight: 60,
        columnHeight: 60,
        headerBGC: '#0f1325', //表头
        oddRowBGC: '#0f1325', //奇数行
        evenRowBGC: '#171c33', //偶数行
        index: true,
        columnWidth: [50,150,150,90,90,90,90],
        align: ['center']
      }
    }
  }
}
</script>

<style lang="scss" scoped>
$box-height: 500px;
$box-width: 100%;
#centerRight1 {
  padding: 16px;
  padding-top: 20px;
  height: $box-height;
  width: $box-width;
  border-radius: 5px;
  .bg-color-black {
    height: $box-height - 30px;
    border-radius: 10px;
  }
  .text {
    color: #c3cbde;
  }
  .body-box {
    border-radius: 10px;
    overflow: hidden;
    .dv-scr-board {
      width: 470px;
      height: 500px;
    }
  }
}
.rows {
  height: 50px;
  .row-item {
    height: 50px;
  }
}
</style>
