当前位置: 首页 > news >正文

流程图步骤条

1.结构

<ul class="stepUl">

              <li class="stepLi" v-for="(item, index) in stepList" :key="index">

                <div class="top">

                  <p :class="{active: currentState >= item.key}">{{ item.value }}</p>

                  <img

                    v-if="currentState >= item.key"

                    :src="require(`./../../static/img/icons/iconed${index}.png`)"

                  />

                  <img v-else :src="require(`./../../static/img/icons/icon${index}.png`)" />

                </div>

                <div v-if="item.value != '工单闭环'">

                  <img

                    v-if="currentState >= item.key"

                    class="arrow"

                    src="./../../static/img/icons/arrowed.png"

                  />

                  <img

                    v-else

                    class="arrow"

                    src="./../../static/img/icons/arrow.png"

                  />

                </div>

              </li>

            </ul>

2.数据

stepList:[
    {
        "key": "-1",
        "value": "撤单"
    },
    {
        "key": "1",
        "value": "创建工单"
    },
    {
        "key": "20",
        "value": "科室接单"
    },
    {
        "key": "30",
        "value": "科员处理"
    },
    {
        "key": "40",
        "value": "科室确认"
    },
    {
        "key": "50",
        "value": "工单闭环"
    }
]

3.样式

.stepUl {

  display: grid;

  grid-template-columns: repeat(6, 1fr);

  text-align: left;

  .stepLi {

    display: flex;

    justify-content: center;

    align-items: center;

    .top {

      p {

        width: 72px;

        color: #ccc;

        margin-bottom: 5px;

        margin-left: -5px;

        text-align: center;

        &.active {

          color: #000;

        }

      }

      img {

        width: 57px;

      }

    }

    .arrow {

      margin-top: 20px;

    }

  }

}

http://www.lryc.cn/news/338539.html

相关文章:

  • GPT知识库浅析
  • SpringMVC--SpringMVC的视图
  • Datax,hbase与mysql数据相互同步
  • ubuntu spdlog 封装成c++类使用
  • 【C语言】——字符串函数的使用与模拟实现(上)
  • 数据库(1)
  • VirtualBox - 与 Win10 虚拟机 与 宿主机 共享文件
  • 深入浅出 useEffect:React 函数组件中的副作用处理详解
  • 《QT实用小工具·十九》回车跳转到不同的编辑框
  • 基本的数据类型在16位、32位和64位机上所占的字节大小
  • 关注招聘 关注招聘 关注招聘
  • Django框架设计原理
  • Linux ARM平台开发系列讲解(QEMU篇) 1.2 新添加一个Linux kernel设备树
  • OSPF动态路由实验(思科)
  • MyBatis 等类似的 XML 映射文件中,当传入的参数为空字符串时,<if> 标签可能会导致 SQL 语句中的条件判断出现意外结果。
  • git的安装
  • 蓝桥杯嵌入式模板(cubemxkeil5)
  • ELFK (Filebeat+ELK)日志分析系统
  • HttpClient、OKhttp、RestTemplate接口调用对比( Java HTTP 客户端)
  • [旅游] 景区排队上厕所
  • 三 maven的依赖管理
  • iperf3 网络性能测试
  • 08 Php学习:if语句、Switch语句
  • 二分查找的边界问题是怎么产生的?
  • 华为 2024 届校园招聘-硬件通⽤/单板开发——第十套
  • 五子棋:不会下五子棋也没关系,会用Java写五子棋就行
  • 【VUE】使用Vue和CSS动画创建滚动列表
  • 分布式结构化数据表Bigtable
  • langchain 加载 csv,json
  • Java-常见面试题收集(十三)