@flexem/fc-gui 3.0.0-alpha.77 → 3.0.0-alpha.78

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.
package/CHANGELOG.md CHANGED
@@ -340,3 +340,8 @@
340
340
  ### Web端
341
341
  #### Bug Fix
342
342
  1. FLEXCLOUD-2523 【报警表】模拟告警表元件画面应与历史曲线元件保持一致
343
+
344
+ ## 3.0.0-alpha.78(2023-04-07)
345
+ ### Web端
346
+ #### Bug Fix
347
+ 1. FLEXCLOUD-2553 指示灯元件、开关元件配置监控点后无法在app模拟画面中操作
@@ -38542,7 +38542,8 @@ class switch_indicator_light_element_SwitchIndicatorLightElement extends conditi
38542
38542
  if (this.model.useSwitch) {
38543
38543
  this.initSwitchOperator();
38544
38544
  this.rootElement.style('cursor', 'hand');
38545
- this.rootElement.on(this.isMobileMode ? 'touchstart' : 'mousedown', () => {
38545
+ const isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
38546
+ this.rootElement.on(this.isMobileMode && isMobile ? 'touchstart' : 'mousedown', () => {
38546
38547
  if (!this.isInitialized) {
38547
38548
  return;
38548
38549
  }
@@ -38584,7 +38585,7 @@ class switch_indicator_light_element_SwitchIndicatorLightElement extends conditi
38584
38585
  on_event.preventDefault();
38585
38586
  }
38586
38587
  });
38587
- this.rootElement.on(this.isMobileMode ? 'touchend' : 'mouseup', () => {
38588
+ this.rootElement.on(this.isMobileMode && isMobile ? 'touchend' : 'mouseup', () => {
38588
38589
  this.handleMouseUp();
38589
38590
  on_event.stopPropagation();
38590
38591
  });