<template>
    <div class="down-item-base">
      <div class="item-left">
        <div class="item-sign"></div>
        <div class="item-content" :style="{'background-image': 'linear-gradient(to right, rgba('+contentBg[0]+','+contentBg[1]+ ','+contentBg[2]+'), rgba(0,65,146,0))'}">
          <div class="title">{{downItemData.title}}</div>
          <div class="number">{{downItemData.number}}</div>
        </div>
      </div>
      <div class="item-right">
        <div class="name">{{downItemData.name}}</div>
        <div class="percentage">{{downItemData.percentage}}</div>
      </div>
    </div>
</template>

<script>
    export default {
      title: "WorkOrderRightDownItem",
      props:{
        downItemData:{
          type:Object,
          default:{
            title:'月度工单量',
            number:145784,
            name:'日环比',
            percentage:'+44.18%'
          }
        },
        contentBg:{
          type: Array,
          default: [9,40,115]
        }
      }
    }
</script>

<style lang="less" scoped>
  .down-item-base{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    .item-left{
      width: 55%;
      height: 100%;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      .item-sign{
        width: 1%;
        height: 100%;
        background: #00FFE5;
      }
     .item-content{
       width: 99%;
       height: 100%;
       background-image: linear-gradient(to right, rgb(67,51,77), rgba(0,65,146,0));
       display: flex;
       flex-direction: row;
       justify-content: center;
       align-items: center;
       color: #fff;
       .title{
         font-size: vw(14);
         margin-left: 2%;
         width: 49%;
         height: 60%;
       }
       .number{
         width: 49%;
         height: 60%;
         font-size: vw(16);
       }
     }
    }
    .item-right{
      width: 45%;
      height: 100%;
      display: flex;
      flex-direction: row;
      justify-content: space-around;
      align-items: center;
      .name{
        font-size: vw(14);
        width: 46%;
        height: 60%;
        text-align: right;
        color: #fff;
      }
      .percentage{
        font-size: vw(16);
        text-align: left;
        width: 46%;
        height: 60%;
        color: #ff5777;
      }
    }
  }
</style>
