1.add showVal prop;
2.optimize unit-label child style;
This commit is contained in:
@ -37,13 +37,21 @@
|
||||
border-radius: 5px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.dv-capsule-chart .capsule-item div .capsule-item-val {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.dv-capsule-chart .unit-label {
|
||||
height: 20px;
|
||||
font-size: 12px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
position: relative;
|
||||
}
|
||||
.dv-capsule-chart .unit-label:not(:first-child) {
|
||||
text-align: right;
|
||||
}
|
||||
.dv-capsule-chart .unit-label div {
|
||||
position: absolute;
|
||||
}
|
||||
.dv-capsule-chart .unit-text {
|
||||
text-align: right;
|
||||
|
Reference in New Issue
Block a user