liwei пре 1 година
родитељ
комит
c7ed2716d4

+ 1 - 1
src/modules/editor/controllers/TransferCtrl/transforms/resize.ts

@@ -16,7 +16,7 @@ const resize: TransCreateFn = (direction: string) => ({
   mousemove() {
     const style = this.module.helper.createStyle({
       size: getResize.call(this, direction),
-    });
+    }, {} as any);
     Object.entries(style).forEach(([key, value]: any[]) => {
       this.compEl.style[key] = value;
     });

+ 1 - 1
src/modules/editor/controllers/TransferCtrl/transforms/transform.ts

@@ -42,7 +42,7 @@ const transform: TransCreateFn = (transType: string) => ({
     const style = this.module.helper.createStyle({
       transform: getTransform.call(this, transType),
       size: [0,0]
-    });
+    }, {} as any);
     Object.entries(style).forEach(([key, value]: any[]) => {
       this.compEl.style[key] = value;
     });