From 02e9f9b9a3e92e35226e1aa48a8e4bfd7a1020c3 Mon Sep 17 00:00:00 2001
From: huang <1724659546@qq.com>
Date: Sat, 20 Sep 2025 17:34:18 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=99=AE=E9=80=9A=E8=AE=BE?=
=?UTF-8?q?=E5=A4=87=E9=80=89=E4=B8=AD=E6=97=B6=E9=AB=98=E4=BA=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/DeviceList.vue | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/components/DeviceList.vue b/src/components/DeviceList.vue
index a4fb5f9e..9d3f2992 100644
--- a/src/components/DeviceList.vue
+++ b/src/components/DeviceList.vue
@@ -37,7 +37,7 @@
default-expand-all
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
:row-class-name="tableRowClassName"
- highlight-current-row>
+ :highlight-current-row="false">
@@ -210,7 +210,7 @@ export default {
await this.loadDevices();
},
- // 为区域主控设备添加高亮
+ // 为区域主控设备添加静态高亮样式
tableRowClassName({ row, rowIndex }) {
if (row.type === 'area_controller') {
return 'current-row';
@@ -258,6 +258,11 @@ export default {
margin-top: 15px;
}
+/* 确保区域主控设备始终高亮显示 */
+:deep(.current-row) {
+ background-color: #f5f7fa !important;
+}
+
@media (max-width: 768px) {
.device-list {
padding: 10px;