去掉普通设备选中时高亮
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
default-expand-all
|
||||
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
||||
:row-class-name="tableRowClassName"
|
||||
highlight-current-row>
|
||||
:highlight-current-row="false">
|
||||
<el-table-column width="40"></el-table-column>
|
||||
<el-table-column prop="id" label="设备ID" min-width="80" />
|
||||
<el-table-column prop="name" label="设备名称" min-width="120" />
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user