diff --git a/components/custom-battery/custom-battery.vue b/components/custom-battery/custom-battery.vue index 66eda5e..c7ba5a8 100644 --- a/components/custom-battery/custom-battery.vue +++ b/components/custom-battery/custom-battery.vue @@ -1,8 +1,15 @@ @@ -89,6 +96,15 @@ transition: width 0.5s; } + .battery-level-red { + background-color: #f56c6c; + } + + .battery-level-yellow { + background-color: #e6a23c; + } + + // 充电动画 @keyframes chargingWidth { from {