Explorar o código

'图标添加激活鼠标样式状态'

zhangyu %!s(int64=5) %!d(string=hai) anos
pai
achega
f50be499a6
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      saga-web-big/src/items/SIconTextItem.ts

+ 9 - 0
saga-web-big/src/items/SIconTextItem.ts

@@ -82,6 +82,15 @@ export class SIconTextItem extends SObjectItem {
     } // Get isActive
     set isActive(v: boolean) {
         this._isActive = v;
+        if (v) {
+            this.cursor = "pointer";
+            this.textItem.cursor = "pointer";
+            this.img.cursor = "pointer";
+        } else {
+            this.cursor = "auto";
+            this.textItem.cursor = "auto";
+            this.img.cursor = "auto";
+        }
         this.update();
     } // Set isActive