吉安感知网项目-前端
shuishen
2026-03-05 d75d83bd2a1f4e13634f84f8a4de1f7457187b2b
packages/utils/map/MapTooltip.js
@@ -38,6 +38,10 @@
   move(position) {
      if (!this.tooltipEl || !position) return
      if (!this.isVisible) {
         this.tooltipEl.style.display = 'block'
         this.isVisible = true
      }
      const width = this.container?.clientWidth ?? 0
      const height = this.container?.clientHeight ?? 0
      if (!width || !height || position.x < 0 || position.y < 0 || position.x > width || position.y > height) {