欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 财经 > 创投人物 > uniapp自定义步骤条(可二开进行调试)

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

2025/5/9 6:51:11 来源:https://blog.csdn.net/echo_Ae/article/details/147806786  浏览:    关键词: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>

总结

可把它进行封装成组件

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词