vue自己手写的步骤条组件,市面上的都不喜欢,满足不了功能,自己手写了个
效果
代码
<!-- 步骤条组件 -->
<template>
<div style="
width: 100%;
display: flex;
flex-direction: row;
align-content: center;
align-items: center;
justify-content: space-around;">
<div :class="singleDivClass(index , item)"
@click="clickProgress(index, item)"
v-for="(item,index) in progressList">{
{ item.name }}
<!-- 箭头-->
<div v-if="progressList.length - 1 !== index"
style="display: inline-block;position: absolute;right: -25px;height: 40px;width: 40px; z-index: 10">
<div style="width: 25px;height: 20px;background-color: white;transform: skewX(30deg);"></div>
<div