<template>
  <div>
    <div style="padding-left: 20px;padding-top: 40px;padding-bottom: 10px">
    <ul class="ul-progress">
        <li v-for="(item,index) in progressList" :key="index">
          <!--进度条 start-->
          <div style="position: relative">
            <label class="view-progress fl">
<!--              <Progress :percent="45" :stroke-width="20" status="active" text-inside />-->
              <Progress :percent="state >= index ? 99.9: 0" status="active" hide-info></Progress>
<!--              <Progress :percent="30" status="active" hide-info></Progress>-->
            </label>
            <label :class="{'process-actives':state >= index}" class="progress-bg-gray fl">
              <label class="progress-bg-white" style="display: inline-block;max-width: 100%;margin-bottom: 4px;font-weight: 700;"></label>
            </label>
            <div class="clear"></div>
          </div>
          <!--进度条 end-->
          <!--内容 start-->
          <div class="ul-progress-cont">
            <p>{{item.name}}</p>
            <p style="color: #b0b0b0;font-size:12px">{{item.time !==undefined? $dateformat(item.time, "yyyy-mm-dd"):''}}</p>
            <p style="color: #b0b0b0;font-size:12px">{{item.user === undefined ? '' : item.user}}</p>
          </div>
          <!--进度条 end-->
        </li>
      </ul>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    progressList: null,
    state: null
  }
}
</script>
<style>
.ul-progress li {
  float: left;
  position: relative;
  padding: 0 0 70px 0;
}
.fl {
  float: left;
}
.ul-progress li:first-child .view-progress {
  width: 140px;
}
.view-progress {
  width: 180px;
}
.ul-progress li .progress-bg-gray {
  background: #b5b5b5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: 3px solid #fff;
  text-align: center;
  line-height: 45px;
  position: absolute;
  right: -10px;
  top: -10px;
  z-index: 100;
}
.process-actives {
  background: #00a1e8 !important;
}
.ul-progress-cont {
  text-align: center;
  margin-top: 15px;
  position: absolute;
  right: -15px;
}
.ul-progress li .progress-bg-white {
  background: #fff !important;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
</style>
