派生自 wuyushui/SewerAndRainNetwork

chenzeping
2021-04-19 c98cd1d07a99883d4bd2b9833ce7e91e56a6f1fb
src/components/plugin/DialogDrag.js
@@ -5,8 +5,8 @@
  bind (el, binding, vnode, oldVnode) {
    const dialogHeaderEl = el.querySelector('.el-dialog__header')
    const dragDom = el.querySelector('.el-dialog')
    debugger
    dialogHeaderEl.style.cursor = 'move'
    // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
    const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null)
@@ -34,8 +34,8 @@
        // 移动当前元素
        dragDom.style.left = `${l + styL}px`
        dragDom.style.top = `${t + styT}px`
        //    dragDom.style.top = `${t + styT}px`
        dragDom.style.bottom = `${t - styT}px`
        // 将此时的位置传出去
        // binding.value({x:e.pageX,y:e.pageY})
      }