From f521ebc2551d468c4c478783a18d4b0714394d61 Mon Sep 17 00:00:00 2001 From: suerprisePlus <15810472099@163.com> Date: 星期一, 14 十月 2024 15:00:13 +0800 Subject: [PATCH] 配网大屏功能优化 --- src/views/visualization/bottomMenu.vue | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/views/visualization/bottomMenu.vue b/src/views/visualization/bottomMenu.vue index f8001ce..d70cfa1 100644 --- a/src/views/visualization/bottomMenu.vue +++ b/src/views/visualization/bottomMenu.vue @@ -5,12 +5,16 @@ <el-popover popper-class="popover" placement="top" v-show="i.children && i.children.length > 0" width="100" trigger="click"> <span slot="reference">{{ i.name }}</span> - <div @click="setChildData(c)" class="popover__item" v-show="i.children && i.children.length > 0" - v-for="(c, f) in i.children" c :title="c.name"> {{ - c.name.slice(0, 8) }} + <div v-show="i.children && i.children.length > 0"> + <div @click="setChildData(c)" class="popover__item" v-for="(c, f) in i.children" c + :title="c.name"> {{ + c.name.slice(0, 8) }} + </div> </div> + </el-popover> - <span @click="setChildData(i)" slot="reference" v-show="!i.children || i.children.length <= 0">{{ i.name }}</span> + <span @click="setChildData(i)" slot="reference" v-show="!i.children || i.children.length <= 0">{{ i.name + }}</span> </div> </div> @@ -33,6 +37,10 @@ id: 'a1', name: '鐭ヨ瘑鍥捐氨', pid: 's1', + }, { + id: 'a1', + name: '璇箟鍔熻兘', + pid: 's4', } ] }, { @@ -51,7 +59,7 @@ }] }, { name: '鏁板瓧绾挎崯', - + } ], visible: false -- Gitblit v1.9.3