Browse Source

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

zhangyu 5 năm trước cách đây
mục cha
commit
f50be499a6
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  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