@flexem/fc-gui 3.0.0-alpha.125 → 3.0.0-alpha.127
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/bundles/@flexem/fc-gui.umd.js +10 -5
- 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/shared/text/text-state-element.js +1 -2
- package/modal/write-value/write-value-modal.component.js +9 -3
- package/package.json +1 -1
|
@@ -39434,8 +39434,7 @@ class text_state_element_TextStateElement {
|
|
|
39434
39434
|
targetLanguage = currentLanguage;
|
|
39435
39435
|
}
|
|
39436
39436
|
else {
|
|
39437
|
-
|
|
39438
|
-
return '';
|
|
39437
|
+
targetLanguage = defaultLanguage;
|
|
39439
39438
|
}
|
|
39440
39439
|
}
|
|
39441
39440
|
// 返回对应语种的文本,如果没有则返回空字符串
|
|
@@ -43959,10 +43958,16 @@ let WriteValueModalComponent = class WriteValueModalComponent {
|
|
|
43959
43958
|
}
|
|
43960
43959
|
// 转换为数字类型
|
|
43961
43960
|
const languageId = value === '' || value == null ? null : Number(value);
|
|
43962
|
-
// 调用 GuiContext
|
|
43961
|
+
// 调用 GuiContext 的语种切换方法
|
|
43963
43962
|
this.args.guiContext.updateCurrentLanguageId(languageId).then(() => {
|
|
43964
|
-
//
|
|
43965
|
-
this.
|
|
43963
|
+
// 语种切换成功,调用 onClosed 回调,让数字显示元件也能更新
|
|
43964
|
+
this.onClosed({
|
|
43965
|
+
value: value,
|
|
43966
|
+
showValue: value,
|
|
43967
|
+
enableNumericalOperation: false,
|
|
43968
|
+
isNumericalOperation: false,
|
|
43969
|
+
variableRwType: 6
|
|
43970
|
+
});
|
|
43966
43971
|
}).catch(() => {
|
|
43967
43972
|
this.showValidationErrorInfo(this.localization.loadFailed);
|
|
43968
43973
|
this.isSubmitting = false;
|