@flexem/fc-gui 3.0.0-alpha.126 → 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.
|
@@ -150,10 +150,16 @@ let WriteValueModalComponent = class WriteValueModalComponent {
|
|
|
150
150
|
}
|
|
151
151
|
// 转换为数字类型
|
|
152
152
|
const languageId = value === '' || value == null ? null : Number(value);
|
|
153
|
-
// 调用 GuiContext
|
|
153
|
+
// 调用 GuiContext 的语种切换方法
|
|
154
154
|
this.args.guiContext.updateCurrentLanguageId(languageId).then(() => {
|
|
155
|
-
//
|
|
156
|
-
this.
|
|
155
|
+
// 语种切换成功,调用 onClosed 回调,让数字显示元件也能更新
|
|
156
|
+
this.onClosed({
|
|
157
|
+
value: value,
|
|
158
|
+
showValue: value,
|
|
159
|
+
enableNumericalOperation: false,
|
|
160
|
+
isNumericalOperation: false,
|
|
161
|
+
variableRwType: 6
|
|
162
|
+
});
|
|
157
163
|
}).catch(() => {
|
|
158
164
|
this.showValidationErrorInfo(this.localization.loadFailed);
|
|
159
165
|
this.isSubmitting = false;
|