@flexem/fc-gui 3.0.0-alpha.132 → 3.0.0-alpha.133

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.
@@ -37,8 +37,8 @@ export class ScrollAlarmElement extends ConditionalDynamicDisplayElement {
37
37
  this.variableCommunicator = variableCommunicator;
38
38
  this.autoCycle = (_b = (_a = this.model.generalSetting) === null || _a === void 0 ? void 0 : _a.autoCycle) !== null && _b !== void 0 ? _b : true;
39
39
  this.maxResultCount = (_d = (_c = this.model.generalSetting) === null || _c === void 0 ? void 0 : _c.pageSize) !== null && _d !== void 0 ? _d : 500;
40
- // 检测是否是模拟运行模式(通过检查 alarmsStore 的类型)
41
- this.isSimulateMode = alarmsStore && alarmsStore.constructor.name === 'SimulateAlarmDataStore';
40
+ // 检测是否是模拟运行模式(通过检查 alarmsStore 的标记属性,不受代码混淆影响)
41
+ this.isSimulateMode = alarmsStore && alarmsStore.isSimulationStore === true;
42
42
  if (this.model.filterSetting && this.model.filterSetting.detailsData && this.model.filterSetting.detailsData.length > 0) {
43
43
  this.alarmNames = this.model.filterSetting.detailsData.map(item => item.name);
44
44
  // 如果是模拟运行模式,使用静态显示逻辑(类似设计态)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main": "bundles/fc-gui.umd.js",
3
- "version": "3.0.0-alpha.132",
3
+ "version": "3.0.0-alpha.133",
4
4
  "module": "public_api.js",
5
5
  "typings": "public_api.d.ts",
6
6
  "license": "UNLICENSED",