Ver código fonte

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

zhangyu 4 anos atrás
pai
commit
eefeba539f
1 arquivos alterados com 5 adições e 0 exclusões
  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()
     }