@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.
@@ -35106,22 +35106,19 @@ class state_control_element_StateControlElement extends conditional_dynamic_disp
35106
35106
  }
35107
35107
  changeState(state) {
35108
35108
  switch (state) {
35109
+ case _tmp_model["State"].InvalidMonitor:
35110
+ this.state = _tmp_model["State"].InvalidMonitor;
35111
+ break;
35109
35112
  case _tmp_model["State"].Unbind:
35110
- // Unbind 优先级最高,可覆盖任何状态
35111
- this.state = _tmp_model["State"].Unbind;
35113
+ if (this.state !== _tmp_model["State"].InvalidMonitor) {
35114
+ this.state = _tmp_model["State"].Unbind;
35115
+ }
35112
35116
  break;
35113
35117
  case _tmp_model["State"].Offline:
35114
- // Offline 优先级次于 Unbind
35115
- if (this.state !== _tmp_model["State"].Unbind) {
35118
+ if (this.state !== _tmp_model["State"].Unbind && this.state !== _tmp_model["State"].InvalidMonitor) {
35116
35119
  this.state = _tmp_model["State"].Offline;
35117
35120
  }
35118
35121
  break;
35119
- case _tmp_model["State"].InvalidMonitor:
35120
- // InvalidMonitor 优先级低于 Offline/Unbind
35121
- if (this.state !== _tmp_model["State"].Unbind && this.state !== _tmp_model["State"].Offline) {
35122
- this.state = _tmp_model["State"].InvalidMonitor;
35123
- }
35124
- break;
35125
35122
  case _tmp_model["State"].Loading:
35126
35123
  if (this.state !== _tmp_model["State"].Unbind && this.state !== _tmp_model["State"].Offline && this.state !== _tmp_model["State"].InvalidMonitor) {
35127
35124
  this.state = _tmp_model["State"].Loading;