<template>
|
<div class="sectionProcess">
|
<div class="tipsText">
|
{{title}}
|
</div>
|
<div class="tips"></div>
|
<div class="left">{{leftText}}</div>
|
<div class="right">{{rightText}}</div>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
props: ['title', 'leftText', 'rightText'],
|
data() {
|
return {
|
|
}
|
},
|
}
|
</script>
|
|
<style scoped>
|
.sectionProcess {
|
width: 100%;
|
height: 12px;
|
border-radius: 4px;
|
background-color: #ffe328;
|
position: relative;
|
}
|
|
.sectionProcess .tips {
|
position: absolute;
|
border-top: 10px #ffe328 solid;
|
border-left: 10px transparent dashed;
|
border-bottom: 10px transparent dashed;
|
border-right: 10px transparent dashed;
|
left: calc(50% - 10px);
|
top: -12px;
|
/*覆盖并错开1px*/
|
border-top: 10px #ffe328 solid;
|
}
|
|
.sectionProcess .tipsText {
|
font-size: 10px;
|
color: #ffffff;
|
top: -36px;
|
position: absolute;
|
left: 50%;
|
transform: translateX(-50%);
|
}
|
|
.sectionProcess .left {
|
width: 12%;
|
height: 12px;
|
border-radius: 4px 0 0 4px;
|
position: absolute;
|
left: 38%;
|
background-color: #666ee8;
|
line-height: 44px;
|
text-align: center;
|
}
|
|
.sectionProcess .right {
|
width: 12%;
|
height: 12px;
|
border-radius: 0 4px 4px 0;
|
position: absolute;
|
left: 50%;
|
background-color: #f78989;
|
line-height: 44px;
|
text-align: center;
|
}
|
</style>
|