From b69277a3d294f45f1055751997f71885fef874af Mon Sep 17 00:00:00 2001 From: 徐旺旺 <11530253@qq.com> Date: 星期四, 22 四月 2021 09:54:23 +0800 Subject: [PATCH] 排口 --- src/utils/dialogDrag.js | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/utils/dialogDrag.js b/src/utils/dialogDrag.js index 6f845f5..3c7b596 100644 --- a/src/utils/dialogDrag.js +++ b/src/utils/dialogDrag.js @@ -8,7 +8,9 @@ const dragDom = el.querySelector('.el-dialog') // dialogHeaderEl.style.cursor = 'move'; dialogHeaderEl.style.cssText += ';cursor:move;' - dragDom.style.cssText += ';top:0px;' + //console.log(dragDom.style.cssText) + //dragDom.style.cssText += ';top:0px;' + // dragDom.style.cssText = 'bottom:15px;' // 鑾峰彇鍘熸湁灞炴�� ie dom鍏冪礌.currentStyle 鐏嫄璋锋瓕 window.getComputedStyle(dom鍏冪礌, null); const sty = (function () { @@ -68,7 +70,9 @@ } // 绉诲姩褰撳墠鍏冪礌 - dragDom.style.cssText += `;left:${left + styL}px;top:${top + styT}px;` + //dragDom.style.cssText += `;left:${left + styL}px;top:${top + styT}px;` + dragDom.style.cssText = `;left:${left + styL}px;top:${top + styT}px;` + //console.log(left , styL,top , styT) } document.onmouseup = function (e) { -- Gitblit v1.8.0