Explorar o código

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

zhangyu %!s(int64=4) %!d(string=hai) anos
pai
achega
eefeba539f
Modificáronse 1 ficheiros con 5 adicións e 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()
     }