From feb388286cbdbb5002e50915d4948cde4b66fdc9 Mon Sep 17 00:00:00 2001 From: haoliang <821644@qq.com> Date: Wed, 29 Apr 2026 22:44:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A9=BF=E6=A2=AD=E6=A1=86?= =?UTF-8?q?=E5=9B=BE=E4=BE=8B=E8=89=B2=E7=82=B9CSS=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=99=A8=EF=BC=9A=E6=B7=BB=E5=8A=A0.status-dot.online/offline/?= =?UTF-8?q?disabled=E7=9B=B4=E6=8E=A5class=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/worker/WorkerListPage.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/worker/WorkerListPage.vue b/frontend/src/views/worker/WorkerListPage.vue index 92b90f5..de08f67 100644 --- a/frontend/src/views/worker/WorkerListPage.vue +++ b/frontend/src/views/worker/WorkerListPage.vue @@ -136,10 +136,15 @@ onMounted(()=>{loadData();loadDrops()}) margin-right: 6px; vertical-align: middle; } +/* 穿梭框内:父子选择器(父元素带status-xxx,子元素.status-dot) */ .status-online .status-dot { background-color: #67c23a; } .status-offline .status-dot { background-color: #c0c4cc; } .status-disabled .status-dot { background-color: #f56c6c; } -/* 图例 */ +/* 图例:class直接在.status-dot上 */ +.status-dot.online { background-color: #67c23a; } +.status-dot.offline { background-color: #c0c4cc; } +.status-dot.disabled { background-color: #f56c6c; } +/* 图例布局 */ .transfer-legend { display: flex; gap: 16px;