Browse Source

REPORT-60486 布局切换引导拖拽问题&去除预览

research/11.0
kuangshuai 3 years ago
parent
commit
35905bc6a4
  1. 9
      designer-base/src/main/java/com/fr/design/mainframe/guide/scene/DragScene.java
  2. 3
      designer-realize/src/main/java/com/fr/design/mainframe/guide/creator/layout/ChangeLayoutComponentGuide.java

9
designer-base/src/main/java/com/fr/design/mainframe/guide/scene/DragScene.java

@ -45,19 +45,20 @@ public class DragScene extends AbstractGuideScene{
new DragAndDropDragGestureListener(target, DnDConstants.ACTION_COPY_OR_MOVE){
@Override
public void dragDropEnd(DragSourceDropEvent dsde) {
complete();
if (dsde.getDropSuccess()) {
complete();
}
}
};
} else if (dragType == DragType.TO) {
target.setDropTarget(new DropTarget());
target.setDropTarget(new DropSceneTarget());
}
}
private class DropSceneTarget extends DropTarget {
@Override
public synchronized void drop(DropTargetDropEvent dtde) {
super.drop(dtde);
complete();
dtde.dropComplete(true);
}
}
}

3
designer-realize/src/main/java/com/fr/design/mainframe/guide/creator/layout/ChangeLayoutComponentGuide.java

@ -38,8 +38,7 @@ public class ChangeLayoutComponentGuide {
.nextScene(createScene3())
.nextScene(GuideSceneHelper.createFormDesignerBodyDisplayScene())
.nextScene(createScene4())
.nextScene(createScene5())
.nextScene(GuideSceneHelper.createPreviewClickScene());
.nextScene(createScene5());
Guide guide = GuideBuilder.newInstance()
.setID(GuideIds.Guide.F001002)

Loading…
Cancel
Save