审批流css样式

本文介绍了一个使用 Vue 的组件,展示了如何通过列表渲染带有动态图标和自定义布局的流程细胞。通过 flexbox 实现了过程单元格的布局,并详细解释了 iconDot 图标和 per-box 类的样式设置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<template>
	<view class="lineBox">
		<view class="process-cell"  v-for="(dot,index) in list" :key="dot.index">
			<view class="per-box">
				<view class="iconDot"></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			list:{
				type:Array
			},
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped>
	/* 流程 */
	.process-cell{
		position: relative;
		padding: 24rpx 0;
		display: flex;
	}
	.process-cell::after{
		content: '';
		position: absolute;
		left: 120rpx;
		right: 0;
		bottom: 0;
		height: 1px;
		background-color: #eeeeee;
	}
	.process-cell .per-box{
		position: relative;
		width: 30rpx;
		height: 30rpx;
		margin-right: 36rpx;
		border-radius: 8rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #FFFFFF;
		font-size: 28rpx;
	}
	.iconDot{
		width: 30rpx;
		height: 30rpx;
		background: #1677FF;
		border-radius: 50%;
	}
	/* 分割 */
	.per-box >image{
		width: 80rpx;
		height: 80rpx;
		border-radius: 8rpx;
		display: block;
	}
	.per-box .icon{
		position: absolute;
		right: -10rpx;
		bottom: -10rpx;
		font-size: 0;
	}
	.per-box .icon image{
		width: 38rpx;
		height: 38rpx;
	}
	.process-cell::before{
		width: 6rpx;
		border-left: 6rpx solid #EEEEEE;
		content: '';
		position: absolute;
		left: 13rpx;
		top: 0;
		bottom: -30rpx;
	}
	.process-ing-cell::before{
		border-left: 6rpx dashed #EEEEEE;
	}
	.process-cell:first-child::before{
		top: 30rpx;
	}
	.process-cell:nth-last-child(2)::before{
		bottom: -45rpx;
	}
	.process-cell:last-child::before{
		display: none;
	}
</style>

![在这里插入图片描述](https://img-blog.csdnimg.cn/f7dcf808bb4f47cc9aab24801b32e178.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBARnV0dXJlUGVyaW9k,size_13,color_FFFFFF,t_70,g_se,x_16#pic_center)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值