@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.
@@ -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.bsModalRef.hide();
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;