【前端】云工厂的纸掌柜app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
1.5 KiB

<template>
<view class="timelineItem">
<view class="timeItem">
<view class="leftTime">
{{leftTime}}
</view>
<view class="line">
<view class="out" :style="{background: color == '' ? '' : color}">
<view class="inner" :style="{background: color == '' ? '' : color}"></view>
</view>
</view>
<view class="rightContent">
<slot></slot>
</view>
</view>
</view>
</template>
<script>
export default {
props:{
leftTime:{
type:String,
default:''
},
color:{
type:String,
default:''
}
},
data(){
return {
}
}
}
</script>
<style scoped lang="less">
.timelineItem {
.timeItem {
display: flex;
.leftTime {
// width: 45rpx;
// padding: 0 29rpx 0rpx 0rpx;
font-size:22rpx;
font-weight:500;
color:rgba(51,51,51,1);
// margin-right: 10rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.line {
width: 4rpx;
background: #B2D7FF;
position: relative;
.out {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
display: flex;
justify-content: center;
align-items: center;
width: 28rpx;
height: 28rpx;
background : #007AFF;
border-radius: 50%;
.inner {
width: 18rpx;
height: 18rpx;
background : #007AFF;
border-radius: 50%;
}
}
}
.rightContent {
flex: 1;
padding: 0rpx 10rpx 16rpx 16rpx;
margin-left: 20rpx;
min-height: 50rpx;
}
}
}
</style>