@steedos-widgets/amis-lib 6.10.1-beta.47 → 6.10.1-beta.49

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/dist/index.cjs.js CHANGED
@@ -1599,7 +1599,22 @@ var frontend_app_launcher_dialog_new_app_title$1 = "New App";
1599
1599
  var frontend_app_launcher_dialog_new_app_code_label$1 = "App ID";
1600
1600
  var frontend_app_launcher_dialog_new_app_name_label$1 = "Label";
1601
1601
  var frontend_app_launcher_dialog_new_app_icon_label$1 = "Icon";
1602
- var en_us = {
1602
+ var frontend_crud_toolbar_quick_search_placeholder$1 = "Quick Search";
1603
+ var frontend_crud_toolbar_quick_search_tooltip_prefix$1 = "Searchable fields:";
1604
+ var frontend_workflow_instances_applicant_name_prefix$1 = "Applicant name:";
1605
+ var frontend_workflow_instance_submit_date_prefix$1 = "Submission date:";
1606
+ var frontend_workflow_instance_button_sign$1 = "Sign";
1607
+ var frontend_workflow_approval_history$1 = "Approval History";
1608
+ var frontend_workflow_approval_history_read$1 = "Read";
1609
+ var frontend_workflow_approval_history_unprocessed$1 = "Unprocessed";
1610
+ var frontend_workflow_attachment$1 = "Attachment";
1611
+ var frontend_workflow_attachment_upload$1 = "Upload";
1612
+ var frontend_workflow_related_file$1 = "Related File";
1613
+ var frontend_workflow_judge_option_approved$1 = "Approved";
1614
+ var frontend_workflow_judge_option_rejected$1 = "Rejected";
1615
+ var frontend_workflow_judge_option_readed$1 = "Readed";
1616
+ var frontend_workflow_next_step$1 = "Next Step";
1617
+ var en_us$1 = {
1603
1618
  frontend_field_group_generalization: frontend_field_group_generalization$1,
1604
1619
  frontend_download: frontend_download$1,
1605
1620
  frontend_form_save: frontend_form_save$1,
@@ -1715,7 +1730,22 @@ var en_us = {
1715
1730
  frontend_app_launcher_dialog_new_app_title: frontend_app_launcher_dialog_new_app_title$1,
1716
1731
  frontend_app_launcher_dialog_new_app_code_label: frontend_app_launcher_dialog_new_app_code_label$1,
1717
1732
  frontend_app_launcher_dialog_new_app_name_label: frontend_app_launcher_dialog_new_app_name_label$1,
1718
- frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label$1
1733
+ frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label$1,
1734
+ frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder$1,
1735
+ frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix$1,
1736
+ frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix$1,
1737
+ frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix$1,
1738
+ frontend_workflow_instance_button_sign: frontend_workflow_instance_button_sign$1,
1739
+ frontend_workflow_approval_history: frontend_workflow_approval_history$1,
1740
+ frontend_workflow_approval_history_read: frontend_workflow_approval_history_read$1,
1741
+ frontend_workflow_approval_history_unprocessed: frontend_workflow_approval_history_unprocessed$1,
1742
+ frontend_workflow_attachment: frontend_workflow_attachment$1,
1743
+ frontend_workflow_attachment_upload: frontend_workflow_attachment_upload$1,
1744
+ frontend_workflow_related_file: frontend_workflow_related_file$1,
1745
+ frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved$1,
1746
+ frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected$1,
1747
+ frontend_workflow_judge_option_readed: frontend_workflow_judge_option_readed$1,
1748
+ frontend_workflow_next_step: frontend_workflow_next_step$1
1719
1749
  };
1720
1750
 
1721
1751
  var frontend_field_group_generalization = "通用";
@@ -1835,7 +1865,32 @@ var frontend_app_launcher_dialog_new_app_title = "新建应用";
1835
1865
  var frontend_app_launcher_dialog_new_app_code_label = "应用唯一标识";
1836
1866
  var frontend_app_launcher_dialog_new_app_name_label = "显示名称";
1837
1867
  var frontend_app_launcher_dialog_new_app_icon_label = "图标";
1838
- var zh_cn = {
1868
+ var frontend_crud_toolbar_quick_search_placeholder = "快捷搜索";
1869
+ var frontend_crud_toolbar_quick_search_tooltip_prefix = "可搜索字段:";
1870
+ var frontend_workflow_instances_applicant_name_prefix = "提交人:";
1871
+ var frontend_workflow_instance_submit_date_prefix = "提交日期:";
1872
+ var frontend_workflow_approval_judge_returned = "已退回";
1873
+ var frontend_workflow_approval_judge_terminated = "被取回";
1874
+ var frontend_workflow_approval_judge_pending = "审核中";
1875
+ var frontend_workflow_approval_judge_approved = "已核准";
1876
+ var frontend_workflow_approval_judge_rejected = "已驳回";
1877
+ var frontend_workflow_approval_judge_finished = "已完成";
1878
+ var frontend_workflow_approval_judge_reassigned = "转签核";
1879
+ var frontend_workflow_approval_judge_inhand = "处理中";
1880
+ var frontend_workflow_approval_judge_relocated = "重定位";
1881
+ var frontend_workflow_approval_judge_readed = "已阅";
1882
+ var frontend_workflow_instance_button_sign = "签批";
1883
+ var frontend_workflow_approval_history = "签批历程";
1884
+ var frontend_workflow_approval_history_read = "已读";
1885
+ var frontend_workflow_approval_history_unprocessed = "未处理";
1886
+ var frontend_workflow_attachment = "附件";
1887
+ var frontend_workflow_attachment_upload = "上传";
1888
+ var frontend_workflow_related_file = "相关文件";
1889
+ var frontend_workflow_judge_option_approved = "核准";
1890
+ var frontend_workflow_judge_option_rejected = "驳回";
1891
+ var frontend_workflow_judge_option_readed = "已阅";
1892
+ var frontend_workflow_next_step = "下一步";
1893
+ var zh_cn$1 = {
1839
1894
  frontend_field_group_generalization: frontend_field_group_generalization,
1840
1895
  frontend_download: frontend_download,
1841
1896
  frontend_form_save: frontend_form_save,
@@ -1952,31 +2007,69 @@ var zh_cn = {
1952
2007
  frontend_app_launcher_dialog_new_app_title: frontend_app_launcher_dialog_new_app_title,
1953
2008
  frontend_app_launcher_dialog_new_app_code_label: frontend_app_launcher_dialog_new_app_code_label,
1954
2009
  frontend_app_launcher_dialog_new_app_name_label: frontend_app_launcher_dialog_new_app_name_label,
1955
- frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label
2010
+ frontend_app_launcher_dialog_new_app_icon_label: frontend_app_launcher_dialog_new_app_icon_label,
2011
+ frontend_crud_toolbar_quick_search_placeholder: frontend_crud_toolbar_quick_search_placeholder,
2012
+ frontend_crud_toolbar_quick_search_tooltip_prefix: frontend_crud_toolbar_quick_search_tooltip_prefix,
2013
+ frontend_workflow_instances_applicant_name_prefix: frontend_workflow_instances_applicant_name_prefix,
2014
+ frontend_workflow_instance_submit_date_prefix: frontend_workflow_instance_submit_date_prefix,
2015
+ frontend_workflow_approval_judge_returned: frontend_workflow_approval_judge_returned,
2016
+ frontend_workflow_approval_judge_terminated: frontend_workflow_approval_judge_terminated,
2017
+ frontend_workflow_approval_judge_pending: frontend_workflow_approval_judge_pending,
2018
+ frontend_workflow_approval_judge_approved: frontend_workflow_approval_judge_approved,
2019
+ frontend_workflow_approval_judge_rejected: frontend_workflow_approval_judge_rejected,
2020
+ frontend_workflow_approval_judge_finished: frontend_workflow_approval_judge_finished,
2021
+ frontend_workflow_approval_judge_reassigned: frontend_workflow_approval_judge_reassigned,
2022
+ frontend_workflow_approval_judge_inhand: frontend_workflow_approval_judge_inhand,
2023
+ frontend_workflow_approval_judge_relocated: frontend_workflow_approval_judge_relocated,
2024
+ frontend_workflow_approval_judge_readed: frontend_workflow_approval_judge_readed,
2025
+ frontend_workflow_instance_button_sign: frontend_workflow_instance_button_sign,
2026
+ frontend_workflow_approval_history: frontend_workflow_approval_history,
2027
+ frontend_workflow_approval_history_read: frontend_workflow_approval_history_read,
2028
+ frontend_workflow_approval_history_unprocessed: frontend_workflow_approval_history_unprocessed,
2029
+ frontend_workflow_attachment: frontend_workflow_attachment,
2030
+ frontend_workflow_attachment_upload: frontend_workflow_attachment_upload,
2031
+ frontend_workflow_related_file: frontend_workflow_related_file,
2032
+ frontend_workflow_judge_option_approved: frontend_workflow_judge_option_approved,
2033
+ frontend_workflow_judge_option_rejected: frontend_workflow_judge_option_rejected,
2034
+ frontend_workflow_judge_option_readed: frontend_workflow_judge_option_readed,
2035
+ frontend_workflow_next_step: frontend_workflow_next_step
1956
2036
  };
1957
2037
 
2038
+ /*
2039
+ * @Author: 殷亮辉 yinlianghui@hotoa.com
2040
+ * @Date: 2025-08-25 21:06:56
2041
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
2042
+ * @LastEditTime: 2025-08-26 10:17:05
2043
+ */
2044
+
1958
2045
  const resources = {
1959
2046
  "en": {
1960
- translation: en_us
2047
+ translation: en_us$1
1961
2048
  },
1962
2049
  "zh-CN": {
1963
- translation: zh_cn
2050
+ translation: zh_cn$1
1964
2051
  }
1965
2052
  };
1966
2053
 
1967
- var locale = "zh-CN";
1968
- if (typeof window != 'undefined') {
1969
- locale = Builder.settings.context?.user?.language || window.navigator.language;
1970
- if(locale === 'en' || locale.startsWith('en-')){
1971
- locale = 'en';
2054
+ const getUserLanguage$1 = () => {
2055
+ var lan = Builder.settings.context?.user?.language || window.navigator.language;
2056
+ if(lan === 'en' || lan.startsWith('en-')){
2057
+ lan = 'en';
1972
2058
  }
2059
+ return lan;
2060
+ };
2061
+
2062
+ var locale$1 = "zh-CN";
2063
+ if (typeof window != 'undefined') {
2064
+ window.steedosI18next = i18next__default["default"];
2065
+ locale$1 = getUserLanguage$1();
1973
2066
  }
1974
2067
 
1975
2068
  i18next__default["default"]
1976
2069
  .use(reactI18next.initReactI18next)
1977
2070
  .init({
1978
2071
  resources,
1979
- lng: locale,
2072
+ lng: locale$1,
1980
2073
  interpolation: {
1981
2074
  escapeValue: false
1982
2075
  }
@@ -9257,7 +9350,7 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
9257
9350
  "id": "steedos_crud_toolbar_quick_search",
9258
9351
  "align": "right",
9259
9352
  "title": "",
9260
- "content": "可搜索字段:" + searchableFieldsLabel.join(","),
9353
+ "content": i18next__default["default"].t('frontend_crud_toolbar_quick_search_tooltip_prefix') + searchableFieldsLabel.join(","),
9261
9354
  "placement": "bottom",
9262
9355
  "tooltipTheme": "dark",
9263
9356
  "trigger": "click",
@@ -9267,7 +9360,7 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
9267
9360
  {
9268
9361
  "type": "search-box",
9269
9362
  "name": keywordsSearchBoxName,
9270
- "placeholder": "快捷搜索",
9363
+ "placeholder": i18next__default["default"].t('frontend_crud_toolbar_quick_search_placeholder'),//"快捷搜索",
9271
9364
  "value": crudKeywords,
9272
9365
  "mini": true,
9273
9366
  "clearable": true,//因为清除并不会触发失去焦点事件,只有禁用,但是它会触发change事件,所以等升级到amis 3.4+后可以重新放开
@@ -16914,11 +17007,11 @@ const getJudgeOptions = async (instance) => {
16914
17007
  const options = [];
16915
17008
  if (step.step_type === "sign") {
16916
17009
  options.push({
16917
- label: "核准",
17010
+ label: amisLib.i18next.t('frontend_workflow_judge_option_approved'),//"核准",
16918
17011
  value: "approved",
16919
17012
  });
16920
17013
  options.push({
16921
- label: "驳回",
17014
+ label: amisLib.i18next.t('frontend_workflow_judge_option_rejected'),//"驳回",
16922
17015
  value: "rejected",
16923
17016
  });
16924
17017
  } else if (
@@ -16926,15 +17019,15 @@ const getJudgeOptions = async (instance) => {
16926
17019
  HIDE_COUNTER_SIGN_JUDGE_OPTIONS != true
16927
17020
  ) {
16928
17021
  options.push({
16929
- label: "核准",
17022
+ label: amisLib.i18next.t('frontend_workflow_judge_option_approved'),//"核准",
16930
17023
  value: "approved",
16931
17024
  });
16932
17025
  options.push({
16933
- label: "驳回",
17026
+ label: amisLib.i18next.t('frontend_workflow_judge_option_rejected'),//"驳回",
16934
17027
  value: "rejected",
16935
17028
  });
16936
17029
  options.push({
16937
- label: "已阅",
17030
+ label: amisLib.i18next.t('frontend_workflow_judge_option_readed'),//"已阅",
16938
17031
  value: "readed",
16939
17032
  });
16940
17033
  }
@@ -16995,7 +17088,7 @@ const getNextStepInput = async (instance) => {
16995
17088
  body: [
16996
17089
  {
16997
17090
  type: "tpl",
16998
- tpl: "下一步",
17091
+ tpl: amisLib.i18next.t('frontend_workflow_next_step'),//"下一步",
16999
17092
  inline: true,
17000
17093
  wrapperComponent: "",
17001
17094
  id: "u:0a85de51480f",
@@ -17473,7 +17566,7 @@ const getApprovalDrawerSchema = async (instance) => {
17473
17566
  actions: [
17474
17567
  {
17475
17568
  type: "button",
17476
- label: "提交",
17569
+ label: "${'Submit' | t}",
17477
17570
  onEvent: {
17478
17571
  click: {
17479
17572
  actions: await getSubmitActions(instance),
@@ -17484,7 +17577,7 @@ const getApprovalDrawerSchema = async (instance) => {
17484
17577
  },
17485
17578
  {
17486
17579
  type: "button",
17487
- label: "取消",
17580
+ label: "${'Cancel' | t}",
17488
17581
  onEvent: {
17489
17582
  click: {
17490
17583
  actions: [
@@ -17505,8 +17598,8 @@ const getApprovalDrawerSchema = async (instance) => {
17505
17598
  /*
17506
17599
  * @Author: baozhoutao@steedos.com
17507
17600
  * @Date: 2022-09-16 17:27:24
17508
- * @LastEditors: baozhoutao@steedos.com
17509
- * @LastEditTime: 2023-02-08 10:13:06
17601
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
17602
+ * @LastEditTime: 2025-08-28 01:24:26
17510
17603
  * @Description:
17511
17604
  */
17512
17605
  // TODO attachments
@@ -17578,11 +17671,11 @@ const getAttachmentUploadInput = async (instance)=>{
17578
17671
  "type": "input-file",
17579
17672
  labelClassName: "antd-List-heading",
17580
17673
  className: "flex items-center",
17581
- "label": "附件",
17674
+ "label": amisLib.i18next.t('frontend_workflow_attachment'),
17582
17675
  mode:"inline",
17583
17676
  "name": "file",
17584
17677
  "id": "u:a58d02614e04",
17585
- "btnLabel": "上传",
17678
+ "btnLabel": amisLib.i18next.t('frontend_workflow_attachment_upload'),
17586
17679
  "btnClassName": "m-0",
17587
17680
  "multiple": true,
17588
17681
  "maxLength": 10,
@@ -17650,8 +17743,8 @@ const getAttachmentUploadInput = async (instance)=>{
17650
17743
  /*
17651
17744
  * @Author: baozhoutao@steedos.com
17652
17745
  * @Date: 2022-09-16 17:26:12
17653
- * @LastEditors: baozhoutao@steedos.com
17654
- * @LastEditTime: 2023-02-09 09:48:18
17746
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
17747
+ * @LastEditTime: 2025-08-28 01:23:32
17655
17748
  * @Description:
17656
17749
  */
17657
17750
  const getRelatedRecords = async (instance)=>{
@@ -17677,7 +17770,7 @@ const getRelatedInstances = async (instance)=>{
17677
17770
  "type": "list",
17678
17771
  "name": "relatedInstances",
17679
17772
  "source": "${related_instances}",
17680
- title: "相关文件",
17773
+ title: amisLib.i18next.t('frontend_workflow_related_file'),
17681
17774
  "listItem": {
17682
17775
  "body": [
17683
17776
  {
@@ -17697,8 +17790,8 @@ const getRelatedInstances = async (instance)=>{
17697
17790
  /*
17698
17791
  * @Author: baozhoutao@steedos.com
17699
17792
  * @Date: 2022-09-24 16:48:28
17700
- * @LastEditors: baozhoutao@steedos.com
17701
- * @LastEditTime: 2022-09-27 16:45:58
17793
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
17794
+ * @LastEditTime: 2025-08-28 01:38:39
17702
17795
  * @Description:
17703
17796
  */
17704
17797
 
@@ -17706,7 +17799,7 @@ const getInstanceApprovalHistory = async ()=>{
17706
17799
  return {
17707
17800
  "type": "table",
17708
17801
  "headerClassName": "hidden",
17709
- "title": "签批历程",
17802
+ "title": amisLib.i18next.t('frontend_workflow_approval_history'),
17710
17803
  "source": "${historyApproves}",
17711
17804
  "className": "m-b-none instance-approve-history",
17712
17805
  "columnsTogglable": false,
@@ -17727,14 +17820,14 @@ const getInstanceApprovalHistory = async ()=>{
17727
17820
  {
17728
17821
  "name": "finish_date",
17729
17822
  "label": "finish_date",
17730
- "classNameExpr": "<%= data.finish_date == '已读' ? 'text-[blue]' : (data.finish_date == '未处理' ? 'text-[red]' : '') %>"
17823
+ "classNameExpr": "<%= data.finish_date == i18next.t('frontend_workflow_approval_history_read') ? 'text-[blue]' : (data.finish_date == i18next.t('frontend_workflow_approval_history_unprocessed') ? 'text-[red]' : '') %>"
17731
17824
  // "type": "datetime",
17732
17825
  // "format": "YYYY-MM-DD HH:mm"
17733
17826
  },
17734
17827
  {
17735
17828
  "name": "judge",
17736
17829
  "label": "judge",
17737
- "classNameExpr": "<%= data.judge == '已核准' ? 'text-green-600' : (data.judge == '已驳回' ? 'text-[red]' : '') %>"
17830
+ "classNameExpr": "<%= data.judge == i18next.t('frontend_workflow_approval_judge_approved') ? 'text-green-600' : (data.judge == i18next.t('frontend_workflow_approval_judge_rejected') ? 'text-[red]' : '') %>"
17738
17831
  }
17739
17832
  ]
17740
17833
  }
@@ -17743,8 +17836,8 @@ const getInstanceApprovalHistory = async ()=>{
17743
17836
  /*
17744
17837
  * @Author: baozhoutao@steedos.com
17745
17838
  * @Date: 2022-09-07 16:20:45
17746
- * @LastEditors: liaodaxue
17747
- * @LastEditTime: 2023-12-29 16:06:35
17839
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
17840
+ * @LastEditTime: 2025-08-28 02:36:59
17748
17841
  * @Description:
17749
17842
  */
17750
17843
 
@@ -18347,6 +18440,95 @@ const getFormTableView = async (instance) => {
18347
18440
  return formSchema;
18348
18441
  };
18349
18442
 
18443
+ const getFormSteps = async (instance) => {
18444
+ const stepsSchema = [];
18445
+ let stepFields = [];
18446
+ let fields = [];
18447
+ let unGroupFields = [];
18448
+ _$1.each(instance.fields, (field) => {
18449
+ if (field.type === "section") {
18450
+ fields.push(field);
18451
+ }
18452
+ else {
18453
+ unGroupFields.push(field);
18454
+ }
18455
+ });
18456
+ if (unGroupFields.length > 0) {
18457
+ fields = [{
18458
+ type: "section",
18459
+ name: "General",
18460
+ code: "General",
18461
+ fields: unGroupFields
18462
+ }].concat(fields);
18463
+ }
18464
+
18465
+ for (const field of fields) {
18466
+ if (field.type === "section" && field.fields) {
18467
+ stepFields = [];
18468
+ let fieldSchema;
18469
+ for (const childField of field.fields) {
18470
+ fieldSchema = await getTdInputTpl(childField, true);
18471
+ stepFields.push(fieldSchema);
18472
+ }
18473
+ stepsSchema.push({
18474
+ "title": field.name,
18475
+ "mode": "horizontal",
18476
+ "body": stepFields
18477
+ });
18478
+ }
18479
+ }
18480
+ var isReadonlyBox = instance.box !== 'inbox' && instance.box !== 'draft';
18481
+ if (isReadonlyBox) {
18482
+ // 只读的审批箱中最后一步的保存按钮要隐藏
18483
+ if (stepsSchema.length == 1) {
18484
+ stepsSchema[stepsSchema.length - 1].actions = [];
18485
+ }
18486
+ else if (stepsSchema.length > 1) {
18487
+ stepsSchema[stepsSchema.length - 1].actions = [
18488
+ {
18489
+ "label": "Prev",
18490
+ "type": "button",
18491
+ "actionType": "prev"
18492
+ }
18493
+ ];
18494
+ }
18495
+ }
18496
+ return stepsSchema;
18497
+ };
18498
+
18499
+ const getFormWizardView = async (instance) => {
18500
+ const formSchema = {
18501
+ type: "wizard",
18502
+ className: "instance-form-view-wizard pt-4",
18503
+ steps: await getFormSteps(instance),
18504
+ actionFinishLabel: "${'CustomAction.instances.instance_save' | t}",//"保存",
18505
+ id: "u:instance_wizard",
18506
+ target: "instance_form",
18507
+ "onEvent": {
18508
+ "change": {
18509
+ "actions": [
18510
+ {
18511
+ "actionType": "setValue",
18512
+ "componentId": "instance_form",
18513
+ "args": {
18514
+ "value": "${event.data}"
18515
+ }
18516
+ }
18517
+ ]
18518
+ },
18519
+ "finished": { //点最后一步完成按钮触发暂存按钮事件保存数据
18520
+ "actions": [
18521
+ {
18522
+ "actionType": "click",
18523
+ "componentId": "u:instance_save"
18524
+ }
18525
+ ]
18526
+ }
18527
+ },
18528
+ };
18529
+ return formSchema;
18530
+ };
18531
+
18350
18532
  const getApplicantTableView = async (instance) => {
18351
18533
  let applicantInput = null;
18352
18534
  if(instance.state === 'draft'){
@@ -18397,7 +18579,7 @@ const getApplicantTableView = async (instance) => {
18397
18579
  body: [
18398
18580
  {
18399
18581
  type: "tpl",
18400
- tpl: "<div class='inline-left'>提交人:</div>",
18582
+ tpl: "<div class='inline-left'>" + amisLib.i18next.t('frontend_workflow_instances_applicant_name_prefix') + "</div>",
18401
18583
  id: "u:ee62634201bf",
18402
18584
  },
18403
18585
  applicantInput
@@ -18416,7 +18598,7 @@ const getApplicantTableView = async (instance) => {
18416
18598
  body: [
18417
18599
  {
18418
18600
  type: "tpl",
18419
- tpl: "<div class='inline-left'>提交日期:</div>",
18601
+ tpl: "<div class='inline-left'>" + amisLib.i18next.t('frontend_workflow_instance_submit_date_prefix') + "</div>",
18420
18602
  id: "u:6d0a7763d527",
18421
18603
  },
18422
18604
  {
@@ -18455,7 +18637,7 @@ const getApproveButton = async (instance)=>{
18455
18637
  }
18456
18638
  return {
18457
18639
  type: "button",
18458
- label: "签批",
18640
+ label: amisLib.i18next.t('frontend_workflow_instance_button_sign'),
18459
18641
  onEvent: {
18460
18642
  click: {
18461
18643
  actions: [
@@ -18476,6 +18658,14 @@ const getApproveButton = async (instance)=>{
18476
18658
  };
18477
18659
 
18478
18660
  const getFlowFormSchema = async (instance, box) => {
18661
+ const formStyle = instance.form.current.style || "table";
18662
+ let formContentSchema;
18663
+ if (formStyle === "wizard") {
18664
+ formContentSchema = await getFormWizardView(instance);
18665
+ }
18666
+ else {
18667
+ formContentSchema = await getFormTableView(instance);
18668
+ }
18479
18669
  return {
18480
18670
  type: "page",
18481
18671
  name: "instancePage",
@@ -18552,7 +18742,7 @@ const getFlowFormSchema = async (instance, box) => {
18552
18742
  textAlign: "center",
18553
18743
  },
18554
18744
  },
18555
- await getFormTableView(instance),
18745
+ formContentSchema,
18556
18746
  await getApplicantTableView(instance),
18557
18747
 
18558
18748
  ],
@@ -18605,7 +18795,19 @@ const getFlowFormSchema = async (instance, box) => {
18605
18795
  actionType: "reload"
18606
18796
  }
18607
18797
  ]
18608
- }
18798
+ },
18799
+ "inited": {
18800
+ "actions": [
18801
+ {
18802
+ "actionType": "setValue",
18803
+ "componentId": "instance_form",
18804
+ "args": {
18805
+ "value": "${event.data.context.approveValues}"
18806
+ },
18807
+ "expression": "${event.data.context.form.current.style === 'wizard'}"// 表单为 wizard 样式时需要初始同步表单数据,否则直接点击暂存按钮会清空数据
18808
+ }
18809
+ ]
18810
+ },
18609
18811
  // inited: {
18610
18812
  // weight: 0,
18611
18813
  // actions: [
@@ -18733,8 +18935,8 @@ const getOpinionFieldStepsName = (field, top_keywords) => {
18733
18935
  /*
18734
18936
  * @Author: baozhoutao@steedos.com
18735
18937
  * @Date: 2022-09-09 17:47:37
18736
- * @LastEditors: baozhoutao@steedos.com
18737
- * @LastEditTime: 2023-10-10 13:57:02
18938
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
18939
+ * @LastEditTime: 2025-08-28 01:47:42
18738
18940
  * @Description:
18739
18941
  */
18740
18942
 
@@ -18909,7 +19111,8 @@ const getInstanceInfo = async (props) => {
18909
19111
  form_version,
18910
19112
  form:form__expand{
18911
19113
  _id,
18912
- name
19114
+ name,
19115
+ style,
18913
19116
  current,
18914
19117
  historys
18915
19118
  },
@@ -19023,7 +19226,7 @@ const getInstanceInfo = async (props) => {
19023
19226
  opinion = approve.cc_description;
19024
19227
  }
19025
19228
  if (!finishDate) {
19026
- finishDate = approve.is_read ? "已读" : "未处理";
19229
+ finishDate = approve.is_read ? amisLib.i18next.t('frontend_workflow_approval_history_read') : amisLib.i18next.t('frontend_workflow_approval_history_unprocessed');
19027
19230
  judge = null;
19028
19231
  } else {
19029
19232
  finishDate = moment && moment(finishDate).format("YYYY-MM-DD HH:mm");
@@ -19034,34 +19237,34 @@ const getInstanceInfo = async (props) => {
19034
19237
  judge = "";
19035
19238
  break;
19036
19239
  case "returned":
19037
- judge = "已退回";
19240
+ judge = amisLib.i18next.t('frontend_workflow_approval_judge_returned');//"已退回"
19038
19241
  break;
19039
19242
  case "terminated":
19040
- judge = "被取回";
19243
+ judge = amisLib.i18next.t('frontend_workflow_approval_judge_terminated');//"被取回";
19041
19244
  break;
19042
19245
  case "pending":
19043
- judge = "审核中";
19246
+ judge = amisLib.i18next.t('frontend_workflow_approval_judge_pending');//"审核中";
19044
19247
  break;
19045
19248
  case "approved":
19046
- judge = "已核准";
19249
+ judge = amisLib.i18next.t('frontend_workflow_approval_judge_approved');//"已核准";
19047
19250
  break;
19048
19251
  case "rejected":
19049
- judge = "已驳回";
19252
+ judge = amisLib.i18next.t('frontend_workflow_approval_judge_rejected');//"已驳回";
19050
19253
  break;
19051
19254
  case "finished":
19052
- judge = "已完成";
19255
+ judge = amisLib.i18next.t('frontend_workflow_approval_judge_finished');//"已完成";
19053
19256
  break;
19054
19257
  case "reassigned":
19055
- judge = "转签核";
19258
+ judge = amisLib.i18next.t('frontend_workflow_approval_judge_reassigned');//"转签核";
19056
19259
  break;
19057
19260
  case "inhand":
19058
- judge = "处理中";
19261
+ judge = amisLib.i18next.t('frontend_workflow_approval_judge_inhand');//"处理中";
19059
19262
  break;
19060
19263
  case "relocated":
19061
- judge = "重定位";
19264
+ judge = amisLib.i18next.t('frontend_workflow_approval_judge_relocated');//"重定位";
19062
19265
  break;
19063
19266
  case "readed":
19064
- judge = "已阅";
19267
+ judge = amisLib.i18next.t('frontend_workflow_approval_judge_readed');//"已阅";
19065
19268
  break;
19066
19269
  }
19067
19270
  return {
@@ -19079,6 +19282,793 @@ const getInstanceInfo = async (props) => {
19079
19282
  };
19080
19283
  };
19081
19284
 
19285
+ var asc$1 = "Asc";
19286
+ var cancel$1 = "Cancel";
19287
+ var clear$1 = "Clear";
19288
+ var add$1 = "New";
19289
+ var confirm$1 = "Confirm";
19290
+ var deleteConfirm$1 = "Are your sure to delete?";
19291
+ var deleteFailed$1 = "Delete failed";
19292
+ var desc$1 = "Desc";
19293
+ var fetchFailed$1 = "Fetch api failed";
19294
+ var link$1 = "Link";
19295
+ var loading$1 = "Loading";
19296
+ var networkError$1 = "Network error or missing CORS configuration";
19297
+ var noResult$1 = "No Result";
19298
+ var reset$1 = "Reset";
19299
+ var saveFailed$1 = "Save failed";
19300
+ var saveSuccess$1 = "Saved successfully";
19301
+ var search$1 = "Search";
19302
+ var searchHistory$1 = "Search History";
19303
+ var searchResult$1 = "Search result";
19304
+ var sort$1 = "Sort";
19305
+ var stop$1 = "Stop";
19306
+ var validateFailed$1 = "Validate failed";
19307
+ var reload$1 = "Reload";
19308
+ var rotate$1 = "Rotate";
19309
+ var TimeNow$1 = "Now";
19310
+ var en_us = {
19311
+ "Action.countDown": "Wait for ${timeLeft}s",
19312
+ "Alert.info": "System Info",
19313
+ "App.home": "Home",
19314
+ "App.navigation": "Navigation",
19315
+ asc: asc$1,
19316
+ "Calendar.datepicker": "Date Picker",
19317
+ "Calendar.yearmonth": "YYYY MM",
19318
+ "Calendar.year": "YYYY",
19319
+ "Calendar.begin": "begin",
19320
+ "Calendar.end": "end",
19321
+ "Calendar.beginAndEnd": "b/e",
19322
+ "Calendar.toast": "Out of date range",
19323
+ "Calendar.startPick": "Select start time",
19324
+ "Calendar.endPick": "Select end time",
19325
+ cancel: cancel$1,
19326
+ "Card.dragTip": "Drag top button to sort",
19327
+ "Card.toggleDrag": "Toggle drag to sort",
19328
+ "City.street": "Enter street info",
19329
+ clear: clear$1,
19330
+ "ColorPicker.placeholder": "Select color",
19331
+ "SubForm.add": "New",
19332
+ add: add$1,
19333
+ "Combo.dragDropSort": "Drag to sort",
19334
+ "Combo.invalidData": "invalid data, please remove",
19335
+ "Combo.maxLength": "Maximum item ia {{MaxLength}}}. Please delete some",
19336
+ "Combo.minLength": "A least {{minLength}} item. Please add more",
19337
+ "Combo.type": "Type",
19338
+ confirm: confirm$1,
19339
+ "Copyable.tip": "Copy",
19340
+ "CRUD.exportCSV": "Export CSV",
19341
+ "CRUD.exportExcel": "Export Excel",
19342
+ "CRUD.fetchFailed": "Fetch failed",
19343
+ "CRUD.filter": "Filter",
19344
+ "CRUD.selected": "selected {{total}} items",
19345
+ "CRUD.invalidArray": "data.items must be an array",
19346
+ "CRUD.invalidData": "data is empty",
19347
+ "CRUD.loadMore": "Load more",
19348
+ "CRUD.perPage": "Per page",
19349
+ "CRUD.stat": "{{page}} of {{lastPage}} total: {{total}}.",
19350
+ "CRUD.paginationGoText": "Go to",
19351
+ "CRUD.paginationPageText": "page",
19352
+ "PaginationWrapper.placeholder": "please config body",
19353
+ "Pagination.select": "{{count}} items/page",
19354
+ "Pagination.goto": "goto",
19355
+ "Pagination.go": "GO",
19356
+ "Pagination.totalPage": "total {{lastPage}} pages",
19357
+ "Pagination.totalCount": "total {{total}} items",
19358
+ "Date.titleYear": "select year",
19359
+ "Date.titleMonth": "select month and year",
19360
+ "Date.titleDate": "select month, year and day",
19361
+ "Date.titleTime": "select time",
19362
+ "Date.daysago": "{{days}} day(s) ago",
19363
+ "Date.dayslater": "{{days}} day(s) later",
19364
+ "Date.endOfMonth": "last day of the month",
19365
+ "Date.endOfLastMonth": "last day of last month",
19366
+ "Date.endOfWeek": "Saturday",
19367
+ "Date.hoursago": "{{hours}} hour(s) ago",
19368
+ "Date.hourslater": "{{hours}} hour(s) later",
19369
+ "Date.invalid": "Invalid date",
19370
+ "Date.monday": "Monday",
19371
+ "Date.monthsago": "{{months}} month(s) ago",
19372
+ "Date.monthslater": "{{months}} month(s) later",
19373
+ "Date.now": "Now",
19374
+ "Date.placeholder": "Select Date",
19375
+ "Date.quartersago": "{{quarters}} quarter(s) ago",
19376
+ "Date.quarterslater": "{{quarters}} quarter(s) later",
19377
+ "Date.startOfLastMonth": "First day of the last month",
19378
+ "Date.startOfLastQuarter": "First day of the last quarter",
19379
+ "Date.startOfMonth": "First day of the month",
19380
+ "Date.startOfQuarter": "First day of the quarter",
19381
+ "Date.today": "Today",
19382
+ "Date.tomorrow": "Tomorrow",
19383
+ "Date.weeksago": "{{weeks}} week(s) ago",
19384
+ "Date.weekslater": "{{weeks}} week(s) later",
19385
+ "Date.yesterday": "Yesterday",
19386
+ "dateformat.year": "YYYY",
19387
+ "DateRange.daysago": "Last {{days}} day(s)",
19388
+ "DateRange.dayslater": "Within {{days}} day(s)",
19389
+ "DateRange.weeksago": "Last {{weeks}} week(s)",
19390
+ "DateRange.weekslater": "Within {{weeks}} week(s)",
19391
+ "DateRange.monthsago": "Last {{months}} month(s)",
19392
+ "DateRange.monthslater": "Within {{months}} month(s)",
19393
+ "DateRange.quartersago": "Last {{quarters}} quarter(s)",
19394
+ "DateRange.quarterslater": "Within {{quarters}} quarter(s)",
19395
+ "DateRange.yearsago": "Last {{years}} year(s)",
19396
+ "DateRange.yearslater": "Within {{years}} year(s)",
19397
+ "DateRange.hoursago": "Last {{hours}} hour(s)",
19398
+ "DateRange.hourslater": "Within {{hours}} hour(s)",
19399
+ "DateRange.1dayago": "1 day ago",
19400
+ "DateRange.1daysago": "1 day ago",
19401
+ "DateRange.7daysago": "7 days ago",
19402
+ "DateRange.30daysago": "30 days ago",
19403
+ "DateRange.90daysago": "90 days ago",
19404
+ "DateRange.lastMonth": "Last month",
19405
+ "DateRange.lastWeek": "Last week",
19406
+ "DateRange.lastQuarter": "Last quarter",
19407
+ "DateRange.placeholder": "Select a Date range",
19408
+ "YearRange.placeholder": "Select a Year range",
19409
+ "DateRange.thisWeek": "This Week",
19410
+ "DateRange.thisMonth": "This month",
19411
+ "DateRange.thisQuarter": "This quarter",
19412
+ "DateRange.thisYear": "This year",
19413
+ "DateRange.lastYear": "Last year",
19414
+ "DateRange.valueConcat": " to ",
19415
+ "DateTime.placeholder": "Select Datetime",
19416
+ "delete": "Delete",
19417
+ deleteConfirm: deleteConfirm$1,
19418
+ deleteFailed: deleteFailed$1,
19419
+ desc: desc$1,
19420
+ "Dialog.close": "Close",
19421
+ "Dialog.title": "Title",
19422
+ "Embed.invalidRoot": "Invalid root selector",
19423
+ "Embed.downloading": "Start downloading",
19424
+ "Excel.placeholder": "Drag 'n' drop excel here, or click to select",
19425
+ "Excel.parsed": "{{filename}} Parsed",
19426
+ fetchFailed: fetchFailed$1,
19427
+ "File.continueAdd": "Continue add",
19428
+ "File.downloadTpl": "Download template",
19429
+ "File.dragDrop": "Drag 'n' drop some files here or",
19430
+ "File.clickUpload": "click here to upload",
19431
+ "File.helpText": "Help documentation",
19432
+ "File.errorRetry": "File upload failed, please try again",
19433
+ "File.failed": "Failed files.",
19434
+ "File.invalidType": "{{files}} does not match type `{{accept}}`",
19435
+ "File.maxLength": "The maximum limit is {{maxLength}}",
19436
+ "File.maxSize": "{{filename}} you selected exceeds the maximum limit of {{maxsize}} (in bytes)",
19437
+ "File.pause": "Pause uplaod",
19438
+ "File.repick": "Repick",
19439
+ "File.result": "Successfully uploaded {{uploaded}} files, failed to upload {{failed}} files",
19440
+ "File.retry": "Retry",
19441
+ "File.sizeLimit": "The maximum file size is {{maxSize}}",
19442
+ "File.start": "Start upload",
19443
+ "File.upload": "Upload",
19444
+ "Image.upload": "Upload image",
19445
+ "File.uploadFailed": "return data of udpload api is empty",
19446
+ "File.uploading": "Uploading",
19447
+ "FormItem.autoFillLoadFailed": "return data of autoUpdate api is error",
19448
+ "FormItem.autoFillSuggest": "Reference data entry",
19449
+ "Form.loadOptionsFailed": "Failed to load options because: {{reason}}",
19450
+ "Form.submit": "Submit",
19451
+ "Form.title": "Form",
19452
+ "Form.unique": "Current value is not unique",
19453
+ "Form.validateFailed": "Form input validation failed",
19454
+ "Form.nestedError": "Form cannot appear as a descendant of form",
19455
+ "Image.configError": "Can only set one of crop or multiple",
19456
+ "Image.crop": "Crop image",
19457
+ "Image.dragDrop": "Drag 'n' drop some photos here",
19458
+ "Image.height": "height: {{height}}px",
19459
+ "Image.limitMax": "Minimum image size is {{info}}",
19460
+ "Image.limitMin": "Maximum image size is {{info}}",
19461
+ "Image.limitRatio": "Please upload image with the size ratio of {{ration}}",
19462
+ "Image.pasteTip": "You can paste image from the clipboard",
19463
+ "Image.placeholder": "Click to select image or drag into this area",
19464
+ "Image.size": "size: ({{width}}px x {{height}}px)",
19465
+ "Image.sizeNotEqual": "The image you selected does not meet the size requirements {{info}}",
19466
+ "Image.width": "width: {{width}}px",
19467
+ "Image.zoomIn": "Zoom In",
19468
+ "Log.mustHaveSource": "Must have source in config",
19469
+ "Log.showLineNumber": "Display line number",
19470
+ "Log.notShowLineNumber": "Hide line number",
19471
+ "Log.expand": "Expand Operation",
19472
+ "Log.collapse": "Collapse Operation",
19473
+ link: link$1,
19474
+ loading: loading$1,
19475
+ "LocationPicker.placeholder": "Pick location",
19476
+ "Month.placeholder": "Select a month",
19477
+ "Nav.sourceError": "Fetch link error",
19478
+ networkError: networkError$1,
19479
+ noResult: noResult$1,
19480
+ "NumberInput.placeholder": "Please enter a number",
19481
+ "Options.addPlaceholder": "Please enter a name",
19482
+ "Options.deleteAPI": "Must have deleteAPI",
19483
+ "Options.editLabel": "Edit {{label}}",
19484
+ "Options.label": "option",
19485
+ "Options.createFailed": "create failed, please check",
19486
+ "placeholder.empty": "<Empty>",
19487
+ "placeholder.enter": "Enter",
19488
+ "placeholder.noData": "No data",
19489
+ "placeholder.noOption": "No option",
19490
+ "placeholder.selectData": "Select data",
19491
+ "Quarter.placeholder": "Select a quarter",
19492
+ "Repeat.pre": "Per",
19493
+ reset: reset$1,
19494
+ saveFailed: saveFailed$1,
19495
+ saveSuccess: saveSuccess$1,
19496
+ search: search$1,
19497
+ searchHistory: searchHistory$1,
19498
+ searchResult: searchResult$1,
19499
+ "Checkboxes.selectAll": "Select/Deselect All",
19500
+ "Select.checkAll": "Check all",
19501
+ "Select.clear": "Clear",
19502
+ "Select.upload": "Re upload",
19503
+ "Select.clearAll": "Clear all",
19504
+ "Select.createLabel": "New option",
19505
+ "Select.placeholder": "Select",
19506
+ "Select.searchPromptText": "Input to search",
19507
+ sort: sort$1,
19508
+ stop: stop$1,
19509
+ "SubForm.button": "Config",
19510
+ "SubForm.editDetail": "Edit Detail",
19511
+ "System.error": "System error",
19512
+ "System.notify": "System notify",
19513
+ "System.copy": "Content copied",
19514
+ "System.requestError": "Request error: ",
19515
+ "System.requestErrorStatus": "Request error, status code: ",
19516
+ "Table.addRow": "Add row",
19517
+ "Table.copyRow": "Copy row",
19518
+ "Table.columnsVisibility": "Click to control columns visibility",
19519
+ "Table.deleteRow": "Delete current row",
19520
+ "Table.discard": "Discard",
19521
+ "Table.dragTip": "Drag the button on the left to sort",
19522
+ "Table.editing": "You should finished editing",
19523
+ "Table.editRow": "Edit current row",
19524
+ "Table.modified": "There are {{modified}} records have been modified, you can:",
19525
+ "Table.moved": "There are {{moved}} records changed the order, you can:",
19526
+ "Table.operation": "Operation",
19527
+ "Table.playload": "Must have playload",
19528
+ "Table.startSort": "Click to start sorting",
19529
+ "Table.valueField": "Must have valueField",
19530
+ "Table.index": "Index",
19531
+ "Table.toggleColumn": "Display columns",
19532
+ "Table.searchFields": "Set query fields",
19533
+ "Tag.placeholder": "No tag yet",
19534
+ "Tag.tip": "Recently used tag",
19535
+ "Text.add": "New {{label}}",
19536
+ "Time.placeholder": "Select Time",
19537
+ "Transfer.configError": "Config error",
19538
+ "Transfer.refreshIcon": "Click to refresh",
19539
+ "Transfer.searchKeyword": "Enter keywords",
19540
+ "Transfer.available": "Available",
19541
+ "Transfer.selectd": "Selected",
19542
+ "Transfer.selectFromLeft": "Select from the left",
19543
+ "Tree.addChild": "Add child",
19544
+ "Tree.addRoot": "Add root node",
19545
+ "Tree.editNode": "Edit this node",
19546
+ "Tree.removeNode": "Remove this node",
19547
+ "Tree.root": "Root",
19548
+ "validate.equals": "value must be $1",
19549
+ "validate.equalsField": "value must be $1",
19550
+ "validate.gt": "Please enter a value greater than $1",
19551
+ "validate.isAlpha": "Please enter letters",
19552
+ "validate.isAlphanumeric": "Please enter letters or numbers",
19553
+ "validate.isEmail": "Email format is incorrect",
19554
+ "validate.isFloat": "Please enter a floating point value",
19555
+ "validate.isId": "invalid ID Card number",
19556
+ "validate.isInt": "Please enter an integer number",
19557
+ "validate.isJson": "invalid JSON format.",
19558
+ "validate.isLength": "Please make sure the length of contents is $1",
19559
+ "validate.isNumeric": "Please enter a number",
19560
+ "validate.isPhoneNumber": "invalid phone number",
19561
+ "validate.isRequired": "This is required",
19562
+ "validate.isTelNumber": "invalid telephone number",
19563
+ "validate.isUrl": "Incorrect URL format",
19564
+ "validate.isUrlPath": "You can only enter letters, numbers, `-` and`_` .",
19565
+ "validate.isWords": "Please enter word",
19566
+ "validate.isZipcode": "invalid postal address",
19567
+ "validate.lt": "Please enter a value less than $1",
19568
+ "validate.matchRegexp": "The format is not correct. Please enter the content with the rule `${1| raw}`.",
19569
+ "validate.maximum": "The input value exceeds the maximum value of $1",
19570
+ "validate.maxLength": "Please control the content length, do not enter more than $1 letters",
19571
+ "validate.minimum": "The input value is lower than the minimum value of $1",
19572
+ "validate.minLength": "Please enter more, at least $1 characters.",
19573
+ "validate.notEmptyString": "Please do not enter all blank characters",
19574
+ validateFailed: validateFailed$1,
19575
+ "Wizard.configError": "Config error",
19576
+ "Wizard.finish": "Finish",
19577
+ "Wizard.next": "Next",
19578
+ "Wizard.prev": "Prev",
19579
+ "Wizard.saveAndNext": "Save & Next",
19580
+ "year-to-year": "{{from}} - {{to}}",
19581
+ "Year.placeholder": "Select a Year",
19582
+ reload: reload$1,
19583
+ rotate: rotate$1,
19584
+ "Editor.fullscreen": "full screen",
19585
+ "Editor.exitFullscreen": "exit fullscreen mode",
19586
+ "Condition.not": "not",
19587
+ "Condition.and": "and",
19588
+ "Condition.or": "or",
19589
+ "Condition.add_cond": "add condition",
19590
+ "Condition.add_cond_group": "add condition group",
19591
+ "Condition.delete_cond_group": "delete condition group",
19592
+ "Condition.equal": "equal",
19593
+ "Condition.not_equal": "not equal",
19594
+ "Condition.less": "less",
19595
+ "Condition.less_or_equal": "less or equal",
19596
+ "Condition.greater": "greater",
19597
+ "Condition.greater_or_equal": "greater or equal",
19598
+ "Condition.between": "between",
19599
+ "Condition.not_between": "not between",
19600
+ "Condition.is_empty": "empty",
19601
+ "Condition.is_not_empty": "not empty",
19602
+ "Condition.like": "contains",
19603
+ "Condition.not_like": "not contains",
19604
+ "Condition.starts_with": "starts with",
19605
+ "Condition.ends_with": "ends with",
19606
+ "Condition.select_equals": "equals",
19607
+ "Condition.select_not_equals": "not equal",
19608
+ "Condition.select_any_in": "contains",
19609
+ "Condition.select_not_any_in": "not contains",
19610
+ "Condition.placeholder": "Please enter text",
19611
+ "Condition.cond_placeholder": "select condition",
19612
+ "Condition.field_placeholder": "select field",
19613
+ "Condition.blank": "blank",
19614
+ "Condition.expression": "expression",
19615
+ "Condition.formula_placeholder": "Please enter a formula",
19616
+ "Condition.fun_error": "Function is undefined",
19617
+ "InputTable.uniqueError": "Column `{{label}}` unique validate failed",
19618
+ "Timeline.collapseText": "Unfold",
19619
+ "Timeline.expandText": "Fold",
19620
+ "FormulaEditor.btnLabel": "Formula Edit",
19621
+ "FormulaEditor.title": "Formula Editor",
19622
+ "FormulaEditor.variable": "Variable",
19623
+ "FormulaEditor.function": "Function",
19624
+ "FormulaEditor.invalidData": "invalid data, position or reason is {{err}}",
19625
+ "pullRefresh.pullingText": "Pull down to refresh...",
19626
+ "pullRefresh.loosingText": "Release to refresh...",
19627
+ "pullRefresh.loadingText": "Loading...",
19628
+ "pullRefresh.successText": "Loading success",
19629
+ "Picker.placeholder": "Click icon on the right",
19630
+ "UserSelect.edit": "edit",
19631
+ "UserSelect.save": "preservation",
19632
+ "UserSelect.resultSort": "Select result sort",
19633
+ "UserSelect.selected": "Selected",
19634
+ "UserSelect.clear": "empty",
19635
+ "SchemaType.string": "String",
19636
+ "SchemaType.number": "Number",
19637
+ "SchemaType.integer": "integer",
19638
+ "SchemaType.object": "Object",
19639
+ "SchemaType.array": "Array",
19640
+ "SchemaType.boolean": "Boolean",
19641
+ "SchemaType.any": "Any",
19642
+ "SchemaType.null": "Null",
19643
+ "JSONSchema.title": "Title",
19644
+ "JSONSchema.default": "Default",
19645
+ "JSONSchema.description": "Description",
19646
+ "JSONSchema.key": "Key",
19647
+ "JSONSchema.array_items": "Items",
19648
+ TimeNow: TimeNow$1
19649
+ };
19650
+
19651
+ var asc = "正序";
19652
+ var Schedule = "日程";
19653
+ var Time = "时间";
19654
+ var Content = "内容";
19655
+ var cancel = "取消";
19656
+ var clear = "清空";
19657
+ var add = "新增";
19658
+ var confirm = "确认";
19659
+ var deleteConfirm = "确认要删除?";
19660
+ var deleteFailed = "删除失败";
19661
+ var desc = "降序";
19662
+ var fetchFailed = "初始化失败";
19663
+ var link = "链接";
19664
+ var loading = "加载中";
19665
+ var networkError = "网络错误,可能是未配置跨域 CORS";
19666
+ var noResult = "未找到任何结果";
19667
+ var reset = "重置";
19668
+ var saveFailed = "保存失败";
19669
+ var saveSuccess = "保存成功";
19670
+ var search = "搜索";
19671
+ var searchHistory = "搜索历史";
19672
+ var searchResult = "搜索结果";
19673
+ var stop = "停止";
19674
+ var sort = "排序";
19675
+ var validateFailed = "表单验证失败";
19676
+ var reload = "刷新";
19677
+ var rotate = "旋转";
19678
+ var collapse = "展开";
19679
+ var expand = "折叠";
19680
+ var Required = "必填";
19681
+ var TimeNow = "此刻";
19682
+ var zh_cn = {
19683
+ "Action.countDown": "请等待 ${timeLeft} 秒",
19684
+ "Alert.info": "系统消息",
19685
+ "App.home": "首页",
19686
+ "App.navigation": "导航",
19687
+ asc: asc,
19688
+ "Calendar.datepicker": "日期选择",
19689
+ "Calendar.yearmonth": "YYYY年MM月",
19690
+ "Calendar.year": "YYYY年",
19691
+ "Calendar.begin": "开始",
19692
+ "Calendar.end": "结束",
19693
+ "Calendar.beginAndEnd": "始/终",
19694
+ "Calendar.toast": "超出日期范围",
19695
+ "Calendar.startPick": "开始时间",
19696
+ "Calendar.endPick": "结束时间",
19697
+ Schedule: Schedule,
19698
+ Time: Time,
19699
+ Content: Content,
19700
+ cancel: cancel,
19701
+ "Card.dragTip": "请拖动顶部的按钮进行排序",
19702
+ "Card.toggleDrag": "对卡片进行排序操作",
19703
+ "City.street": "请输入街道信息",
19704
+ clear: clear,
19705
+ "ColorPicker.placeholder": "请选择颜色",
19706
+ "SubForm.add": "新增一项",
19707
+ add: add,
19708
+ "Combo.dragDropSort": "拖拽排序",
19709
+ "Combo.invalidData": "数值格式不正确",
19710
+ "Combo.maxLength": "组合表单超出{{maxLength}}个,请删除",
19711
+ "Combo.minLength": "组合表单数量不足{{minLength}}个,请添加更多",
19712
+ "Combo.type": "类型",
19713
+ confirm: confirm,
19714
+ "Copyable.tip": "点击复制",
19715
+ "CRUD.exportCSV": "导出 CSV",
19716
+ "CRUD.exportExcel": "导出 Excel",
19717
+ "CRUD.fetchFailed": "获取失败",
19718
+ "CRUD.filter": "筛选",
19719
+ "CRUD.selected": "已选{{total}}条:",
19720
+ "CRUD.invalidArray": "data.items 必须是数组",
19721
+ "CRUD.invalidData": "返回数据格式不正确,data 没有数据",
19722
+ "CRUD.loadMore": "加载更多",
19723
+ "CRUD.perPage": "每页显示",
19724
+ "CRUD.stat": "{{page}}/{{lastPage}} 总共:{{total}} 项",
19725
+ "CRUD.paginationGoText": "前往",
19726
+ "CRUD.paginationPageText": "页",
19727
+ "PaginationWrapper.placeholder": "请配置内容",
19728
+ "Pagination.select": "{{count}} 条/页",
19729
+ "Pagination.goto": "跳转至",
19730
+ "Pagination.go": "跳转",
19731
+ "Pagination.totalPage": "共 {{lastPage}} 页",
19732
+ "Pagination.totalCount": "共 {{total}} 条",
19733
+ "Date.titleYear": "选择年",
19734
+ "Date.titleMonth": "选择年月",
19735
+ "Date.titleDate": "选择年月日",
19736
+ "Date.titleTime": "选择时间",
19737
+ "Date.daysago": "{{days}}天前",
19738
+ "Date.dayslater": "{{days}}天后",
19739
+ "Date.endOfMonth": "本月最后一天",
19740
+ "Date.endOfWeek": "周日",
19741
+ "Date.endOfLastMonth": "上月最后一天",
19742
+ "Date.hoursago": "{{hours}}小时前",
19743
+ "Date.hourslater": "{{hours}}小时后",
19744
+ "Date.invalid": "日期无效",
19745
+ "Date.monday": "本周一",
19746
+ "Date.monthsago": "{{months}}月前",
19747
+ "Date.monthslater": "{{months}}月后",
19748
+ "Date.now": "现在",
19749
+ "Date.placeholder": "请选择日期",
19750
+ "Date.quartersago": "{{quarters}}季度前",
19751
+ "Date.quarterslater": "{{quarters}}季度后",
19752
+ "Date.startOfLastMonth": "上个月第一天",
19753
+ "Date.startOfLastQuarter": "上个季度第一天",
19754
+ "Date.startOfMonth": "本月第一天",
19755
+ "Date.startOfQuarter": "本季度第一天",
19756
+ "Date.today": "今天",
19757
+ "Date.tomorrow": "明天",
19758
+ "Date.weeksago": "{{weeks}}周前",
19759
+ "Date.weekslater": "{{weeks}}周后",
19760
+ "Date.yesterday": "昨天",
19761
+ "dateformat.year": "YYYY年",
19762
+ "DateRange.daysago": "最近{{days}}天",
19763
+ "DateRange.dayslater": "{{days}}天以内",
19764
+ "DateRange.weeksago": "最近{{weeks}}周",
19765
+ "DateRange.weekslater": "{{weeks}}周以内",
19766
+ "DateRange.monthsago": "最近{{months}}月",
19767
+ "DateRange.monthslater": "{{months}}月以内",
19768
+ "DateRange.quartersago": "最近{{quarters}}季度",
19769
+ "DateRange.quarterslater": "{{quarters}}季度以内",
19770
+ "DateRange.yearsago": "最近{{years}}年",
19771
+ "DateRange.yearslater": "{{years}}年以内",
19772
+ "DateRange.hoursago": "最近{{hours}}小时",
19773
+ "DateRange.hourslater": "{{hours}}小时以内",
19774
+ "DateRange.1daysago": "最近1天",
19775
+ "DateRange.1dayago": "最近1天",
19776
+ "DateRange.7daysago": "最近7天",
19777
+ "DateRange.30daysago": "最近30天",
19778
+ "DateRange.90daysago": "最近90天",
19779
+ "DateRange.lastWeek": "上周",
19780
+ "DateRange.lastMonth": "上个月",
19781
+ "DateRange.lastQuarter": "上个季度",
19782
+ "DateRange.placeholder": "请选择日期范围",
19783
+ "DateRange.thisWeek": "这个周",
19784
+ "DateRange.thisMonth": "这个月",
19785
+ "DateRange.thisQuarter": "这个季度",
19786
+ "DateRange.valueConcat": " 至 ",
19787
+ "DateTime.placeholder": "请选择日期以及时间",
19788
+ "MonthRange.placeholder": "请选择月份范围",
19789
+ "QuarterRange.placeholder": "请选择季度范围",
19790
+ "YearRange.placeholder": "请选择年份范围",
19791
+ "DateRange.thisYear": "今年",
19792
+ "DateRange.lastYear": "去年",
19793
+ "delete": "删除",
19794
+ deleteConfirm: deleteConfirm,
19795
+ deleteFailed: deleteFailed,
19796
+ desc: desc,
19797
+ "Dialog.close": "关闭",
19798
+ "Dialog.title": "弹框",
19799
+ "Embed.invalidRoot": "选择器不对,页面上没有此元素",
19800
+ "Embed.downloading": "文件即将开始下载",
19801
+ "Excel.placeholder": "拖拽 Excel 到这,或点击上传",
19802
+ "Excel.parsed": "已解析 {{filename}}",
19803
+ fetchFailed: fetchFailed,
19804
+ "File.continueAdd": "继续添加",
19805
+ "File.downloadTpl": "下载模板",
19806
+ "File.dragDrop": "将文件拖到此处,或",
19807
+ "File.clickUpload": "点击上传",
19808
+ "File.helpText": "帮助文档",
19809
+ "File.errorRetry": "文件上传失败请重试",
19810
+ "File.failed": "失败文件",
19811
+ "File.invalidType": "{{files}} 不符合类型的 {{accept}} 的设定,请仔细检查",
19812
+ "File.maxLength": "最多上传 {{maxLength}} 个文件",
19813
+ "File.maxSize": "{{filename}} 大小为 {{actualSize}} 超出了最大为 {{maxSize}} (字节)的限制",
19814
+ "File.pause": "暂停上传",
19815
+ "File.repick": "重新选择",
19816
+ "File.result": "已成功上传 {{uploaded}} 个文件,{{failed}} 个文件上传失败,",
19817
+ "File.retry": "重试上传",
19818
+ "File.sizeLimit": "文件大小不超过 {{maxSize}}",
19819
+ "File.start": "开始上传",
19820
+ "File.upload": "文件上传",
19821
+ "Image.upload": "图片上传",
19822
+ "File.uploadFailed": "接口返回错误,请仔细检查",
19823
+ "File.uploading": "上传中...",
19824
+ "FormItem.autoFillLoadFailed": "接口返回错误,请仔细检查",
19825
+ "FormItem.autoFillSuggest": "参照录入数据",
19826
+ "Form.loadOptionsFailed": "加载选项失败,原因:{{reason}}",
19827
+ "Form.submit": "提交",
19828
+ "Form.title": "表单",
19829
+ "Form.unique": "当前值不唯一",
19830
+ "Form.validateFailed": "依赖的部分字段没有通过验证",
19831
+ "Form.nestedError": "表单不要直接嵌套在表单下面",
19832
+ "Image.configError": "图片多选配置和裁剪配置只能设置一个",
19833
+ "Image.crop": "裁剪图片",
19834
+ "Image.dragDrop": "将图片拖拽到此处",
19835
+ "Image.height": "高度 {{height}}px",
19836
+ "Image.limitRatio": "请上传尺寸比率为 {{ratio}} 的图片",
19837
+ "Image.pasteTip": "可以粘贴剪切板中的图片",
19838
+ "Image.placeholder": "点击选择图片或拖拽图片到这里",
19839
+ "Image.size": "尺寸({{width}} x {{height}})",
19840
+ "Image.sizeMax": "请上传不要大于{{info}}的图片",
19841
+ "Image.sizeMin": "请上传不要小于{{info}}的图片",
19842
+ "Image.sizeNotEqual": "请上传{{info}}的图片",
19843
+ "Image.width": "宽度 {{width}}px",
19844
+ "Image.zoomIn": "查看大图",
19845
+ "Image.limitMax": "上传图片大于{{info}},请检查图片尺寸",
19846
+ "Image.limitMin": "上传图片小于{{info}},请检查图片尺寸",
19847
+ "Log.mustHaveSource": "需要配置 Source",
19848
+ "Log.showLineNumber": "显示行数",
19849
+ "Log.notShowLineNumber": "不现实行数",
19850
+ "Log.expand": "展开工具栏",
19851
+ "Log.collapse": "收起工具栏",
19852
+ link: link,
19853
+ loading: loading,
19854
+ "LocationPicker.placeholder": "请选择位置",
19855
+ "Month.placeholder": "请选择月份",
19856
+ "Nav.sourceError": "获取链接错误",
19857
+ networkError: networkError,
19858
+ noResult: noResult,
19859
+ "NumberInput.placeholder": "请输入数字",
19860
+ "Options.addPlaceholder": "请输入名称",
19861
+ "Options.deleteAPI": "必须设置 deleteAPI",
19862
+ "Options.editLabel": "编辑{{label}}",
19863
+ "Options.label": "选项",
19864
+ "Options.createFailed": "新增失败,请仔细检查",
19865
+ "placeholder.empty": "<空>",
19866
+ "placeholder.enter": "请输入",
19867
+ "placeholder.noData": "暂无数据",
19868
+ "placeholder.noOption": "暂无选项",
19869
+ "placeholder.selectData": "请先选择数据",
19870
+ "Quarter.placeholder": "请选择季度",
19871
+ "Repeat.pre": "每",
19872
+ reset: reset,
19873
+ saveFailed: saveFailed,
19874
+ saveSuccess: saveSuccess,
19875
+ search: search,
19876
+ searchHistory: searchHistory,
19877
+ searchResult: searchResult,
19878
+ stop: stop,
19879
+ "Checkboxes.selectAll": "全选/不选",
19880
+ "Select.checkAll": "全选",
19881
+ "Select.clear": "移除",
19882
+ "Select.upload": "重新上传",
19883
+ "Select.clearAll": "移除所有",
19884
+ "Select.createLabel": "新增选项",
19885
+ "Select.placeholder": "请选择",
19886
+ "Select.searchPromptText": "搜索",
19887
+ sort: sort,
19888
+ "SubForm.button": "设置",
19889
+ "SubForm.editDetail": "编辑详情",
19890
+ "System.error": "系统错误",
19891
+ "System.notify": "系统消息",
19892
+ "System.copy": "内容已复制到粘贴板",
19893
+ "System.requestError": "接口报错:",
19894
+ "System.requestErrorStatus": "接口出错,状态码是:",
19895
+ "Table.addRow": "新增一行",
19896
+ "Table.copyRow": "复制一行",
19897
+ "Table.columnsVisibility": "点击选择显示列",
19898
+ "Table.deleteRow": "删除当前行",
19899
+ "Table.discard": "放弃",
19900
+ "Table.dragTip": "请拖动左边的按钮进行排序",
19901
+ "Table.editing": "请先处理表格编辑项",
19902
+ "Table.editRow": "编辑当前行",
19903
+ "Table.modified": "当前有 {{modified}} 条记录修改但没有提交,你可以:",
19904
+ "Table.moved": "当前有 {{moved}} 条记录修改了顺序但没有提交,你可以:",
19905
+ "Table.operation": "操作",
19906
+ "Table.playload": "action 上请配置 payload, 否则不清楚要删除哪个",
19907
+ "Table.startSort": "点击开始排序",
19908
+ "Table.valueField": "请配置 valueField",
19909
+ "Table.index": "序号",
19910
+ "Table.toggleColumn": "显示列",
19911
+ "Table.searchFields": "设置查询字段",
19912
+ "Tag.placeholder": "请输入/选择标签",
19913
+ "Tag.tip": "最近使用的标签",
19914
+ "Text.add": "新增:{{label}}",
19915
+ "Time.placeholder": "请选择时间",
19916
+ "Transfer.configError": "配置错误,选项无法与左侧选项对应",
19917
+ "Transfer.refreshIcon": "点击刷新重新加载",
19918
+ "Transfer.searchKeyword": "请输入关键字",
19919
+ "Transfer.available": "可选项",
19920
+ "Transfer.selectd": "已选项",
19921
+ "Transfer.selectFromLeft": "请选择左侧数据",
19922
+ "Tree.addChild": "添加子节点",
19923
+ "Tree.addRoot": "添加一级节点",
19924
+ "Tree.editNode": "编辑该节点",
19925
+ "Tree.removeNode": "移除该节点",
19926
+ "Tree.root": "顶级",
19927
+ "validate.equals": "输入的数据与 $1 不一致",
19928
+ "validate.equalsField": "输入的数据与 $1 值不一致",
19929
+ "validate.gt": "请输入大于 $1 的值",
19930
+ "validate.isAlpha": "请输入字母",
19931
+ "validate.isAlphanumeric": "请输入字母或者数字",
19932
+ "validate.isEmail": "Email 格式不正确",
19933
+ "validate.isFloat": "请输入浮点型数值",
19934
+ "validate.isId": "请输入合法的身份证号",
19935
+ "validate.isInt": "请输入整型数字",
19936
+ "validate.isJson": "JSON 格式不正确",
19937
+ "validate.isLength": "请输入长度为 $1 的内容",
19938
+ "validate.isNumeric": "请输入数字",
19939
+ "validate.isPhoneNumber": "请输入合法的手机号码",
19940
+ "validate.isRequired": "这是必填项",
19941
+ "validate.isTelNumber": "请输入合法的电话号码",
19942
+ "validate.isUrl": "URL 格式不正确",
19943
+ "validate.isUrlPath": "只能输入字母、数字、`-` 和 `_`.",
19944
+ "validate.isWords": "请输入单词",
19945
+ "validate.isZipcode": "请输入合法的邮编地址",
19946
+ "validate.lt": "请输入小于 $1 的值",
19947
+ "validate.matchRegexp": "格式不正确, 请输入符合规则为 `${1|raw}` 的内容。",
19948
+ "validate.maximum": "当前输入值超出最大值 $1",
19949
+ "validate.maxLength": "请控制内容长度, 不要输入 $1 个以上字符",
19950
+ "validate.minimum": "当前输入值低于最小值 $1",
19951
+ "validate.minLength": "请输入更多的内容,至少输入 $1 个字符。",
19952
+ "validate.notEmptyString": "请不要全输入空白字符",
19953
+ validateFailed: validateFailed,
19954
+ "Wizard.configError": "配置错误",
19955
+ "Wizard.finish": "完成",
19956
+ "Wizard.next": "下一步",
19957
+ "Wizard.prev": "上一步",
19958
+ "Wizard.saveAndNext": "保存并下一步",
19959
+ "year-to-year": "{{from}} 年 - {{to}} 年",
19960
+ "Year.placeholder": "请选择年",
19961
+ reload: reload,
19962
+ rotate: rotate,
19963
+ "Editor.fullscreen": "全屏",
19964
+ "Editor.exitFullscreen": "退出全屏",
19965
+ "Condition.not": "非",
19966
+ "Condition.and": "并",
19967
+ "Condition.or": "或",
19968
+ "Condition.add_cond": "添加条件",
19969
+ "Condition.add_cond_group": "添加条件组",
19970
+ "Condition.delete_cond_group": "删除组",
19971
+ "Condition.equal": "等于",
19972
+ "Condition.not_equal": "不等于",
19973
+ "Condition.less": "小于",
19974
+ "Condition.less_or_equal": "小于或等于",
19975
+ "Condition.greater": "大于",
19976
+ "Condition.greater_or_equal": "大于或等于",
19977
+ "Condition.between": "属于范围",
19978
+ "Condition.not_between": "不属于范围",
19979
+ "Condition.is_empty": "为空",
19980
+ "Condition.is_not_empty": "不为空",
19981
+ "Condition.like": "模糊匹配",
19982
+ "Condition.not_like": "不匹配",
19983
+ "Condition.starts_with": "匹配开头",
19984
+ "Condition.ends_with": "匹配结尾",
19985
+ "Condition.select_equals": "等于",
19986
+ "Condition.select_not_equals": "不等于",
19987
+ "Condition.select_any_in": "包含",
19988
+ "Condition.select_not_any_in": "不包含",
19989
+ "Condition.placeholder": "请输入文本",
19990
+ "Condition.cond_placeholder": "请选择操作",
19991
+ "Condition.field_placeholder": "请选择字段",
19992
+ "Condition.blank": "空",
19993
+ "Condition.expression": "表达式",
19994
+ "Condition.formula_placeholder": "请输入公式",
19995
+ "Condition.fun_error": "方法未定义",
19996
+ "InputTable.uniqueError": "列`{{label}}`没有通过唯一验证",
19997
+ "Timeline.collapseText": "展开",
19998
+ "Timeline.expandText": "折叠",
19999
+ collapse: collapse,
20000
+ expand: expand,
20001
+ "FormulaEditor.btnLabel": "公式编辑",
20002
+ "FormulaEditor.title": "公式编辑器",
20003
+ "FormulaEditor.variable": "变量",
20004
+ "FormulaEditor.function": "函数",
20005
+ "FormulaEditor.invalidData": "公式值校验错误,错误的位置/原因是 {{err}}",
20006
+ "pullRefresh.pullingText": "下拉即可刷新...",
20007
+ "pullRefresh.loosingText": "释放即可刷新...",
20008
+ "pullRefresh.loadingText": "加载中...",
20009
+ "pullRefresh.successText": "加载成功",
20010
+ "Picker.placeholder": "请点击右侧的图标",
20011
+ "UserSelect.edit": "编辑",
20012
+ "UserSelect.save": "保存",
20013
+ "UserSelect.resultSort": "选择结果排序",
20014
+ "UserSelect.selected": "已选",
20015
+ "UserSelect.clear": "清空",
20016
+ "SchemaType.string": "文本",
20017
+ "SchemaType.number": "数字",
20018
+ "SchemaType.integer": "整数",
20019
+ "SchemaType.object": "对象",
20020
+ "SchemaType.array": "数组",
20021
+ "SchemaType.boolean": "布尔",
20022
+ "SchemaType.null": "Null",
20023
+ "SchemaType.any": "任意",
20024
+ "JSONSchema.title": "名称",
20025
+ "JSONSchema.default": "默认值",
20026
+ "JSONSchema.key": "字段名",
20027
+ "JSONSchema.description": "描述",
20028
+ "JSONSchema.add_prop": "添加属性",
20029
+ "JSONSchema.array_items": "成员类型",
20030
+ Required: Required,
20031
+ TimeNow: TimeNow
20032
+ };
20033
+
20034
+ /*
20035
+ * @Author: 殷亮辉 yinlianghui@hotoa.com
20036
+ * @Date: 2025-08-23 21:36:26
20037
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
20038
+ * @LastEditTime: 2025-08-26 11:49:26
20039
+ */
20040
+
20041
+ const resourcesMap = {
20042
+ "en-US": en_us,
20043
+ "zh-CN": zh_cn,
20044
+ };
20045
+
20046
+ const getUserLanguage = () => {
20047
+ var lan = Builder.settings.context?.user?.language || window.navigator.language;
20048
+ if (lan === 'en') {
20049
+ lan = 'en-US';
20050
+ }
20051
+ return lan;
20052
+ };
20053
+
20054
+ var locale = "zh-CN";
20055
+ if (typeof window != 'undefined') {
20056
+ locale = getUserLanguage();
20057
+ }
20058
+
20059
+ function getAmisLocaleResource() {
20060
+ var rs = resourcesMap[locale];
20061
+ if (rs) {
20062
+ return rs;
20063
+ }
20064
+ return resourcesMap["zh-CN"];
20065
+ }
20066
+
20067
+ if (typeof window != 'undefined') {
20068
+ var currentAmis = (window.amisRequire && window.amisRequire('amis')) || Amis;
20069
+ currentAmis && currentAmis.registerLocale(locale, getAmisLocaleResource());
20070
+ }
20071
+
19082
20072
  Object.defineProperty(exports, 'i18next', {
19083
20073
  enumerable: true,
19084
20074
  get: function () { return i18next__default["default"]; }
@@ -19099,6 +20089,7 @@ exports.extendObject = extendObject;
19099
20089
  exports.fetchAPI = fetchAPI;
19100
20090
  exports.filtersToConditions = filtersToConditions;
19101
20091
  exports.getAmisInputTableSchema = getAmisInputTableSchema;
20092
+ exports.getAmisLocaleResource = getAmisLocaleResource;
19102
20093
  exports.getApp = getApp;
19103
20094
  exports.getApps = getApps;
19104
20095
  exports.getAuthToken = getAuthToken;
@@ -19194,6 +20185,7 @@ exports.getUISchemaSync = getUISchemaSync$1;
19194
20185
  exports.getUiFieldTpl = getUiFieldTpl;
19195
20186
  exports.getUiFileSizeTpl = getUiFileSizeTpl;
19196
20187
  exports.getUserId = getUserId;
20188
+ exports.getUserLanguage = getUserLanguage$1;
19197
20189
  exports.getViewSchema = getViewSchema;
19198
20190
  exports.isExpression = isExpression;
19199
20191
  exports.isObject = isObject;