提交 e724c9a7 作者: 王梅颖

fix:选中效果及无人机型号

上级 99d1ac41
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
:class="showHealth ? 'active' : ''" :class="showHealth ? 'active' : ''"
@click="onSwitchShow('showHealth')" @click="onSwitchShow('showHealth')"
> >
<img src="./assets/images/health.svg" /> <img :class="{active:showHealth}" src="./assets/images/health.svg" />
<span class="">健康管理</span> <span class="">健康管理</span>
</div> </div>
<!-- 机库信息 --> <!-- 机库信息 -->
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
:class="showMount ? 'active' : ''" :class="showMount ? 'active' : ''"
@click="onSwitchShow('showMount')" @click="onSwitchShow('showMount')"
> >
<img src="./assets/images/mount.svg" /> <img :class="{active:showMount}" src="./assets/images/mount.svg" />
<span class="">挂载</span> <span class="">挂载</span>
</div> </div>
<div <div
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
:class="showControlList ? 'active' : ''" :class="showControlList ? 'active' : ''"
@click="onSwitchShow('showControlList')" @click="onSwitchShow('showControlList')"
> >
<img src="./assets/images/uav.svg" /> <img :class="{active:showControlList}" src="./assets/images/uav.svg" />
<span class="">无人机</span> <span class="">无人机</span>
</div> </div>
<div <div
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
:class="showAlarmLamp ? 'active' : ''" :class="showAlarmLamp ? 'active' : ''"
@click="onSwitchShow('showAlarmLamp')" @click="onSwitchShow('showAlarmLamp')"
> >
<img src="./assets/images/lamp.svg" /> <img :class="{active:showAlarmLamp}" src="./assets/images/lamp.svg" />
<span class="">警灯</span> <span class="">警灯</span>
</div> </div>
<div <div
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
:class="showViewLib ? 'active' : ''" :class="showViewLib ? 'active' : ''"
@click="onSwitchShow('showViewLib')" @click="onSwitchShow('showViewLib')"
> >
<img src="./assets/images/files.svg" /> <img :class="{active:showViewLib}" src="./assets/images/files.svg" />
<span class="">视图库</span> <span class="">视图库</span>
</div> </div>
<ViewLib v-if="showViewLib"></ViewLib> <ViewLib v-if="showViewLib"></ViewLib>
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
:isHangar="isHangar" :isHangar="isHangar"
></ControlList> ></ControlList>
<Health v-if="showHealth" @exit="showHealth = false"></Health> <Health v-if="showHealth" @exit="showHealth = false"></Health>
<Mount :show="showMount"></Mount> <Mount v-if="showMount" :show="showMount"></Mount>
<!-- 喊话器 --> <!-- 喊话器 -->
<MMCGimbalP1 <MMCGimbalP1
class="PagerP1" class="PagerP1"
...@@ -180,6 +180,11 @@ export default { ...@@ -180,6 +180,11 @@ export default {
&.active { &.active {
border: 1px solid #3C3C3C; border: 1px solid #3C3C3C;
color: #3388ff;
}
.active {
filter: drop-shadow(#3388ff 100px 0);
transform: translateX(-100px);
} }
} }
} }
......
...@@ -66,8 +66,9 @@ ...@@ -66,8 +66,9 @@
</template>--> </template>-->
<template> <template>
<div class="uav_version status-icon cp"> <div class="uav_version status-icon cp">
<img src="./assets/images/I.svg" /> <!-- <img src="./assets/images/I.svg" />
<img src="./assets/images/I.svg" /> <img src="./assets/images/I.svg" /> -->
{{ device.modelName }}
</div> </div>
</template> </template>
</div> </div>
...@@ -515,13 +516,16 @@ export default { ...@@ -515,13 +516,16 @@ export default {
} }
.uav_version { .uav_version {
margin-top: 1px; margin-top: 1px;
width: 14px; // width: 14px;
height: 12px; // height: 12px;
background: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.4);
border-radius: 2px; border-radius: 2px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding: 4px;
color: #fff;
font-size: 8px;
} }
.symbol-icon-box { .symbol-icon-box {
display: flex; display: flex;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论