@flexem/fc-gui 3.0.0-alpha.165 → 3.0.0-alpha.166

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,22 +73,19 @@ export class StateControlElement extends ConditionalDynamicDisplayElement {
73
73
  }
74
74
  changeState(state) {
75
75
  switch (state) {
76
+ case State.InvalidMonitor:
77
+ this.state = State.InvalidMonitor;
78
+ break;
76
79
  case State.Unbind:
77
- // Unbind 优先级最高,可覆盖任何状态
78
- this.state = State.Unbind;
80
+ if (this.state !== State.InvalidMonitor) {
81
+ this.state = State.Unbind;
82
+ }
79
83
  break;
80
84
  case State.Offline:
81
- // Offline 优先级次于 Unbind
82
- if (this.state !== State.Unbind) {
85
+ if (this.state !== State.Unbind && this.state !== State.InvalidMonitor) {
83
86
  this.state = State.Offline;
84
87
  }
85
88
  break;
86
- case State.InvalidMonitor:
87
- // InvalidMonitor 优先级低于 Offline/Unbind
88
- if (this.state !== State.Unbind && this.state !== State.Offline) {
89
- this.state = State.InvalidMonitor;
90
- }
91
- break;
92
89
  case State.Loading:
93
90
  if (this.state !== State.Unbind && this.state !== State.Offline && this.state !== State.InvalidMonitor) {
94
91
  this.state = State.Loading;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main": "bundles/fc-gui.umd.js",
3
- "version": "3.0.0-alpha.165",
3
+ "version": "3.0.0-alpha.166",
4
4
  "module": "public_api.js",
5
5
  "typings": "public_api.d.ts",
6
6
  "license": "UNLICENSED",