From 0355135113176bbbf0b0dd84b7894269179a704a Mon Sep 17 00:00:00 2001 From: longyvfengyun <496960745@qq.com> Date: 星期二, 22 八月 2023 09:52:40 +0800 Subject: [PATCH] 视频内容提交 --- src/components/MapPin.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/MapPin.vue b/src/components/MapPin.vue index 36dec90..0d9182d 100644 --- a/src/components/MapPin.vue +++ b/src/components/MapPin.vue @@ -26,6 +26,10 @@ type: Number, default: 100 }, + placement: { + type: String, + default: "top" + }, x: { type: Number, default: 0 @@ -63,9 +67,9 @@ </script> <template> - <div class="map-pin" :style="posStyle"> + <div class="map-pin" :style="posStyle" v-if="visible"> <div class="map-pin-wrapper"> - <el-tooltip placement="top" :visible="visible"> + <el-tooltip :placement="placement" :visible="visible"> <template #content> <div class="home-info name">{{name}}</div> <div class="home-info">娓╁害锛歿{ info.tmp }} 鈩�</div> -- Gitblit v1.9.1