Parcourir la source

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

zhangyu il y a 4 ans
Parent
commit
eefeba539f
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  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()
     }