소스 검색

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

zhangyu 5 년 전
부모
커밋
f50be499a6
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  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