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

uniapp自定义步骤条(可二开进行调试)

前言

有一个业务需求是需要一个步骤条,但是发现开源的都不太合适,所以就自己写了一个。

开始

test.vue

<template><view class="authenticateRecordDetails_container"><!-- 进度 --><view class="authenticateStep_content"><view class="title_content"><text class="text_default" style="font-size: 32rpx; font-weight: bold;">鉴定进度</text></view><view class="step_content"><view class="left"><view class="circle circle_succ"><image src="/static/images/jianbao/step/1.png" mode=""></image></view><view class="line line_succ"></view></view><view class="right"><view class="card_content" style="padding: 80rpx 0;"><text>卡片内容</text></view></view></view><view class="step_content"><view class="left"><view class="circle circle_defult"><image src="/static/images/jianbao/step/1.png" mode=""></image></view><view class="line circle_defult"></view></view><view class="right"><view class="card_content" style="padding: 40rpx 0;"><text>卡片内容</text></view></view></view><view class="step_content"><view class="left"><view class="circle circle_defult"><image src="/static/images/jianbao/step/1.png" mode=""></image></view></view><view class="right"><view class="card_content" style="padding: 40rpx 0;"><text>卡片内容</text></view></view></view></view><!-- 进度end --></view>
</template><script>export default {data() {return {}},components: {},onLoad(options) {},onShow() {},methods: {}}
</script><style scoped lang="scss">.authenticateRecordDetails_container {margin: 20rpx 20rpx;// 鉴定进度.authenticateStep_content {margin-top: 40rpx;.title_content {margin-bottom: 40rpx;}.step_content {display: flex;// justify-content: flex-start;// align-items: center;.left {width: 70rpx;// background-color: blue;.circle {width: 70rpx;height: 70rpx;line-height: 80rpx;text-align: center;border-radius: 100%;image {width: 34rpx;height: 34rpx;}}.circle_succ {background-color: #1F5491;}.circle_defult {background-color: #CECECE;}.line {width: 4rpx;height: calc(100% - 70rpx);margin: 0 auto;background-color: #bbb;}.line_succ {background-color: #1F5491;}.line_defult {background-color: #bbb;}}.right {flex: 1;margin-bottom: 80rpx;margin-left: 20rpx;.card_content {width: 100%;position: relative;top: -10rpx;background-color: #fff;box-shadow: 0rpx 4rpx 8rpx 0rpx; border-radius: 8rpx;}}}}}
</style>

总结

可把它进行封装成组件

相关文章:

  • 幂等的几种解决方案以及实践
  • Memgraph 的安装教程
  • node.js 实战——在express 中将input file 美化,并完成裁剪、上传进度条
  • uni-pages-hot-modules插件:uni-app的pages.json的模块化及模块热重载
  • python实现的音乐播放器
  • 【Pandas】pandas DataFrame abs
  • 无实体对话式社交机器人 拟人化印象形成机制:基于多模态交互与文化适配的拓展研究
  • 使用ESPHome烧录固件到ESP32-C3并接入HomeAssistant
  • 使用pytorch保存和加载预训练的模型方法
  • 基于Transformer的多资产收益预测模型实战(附PyTorch实现与避坑指南)
  • OpenHarmony平台驱动开发(九),MIPI DSI
  • 如何使用npm下载指定版本的cli工具
  • 【MySQL】存储引擎 - MyISAM详解
  • FPGA_Verilog实现QSPI驱动,完成FLASH程序固化
  • [ctfshow web入门] web57
  • 到达最后一个房间的最少时间II 类似棋盘转移规律查找
  • QTDesinger如何给label加边框
  • Java后端程序员学习前端之JavaScript
  • k8s的pod挂载共享内存
  • Mysql-OCP PPT课程讲解并翻译
  • 赵作海因病离世,妻子李素兰希望过平静生活
  • 英国和美国就关税贸易协议条款达成一致
  • 如此城市|上海老邬:《爱情神话》就是我生活的一部分
  • 上海科创“八杰”赋能新兴产业链:硬核科技,形成良好盈利模式
  • 湖北奥莱斯轮胎公司逃避监管排放大气污染物被罚25万元
  • 上海营商环境的“分寸”感:底线之上不断拓宽自由,底线之下雷霆制止