el-steps横线进度条 修改时间轴

 

<template>
    <div class="box">
      <el-steps :active="active" align-center>
        <template v-for="item in arrData">
          <el-step :key="item.name"  :class="item.isSelected ?'highlight' : '' "   :title="item.name"></el-step>
        </template>
      </el-steps>
    </div>
</template>
<script>
export default {
  data() {
    return {
      active:'',
      arrData: [
        {
          name: "2001",
          isSelected: false,
        },
        {
          name: "2002",
          isSelected: false,
        },
        {
          name: "2005",
          isSelected: true,
        },
        {
          name: "2006",
          isSelected: false,
        },
        {
          name: "2007",
          isSelected: false,
        },
      ],
    };
  },

};
</script>
<style lang="scss" scoped>
* {
  box-sizing: border-box;
}



.highlight::v-deep .el-step__icon {
  background: rgb(147, 226, 0);
}
.el-steps {
  margin-top: 5px;
}
::v-deep .el-step__icon {
  border: none;
  background: #007eff;
  margin-top: 5px;
  width: 15px;
  height: 15px;
}
::v-deep .el-step__line {
  background-color: #0050ad;
}
::v-deep .el-step__icon-inner {
  display: none;
}
.box ::v-deep .el-step__title {
  font-size: 10px;
  line-height: 18px;
  color: #fff;
}
.box {
  width: 500px;
  height: 45px;
  background: #001a50;
  border-radius: 50px;
  padding: 0 20px;
}
</style>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值