|
|
|
@ -6,11 +6,14 @@ |
|
|
|
|
<div class="m-l-mini flex-auto display-flex"><i class="iconfont icon-passenger-flow m-r-mini"></i> |
|
|
|
|
<div class="p-flow-saturation-text">{{ startText }}</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="p-flow-saturation-tip">{{ endText }}:<span class="num">{{endValue}}</span> |
|
|
|
|
<div class="p-flow-saturation-tip">{{ endText }}:<span class="num">{{ endValue }}</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="p-flow-saturation-bar m-t-small"> |
|
|
|
|
<div class="p-flow-saturation-line" :style="{left:percentage}"></div> |
|
|
|
|
<div class="p-flow-saturation-bar-cover"></div> |
|
|
|
|
<div class="p-flow-saturation-bar-inner"> |
|
|
|
|
<div class="p-flow-saturation-bar-item" v-for="(item,index) in 10"></div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
@ -18,7 +21,7 @@ |
|
|
|
|
<script> |
|
|
|
|
export default { |
|
|
|
|
name: "BaseSaturation", |
|
|
|
|
props:{ |
|
|
|
|
props: { |
|
|
|
|
startText: { |
|
|
|
|
type: String, |
|
|
|
|
default: '' |
|
|
|
@ -50,113 +53,113 @@ export default { |
|
|
|
|
border: 1rem solid rgba($p-secondary-color, .3); |
|
|
|
|
border-radius: $p-radius-mini; |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-bar { |
|
|
|
|
position: relative; |
|
|
|
|
.p-flow-saturation-bar { |
|
|
|
|
position: relative; |
|
|
|
|
|
|
|
|
|
height: 15rem; |
|
|
|
|
padding: 2rem 0 2rem 2rem; |
|
|
|
|
border: 1rem solid rgba($p-secondary-color, 1); |
|
|
|
|
} |
|
|
|
|
height: 15rem; |
|
|
|
|
padding: 2rem 0 2rem 2rem; |
|
|
|
|
border: 1rem solid rgba($p-secondary-color, 1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-bar-inner { |
|
|
|
|
display: flex; |
|
|
|
|
height: 100%; |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-bar-inner { |
|
|
|
|
display: flex; |
|
|
|
|
height: 100%; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-bar-item { |
|
|
|
|
position: relative; |
|
|
|
|
background: $p-white-color; |
|
|
|
|
height: 100%; |
|
|
|
|
flex: 1; |
|
|
|
|
margin-right: 2rem; |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-bar-item { |
|
|
|
|
position: relative; |
|
|
|
|
background: $p-white-color; |
|
|
|
|
height: 100%; |
|
|
|
|
flex: 1; |
|
|
|
|
margin-right: 2rem; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-bar-item:after { |
|
|
|
|
content: ""; |
|
|
|
|
position: absolute; |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
left: 0; |
|
|
|
|
top: 0; |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-bar-item:after { |
|
|
|
|
content: ""; |
|
|
|
|
position: absolute; |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
left: 0; |
|
|
|
|
top: 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-bar-item:nth-child(1):after { |
|
|
|
|
background: rgba($p-dark-blue, .1) |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-bar-item:nth-child(1):after { |
|
|
|
|
background: rgba($p-dark-blue, .1) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-bar-item:nth-child(2):after { |
|
|
|
|
background: rgba($p-dark-blue, .4) |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-bar-item:nth-child(2):after { |
|
|
|
|
background: rgba($p-dark-blue, .4) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-bar-item:nth-child(3):after { |
|
|
|
|
background: rgba($p-dark-blue, .5) |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-bar-item:nth-child(3):after { |
|
|
|
|
background: rgba($p-dark-blue, .5) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-bar-item:nth-child(4):after { |
|
|
|
|
background: rgba($p-dark-blue, .6) |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-bar-item:nth-child(4):after { |
|
|
|
|
background: rgba($p-dark-blue, .6) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-bar-item:nth-child(5):after { |
|
|
|
|
background: rgba($p-dark-blue, .7) |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-bar-item:nth-child(5):after { |
|
|
|
|
background: rgba($p-dark-blue, .7) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-bar-item:nth-child(6):after { |
|
|
|
|
background: rgba($p-dark-blue, .8) |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-bar-item:nth-child(6):after { |
|
|
|
|
background: rgba($p-dark-blue, .8) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-bar-item:nth-child(7):after { |
|
|
|
|
background: rgba($p-dark-blue, .85) |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-bar-item:nth-child(7):after { |
|
|
|
|
background: rgba($p-dark-blue, .85) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-bar-item:nth-child(8):after { |
|
|
|
|
background: rgba($p-dark-blue, .9) |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-bar-item:nth-child(8):after { |
|
|
|
|
background: rgba($p-dark-blue, .9) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-bar-item:nth-child(9):after { |
|
|
|
|
background: rgba($p-dark-blue, .95) |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-bar-item:nth-child(9):after { |
|
|
|
|
background: rgba($p-dark-blue, .95) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-bar-item:nth-child(10):after { |
|
|
|
|
background: $p-dark-blue; |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-bar-item:nth-child(10):after { |
|
|
|
|
background: $p-dark-blue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-bar-cover { |
|
|
|
|
background: #102032; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 0; |
|
|
|
|
right: 0; |
|
|
|
|
height: 100% |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-bar-cover { |
|
|
|
|
background: #102032; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 0; |
|
|
|
|
right: 0; |
|
|
|
|
height: 100% |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-icon { |
|
|
|
|
width: 60rem; |
|
|
|
|
height: 60rem; |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-icon { |
|
|
|
|
width: 60rem; |
|
|
|
|
height: 60rem; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-level { |
|
|
|
|
font-size: 18rem; |
|
|
|
|
color: $p-primary-color; |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-level { |
|
|
|
|
font-size: 18rem; |
|
|
|
|
color: $p-primary-color; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-line { |
|
|
|
|
position: absolute; |
|
|
|
|
height: 20rem; |
|
|
|
|
top: -4rem; |
|
|
|
|
width: 5rem; |
|
|
|
|
border-radius: 5rem; |
|
|
|
|
background-color: $p-secondary-color; |
|
|
|
|
border: 1rem solid rgba($p-white-color, 1); |
|
|
|
|
} |
|
|
|
|
.p-flow-saturation-line { |
|
|
|
|
position: absolute; |
|
|
|
|
height: 20rem; |
|
|
|
|
top: -4rem; |
|
|
|
|
width: 5rem; |
|
|
|
|
border-radius: 5rem; |
|
|
|
|
background-color: $p-secondary-color; |
|
|
|
|
border: 1rem solid rgba($p-white-color, 1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.p-flow-saturation-tip { |
|
|
|
|
.p-flow-saturation-tip { |
|
|
|
|
|
|
|
|
|
padding: 0 $p-spacer-small; |
|
|
|
|
height: 30rem; |
|
|
|
|
line-height: 30rem; |
|
|
|
|
color: $p-secondary-color; |
|
|
|
|
font-size: $p-font-small; |
|
|
|
|
border: 1rem solid rgba($p-secondary-color, .3); |
|
|
|
|
border-radius: 30rem; |
|
|
|
|
} |
|
|
|
|
padding: 0 $p-spacer-small; |
|
|
|
|
height: 30rem; |
|
|
|
|
line-height: 30rem; |
|
|
|
|
color: $p-secondary-color; |
|
|
|
|
font-size: $p-font-small; |
|
|
|
|
border: 1rem solid rgba($p-secondary-color, .3); |
|
|
|
|
border-radius: 30rem; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|