element-less 0.0.76 → 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.
- package/custom/dynamic/common/aiSystemPrompt.d.ts +1 -1
- package/element-less.cjs +1 -1
- package/element-less.iife.js +1 -1
- package/element-less.js +1 -1
- package/element-less.umd.cjs +1 -1
- package/{index-1dIcv_Dm.js → index--TnQR-S3.js} +36 -21
- package/{index-Dcm9lTIN.cjs → index-B131j17Q.cjs} +1 -1
- package/{inner-CqdvLUls.js → inner-PI22gtih.js} +1 -1
- package/{inner-dU08mCER.cjs → inner-YNsZ0ks3.cjs} +1 -1
- package/{innerItem-CX6bP73Z.js → innerItem-C7z2qzBM.js} +1 -1
- package/{innerItem-CMTlTlAf.cjs → innerItem-IElR4grm.cjs} +1 -1
- package/{mode-csharp-B3njQ7xA.cjs → mode-csharp-BE4zMS2m.cjs} +1 -1
- package/{mode-csharp-bvhfjmkN.js → mode-csharp-DdNh0tq4.js} +1 -1
- package/{mode-css-CKaOW2nk.cjs → mode-css-BCP5G1sx.cjs} +1 -1
- package/{mode-css-Du96e5I3.js → mode-css-uxH0LUN4.js} +1 -1
- package/{mode-javascript-Cw223pBf.js → mode-javascript-B23JZzPC.js} +1 -1
- package/{mode-javascript-DNfjdr-2.cjs → mode-javascript-DYJvpODo.cjs} +1 -1
- package/{mode-json-BJlmxTEK.js → mode-json-BH5B2wV6.js} +1 -1
- package/{mode-json--zPl5ren.cjs → mode-json-BxRoYha1.cjs} +1 -1
- package/{mode-mysql-SIFyobPf.cjs → mode-mysql-B0jfm0Rn.cjs} +1 -1
- package/{mode-mysql-DKyMActE.js → mode-mysql-DUP_Svr0.js} +1 -1
- package/package.json +1 -1
|
@@ -59372,7 +59372,7 @@ const property_array = [
|
|
|
59372
59372
|
},
|
|
59373
59373
|
"arrayConfig": {}
|
|
59374
59374
|
},
|
|
59375
|
-
"defaultValue": ""
|
|
59375
|
+
"defaultValue": "border1"
|
|
59376
59376
|
},
|
|
59377
59377
|
{
|
|
59378
59378
|
"keyID": "key_2064",
|
|
@@ -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-
|
|
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-
|
|
76096
|
+
return import("./inner-PI22gtih.js").then((n) => n.i);
|
|
76097
76097
|
});
|
|
76098
76098
|
const DynamicRenderForm = defineAsyncComponent(() => {
|
|
76099
|
-
return import("./inner-
|
|
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-
|
|
76339
|
+
return import("./inner-PI22gtih.js").then((n) => n.i);
|
|
76340
76340
|
});
|
|
76341
76341
|
const DynamicRenderFormAsync = defineAsyncComponent(() => {
|
|
76342
|
-
return import("./inner-
|
|
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:
|
|
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
|
|
79667
|
+
## Object 嵌套对象(用 FormQuery 容器承载)
|
|
79668
|
+
|
|
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 数组
|
|
79668
79684
|
|
|
79669
|
-
-
|
|
79670
|
-
- dataType="Array"
|
|
79671
|
-
- dataType="Array" + arrayDataType="String/Number":简单值数组
|
|
79672
|
-
- 这类节点没有 componentType 字段
|
|
79685
|
+
- 对象数组:优先使用 componentType="Table"(可编辑表格,见上方 Table 说明)
|
|
79686
|
+
- 简单值数组(字符串/数字列表):dataType="Array", arrayDataType="String/Number",不填 componentType(系统自动处理)
|
|
79673
79687
|
|
|
79674
79688
|
## Table 可编辑表格(推荐用于对象数组)
|
|
79675
79689
|
|
|
@@ -79721,8 +79735,8 @@ Table 节点格式:
|
|
|
79721
79735
|
## formConfig(字段级表单配置)
|
|
79722
79736
|
- re_required: 必填表达式("" 不必填,"true" 始终必填,"currNode['field']?.value=='A'" 条件必填)
|
|
79723
79737
|
- requiredMessage: 必填提示文字
|
|
79724
|
-
- validType:
|
|
79725
|
-
- validExpression:
|
|
79738
|
+
- validType: 内置验证类型,优先使用(Number-数字 | Float-浮点数 | Price-金额 | Date-日期 | Datetime-日期时间 | Time-时间 | Url-网址 | Email-邮箱 | Phone-手机号 | Character-字符)
|
|
79739
|
+
- validExpression: 仅在 validType 无法满足时使用,填正则表达式字符串(如 "^\\d{6}$")
|
|
79726
79740
|
- validMessage: 验证失败提示
|
|
79727
79741
|
- tip: 字段提示文字
|
|
79728
79742
|
- tipPosition: 提示位置(left/right/top)
|
|
@@ -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 -
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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();
|