element-less 0.0.77 → 0.0.78

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.
@@ -75055,7 +75055,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
75055
75055
  emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
75056
75056
  setup(__props, { emit: __emit }) {
75057
75057
  const DynamicDesignerInnerItem = defineAsyncComponent(() => {
75058
- return import("./innerItem-BFdmxDC0.js");
75058
+ return import("./innerItem-C7z2qzBM.js");
75059
75059
  });
75060
75060
  const { getValue: getValue2 } = useProps();
75061
75061
  const tagID = getValue2("tagID");
@@ -76093,10 +76093,10 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
76093
76093
  emits: ["update:modelValue"],
76094
76094
  setup(__props, { expose: __expose, emit: __emit }) {
76095
76095
  const DynamicRenderInner = defineAsyncComponent(() => {
76096
- return import("./inner-CuvCSjal.js").then((n) => n.i);
76096
+ return import("./inner-PI22gtih.js").then((n) => n.i);
76097
76097
  });
76098
76098
  const DynamicRenderForm = defineAsyncComponent(() => {
76099
- return import("./inner-CuvCSjal.js").then((n) => n.f);
76099
+ return import("./inner-PI22gtih.js").then((n) => n.f);
76100
76100
  });
76101
76101
  const props2 = __props;
76102
76102
  const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
@@ -76336,10 +76336,10 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
76336
76336
  emits: ["update:modelValue"],
76337
76337
  setup(__props, { expose: __expose, emit: __emit }) {
76338
76338
  const DynamicRenderInnerAsync = defineAsyncComponent(() => {
76339
- return import("./inner-CuvCSjal.js").then((n) => n.i);
76339
+ return import("./inner-PI22gtih.js").then((n) => n.i);
76340
76340
  });
76341
76341
  const DynamicRenderFormAsync = defineAsyncComponent(() => {
76342
- return import("./inner-CuvCSjal.js").then((n) => n.f);
76342
+ return import("./inner-PI22gtih.js").then((n) => n.f);
76343
76343
  });
76344
76344
  const props2 = __props;
76345
76345
  const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
@@ -79585,7 +79585,7 @@ const designerViewProps = buildProps({
79585
79585
  }
79586
79586
  });
79587
79587
  const { $codeField, $messageField, $success, $dataField } = utils.getApiConfig();
79588
- const AI_SYSTEM_PROMPT = `你是一个低代码表单配置生成器。根据用户描述,输出符合以下格式的 JSON 数组。只输出 JSON,不要有任何额外文字、注释或代码块标记。
79588
+ const AI_SYSTEM_PROMPT = `你是一个低代码表单配置生成器。根据用户描述,输出符合以下格式的 JSON 数组。只输出 JSON,不要有任何额外文字、注释或代码块标记。每个节点必须包含 componentType 字段,不允许缺失。
79589
79589
 
79590
79590
  # 节点结构
79591
79591
 
@@ -79593,7 +79593,7 @@ const AI_SYSTEM_PROMPT = `你是一个低代码表单配置生成器。根据用
79593
79593
  - keyID: 唯一ID,格式 "key_" + 6位数字(如 "key_123456")
79594
79594
  - keyName: 显示名称(中文)
79595
79595
  - keyCode: 字段名(小驼峰,容器类节点为空字符串"")
79596
- - componentType: 组件类型(见下方清单;Object/Array 数据节点不填此字段)
79596
+ - componentType: 组件类型(见下方清单,**每个节点都必须填写**)
79597
79597
  - dataType: 数据类型(String/Number/Bool/Object/Array/None)
79598
79598
  - arrayDataType: 数组元素类型,仅当 dataType="Array" 时填写(Object/String/Number/Bool)
79599
79599
  - children: 子节点数组(叶子节点为 [])
@@ -79664,12 +79664,26 @@ const AI_SYSTEM_PROMPT = `你是一个低代码表单配置生成器。根据用
79664
79664
  | Image | 图片 | src, width, height, fit(fill/contain/cover/none) |
79665
79665
  | Tooltip | 文字提示 | content, placement(top/bottom/left/right), effect(dark/light) |
79666
79666
 
79667
- ## Object/Array 数据节点(无 componentType,由 dataType 驱动)
79667
+ ## Object 嵌套对象(用 FormQuery 容器承载)
79668
79668
 
79669
- - dataType="Object":对象节点,children 放子字段,输出 {keyCode: {子字段...}}
79670
- - dataType="Array" + arrayDataType="Object":对象数组节点(不含 componentType),children 定义数组元素的字段结构,每个子节点就是一行数据的字段
79671
- - dataType="Array" + arrayDataType="String/Number":简单值数组
79672
- - 这类节点没有 componentType 字段
79669
+ 嵌套对象字段使用 componentType="FormQuery"(dataType="Object"),children 放子字段:
79670
+ \`\`\`json
79671
+ {
79672
+ "keyID": "key_xxxxxx",
79673
+ "keyCode": "address",
79674
+ "keyName": "地址",
79675
+ "componentType": "FormQuery",
79676
+ "dataType": "Object",
79677
+ "arrayDataType": "",
79678
+ "children": [子字段节点...],
79679
+ "config": { "formConfig": {}, "baseConfig": {}, "advancedConfig": {}, "arrayConfig": {} }
79680
+ }
79681
+ \`\`\`
79682
+
79683
+ ## Array 数组
79684
+
79685
+ - 对象数组:优先使用 componentType="Table"(可编辑表格,见上方 Table 说明)
79686
+ - 简单值数组(字符串/数字列表):dataType="Array", arrayDataType="String/Number",不填 componentType(系统自动处理)
79673
79687
 
79674
79688
  ## Table 可编辑表格(推荐用于对象数组)
79675
79689
 
@@ -79852,6 +79866,7 @@ Table 节点格式:
79852
79866
  "keyID": "key_003001",
79853
79867
  "keyCode": "address",
79854
79868
  "keyName": "地址",
79869
+ "componentType": "FormQuery",
79855
79870
  "dataType": "Object",
79856
79871
  "arrayDataType": "",
79857
79872
  "children": [
@@ -79881,7 +79896,7 @@ Table 节点格式:
79881
79896
  ]
79882
79897
  \`\`\`
79883
79898
 
79884
- ## 案例4 - 普通对象数组(无 componentType,dataType=Array + arrayDataType=Object)
79899
+ ## 案例4 - 对象数组(不推荐,优先用 Table;仅当需要表单式多项录入时使用)
79885
79900
 
79886
79901
  这种方式生成嵌套表单,每行数据是一个对象,children 定义每个对象的字段:
79887
79902
  \`\`\`json
@@ -82722,31 +82737,31 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
82722
82737
  __publicField(this, "editor", ref());
82723
82738
  onMounted(() => {
82724
82739
  if (props2.language === "json") {
82725
- const currModule = import("./mode-json-Bx2niN3u.js").then((n) => n.m);
82740
+ const currModule = import("./mode-json-BH5B2wV6.js").then((n) => n.m);
82726
82741
  currModule.then((res) => {
82727
82742
  ace.config.setModuleUrl("ace/mode/json", res);
82728
82743
  this.init();
82729
82744
  });
82730
82745
  } else if (props2.language === "javascript") {
82731
- const currModule = import("./mode-javascript-D_rGVM-B.js").then((n) => n.m);
82746
+ const currModule = import("./mode-javascript-B23JZzPC.js").then((n) => n.m);
82732
82747
  currModule.then((res) => {
82733
82748
  ace.config.setModuleUrl("ace/mode/javascript", res);
82734
82749
  this.init();
82735
82750
  });
82736
82751
  } else if (props2.language === "csharp") {
82737
- const currModule = import("./mode-csharp-CGqJy6DA.js").then((n) => n.m);
82752
+ const currModule = import("./mode-csharp-DdNh0tq4.js").then((n) => n.m);
82738
82753
  currModule.then((res) => {
82739
82754
  ace.config.setModuleUrl("ace/mode/csharp", res);
82740
82755
  this.init();
82741
82756
  });
82742
82757
  } else if (props2.language === "mysql") {
82743
- const currModule = import("./mode-mysql-Brm26WL3.js").then((n) => n.m);
82758
+ const currModule = import("./mode-mysql-DUP_Svr0.js").then((n) => n.m);
82744
82759
  currModule.then((res) => {
82745
82760
  ace.config.setModuleUrl("ace/mode/mysql", res);
82746
82761
  this.init();
82747
82762
  });
82748
82763
  } else if (props2.language === "css") {
82749
- const currModule = import("./mode-css-PnYbyxm6.js").then((n) => n.m);
82764
+ const currModule = import("./mode-css-uxH0LUN4.js").then((n) => n.m);
82750
82765
  currModule.then((res) => {
82751
82766
  ace.config.setModuleUrl("ace/mode/css", res);
82752
82767
  this.init();