liwei 1 жил өмнө
parent
commit
a7da8df0f5

+ 1 - 1
src/modules/editor/components/Viewport/Content/index.tsx

@@ -47,7 +47,7 @@ export default defineUI({
         flagRef.value = true;
         setTimeout(() => {
           actions.onViewReady(
-            pageRoot.$el,
+            refs.page.value,
             refs.canvas.value,
             refs.parent.value
           );

+ 0 - 1
src/modules/editor/controllers/PageCtrl/index.ts

@@ -122,7 +122,6 @@ export class PageCtrl extends ModuleControl<EditorModule> {
               history.clear();
               history.enable = true;
         }, 1000);
-        debugger
     }
 
     get rootPage() {

+ 0 - 2
src/modules/editor/controllers/SelectCtrl/index.ts

@@ -147,7 +147,6 @@ export class SelectCtrl extends ModuleControl<EditorModule> {
     selCanvas: HTMLCanvasElement,
     viewport: HTMLElement
   ) {
-
     this.viewport = viewport;
     this.pageEl = pageEl;
     this.selCanvas = selCanvas;
@@ -591,7 +590,6 @@ export class SelectCtrl extends ModuleControl<EditorModule> {
     //@ts-ignore
     const yoff = this.store.currStreamCard.$el.getBoundingClientRect().top - this.pageEl?.getBoundingClientRect().top;
     this.transferStyle.baseCardTop = yoff / s  + "px";
-    
   
     this.transferStyle.showGizmo = true;