From 2357701525f5d8445b2beb9d440d2a28a5a34b98 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Fri, 15 Mar 2024 15:34:20 +0800 Subject: [PATCH] =?UTF-8?q?CN-1563=20fix:=20tracking=E9=A1=B5=E5=85=AD?= =?UTF-8?q?=E8=BE=B9=E5=BD=A2tooltip=E4=BD=8D=E7=BD=AE=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E4=B8=8D=E8=AE=A9=E5=85=B6=E8=B6=85=E5=87=BA=E5=B1=8F=E5=B9=95?= =?UTF-8?q?=E4=B8=8B=E8=BE=B9=E7=95=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/location/Index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/location/Index.vue b/src/views/location/Index.vue index bd26d025..1ec94562 100644 --- a/src/views/location/Index.vue +++ b/src/views/location/Index.vue @@ -1104,15 +1104,15 @@ export default { this.currentPolygon = features[0].properties this.currentPolygon.id = features[0].id this.currentPolygon.location = `${h3ToGeo(this.currentPolygon.hexId)[1]}, ${h3ToGeo(this.currentPolygon.hexId)[0]}` - this.tooltip.x = originalEvent.clientX + 15 - this.tooltip.y = originalEvent.clientY + 5 - /* this.$nextTick(() => { + // this.tooltip.x = originalEvent.clientX + 15 + // this.tooltip.y = originalEvent.clientY + 5 + this.$nextTick(() => { const tooltipDom = document.getElementById('tooltip') const tooltipDomHeight = tooltipDom.offsetHeight this.tooltip.x = originalEvent.clientX + 15 this.tooltip.y = originalEvent.clientY + 5 this.tooltip.y = (originalEvent.clientY + 5 + tooltipDomHeight) > this.mapDomHeight ? (this.mapDomHeight - tooltipDomHeight) : (originalEvent.clientY + 5) - }) */ + }) // 鼠标滑过高亮 this.hoverTrigger('trackingHexGrid', this.currentPolygon.id, true)