Browse Source

指示器

master
maochaoying 2 years ago
parent
commit
71ad7e0b66
  1. 16
      src/components/LiquidHandle.vue

16
src/components/LiquidHandle.vue

@ -100,7 +100,9 @@
:style="{ :style="{
'--height': `${(disinfectantCapacity / 5000) * 427}px`, '--height': `${(disinfectantCapacity / 5000) * 427}px`,
}" }"
></div>
>
<p class="indicator">{{ disinfectantCapacity }}g</p>
</div>
</div> </div>
<LiquidModal <LiquidModal
v-if="tabType == 2 && tipModalVisible" v-if="tabType == 2 && tipModalVisible"
@ -278,6 +280,18 @@ const { disinfectantCapacity } = storeToRefs(deviceStore)
height: var(--height); height: var(--height);
border-radius: 0px 12px 12px 0px; border-radius: 0px 12px 12px 0px;
background: linear-gradient(0deg, #06518b 0%, rgba(6, 81, 139, 0.7) 58%); background: linear-gradient(0deg, #06518b 0%, rgba(6, 81, 139, 0.7) 58%);
.indicator {
position: absolute;
top: -10px;
right: -50px;
font-family: Source Han Sans CN;
font-size: 12px;
font-weight: 500;
line-height: normal;
letter-spacing: 0.06em;
color: #06518b;
}
} }
} }
} }

Loading…
Cancel
Save