zhangzengfei
2022-08-19 3e4904fda5c78cfd8b40fa925fd2970b01850224
src/views/hashrate/CameraManage/index.vue
@@ -51,7 +51,6 @@
      cluster: "",
      clusterData: [],
      intervalTimer: null,
      leftWith: 0,
      screenHeight: 0
    }
  },
@@ -145,7 +144,6 @@
  },
  methods: {
    TextWidthChange(e) {
      console.log(1212)
      let odivParent = e.currentTarget.parentNode //获取目标父元素
      let dx = e.clientX //当你第一次单击的时候,存储x轴的坐标。
      let dw = odivParent.offsetWidth //存储默认的div的宽度。
@@ -161,6 +159,7 @@
          odivParent.style.width = this.pdfWidth - odivParent.offsetLeft + "px"
        }
      }
      document.onmouseup = (e) => {
        document.onmousemove = null
        document.onmouseup = null