From 4ca9d0b91c821c18eeeea381b6e16132fe6577b8 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Thu, 10 Apr 2025 17:58:11 +0800
Subject: [PATCH] feat: 修改UI重新传的首页机巢效果
---
src/views/Home/HomeLeft/components/MachineNestTotal.vue | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/src/views/Home/HomeLeft/components/MachineNestTotal.vue b/src/views/Home/HomeLeft/components/MachineNestTotal.vue
index 2d9e187..8a7c04b 100644
--- a/src/views/Home/HomeLeft/components/MachineNestTotal.vue
+++ b/src/views/Home/HomeLeft/components/MachineNestTotal.vue
@@ -7,9 +7,12 @@
<div class="name">机巢总数</div>
</div>
<div class="status">
- <div v-for="item in listNum">
- <div :style="{ color: item.color }" class="value">{{ item.value }}</div>
- <div class="name">{{ item.name }}</div>
+ <div class="item" v-for="(item, index) in listNum">
+ <div>
+ <div :style="{ color: item.color }" class="value">{{ item.value }}</div>
+ <div class="name">{{ item.name }}</div>
+ </div>
+ <div class="right-line" v-if="index !== listNum.length - 1"></div>
</div>
</div>
</div>
@@ -92,13 +95,29 @@
display: flex;
justify-content: space-between;
line-height: 30px;
+ .item {
+ display: flex;
+ align-items: center;
+ }
+ .right-line {
+ width: 0px;
+ height: 36px;
+ border-radius: 0px 0px 0px 0px;
+ border: 1px solid;
+ border-image: linear-gradient(180deg, rgba(27, 148, 255, 0), rgba(27, 148, 255, 1), rgba(27, 148, 255, 0)) 1 1;
+ margin-left: 10px;
+ }
.name {
+ text-align: center;
+ width: 42px;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 400;
font-size: 14px;
color: #ffffff;
}
.value {
+ text-align: center;
+ width: 42px;
font-weight: 400;
font-size: 26px;
}
--
Gitblit v1.9.3