From 6b5e79e433827b9243bda21faeb74bfbcddf2409 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Wed, 21 May 2025 16:08:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=8A=A0=E6=B6=B2ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/container/liquidItem.vue | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/views/container/liquidItem.vue b/src/views/container/liquidItem.vue index 045c4d4..d65224d 100644 --- a/src/views/container/liquidItem.vue +++ b/src/views/container/liquidItem.vue @@ -27,9 +27,13 @@ const solutionStore = useSolutionStore() const solutionId = ref() const selectedSolutionItem = ref() const solutionInfo = ref(props.solutionItem) -const solutionProcess = computed(() => { +const solutionStyle = computed(() => { const difference = solutionInfo.value.capacityUsed / solutionInfo.value.capacityTotal - return 100 - (difference * 100) + const process = 100 - (difference * 100) + const color = difference > 0.4 ? '#26D574' : difference > 10 ? '#EE8223' : '#FE0A0A' + return { + '-webkit-mask': `linear-gradient(to bottom, transparent ${process}%, #EEEFF8 ${process + 0.1}%, ${color})`, + } }) const onInputBlur = () => { if (solutionInfo.value.capacityUsed > 5000) { @@ -108,7 +112,7 @@ const onSubmitSolution = () => {
chemical-bottle
-
+
chemical-bottle
@@ -116,14 +120,6 @@ const onSubmitSolution = () => { - - - - - - - -