fix: 开关列表增加联动状态。
This commit is contained in:
@@ -459,8 +459,11 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="switch-info">
|
<view class="switch-info">
|
||||||
<text class="switch-name">{{ switchItem.switchName }}</text>
|
<text class="switch-name">{{ switchItem.switchName }}</text>
|
||||||
<text class="switch-status" v-if="switchItem.isOpen === 1">运行中</text>
|
<view class="switch-status-row">
|
||||||
<text class="switch-status off" v-else>已关闭</text>
|
<text class="switch-status" v-if="switchItem.isOpen === 1">运行中</text>
|
||||||
|
<text class="switch-status off" v-else>已关闭</text>
|
||||||
|
<text class="link-control-tag" v-if="switchItem.isLinkedCtrl">联动中</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="switch-right">
|
<view class="switch-right">
|
||||||
@@ -2514,6 +2517,12 @@ defineExpose({
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.switch-status-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.switch-status {
|
.switch-status {
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
color: #09b8c2;
|
color: #09b8c2;
|
||||||
@@ -2522,6 +2531,15 @@ defineExpose({
|
|||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.link-control-tag {
|
||||||
|
font-size: 20px;
|
||||||
|
color: #ff6b00;
|
||||||
|
background: rgba(255, 107, 0, 0.1);
|
||||||
|
padding: 2px 8px;
|
||||||
|
border-radius: 3px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user