star-horse-lowcode 2.8.11 → 2.8.12

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.es.js CHANGED
@@ -64041,6 +64041,25 @@ const zh_CN = {
64041
64041
  "comp.treeMenu": "树形菜单",
64042
64042
  "comp.addData": "添加数据",
64043
64043
  "comp.deleteData": "删除数据",
64044
+ /**
64045
+ * JSON Editor Strings
64046
+ */
64047
+ "jsonEditor.validationError": "JSON格式错误",
64048
+ "jsonEditor.parseError": "JSON解析错误",
64049
+ "jsonEditor.compact": "紧凑",
64050
+ "jsonEditor.form": "表单",
64051
+ "jsonEditor.text": "文本",
64052
+ "jsonEditor.tree": "树形",
64053
+ "jsonEditor.undo": "撤销",
64054
+ "jsonEditor.redo": "重做",
64055
+ "jsonEditor.fix": "修复",
64056
+ "jsonEditor.autoFix": "自动修复",
64057
+ "jsonEditor.filter": "过滤",
64058
+ "jsonEditor.sort": "排序",
64059
+ "jsonEditor.transform": "转换",
64060
+ "jsonEditor.query": "查询",
64061
+ "jsonEditor.structure": "结构",
64062
+ "jsonEditor.preview": "预览",
64044
64063
  "comp.underDevelopment": "功能开发中,现在点击提交按钮导出所有数据",
64045
64064
  /**
64046
64065
  * Additional Component Strings
@@ -64573,6 +64592,25 @@ const en_US = {
64573
64592
  "comp.addData": "Add Data",
64574
64593
  "comp.deleteData": "Delete Data",
64575
64594
  "comp.underDevelopment": "Function under development, now click submit button to export all data",
64595
+ /**
64596
+ * JSON Editor Strings
64597
+ */
64598
+ "jsonEditor.validationError": "JSON validation error",
64599
+ "jsonEditor.parseError": "JSON parse error",
64600
+ "jsonEditor.compact": "Compact",
64601
+ "jsonEditor.form": "Form",
64602
+ "jsonEditor.text": "Text",
64603
+ "jsonEditor.tree": "Tree",
64604
+ "jsonEditor.undo": "Undo",
64605
+ "jsonEditor.redo": "Redo",
64606
+ "jsonEditor.fix": "Fix",
64607
+ "jsonEditor.autoFix": "Auto fix",
64608
+ "jsonEditor.filter": "Filter",
64609
+ "jsonEditor.sort": "Sort",
64610
+ "jsonEditor.transform": "Transform",
64611
+ "jsonEditor.query": "Query",
64612
+ "jsonEditor.structure": "Structure",
64613
+ "jsonEditor.preview": "Preview",
64576
64614
  /**
64577
64615
  * Additional Component Strings
64578
64616
  */
@@ -64737,8 +64775,8 @@ const language$1 = {
64737
64775
  en_us: en_US
64738
64776
  };
64739
64777
  const currentLang = window.__starHorseHostLang__ || getLang() || LangType.ZH_CN;
64740
- currentLang === LangType.EN_US;
64741
- currentLang === LangType.ZH_CN;
64778
+ const isEn = currentLang === LangType.EN_US;
64779
+ const isZH = currentLang === LangType.ZH_CN;
64742
64780
  let langSet = language$1[currentLang];
64743
64781
  function i18n(key, ...args) {
64744
64782
  const result = langSet[key];
@@ -78182,7 +78220,6 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
78182
78220
  batchArray[index] = Object.assign({}, formData);
78183
78221
  }
78184
78222
  });
78185
- console.log(batchArray);
78186
78223
  } else {
78187
78224
  dataForm.value[props.batchName].push(Object.assign({}, formData));
78188
78225
  }
@@ -78631,7 +78668,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
78631
78668
 
78632
78669
  /* unplugin-vue-components disabled */
78633
78670
 
78634
- const __unplugin_components_0$6 = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-7c35ae6d"]]);
78671
+ const __unplugin_components_0$6 = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-e59cfe57"]]);
78635
78672
 
78636
78673
  const StarHorseFormList = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
78637
78674
  __proto__: null,
@@ -124414,17 +124451,12 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
124414
124451
  props: /* @__PURE__ */ mergeModels({
124415
124452
  options: { type: Object },
124416
124453
  currentMode: {
124417
- type: String,
124418
- default: "code"
124454
+ type: Object,
124455
+ default: "text"
124419
124456
  },
124420
124457
  modeList: {
124421
124458
  type: Array,
124422
- default: () => ["tree", "code", "form", "text", "view"]
124423
- },
124424
- // en, es zh-CN, pt-BR, tr, ja, fr-FR, de, ru, ko
124425
- language: {
124426
- type: String,
124427
- default: "zh-CN"
124459
+ default: () => ["tree", "text", "form", "preview"]
124428
124460
  }
124429
124461
  }, {
124430
124462
  "modelValue": {
@@ -124434,6 +124466,11 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
124434
124466
  }),
124435
124467
  emits: ["update:modelValue"],
124436
124468
  setup(__props, { expose: __expose }) {
124469
+ const editorLanguage = computed(() => {
124470
+ if (isEn) return "en";
124471
+ if (isZH) return "zh-CN";
124472
+ return "en";
124473
+ });
124437
124474
  const json = useModel(__props, "modelValue");
124438
124475
  const queryLanguages = [
124439
124476
  "javascript",
@@ -124459,19 +124496,21 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
124459
124496
  return openBlock(), createBlock(unref(N$2), {
124460
124497
  ref_key: "editor",
124461
124498
  ref: editor,
124462
- mode: "text",
124499
+ mode: __props.currentMode,
124500
+ language: editorLanguage.value,
124501
+ modes: __props.modeList,
124463
124502
  json: json.value,
124464
124503
  "onUpdate:json": _cache[0] || (_cache[0] = ($event) => json.value = $event),
124465
124504
  queryLanguagesIds: queryLanguages,
124466
124505
  class: "json-editor"
124467
- }, null, 8, ["json"]);
124506
+ }, null, 8, ["mode", "language", "modes", "json"]);
124468
124507
  };
124469
124508
  }
124470
124509
  });
124471
124510
 
124472
124511
  /* unplugin-vue-components disabled */
124473
124512
 
124474
- const __unplugin_components_0$5 = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-fd575312"]]);
124513
+ const __unplugin_components_0$5 = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-f67c3446"]]);
124475
124514
 
124476
124515
  const StarHorseJsonEditor = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
124477
124516
  __proto__: null,
@@ -4885,17 +4885,13 @@ options: {
4885
4885
  type: PropType<any>;
4886
4886
  };
4887
4887
  currentMode: {
4888
- type: StringConstructor;
4888
+ type: PropType<any>;
4889
4889
  default: string;
4890
4890
  };
4891
4891
  modeList: {
4892
4892
  type: ArrayConstructor;
4893
4893
  default: () => string[];
4894
4894
  };
4895
- language: {
4896
- type: StringConstructor;
4897
- default: string;
4898
- };
4899
4895
  modelValue: {
4900
4896
  type: PropType<{}>;
4901
4897
  };
@@ -4909,26 +4905,21 @@ options: {
4909
4905
  type: PropType<any>;
4910
4906
  };
4911
4907
  currentMode: {
4912
- type: StringConstructor;
4908
+ type: PropType<any>;
4913
4909
  default: string;
4914
4910
  };
4915
4911
  modeList: {
4916
4912
  type: ArrayConstructor;
4917
4913
  default: () => string[];
4918
4914
  };
4919
- language: {
4920
- type: StringConstructor;
4921
- default: string;
4922
- };
4923
4915
  modelValue: {
4924
4916
  type: PropType<{}>;
4925
4917
  };
4926
4918
  }>> & Readonly<{
4927
4919
  "onUpdate:modelValue"?: (value: {}) => any;
4928
4920
  }>, {
4929
- currentMode: string;
4921
+ currentMode: any;
4930
4922
  modeList: unknown[];
4931
- language: string;
4932
4923
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
4933
4924
  editor: CreateComponentPublicInstanceWithMixins_2<Readonly<ExtractPropTypes_2< {
4934
4925
  modelValue: PropType_2<unknown>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "star-horse-lowcode",
3
3
  "private": false,
4
4
  "author": "l_1019@163.com",
5
- "version": "2.8.11",
5
+ "version": "2.8.12",
6
6
  "type": "module",
7
7
  "description": "星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。",
8
8
  "keywords": [