1.add showVal prop;

2.optimize unit-label child style;
This commit is contained in:
costa
2020-04-27 18:19:20 +08:00
parent be410da013
commit 57b6c726eb
5 changed files with 1312 additions and 964 deletions

View File

@ -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;