Explorar el Código

imgitemxiugai

haojianlong hace 5 años
padre
commit
ff61844d91
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/lib/SImgTextItem.ts

+ 3 - 1
src/lib/SImgTextItem.ts

@@ -106,7 +106,9 @@ export class SImgTextItem extends SObjectItem {
     this.textItem.moveTo(16, -6);
     this.moveable = true;
     this.selectable = true;
-    this.isTransform = false
+    this.isTransform = false;
+    this.textItem.enabled = false;
+    this.img.enabled = false;
   }
 
   /**