@flexem/fc-gui 3.0.0-alpha.77 → 3.0.0-alpha.79
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 +10 -0
- package/bundles/@flexem/fc-gui.umd.js +10 -7
- package/bundles/@flexem/fc-gui.umd.js.map +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js.map +1 -1
- package/elements/numerical-display/numerical-display-element.d.ts +1 -1
- package/elements/numerical-display/numerical-display-element.js +7 -5
- package/elements/switch-indicator-light/switch-indicator-light-element.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -340,3 +340,13 @@
|
|
|
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模拟画面中操作
|
|
348
|
+
|
|
349
|
+
## 3.0.0-alpha.79(2023-04-12)
|
|
350
|
+
### Web端
|
|
351
|
+
#### Bug Fix
|
|
352
|
+
1. FLEXCLOUD-2564 【氚云20230410001216】云组态设备详情中IOT操作日志显示异常
|
|
@@ -37143,11 +37143,12 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
|
|
|
37143
37143
|
clearTimeout(this.restorationTimer);
|
|
37144
37144
|
this.restorationTimer = undefined;
|
|
37145
37145
|
}
|
|
37146
|
+
this.recordValue = result.value;
|
|
37146
37147
|
const writeValue = this.dataTypeService.formatToDecimal(this.model.version, result.value, this.model.dataType);
|
|
37147
|
-
this.writeValue = writeValue;
|
|
37148
37148
|
this.showValue = result.showValue;
|
|
37149
37149
|
if (+this.displayText !== +this.showValue || result.variableRwType === variableRwTypeEnum.witer) {
|
|
37150
37150
|
if (this.numericalOperation || result.enableNumericalOperation || result.isNumericalOperation || result.variableRwType === variableRwTypeEnum.witer) {
|
|
37151
|
+
this.recordOperation(result.value);
|
|
37151
37152
|
this.writeValueMmodalRef.hide();
|
|
37152
37153
|
}
|
|
37153
37154
|
else {
|
|
@@ -37191,17 +37192,18 @@ class numerical_display_element_NumericalDisplayElement extends readable_element
|
|
|
37191
37192
|
}
|
|
37192
37193
|
updateVariableValue(value) {
|
|
37193
37194
|
var _a;
|
|
37194
|
-
|
|
37195
|
-
|
|
37196
|
-
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && +this.displayText === +this.showValue) {
|
|
37195
|
+
const displayText = this.formatNumericalDisplayText(this.model.dataType, this.model.fractionDigits, value);
|
|
37196
|
+
if (((_a = this.writeValueMmodalRef) === null || _a === void 0 ? void 0 : _a.content) && +displayText === +this.showValue) {
|
|
37197
37197
|
if (this.restorationTimer) {
|
|
37198
37198
|
clearTimeout(this.restorationTimer);
|
|
37199
37199
|
this.restorationTimer = undefined;
|
|
37200
|
+
this.recordOperation(this.recordValue);
|
|
37200
37201
|
}
|
|
37201
37202
|
this.writeValueMmodalRef.hide();
|
|
37202
37203
|
this.writeValueMmodalRef.content.hideValidationErrorInfo();
|
|
37203
|
-
this.recordOperation(this.writeValue);
|
|
37204
37204
|
}
|
|
37205
|
+
this.displayText = displayText;
|
|
37206
|
+
this.updateDisplayText(this.formatDisplayTextUnit(this.displayText));
|
|
37205
37207
|
}
|
|
37206
37208
|
updateDisplayText(text) {
|
|
37207
37209
|
if (!this.displayForeignObject) {
|
|
@@ -38542,7 +38544,8 @@ class switch_indicator_light_element_SwitchIndicatorLightElement extends conditi
|
|
|
38542
38544
|
if (this.model.useSwitch) {
|
|
38543
38545
|
this.initSwitchOperator();
|
|
38544
38546
|
this.rootElement.style('cursor', 'hand');
|
|
38545
|
-
|
|
38547
|
+
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);
|
|
38548
|
+
this.rootElement.on(this.isMobileMode && isMobile ? 'touchstart' : 'mousedown', () => {
|
|
38546
38549
|
if (!this.isInitialized) {
|
|
38547
38550
|
return;
|
|
38548
38551
|
}
|
|
@@ -38584,7 +38587,7 @@ class switch_indicator_light_element_SwitchIndicatorLightElement extends conditi
|
|
|
38584
38587
|
on_event.preventDefault();
|
|
38585
38588
|
}
|
|
38586
38589
|
});
|
|
38587
|
-
this.rootElement.on(this.isMobileMode ? 'touchend' : 'mouseup', () => {
|
|
38590
|
+
this.rootElement.on(this.isMobileMode && isMobile ? 'touchend' : 'mouseup', () => {
|
|
38588
38591
|
this.handleMouseUp();
|
|
38589
38592
|
on_event.stopPropagation();
|
|
38590
38593
|
});
|