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

拐弯的时间线

先看效果图
在这里插入图片描述
不想多说,直接上代码

<template>
  <div class="info">
    <div><p class="name">{
  { data.name }}:</p>
      <p>{
  { data.idCard }}</p></div>
    <div><p class="name">家庭住址:</p>
      <p>{
  { data.resideAddress }}</p></div>
  </div>
  <div ref="myElement"
       class="stepOut"
       :class="windowWidth <= 828 ? 'stepOutSmall' : ''"
  >
    <ul>
      <li
        v-if="data.chainDTOS && data.chainDTOS.length >0"
        class="stepItem"
        v-for="(stepItem, index) in data.chainDTOS"
        :key="index"
        :class="[
                    windowWidth <= 828?
                    Math.floor(index / 4) % 2 == 0? 'stepItemLeftStart': 'stepItemBrother'
                    : Math.floor(index / 2) % 2 == 0 ? 'stepItemLeftStart' : 'stepItemBrother'
                  ]"
      >
        <div
          v-if="( windowWidth <= 828
                    ? (index + 1) % 4 != 0 || ((index + 1) / 4) % 2 == 0
                    : (index + 1) % 2 != 0 || ((index + 1) / 2) % 2 == 0 )"
          class="line"
        ></div>
        <div
          v-if="(windowWidth <= 828? index != 0 && (index + 1) % 4 == 0: index != 0 && (index + 1) % 2 == 0) && index + 1 != data.chainDTOS.length"
          :class="['lineCircle',
                      windowWidth <= 828
                      ? ((index + 1) / 4) % 2 == 0
                        ? 'lineCircleLeft'
                        : ''
                      : ((index + 1) / 2) % 2 == 0
                      ? 'lineCircleLeft'
                      : ''
                    ]"
        ></div>
        

相关文章:

  • 通过返回的key值匹配字典中的value值
  • C++ Primer Plus第八章课后习题总结
  • win11系统通过WSL安装ubuntu
  • 模电学习笔记
  • 服务端配置TCP探活,超出探活时间后的行为?
  • 7.grafana的内存和CPU同时在一个表中的调整
  • 汽车悬架系统技术演进:从被动到全主动的革新之路(主动悬架类型对比)
  • 【单片机】MSP430MSP432入门
  • 大白话Vuex 核心概念(state、mutations、actions)的使用案例与原理
  • vue项目中动态添加类名样式不生效问题
  • 2025-02-26 学习记录--C/C++-C语言 整数格式说明符
  • 简单介绍JVM
  • Flutter系列教程之(6)——Tab导航与ListView使用
  • Lua的table类型的增删改查操作
  • http 协议和 https 协议的区别是什么?
  • 【1分钟学会万相文生视频】windows环境4080显卡部署Wan2.1-T2V-1.3B,亲手实操
  • 【STL】7.STL常用算法(1)
  • miqiu的分布式锁(二):实战——用JMeter验证JVM锁能否解决MySQL超卖问题
  • element-ui的组件使用
  • 每日一题——字母异位词分组
  • 梨园网站建设/网站搜索引擎优化情况怎么写
  • 可靠的南京网站建设/软文营销文章500字
  • 工信部网站备案批准文件/软文范例大全500字
  • 广州市品牌网站建设企业/汽车品牌推广策划方案
  • 怎么样评价网站做的好坏/郑州网站优化推广
  • 买了域名和空间怎么做网站/太原搜索引擎优化