Jelajahi Sumber

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

zhangyu 5 tahun lalu
induk
melakukan
f50be499a6
1 mengubah file dengan 9 tambahan dan 0 penghapusan
  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