代码调整

This commit is contained in:
dong 2023-01-31 09:43:31 +08:00
parent 5f92af684f
commit 9020db03a1

View File

@ -14,7 +14,7 @@ export default {
e.stopPropagation();
/** 鼠标按下,计算当前元素距离可视区的距离*/
const disY = e.clientY;
const oY = e.offsetY;
const oY = dialogHeaderEl.offsetHeight;
const bY = dragDom.offsetHeight;
/** 获取到的值带px 正则匹配替换*/
@ -57,7 +57,7 @@ export default {
e.stopPropagation();
/** 鼠标按下,计算当前元素距离可视区的距离*/
const disY = e.clientY;
const oY = e.offsetY;
const oY = dialogFooterEl.offsetHeight;
const bY = dragDom.offsetHeight;
/** 获取到的值带px 正则匹配替换*/