Explorar el Código

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

zhangyu hace 5 años
padre
commit
f50be499a6
Se han modificado 1 ficheros con 9 adiciones y 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