Sfoglia il codice sorgente

修复文字选中bug

liwei 1 anno fa
parent
commit
26a42e6024
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      src/modules/editor/controllers/SelectCtrl/index.ts

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

@@ -659,6 +659,11 @@ export class SelectCtrl extends ModuleControl<EditorModule> {
         if (comp.layout.locked) {
           this.transferStyle.showGizmo = false;
         }
+        if (comp.compKey == "Text") {
+          if (!this.helper.isStreamCardChild(comp.id)) {
+            this.transferStyle.showGizmo = false;
+          } 
+        }
     }
   }