<el-timeline :reverse="reverse">
<el-timeline-item v-for="(item, index) in warnList" :key="index">
<div class="photo"></div>
<div class="timestamp">
<span class="message-label">时间:</span>
<span>{{ item.capTime }}</span>
</div>
<div class="message">
<span class="message-label">地址:</span>
<span>{{ item.channelName }}</span>
</div>
</el-timeline-item>
</el-timeline>
script
reverse: true,
.photo {
width: 122px;
height: 77px;
border: 1px solid;
}
.timestamp {
position: absolute;
left: 169px;
top: 10px;
color: #FFFFFF;
}
.message {
font-size: 14px;
font-weight: 400;
font-family: Microsoft YaHei;
position: absolute;
left: 169px;
top: 45px;
color: #FFFFFF;
}
.message-label {
color: rgba(254, 254, 254, 0.52);
}
/deep/ .el-timeline {
padding-left: 10px;
margin-right: 33px;
}
/deep/ .el-timeline-item__wrapper {
display: flex;
justify-items: center;
}
/deep/ .el-timeline-item__timestamp {
font-size: 14px;
color: #FFFFFF;
margin-top: 14px;
}
/deep/ .el-timeline-item__node {
width: 32px;
height: 32px;
background: url(../../../assets/Images/dialog/dot.png) no-repeat;
background-size: 100% 100%;
}
/deep/ .el-timeline-item__tail {
border-color: rgba(169, 165, 196, .1);
margin-top: 12px;
}
/deep/ .el-timeline-item__node--normal {
left: -11px;
}