From 09ab26b8df36c5ebd7cfc20a862011fb98681588 Mon Sep 17 00:00:00 2001 From: longyvfengyun <496960745@qq.com> Date: 星期五, 30 六月 2023 08:35:06 +0800 Subject: [PATCH] 视频监控 --- src/components/MapPin.vue | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/src/components/MapPin.vue b/src/components/MapPin.vue index dddadaf..7aea943 100644 --- a/src/components/MapPin.vue +++ b/src/components/MapPin.vue @@ -33,6 +33,16 @@ y: { type: Number, default: 0 + }, + info: { + type: Object, + default() { + return { + tmp: 0, + hum: 0, + diff: 0 + } + } } }); @@ -48,7 +58,10 @@ <div class="map-pin" :style="posStyle"> <el-tooltip placement="top" :visible="visible"> <template #content> - {{name}} + <div class="home-info name">{{name}}</div> + <div class="home-info">娓╁害锛歿{ info.tmp }} 鈩�</div> + <div class="home-info">婀垮害锛歿{ info.hum }} %RH</div> + <div class="home-info">鍘嬪樊锛歿{ info.diff }} Pa</div> </template> <div class="map-pin-content"> <div class="pin"></div> @@ -102,4 +115,9 @@ } } } +.home-info { + &.name { + text-align: center; + } +} </style> -- Gitblit v1.9.1