吉安感知网项目-前端
chenyao
2 days ago 7224851bf14cab706d36f695331488941ed4aba6
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) {