Explorar el Código

'启用图标蒙版时不显示文本'

zhangyu hace 4 años
padre
commit
eefeba539f
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/lib/items/SImageLegendItem.ts

+ 5 - 0
src/lib/items/SImageLegendItem.ts

@@ -50,6 +50,11 @@ export class SImageLegendItem extends SIconTextItem {
         return
         }
         this._maskFlag = v;
+        if (v) {
+            this.textItem.visible = false;
+        } else {
+            this.textItem.visible = true;
+        }
         this.update()
     }