fix(数据大屏): 修复数据大屏位置修改点击可能会一次性增加2px问题

This commit is contained in:
wangjiahao 2024-09-13 11:24:45 +08:00
parent 27e005e363
commit 20e4592ae1

View File

@ -155,9 +155,7 @@ const onPositionChange = key => {
)
}
} else {
curComponent.value.style[key] = Math.round(
(positionMounted.value[key] * canvasStyleData.value.scale) / 100
)
curComponent.value.style[key] = (positionMounted.value[key] * canvasStyleData.value.scale) / 100
}
if (['Group', 'DeTabs'].includes(curComponent.value.component)) {