From dcb417de8844773f37dd8b563641282b5f6c23be Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Mon, 24 Feb 2025 19:41:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BA=B6=E6=B6=B2=E4=BD=8E=E4=BA=8E300?= =?UTF-8?q?=E5=8F=98=E9=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/container.svg | 2 +- src/views/addLiquid/addLiquid.vue | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/assets/container.svg b/src/assets/container.svg index 764c001..1b2ccb1 100644 --- a/src/assets/container.svg +++ b/src/assets/container.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/addLiquid/addLiquid.vue b/src/views/addLiquid/addLiquid.vue index 5a28855..e515951 100644 --- a/src/views/addLiquid/addLiquid.vue +++ b/src/views/addLiquid/addLiquid.vue @@ -27,7 +27,12 @@ class="absolute left-0 w-full bottom-0 bg-[#26D574]" :style="`height: ${ ((container.capacityTotal - container.capacityUsed) / container.capacityTotal) * 100 - }%`"> + }%; background: ${ + container.capacityTotal - container.capacityUsed < + (settingStore.liquidWarningSetting ? +settingStore.liquidWarningSetting.value : 0) + ? '#EE8223' + : '#26D574' + }`"> {{ container.capacityTotal - container.capacityUsed }}