fix: Componnent will reset when select of drag
This commit is contained in:
@@ -564,14 +564,14 @@ function onComponentDrag(e: MouseEvent) {
|
||||
);
|
||||
|
||||
// 更新这些组件的位置
|
||||
// for (const groupComp of groupComponents) {
|
||||
// diagramData.value = updatePartPosition(
|
||||
// diagramData.value,
|
||||
// groupComp.id,
|
||||
// groupComp.x + deltaX,
|
||||
// groupComp.y + deltaY,
|
||||
// );
|
||||
// }
|
||||
for (const groupComp of groupComponents) {
|
||||
diagramData.value = updatePartPosition(
|
||||
diagramData.value,
|
||||
groupComp.id,
|
||||
groupComp.x + deltaX,
|
||||
groupComp.y + deltaY,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// 通知父组件位置已更新
|
||||
|
||||
Reference in New Issue
Block a user