element-less 0.0.71 → 0.0.73
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/designerView/src/responseMappingEditor.vue.d.ts +9 -0
- package/custom/dynamic/render/src/nodeValueUtils.d.ts +2 -0
- package/custom/requestForm/index.d.ts +19 -0
- package/custom/requestForm/src/requestForm.d.ts +4 -0
- package/custom/requestForm/src/requestForm.vue.d.ts +9 -0
- 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/elementui/cascader/index.d.ts +8 -8
- package/elementui/cascader/src/cascader.vue.d.ts +2 -2
- package/elementui/checkbox/src/checkboxButton.vue.d.ts +1 -1
- package/elementui/radio/index.d.ts +8 -8
- package/elementui/radio/src/radio.vue.d.ts +1 -1
- package/elementui/radio/src/radioButton.vue.d.ts +1 -1
- package/elementui/select/index.d.ts +12 -12
- package/elementui/select/src/select.vue.d.ts +3 -3
- package/elementui/tree/index.d.ts +4 -4
- package/elementui/tree/src/tree.vue.d.ts +1 -1
- package/elementui/tree-select/index.d.ts +4 -4
- package/elementui/tree-select/src/treeSelect.vue.d.ts +1 -1
- package/index-BaFF5Gyj.cjs +1 -0
- package/{index-B8iHDuyg.js → index-C0SJ8qh4.js} +499 -106
- package/{inner-mujhq8s8.cjs → inner-AI6AnYRd.cjs} +1 -1
- package/{inner-L97xvW77.js → inner-BVkvNO8N.js} +14 -2
- package/{innerItem-DZT7gaYq.js → innerItem-COru-kKY.js} +1 -1
- package/{innerItem-Dt9vRyey.cjs → innerItem-DQulGWbl.cjs} +1 -1
- package/{mode-csharp-B8gSfoYt.cjs → mode-csharp-CFYsL6uB.cjs} +1 -1
- package/{mode-csharp-DRL6iOsg.js → mode-csharp-D6MaIFhw.js} +1 -1
- package/{mode-css-BKQrbOqL.cjs → mode-css-BgjQCLpV.cjs} +1 -1
- package/{mode-css-CVbsNLio.js → mode-css-Dy8BzF_i.js} +1 -1
- package/{mode-javascript-BIpkDE77.js → mode-javascript-8sxvp2xm.js} +1 -1
- package/{mode-javascript-Jnhe7ejL.cjs → mode-javascript-BvlHrr1N.cjs} +1 -1
- package/{mode-json-LbMnm4dK.cjs → mode-json-BHDlkzCk.cjs} +1 -1
- package/{mode-json-CuyvB_kf.js → mode-json-DoxC9nzJ.js} +1 -1
- package/{mode-mysql-BPWNA-Mx.js → mode-mysql-B7vGuPt6.js} +1 -1
- package/{mode-mysql-ChXX0s6O.cjs → mode-mysql-Bg657uIn.cjs} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/index-D2_Ffw2X.cjs +0 -1
|
@@ -26849,7 +26849,7 @@ const _export_sfc$1 = (sfc, props2) => {
|
|
|
26849
26849
|
}
|
|
26850
26850
|
return target;
|
|
26851
26851
|
};
|
|
26852
|
-
const _sfc_main$
|
|
26852
|
+
const _sfc_main$2u = /* @__PURE__ */ Object.assign({ name: "ElsTiptapEditor" }, {
|
|
26853
26853
|
__name: "tipTapEditor",
|
|
26854
26854
|
props: tipTapEditorProps,
|
|
26855
26855
|
emits: [
|
|
@@ -27349,7 +27349,7 @@ const _sfc_main$2t = /* @__PURE__ */ Object.assign({ name: "ElsTiptapEditor" },
|
|
|
27349
27349
|
};
|
|
27350
27350
|
}
|
|
27351
27351
|
});
|
|
27352
|
-
const TipTapEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
27352
|
+
const TipTapEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$2u, [["__scopeId", "data-v-329f0d4d"]]);
|
|
27353
27353
|
const { saveAs } = pkg;
|
|
27354
27354
|
function _toConsumableArray(e) {
|
|
27355
27355
|
if (Array.isArray(e)) {
|
|
@@ -32781,13 +32781,13 @@ function filterGlobalDataFields(options2, query) {
|
|
|
32781
32781
|
return result;
|
|
32782
32782
|
}, []);
|
|
32783
32783
|
}
|
|
32784
|
-
const _hoisted_1$
|
|
32785
|
-
const _hoisted_2$
|
|
32786
|
-
const _hoisted_3$
|
|
32787
|
-
const _hoisted_4$
|
|
32788
|
-
const _hoisted_5$
|
|
32789
|
-
const _hoisted_6$
|
|
32790
|
-
const _hoisted_7$
|
|
32784
|
+
const _hoisted_1$1u = { class: "fp-panel" };
|
|
32785
|
+
const _hoisted_2$D = { class: "fp-search" };
|
|
32786
|
+
const _hoisted_3$u = ["onClick"];
|
|
32787
|
+
const _hoisted_4$l = { class: "fp-name" };
|
|
32788
|
+
const _hoisted_5$j = { class: "fp-code" };
|
|
32789
|
+
const _hoisted_6$f = ["onClick"];
|
|
32790
|
+
const _hoisted_7$d = { class: "fp-name" };
|
|
32791
32791
|
const _hoisted_8$9 = { class: "fp-code" };
|
|
32792
32792
|
const _hoisted_9$7 = ["onClick"];
|
|
32793
32793
|
const _hoisted_10$5 = { class: "fp-name" };
|
|
@@ -32817,7 +32817,7 @@ const _hoisted_33$1 = {
|
|
|
32817
32817
|
key: 4,
|
|
32818
32818
|
class: "fp-empty"
|
|
32819
32819
|
};
|
|
32820
|
-
const _sfc_main$
|
|
32820
|
+
const _sfc_main$2t = /* @__PURE__ */ defineComponent({
|
|
32821
32821
|
...{ name: "ElsFieldPicker" },
|
|
32822
32822
|
__name: "fieldPicker",
|
|
32823
32823
|
props: {
|
|
@@ -33025,8 +33025,8 @@ const _sfc_main$2s = /* @__PURE__ */ defineComponent({
|
|
|
33025
33025
|
], true)
|
|
33026
33026
|
]),
|
|
33027
33027
|
default: withCtx(() => [
|
|
33028
|
-
createElementVNode("div", _hoisted_1$
|
|
33029
|
-
createElementVNode("div", _hoisted_2$
|
|
33028
|
+
createElementVNode("div", _hoisted_1$1u, [
|
|
33029
|
+
createElementVNode("div", _hoisted_2$D, [
|
|
33030
33030
|
createVNode(_component_el_input, {
|
|
33031
33031
|
modelValue: search.value,
|
|
33032
33032
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => search.value = $event),
|
|
@@ -33065,9 +33065,9 @@ const _sfc_main$2s = /* @__PURE__ */ defineComponent({
|
|
|
33065
33065
|
createElementVNode("span", {
|
|
33066
33066
|
class: normalizeClass(["fp-badge", TYPE_CLASS[item.dataTypeName]])
|
|
33067
33067
|
}, toDisplayString(TYPE_LABEL[item.dataTypeName] || item.dataTypeName), 3),
|
|
33068
|
-
createElementVNode("span", _hoisted_4$
|
|
33069
|
-
createElementVNode("span", _hoisted_5$
|
|
33070
|
-
], 8, _hoisted_3$
|
|
33068
|
+
createElementVNode("span", _hoisted_4$l, toDisplayString(item.label), 1),
|
|
33069
|
+
createElementVNode("span", _hoisted_5$j, toDisplayString(item.sub), 1)
|
|
33070
|
+
], 8, _hoisted_3$u)) : (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
33071
33071
|
createElementVNode("div", {
|
|
33072
33072
|
class: "fp-item fp-item--container",
|
|
33073
33073
|
onClick: ($event) => toggleCurrContainer(item.keyCode)
|
|
@@ -33081,9 +33081,9 @@ const _sfc_main$2s = /* @__PURE__ */ defineComponent({
|
|
|
33081
33081
|
_: 1
|
|
33082
33082
|
}, 8, ["class"]),
|
|
33083
33083
|
_cache[3] || (_cache[3] = createElementVNode("span", { class: "fp-badge fp-t-obj" }, "{ }", -1)),
|
|
33084
|
-
createElementVNode("span", _hoisted_7$
|
|
33084
|
+
createElementVNode("span", _hoisted_7$d, toDisplayString(item.keyName), 1),
|
|
33085
33085
|
createElementVNode("span", _hoisted_8$9, toDisplayString(item.keyCode), 1)
|
|
33086
|
-
], 8, _hoisted_6$
|
|
33086
|
+
], 8, _hoisted_6$f),
|
|
33087
33087
|
expandedCurrContainers.value.includes(item.keyCode) ? (openBlock(true), createElementBlock(Fragment$1, { key: 0 }, renderList(item.children, (child) => {
|
|
33088
33088
|
return openBlock(), createElementBlock("div", {
|
|
33089
33089
|
key: child.value,
|
|
@@ -33243,23 +33243,23 @@ const _sfc_main$2s = /* @__PURE__ */ defineComponent({
|
|
|
33243
33243
|
};
|
|
33244
33244
|
}
|
|
33245
33245
|
});
|
|
33246
|
-
const FieldPicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
33247
|
-
const _hoisted_1$
|
|
33248
|
-
const _hoisted_2$
|
|
33249
|
-
const _hoisted_3$
|
|
33250
|
-
const _hoisted_4$
|
|
33246
|
+
const FieldPicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$2t, [["__scopeId", "data-v-f7844c2e"]]);
|
|
33247
|
+
const _hoisted_1$1t = { class: "condition-builder-trigger" };
|
|
33248
|
+
const _hoisted_2$C = { class: "cb-dialog-body" };
|
|
33249
|
+
const _hoisted_3$t = { class: "cb-header" };
|
|
33250
|
+
const _hoisted_4$k = {
|
|
33251
33251
|
key: 0,
|
|
33252
33252
|
class: "cb-no-fields"
|
|
33253
33253
|
};
|
|
33254
|
-
const _hoisted_5$
|
|
33255
|
-
const _hoisted_6$
|
|
33254
|
+
const _hoisted_5$i = { class: "cb-conditions" };
|
|
33255
|
+
const _hoisted_6$e = {
|
|
33256
33256
|
key: 0,
|
|
33257
33257
|
class: "cb-logic-row"
|
|
33258
33258
|
};
|
|
33259
|
-
const _hoisted_7$
|
|
33259
|
+
const _hoisted_7$c = { class: "cb-condition-row" };
|
|
33260
33260
|
const _hoisted_8$8 = { class: "cb-field-label" };
|
|
33261
33261
|
const nodePattern = "(currNode|parentNode|rootNode)";
|
|
33262
|
-
const _sfc_main$
|
|
33262
|
+
const _sfc_main$2s = /* @__PURE__ */ defineComponent({
|
|
33263
33263
|
...{ name: "ElsConditionBuilder" },
|
|
33264
33264
|
__name: "conditionBuilder",
|
|
33265
33265
|
props: {
|
|
@@ -33770,7 +33770,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
|
|
|
33770
33770
|
const _component_el_input = resolveComponent("el-input");
|
|
33771
33771
|
const _component_Plus = resolveComponent("Plus");
|
|
33772
33772
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
33773
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33773
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1t, [
|
|
33774
33774
|
createVNode(_component_el_button, {
|
|
33775
33775
|
size: "small",
|
|
33776
33776
|
style: { "width": "100%" },
|
|
@@ -33821,8 +33821,8 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
|
|
|
33821
33821
|
})
|
|
33822
33822
|
]),
|
|
33823
33823
|
default: withCtx(() => [
|
|
33824
|
-
createElementVNode("div", _hoisted_2$
|
|
33825
|
-
createElementVNode("div", _hoisted_3$
|
|
33824
|
+
createElementVNode("div", _hoisted_2$C, [
|
|
33825
|
+
createElementVNode("div", _hoisted_3$t, [
|
|
33826
33826
|
createVNode(_component_el_button_group, { size: "small" }, {
|
|
33827
33827
|
default: withCtx(() => [
|
|
33828
33828
|
createVNode(_component_el_button, {
|
|
@@ -33868,13 +33868,13 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
|
|
|
33868
33868
|
description: "当前表达式较复杂,无法转为可视化模式,请继续使用代码模式编辑。"
|
|
33869
33869
|
})) : createCommentVNode("", true),
|
|
33870
33870
|
mode.value === "visual" ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
33871
|
-
!allFieldOptions.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
33871
|
+
!allFieldOptions.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$k, [..._cache[7] || (_cache[7] = [
|
|
33872
33872
|
createElementVNode("span", null, "暂无可用字段", -1)
|
|
33873
33873
|
])])) : createCommentVNode("", true),
|
|
33874
|
-
createElementVNode("div", _hoisted_5$
|
|
33874
|
+
createElementVNode("div", _hoisted_5$i, [
|
|
33875
33875
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(localConditions.value, (cond, i) => {
|
|
33876
33876
|
return openBlock(), createElementBlock(Fragment$1, { key: i }, [
|
|
33877
|
-
i > 0 ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
33877
|
+
i > 0 ? (openBlock(), createElementBlock("div", _hoisted_6$e, [
|
|
33878
33878
|
createVNode(_component_el_radio_group, {
|
|
33879
33879
|
modelValue: localConditions.value[i - 1].logicOp,
|
|
33880
33880
|
"onUpdate:modelValue": ($event) => localConditions.value[i - 1].logicOp = $event,
|
|
@@ -33897,7 +33897,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
|
|
|
33897
33897
|
_: 1
|
|
33898
33898
|
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
33899
33899
|
])) : createCommentVNode("", true),
|
|
33900
|
-
createElementVNode("div", _hoisted_7$
|
|
33900
|
+
createElementVNode("div", _hoisted_7$c, [
|
|
33901
33901
|
createVNode(FieldPicker, {
|
|
33902
33902
|
class: "cb-field-picker",
|
|
33903
33903
|
onSelect: (opt) => applyFieldSelect(cond, opt)
|
|
@@ -34045,27 +34045,27 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
|
|
|
34045
34045
|
};
|
|
34046
34046
|
}
|
|
34047
34047
|
});
|
|
34048
|
-
const ConditionBuilderVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
34049
|
-
const _hoisted_1$
|
|
34050
|
-
const _hoisted_2$
|
|
34048
|
+
const ConditionBuilderVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$2s, [["__scopeId", "data-v-3580b83f"]]);
|
|
34049
|
+
const _hoisted_1$1s = { class: "expr-input-wrapper" };
|
|
34050
|
+
const _hoisted_2$B = {
|
|
34051
34051
|
key: 0,
|
|
34052
34052
|
class: "expr-mode-badge"
|
|
34053
34053
|
};
|
|
34054
|
-
const _hoisted_3$
|
|
34055
|
-
const _hoisted_4$
|
|
34056
|
-
const _hoisted_5$
|
|
34054
|
+
const _hoisted_3$s = { class: "expr-dialog-header" };
|
|
34055
|
+
const _hoisted_4$j = { class: "expr-toolbar-right" };
|
|
34056
|
+
const _hoisted_5$h = {
|
|
34057
34057
|
key: 0,
|
|
34058
34058
|
class: "expr-mode-hint"
|
|
34059
34059
|
};
|
|
34060
|
-
const _hoisted_6$
|
|
34060
|
+
const _hoisted_6$d = {
|
|
34061
34061
|
key: 1,
|
|
34062
34062
|
class: "expr-mode-hint expr-mode-hint--expr"
|
|
34063
34063
|
};
|
|
34064
|
-
const _hoisted_7$
|
|
34064
|
+
const _hoisted_7$b = {
|
|
34065
34065
|
key: 2,
|
|
34066
34066
|
class: "expr-mode-hint expr-mode-hint--raw"
|
|
34067
34067
|
};
|
|
34068
|
-
const _sfc_main$
|
|
34068
|
+
const _sfc_main$2r = /* @__PURE__ */ defineComponent({
|
|
34069
34069
|
...{ name: "ElsExpressionInput" },
|
|
34070
34070
|
__name: "expressionInput",
|
|
34071
34071
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -34286,7 +34286,7 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
34286
34286
|
const _component_el_button_group = resolveComponent("el-button-group");
|
|
34287
34287
|
const _component_el_input = resolveComponent("el-input");
|
|
34288
34288
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
34289
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34289
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1s, [
|
|
34290
34290
|
createVNode(TipTapEditor, {
|
|
34291
34291
|
class: "expr-compact",
|
|
34292
34292
|
modelValue: modelValue.value,
|
|
@@ -34300,7 +34300,7 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
34300
34300
|
resizable: true,
|
|
34301
34301
|
border: true
|
|
34302
34302
|
}, null, 8, ["modelValue", "options", "renderOption", "placeholder"]),
|
|
34303
|
-
isExprMode.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
34303
|
+
isExprMode.value ? (openBlock(), createElementBlock("span", _hoisted_2$B, "JS")) : createCommentVNode("", true),
|
|
34304
34304
|
createVNode(_component_el_tooltip, {
|
|
34305
34305
|
content: "扩展编辑",
|
|
34306
34306
|
placement: "top"
|
|
@@ -34346,7 +34346,7 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
34346
34346
|
})
|
|
34347
34347
|
]),
|
|
34348
34348
|
default: withCtx(() => [
|
|
34349
|
-
createElementVNode("div", _hoisted_3$
|
|
34349
|
+
createElementVNode("div", _hoisted_3$s, [
|
|
34350
34350
|
_cache[13] || (_cache[13] = createElementVNode("div", { class: "expr-vars-hint" }, [
|
|
34351
34351
|
createTextVNode(" 可用变量:"),
|
|
34352
34352
|
createElementVNode("code", null, "currNode"),
|
|
@@ -34362,7 +34362,7 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
34362
34362
|
createElementVNode("code", null, "{}"),
|
|
34363
34363
|
createTextVNode(" 插入字段引用 ")
|
|
34364
34364
|
], -1)),
|
|
34365
|
-
createElementVNode("div", _hoisted_4$
|
|
34365
|
+
createElementVNode("div", _hoisted_4$j, [
|
|
34366
34366
|
createVNode(FieldPicker, { onSelect: onPickerSelectDialog }, {
|
|
34367
34367
|
trigger: withCtx(() => [
|
|
34368
34368
|
createVNode(_component_el_tooltip, {
|
|
@@ -34422,15 +34422,15 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
34422
34422
|
})
|
|
34423
34423
|
])
|
|
34424
34424
|
]),
|
|
34425
|
-
editMode.value === "template" ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
34425
|
+
editMode.value === "template" ? (openBlock(), createElementBlock("div", _hoisted_5$h, [..._cache[14] || (_cache[14] = [
|
|
34426
34426
|
createTextVNode(" 字符串插值模式:用 ", -1),
|
|
34427
34427
|
createElementVNode("code", null, "{{expr}}", -1),
|
|
34428
34428
|
createTextVNode(" 嵌入表达式,适合文本拼接,如 ", -1),
|
|
34429
34429
|
createElementVNode("code", null, "你好,{{currNode['name'].value}}", -1)
|
|
34430
|
-
])])) : editMode.value === "expression" ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
34430
|
+
])])) : editMode.value === "expression" ? (openBlock(), createElementBlock("div", _hoisted_6$d, [..._cache[15] || (_cache[15] = [
|
|
34431
34431
|
createTextVNode(" JS 表达式模式:整体作为一个 JS 表达式求值,支持三元、运算符等,如 ", -1),
|
|
34432
34432
|
createElementVNode("code", null, "currNode['age'].value > 18 ? '成年' : '未成年'", -1)
|
|
34433
|
-
])])) : (openBlock(), createElementBlock("div", _hoisted_7$
|
|
34433
|
+
])])) : (openBlock(), createElementBlock("div", _hoisted_7$b, [..._cache[16] || (_cache[16] = [
|
|
34434
34434
|
createTextVNode(" 源码模式:直接编辑原始字符串。以 ", -1),
|
|
34435
34435
|
createElementVNode("code", null, ":", -1),
|
|
34436
34436
|
createTextVNode(" 开头为 JS 表达式,", -1),
|
|
@@ -34476,7 +34476,7 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
34476
34476
|
};
|
|
34477
34477
|
}
|
|
34478
34478
|
});
|
|
34479
|
-
const ExpressionInputVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
34479
|
+
const ExpressionInputVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$2r, [["__scopeId", "data-v-4cf2ed46"]]);
|
|
34480
34480
|
const formItemProps$1 = buildProps({
|
|
34481
34481
|
...formItemProps$2,
|
|
34482
34482
|
/**
|
|
@@ -34718,12 +34718,12 @@ class TBaseCom {
|
|
|
34718
34718
|
}
|
|
34719
34719
|
}
|
|
34720
34720
|
const formItemProps = formItemProps$1;
|
|
34721
|
-
const _hoisted_1$
|
|
34722
|
-
const _hoisted_2$
|
|
34723
|
-
const _hoisted_3$
|
|
34724
|
-
const _hoisted_4$
|
|
34725
|
-
const _hoisted_5$
|
|
34726
|
-
const _sfc_main$
|
|
34721
|
+
const _hoisted_1$1r = ["innerHTML"];
|
|
34722
|
+
const _hoisted_2$A = { class: "els-form-item-label" };
|
|
34723
|
+
const _hoisted_3$r = ["innerHTML"];
|
|
34724
|
+
const _hoisted_4$i = { class: "els-form-item-append" };
|
|
34725
|
+
const _hoisted_5$g = ["innerHTML"];
|
|
34726
|
+
const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
34727
34727
|
...{ name: "ElsFormItem" },
|
|
34728
34728
|
__name: "formItem",
|
|
34729
34729
|
props: formItemProps,
|
|
@@ -34906,10 +34906,10 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
34906
34906
|
placement: "top"
|
|
34907
34907
|
}, {
|
|
34908
34908
|
content: withCtx(() => [
|
|
34909
|
-
createElementVNode("div", { innerHTML: _ctx.tip }, null, 8, _hoisted_3$
|
|
34909
|
+
createElementVNode("div", { innerHTML: _ctx.tip }, null, 8, _hoisted_3$r)
|
|
34910
34910
|
]),
|
|
34911
34911
|
default: withCtx(() => [
|
|
34912
|
-
createElementVNode("span", _hoisted_4$
|
|
34912
|
+
createElementVNode("span", _hoisted_4$i, [
|
|
34913
34913
|
createVNode(_component_el_icon, { style: { "margin-left": "5px", "cursor": "pointer" } }, {
|
|
34914
34914
|
default: withCtx(() => [
|
|
34915
34915
|
createVNode(_component_Question_Filled)
|
|
@@ -34924,7 +34924,7 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
34924
34924
|
key: 2,
|
|
34925
34925
|
innerHTML: _ctx.suffixContent,
|
|
34926
34926
|
class: "els-form-item-append"
|
|
34927
|
-
}, null, 8, _hoisted_5$
|
|
34927
|
+
}, null, 8, _hoisted_5$g)) : createCommentVNode("", true),
|
|
34928
34928
|
unref(slots).error ? renderSlot(_ctx.$slots, "error", { key: 3 }, void 0, true) : createCommentVNode("", true)
|
|
34929
34929
|
]),
|
|
34930
34930
|
_: 2
|
|
@@ -34940,10 +34940,10 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
34940
34940
|
fn: withCtx(() => [
|
|
34941
34941
|
createVNode(_component_el_tooltip, { placement: "top" }, {
|
|
34942
34942
|
content: withCtx(() => [
|
|
34943
|
-
createElementVNode("div", { innerHTML: _ctx.tip }, null, 8, _hoisted_1$
|
|
34943
|
+
createElementVNode("div", { innerHTML: _ctx.tip }, null, 8, _hoisted_1$1r)
|
|
34944
34944
|
]),
|
|
34945
34945
|
default: withCtx(() => [
|
|
34946
|
-
createElementVNode("span", _hoisted_2$
|
|
34946
|
+
createElementVNode("span", _hoisted_2$A, [
|
|
34947
34947
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
34948
34948
|
createVNode(_component_el_icon, { style: { "margin-left": "5px", "cursor": "pointer" } }, {
|
|
34949
34949
|
default: withCtx(() => [
|
|
@@ -34962,9 +34962,9 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
34962
34962
|
};
|
|
34963
34963
|
}
|
|
34964
34964
|
});
|
|
34965
|
-
const FormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
34965
|
+
const FormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2q, [["__scopeId", "data-v-53c65fe2"]]);
|
|
34966
34966
|
const ElsFormItem = withInstall$1(FormItem);
|
|
34967
|
-
const _sfc_main$
|
|
34967
|
+
const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
34968
34968
|
...{ name: "ElsFormNode" },
|
|
34969
34969
|
__name: "formNode",
|
|
34970
34970
|
props: formItemProps$1,
|
|
@@ -35030,7 +35030,7 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
|
|
|
35030
35030
|
};
|
|
35031
35031
|
}
|
|
35032
35032
|
});
|
|
35033
|
-
const FormNode = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
35033
|
+
const FormNode = /* @__PURE__ */ _export_sfc$1(_sfc_main$2p, [["__scopeId", "data-v-c800fb00"]]);
|
|
35034
35034
|
const ElsFormNode = withInstall$1(FormNode);
|
|
35035
35035
|
function _isSlot$5(s) {
|
|
35036
35036
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
@@ -35272,7 +35272,7 @@ let JsonEditor$1 = class JsonEditor extends TBaseFormItem {
|
|
|
35272
35272
|
}), null)])]);
|
|
35273
35273
|
}
|
|
35274
35274
|
};
|
|
35275
|
-
const _sfc_main$
|
|
35275
|
+
const _sfc_main$2o = defineComponent({
|
|
35276
35276
|
name: "ElsJsonEditor",
|
|
35277
35277
|
inheritAttrs: false,
|
|
35278
35278
|
props: jsonEditorProps,
|
|
@@ -35282,19 +35282,19 @@ const _sfc_main$2n = defineComponent({
|
|
|
35282
35282
|
},
|
|
35283
35283
|
emits: ["update:modelValue"]
|
|
35284
35284
|
});
|
|
35285
|
-
const JsonEditor2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
35285
|
+
const JsonEditor2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$2o, [["__scopeId", "data-v-ebf6dbd5"]]);
|
|
35286
35286
|
const ElsJsonEditor = withInstall$1(JsonEditor2);
|
|
35287
|
-
const _hoisted_1$
|
|
35288
|
-
const _hoisted_2$
|
|
35289
|
-
const _hoisted_3$
|
|
35287
|
+
const _hoisted_1$1q = { class: "els-schema-field-editor" };
|
|
35288
|
+
const _hoisted_2$z = { class: "els-schema-field-editor__toolbar" };
|
|
35289
|
+
const _hoisted_3$q = {
|
|
35290
35290
|
key: 0,
|
|
35291
35291
|
class: "els-schema-field-editor__rows"
|
|
35292
35292
|
};
|
|
35293
|
-
const _hoisted_4$
|
|
35293
|
+
const _hoisted_4$h = {
|
|
35294
35294
|
key: 1,
|
|
35295
35295
|
class: "els-schema-field-editor__empty"
|
|
35296
35296
|
};
|
|
35297
|
-
const _sfc_main$
|
|
35297
|
+
const _sfc_main$2n = /* @__PURE__ */ defineComponent({
|
|
35298
35298
|
...{ name: "ElsSchemaFieldEditor" },
|
|
35299
35299
|
__name: "schemaFieldEditor",
|
|
35300
35300
|
props: {
|
|
@@ -35375,8 +35375,8 @@ const _sfc_main$2m = /* @__PURE__ */ defineComponent({
|
|
|
35375
35375
|
const _component_el_option = resolveComponent("el-option");
|
|
35376
35376
|
const _component_el_select = resolveComponent("el-select");
|
|
35377
35377
|
const _component_el_icon = resolveComponent("el-icon");
|
|
35378
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
35379
|
-
createElementVNode("div", _hoisted_2$
|
|
35378
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1q, [
|
|
35379
|
+
createElementVNode("div", _hoisted_2$z, [
|
|
35380
35380
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "els-schema-field-editor__hint" }, "声明响应里有哪些字段,其他组件可在数据绑定面板里直接选用", -1)),
|
|
35381
35381
|
createVNode(_component_el_button, {
|
|
35382
35382
|
link: "",
|
|
@@ -35391,7 +35391,7 @@ const _sfc_main$2m = /* @__PURE__ */ defineComponent({
|
|
|
35391
35391
|
})
|
|
35392
35392
|
]),
|
|
35393
35393
|
mode.value === "list" ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
35394
|
-
rows.value.length ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
35394
|
+
rows.value.length ? (openBlock(), createElementBlock("div", _hoisted_3$q, [
|
|
35395
35395
|
_cache[3] || (_cache[3] = createElementVNode("div", { class: "els-schema-field-editor__head" }, [
|
|
35396
35396
|
createElementVNode("span", null, "展示名称"),
|
|
35397
35397
|
createElementVNode("span", null, "接口字段"),
|
|
@@ -35439,7 +35439,7 @@ const _sfc_main$2m = /* @__PURE__ */ defineComponent({
|
|
|
35439
35439
|
}, 8, ["onClick"])
|
|
35440
35440
|
]);
|
|
35441
35441
|
}), 128))
|
|
35442
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
35442
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_4$h, "暂无字段,点击下方按钮添加")),
|
|
35443
35443
|
createVNode(_component_el_button, {
|
|
35444
35444
|
class: "els-schema-field-editor__add",
|
|
35445
35445
|
onClick: handleAddRow
|
|
@@ -35468,7 +35468,220 @@ const _sfc_main$2m = /* @__PURE__ */ defineComponent({
|
|
|
35468
35468
|
};
|
|
35469
35469
|
}
|
|
35470
35470
|
});
|
|
35471
|
-
const SchemaFieldEditorVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
35471
|
+
const SchemaFieldEditorVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$2n, [["__scopeId", "data-v-43e169bb"]]);
|
|
35472
|
+
const _hoisted_1$1p = { class: "els-response-mapping-editor" };
|
|
35473
|
+
const _hoisted_2$y = {
|
|
35474
|
+
key: 0,
|
|
35475
|
+
class: "els-response-mapping-editor__rows"
|
|
35476
|
+
};
|
|
35477
|
+
const _hoisted_3$p = {
|
|
35478
|
+
class: "els-response-mapping-editor__option-name",
|
|
35479
|
+
style: { "margin-right": "10px" }
|
|
35480
|
+
};
|
|
35481
|
+
const _hoisted_4$g = { class: "els-response-mapping-editor__option-code" };
|
|
35482
|
+
const _hoisted_5$f = {
|
|
35483
|
+
class: "els-response-mapping-editor__option-name",
|
|
35484
|
+
style: { "margin-right": "10px" }
|
|
35485
|
+
};
|
|
35486
|
+
const _hoisted_6$c = { class: "els-response-mapping-editor__option-code" };
|
|
35487
|
+
const _hoisted_7$a = {
|
|
35488
|
+
key: 1,
|
|
35489
|
+
class: "els-response-mapping-editor__empty"
|
|
35490
|
+
};
|
|
35491
|
+
const _sfc_main$2m = /* @__PURE__ */ defineComponent({
|
|
35492
|
+
...{ name: "ElsResponseMappingEditor" },
|
|
35493
|
+
__name: "responseMappingEditor",
|
|
35494
|
+
props: {
|
|
35495
|
+
"modelValue": { default: "[]" },
|
|
35496
|
+
"modelModifiers": {}
|
|
35497
|
+
},
|
|
35498
|
+
emits: ["update:modelValue"],
|
|
35499
|
+
setup(__props) {
|
|
35500
|
+
const modelValue = useModel$1(__props, "modelValue");
|
|
35501
|
+
let uid = 0;
|
|
35502
|
+
let syncingFromSelf = false;
|
|
35503
|
+
function nextId() {
|
|
35504
|
+
uid += 1;
|
|
35505
|
+
return "mapping_" + uid;
|
|
35506
|
+
}
|
|
35507
|
+
function parseModelValue(raw) {
|
|
35508
|
+
let data = [];
|
|
35509
|
+
try {
|
|
35510
|
+
data = raw ? JSON.parse(raw) : [];
|
|
35511
|
+
} catch {
|
|
35512
|
+
data = [];
|
|
35513
|
+
}
|
|
35514
|
+
if (!Array.isArray(data)) return [];
|
|
35515
|
+
return data.filter((item) => item && typeof item === "object").map((item) => ({
|
|
35516
|
+
id: nextId(),
|
|
35517
|
+
source: String(item.source || ""),
|
|
35518
|
+
target: String(item.target || ""),
|
|
35519
|
+
enabled: item.enabled !== false
|
|
35520
|
+
}));
|
|
35521
|
+
}
|
|
35522
|
+
const { getValue: getValue2 } = useProps();
|
|
35523
|
+
const getAllFormFields = getValue2("getAllFormFields", () => []);
|
|
35524
|
+
const getGlobalData = getValue2("getGlobalData", () => ({}));
|
|
35525
|
+
const rows = ref(parseModelValue(modelValue.value));
|
|
35526
|
+
const sourceOptions = computed(() => {
|
|
35527
|
+
var _a, _b;
|
|
35528
|
+
const requestFormNode = (getGlobalData == null ? void 0 : getGlobalData()) || {};
|
|
35529
|
+
const raw = (_b = (_a = requestFormNode.config) == null ? void 0 : _a.baseConfig) == null ? void 0 : _b.returnSchema;
|
|
35530
|
+
let schema2 = {};
|
|
35531
|
+
try {
|
|
35532
|
+
schema2 = raw ? JSON.parse(raw) : {};
|
|
35533
|
+
} catch {
|
|
35534
|
+
schema2 = {};
|
|
35535
|
+
}
|
|
35536
|
+
if (!schema2 || typeof schema2 !== "object" || Array.isArray(schema2)) return [];
|
|
35537
|
+
return Object.keys(schema2).map((label) => {
|
|
35538
|
+
const value = schema2[label];
|
|
35539
|
+
if (typeof value === "string") {
|
|
35540
|
+
return { label, value };
|
|
35541
|
+
}
|
|
35542
|
+
if (value && typeof value === "object" && typeof value.name === "string") {
|
|
35543
|
+
return { label, value: value.name };
|
|
35544
|
+
}
|
|
35545
|
+
return null;
|
|
35546
|
+
}).filter(Boolean);
|
|
35547
|
+
});
|
|
35548
|
+
const targetFields = computed(() => {
|
|
35549
|
+
return ((getAllFormFields == null ? void 0 : getAllFormFields()) || []).filter((field) => field && (field.rfScope === null || field.rfScope === void 0) && field.keyCode).map((field) => {
|
|
35550
|
+
const path = [...field.containerPath || [], field.keyCode].join(".");
|
|
35551
|
+
const names = [...field.containerKeyNames || [], field.keyName || field.keyCode].filter(Boolean);
|
|
35552
|
+
return {
|
|
35553
|
+
label: names.join(" / "),
|
|
35554
|
+
value: path,
|
|
35555
|
+
type: field.dataTypeName || "String"
|
|
35556
|
+
};
|
|
35557
|
+
});
|
|
35558
|
+
});
|
|
35559
|
+
watch(modelValue, (val) => {
|
|
35560
|
+
if (syncingFromSelf) return;
|
|
35561
|
+
rows.value = parseModelValue(val || "[]");
|
|
35562
|
+
});
|
|
35563
|
+
function serialize() {
|
|
35564
|
+
const data = rows.value.filter((row) => row.source && row.target).map((row) => ({
|
|
35565
|
+
source: row.source,
|
|
35566
|
+
target: row.target,
|
|
35567
|
+
enabled: row.enabled
|
|
35568
|
+
}));
|
|
35569
|
+
syncingFromSelf = true;
|
|
35570
|
+
modelValue.value = JSON.stringify(data);
|
|
35571
|
+
requestAnimationFrame(() => {
|
|
35572
|
+
syncingFromSelf = false;
|
|
35573
|
+
});
|
|
35574
|
+
}
|
|
35575
|
+
watch(rows, serialize, { deep: true });
|
|
35576
|
+
function handleAddRow() {
|
|
35577
|
+
rows.value.push({ id: nextId(), source: "", target: "", enabled: true });
|
|
35578
|
+
}
|
|
35579
|
+
function handleRemoveRow(row) {
|
|
35580
|
+
rows.value = rows.value.filter((item) => item.id !== row.id);
|
|
35581
|
+
}
|
|
35582
|
+
return (_ctx, _cache) => {
|
|
35583
|
+
const _component_el_option = resolveComponent("el-option");
|
|
35584
|
+
const _component_el_select = resolveComponent("el-select");
|
|
35585
|
+
const _component_el_switch = resolveComponent("el-switch");
|
|
35586
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
35587
|
+
const _component_el_button = resolveComponent("el-button");
|
|
35588
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1p, [
|
|
35589
|
+
rows.value.length ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
|
|
35590
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "els-response-mapping-editor__head" }, [
|
|
35591
|
+
createElementVNode("span", null, "接口字段"),
|
|
35592
|
+
createElementVNode("span", null, "目标字段"),
|
|
35593
|
+
createElementVNode("span", null, "启用"),
|
|
35594
|
+
createElementVNode("span")
|
|
35595
|
+
], -1)),
|
|
35596
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(rows.value, (row) => {
|
|
35597
|
+
return openBlock(), createElementBlock("div", {
|
|
35598
|
+
class: "els-response-mapping-editor__row",
|
|
35599
|
+
key: row.id
|
|
35600
|
+
}, [
|
|
35601
|
+
createVNode(_component_el_select, {
|
|
35602
|
+
modelValue: row.source,
|
|
35603
|
+
"onUpdate:modelValue": ($event) => row.source = $event,
|
|
35604
|
+
filterable: "",
|
|
35605
|
+
"allow-create": "",
|
|
35606
|
+
"default-first-option": "",
|
|
35607
|
+
placeholder: "如 user.name"
|
|
35608
|
+
}, {
|
|
35609
|
+
default: withCtx(() => [
|
|
35610
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(sourceOptions.value, (item) => {
|
|
35611
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
35612
|
+
key: item.value,
|
|
35613
|
+
label: item.label,
|
|
35614
|
+
value: item.value
|
|
35615
|
+
}, {
|
|
35616
|
+
default: withCtx(() => [
|
|
35617
|
+
createElementVNode("span", _hoisted_3$p, toDisplayString(item.label), 1),
|
|
35618
|
+
createElementVNode("span", _hoisted_4$g, toDisplayString(item.value), 1)
|
|
35619
|
+
]),
|
|
35620
|
+
_: 2
|
|
35621
|
+
}, 1032, ["label", "value"]);
|
|
35622
|
+
}), 128))
|
|
35623
|
+
]),
|
|
35624
|
+
_: 1
|
|
35625
|
+
}, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
35626
|
+
createVNode(_component_el_select, {
|
|
35627
|
+
modelValue: row.target,
|
|
35628
|
+
"onUpdate:modelValue": ($event) => row.target = $event,
|
|
35629
|
+
filterable: "",
|
|
35630
|
+
placeholder: "选择表单字段"
|
|
35631
|
+
}, {
|
|
35632
|
+
default: withCtx(() => [
|
|
35633
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(targetFields.value, (field) => {
|
|
35634
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
35635
|
+
key: field.value,
|
|
35636
|
+
label: field.label,
|
|
35637
|
+
value: field.value
|
|
35638
|
+
}, {
|
|
35639
|
+
default: withCtx(() => [
|
|
35640
|
+
createElementVNode("span", _hoisted_5$f, toDisplayString(field.label), 1),
|
|
35641
|
+
createElementVNode("span", _hoisted_6$c, toDisplayString(field.value), 1)
|
|
35642
|
+
]),
|
|
35643
|
+
_: 2
|
|
35644
|
+
}, 1032, ["label", "value"]);
|
|
35645
|
+
}), 128))
|
|
35646
|
+
]),
|
|
35647
|
+
_: 1
|
|
35648
|
+
}, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
35649
|
+
createVNode(_component_el_switch, {
|
|
35650
|
+
modelValue: row.enabled,
|
|
35651
|
+
"onUpdate:modelValue": ($event) => row.enabled = $event
|
|
35652
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
35653
|
+
createVNode(_component_el_icon, {
|
|
35654
|
+
class: "els-response-mapping-editor__remove",
|
|
35655
|
+
onClick: ($event) => handleRemoveRow(row)
|
|
35656
|
+
}, {
|
|
35657
|
+
default: withCtx(() => [
|
|
35658
|
+
createVNode(unref(delete_default))
|
|
35659
|
+
]),
|
|
35660
|
+
_: 1
|
|
35661
|
+
}, 8, ["onClick"])
|
|
35662
|
+
]);
|
|
35663
|
+
}), 128))
|
|
35664
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_7$a, "暂无映射")),
|
|
35665
|
+
createVNode(_component_el_button, {
|
|
35666
|
+
class: "els-response-mapping-editor__add",
|
|
35667
|
+
onClick: handleAddRow
|
|
35668
|
+
}, {
|
|
35669
|
+
default: withCtx(() => [
|
|
35670
|
+
createVNode(_component_el_icon, null, {
|
|
35671
|
+
default: withCtx(() => [
|
|
35672
|
+
createVNode(unref(plus_default))
|
|
35673
|
+
]),
|
|
35674
|
+
_: 1
|
|
35675
|
+
}),
|
|
35676
|
+
_cache[1] || (_cache[1] = createTextVNode("添加映射 ", -1))
|
|
35677
|
+
]),
|
|
35678
|
+
_: 1
|
|
35679
|
+
})
|
|
35680
|
+
]);
|
|
35681
|
+
};
|
|
35682
|
+
}
|
|
35683
|
+
});
|
|
35684
|
+
const ResponseMappingEditorVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$2m, [["__scopeId", "data-v-7600939c"]]);
|
|
35472
35685
|
Number.prototype.toFixedNumber = function toFixedNumber(digits = 2) {
|
|
35473
35686
|
return parseFloat(this.toFixed(digits));
|
|
35474
35687
|
};
|
|
@@ -48115,10 +48328,20 @@ const requestFormProps = buildProps({
|
|
|
48115
48328
|
* @description 返回值结构定义(仅供设计器字段选择器使用,不影响实际请求逻辑)
|
|
48116
48329
|
*/
|
|
48117
48330
|
returnSchema: String,
|
|
48331
|
+
/**
|
|
48332
|
+
* @description 响应字段映射配置,JSON 字符串,格式:[{ source, target, enabled }]
|
|
48333
|
+
*/
|
|
48334
|
+
responseMappings: {
|
|
48335
|
+
type: String,
|
|
48336
|
+
default: "[]"
|
|
48337
|
+
},
|
|
48118
48338
|
/**
|
|
48119
48339
|
* @description 节点自身的字段标识,由渲染层自动传入。设置时返回数据整体挂载到 globalData[keyCode] 下,未设置则扁平合并到 globalData 根节点
|
|
48120
48340
|
*/
|
|
48121
|
-
keyCode: String
|
|
48341
|
+
keyCode: String,
|
|
48342
|
+
labelPosition: String,
|
|
48343
|
+
labelWidth: String,
|
|
48344
|
+
labelSuffix: String
|
|
48122
48345
|
});
|
|
48123
48346
|
const _hoisted_1$19 = { class: "els-request-form__meta" };
|
|
48124
48347
|
const _hoisted_2$m = { class: "els-request-form__method" };
|
|
@@ -48153,6 +48376,10 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
48153
48376
|
const emit = __emit;
|
|
48154
48377
|
const { getValue: getValue2 } = useProps();
|
|
48155
48378
|
const getGlobalData = getValue2("getGlobalData", () => ({}));
|
|
48379
|
+
const setRootNodeValueByPath = getValue2("setRootNodeValueByPath", null);
|
|
48380
|
+
const getFormLabelPosition = getValue2("getFormLabelPosition", () => "");
|
|
48381
|
+
const getFormLabelWidth = getValue2("getFormLabelWidth", () => "");
|
|
48382
|
+
const getFormLabelSuffix = getValue2("getFormLabelSuffix", () => "");
|
|
48156
48383
|
const { $codeField, $messageField, $dataField, $success } = utils.getApiConfig();
|
|
48157
48384
|
const modelValue = useModel$1(__props, "modelValue");
|
|
48158
48385
|
const loading = ref(false);
|
|
@@ -48175,6 +48402,34 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
48175
48402
|
Object.assign(globalData, data);
|
|
48176
48403
|
}
|
|
48177
48404
|
}
|
|
48405
|
+
function parsePath(path) {
|
|
48406
|
+
return String(path || "").replace(/\[(\d+)\]/g, ".$1").split(".").map((p) => p.trim()).filter(Boolean);
|
|
48407
|
+
}
|
|
48408
|
+
function getValueByPath(data, path) {
|
|
48409
|
+
const parts = parsePath(path);
|
|
48410
|
+
let current = data;
|
|
48411
|
+
for (const part of parts) {
|
|
48412
|
+
if (current === void 0 || current === null) return void 0;
|
|
48413
|
+
current = current[part];
|
|
48414
|
+
}
|
|
48415
|
+
return current;
|
|
48416
|
+
}
|
|
48417
|
+
function parseResponseMappings() {
|
|
48418
|
+
try {
|
|
48419
|
+
const parsed = props2.responseMappings ? JSON.parse(props2.responseMappings) : [];
|
|
48420
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
48421
|
+
} catch {
|
|
48422
|
+
return [];
|
|
48423
|
+
}
|
|
48424
|
+
}
|
|
48425
|
+
function applyResponseMappings(sourceData) {
|
|
48426
|
+
if (props2.requestMethod === "SSE" || !setRootNodeValueByPath) return;
|
|
48427
|
+
parseResponseMappings().filter((item) => item && item.enabled !== false && item.source && item.target).forEach((item) => {
|
|
48428
|
+
const value = getValueByPath(sourceData, item.source);
|
|
48429
|
+
if (value === void 0) return;
|
|
48430
|
+
setRootNodeValueByPath(item.target, value);
|
|
48431
|
+
});
|
|
48432
|
+
}
|
|
48178
48433
|
function formatResult(data) {
|
|
48179
48434
|
if (data === void 0) return "";
|
|
48180
48435
|
if (typeof data === "string") return data;
|
|
@@ -48225,11 +48480,13 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
48225
48480
|
applyResult(data);
|
|
48226
48481
|
setResult(res, "success", append2);
|
|
48227
48482
|
emit("success", data);
|
|
48483
|
+
applyResponseMappings(data);
|
|
48228
48484
|
return;
|
|
48229
48485
|
}
|
|
48230
48486
|
applyResult(res);
|
|
48231
48487
|
setResult(res, "success", append2);
|
|
48232
48488
|
emit("success", res);
|
|
48489
|
+
applyResponseMappings(res);
|
|
48233
48490
|
}
|
|
48234
48491
|
function extractErrorMessage(err) {
|
|
48235
48492
|
var _a, _b, _c;
|
|
@@ -48282,7 +48539,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
48282
48539
|
}
|
|
48283
48540
|
__expose({ submit: handleSubmit, abort: handleAbort });
|
|
48284
48541
|
return (_ctx, _cache) => {
|
|
48285
|
-
const
|
|
48542
|
+
const _component_els_form = resolveComponent("els-form");
|
|
48286
48543
|
const _component_el_icon = resolveComponent("el-icon");
|
|
48287
48544
|
const _component_el_tag = resolveComponent("el-tag");
|
|
48288
48545
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -48291,7 +48548,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
48291
48548
|
return openBlock(), createElementBlock("div", {
|
|
48292
48549
|
class: normalizeClass(["els-request-form", [`els-request-form--${methodTheme.value}`, { "is-loading": loading.value }]])
|
|
48293
48550
|
}, [
|
|
48294
|
-
_cache[
|
|
48551
|
+
_cache[2] || (_cache[2] = createElementVNode("span", { class: "els-request-form__accent" }, null, -1)),
|
|
48295
48552
|
createElementVNode("div", _hoisted_1$19, [
|
|
48296
48553
|
createElementVNode("span", _hoisted_2$m, toDisplayString(_ctx.requestMethod), 1),
|
|
48297
48554
|
createElementVNode("span", {
|
|
@@ -48299,15 +48556,19 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
48299
48556
|
title: _ctx.requestUrl
|
|
48300
48557
|
}, toDisplayString(_ctx.requestUrl || "未配置接口地址"), 9, _hoisted_3$i)
|
|
48301
48558
|
]),
|
|
48302
|
-
createVNode(
|
|
48303
|
-
|
|
48304
|
-
|
|
48559
|
+
createVNode(_component_els_form, {
|
|
48560
|
+
modelValue: modelValue.value,
|
|
48561
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
48562
|
+
class: "els-request-form__body",
|
|
48563
|
+
"label-position": _ctx.labelPosition || unref(getFormLabelPosition)() || void 0,
|
|
48564
|
+
"label-width": _ctx.labelWidth || unref(getFormLabelWidth)() || void 0,
|
|
48565
|
+
"label-suffix": _ctx.labelSuffix || unref(getFormLabelSuffix)() || void 0
|
|
48305
48566
|
}, {
|
|
48306
48567
|
default: withCtx(() => [
|
|
48307
48568
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
48308
48569
|
]),
|
|
48309
48570
|
_: 3
|
|
48310
|
-
}, 8, ["
|
|
48571
|
+
}, 8, ["modelValue", "label-position", "label-width", "label-suffix"]),
|
|
48311
48572
|
resultVisible.value || loading.value ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
48312
48573
|
createElementVNode("div", _hoisted_5$c, [
|
|
48313
48574
|
createElementVNode("div", _hoisted_6$a, [
|
|
@@ -48368,7 +48629,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
48368
48629
|
createVNode(_component_el_button, {
|
|
48369
48630
|
text: "",
|
|
48370
48631
|
icon: resultExpanded.value ? unref(arrow_up_default) : unref(arrow_down_default),
|
|
48371
|
-
onClick: _cache[
|
|
48632
|
+
onClick: _cache[1] || (_cache[1] = ($event) => resultExpanded.value = !resultExpanded.value)
|
|
48372
48633
|
}, null, 8, ["icon"])
|
|
48373
48634
|
]),
|
|
48374
48635
|
_: 1
|
|
@@ -48407,7 +48668,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
48407
48668
|
};
|
|
48408
48669
|
}
|
|
48409
48670
|
});
|
|
48410
|
-
const RequestForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$1v, [["__scopeId", "data-v-
|
|
48671
|
+
const RequestForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$1v, [["__scopeId", "data-v-b51ce04e"]]);
|
|
48411
48672
|
const ElsRequestForm = withInstall$1(RequestForm);
|
|
48412
48673
|
const dataModalProps = buildProps({
|
|
48413
48674
|
...formItemProps$1,
|
|
@@ -72229,6 +72490,56 @@ const property_requestForm = [
|
|
|
72229
72490
|
"arrayConfig": {}
|
|
72230
72491
|
}
|
|
72231
72492
|
},
|
|
72493
|
+
{
|
|
72494
|
+
"keyID": "rf_row_responseMappings",
|
|
72495
|
+
"keyName": "栅格行",
|
|
72496
|
+
"keyCode": "rf_row_responseMappings_code",
|
|
72497
|
+
"children": [
|
|
72498
|
+
{
|
|
72499
|
+
"keyID": "rf_responseMappings",
|
|
72500
|
+
"keyName": "字段映射",
|
|
72501
|
+
"keyCode": "responseMappings",
|
|
72502
|
+
"children": [],
|
|
72503
|
+
"dataType": "String",
|
|
72504
|
+
"componentType": "ResponseMappingEditor",
|
|
72505
|
+
"defaultValue": "[]",
|
|
72506
|
+
"config": {
|
|
72507
|
+
"arrayConfig": {},
|
|
72508
|
+
"baseConfig": {},
|
|
72509
|
+
"formConfig": {
|
|
72510
|
+
"labelWidth": "",
|
|
72511
|
+
"tip": "请求成功后,将接口返回字段写入表单字段。SSE 不执行字段映射",
|
|
72512
|
+
"tipPosition": "left",
|
|
72513
|
+
"suffixContent": "",
|
|
72514
|
+
"required": false,
|
|
72515
|
+
"requiredMessage": "",
|
|
72516
|
+
"validType": "",
|
|
72517
|
+
"validExpression": "",
|
|
72518
|
+
"validMessage": "",
|
|
72519
|
+
"validMethod": ""
|
|
72520
|
+
},
|
|
72521
|
+
"advancedConfig": {
|
|
72522
|
+
"style": "",
|
|
72523
|
+
"vif": "",
|
|
72524
|
+
"disabled": "",
|
|
72525
|
+
"eventChange": ""
|
|
72526
|
+
}
|
|
72527
|
+
},
|
|
72528
|
+
"formItem": true
|
|
72529
|
+
}
|
|
72530
|
+
],
|
|
72531
|
+
"dataType": "None",
|
|
72532
|
+
"arrayDataType": "",
|
|
72533
|
+
"componentTypeLabel": "栅格行",
|
|
72534
|
+
"componentType": "Row",
|
|
72535
|
+
"formItem": false,
|
|
72536
|
+
"config": {
|
|
72537
|
+
"formConfig": {},
|
|
72538
|
+
"baseConfig": { "gutter": 10, "justify": "", "align": "", "tag": "div" },
|
|
72539
|
+
"advancedConfig": { "style": "", "vif": "", "disabled": "", "eventChange": "" },
|
|
72540
|
+
"arrayConfig": {}
|
|
72541
|
+
}
|
|
72542
|
+
},
|
|
72232
72543
|
{
|
|
72233
72544
|
"keyID": "rf_eventSuccess",
|
|
72234
72545
|
"keyName": "请求成功事件",
|
|
@@ -74664,7 +74975,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
74664
74975
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
74665
74976
|
setup(__props, { emit: __emit }) {
|
|
74666
74977
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
74667
|
-
return import("./innerItem-
|
|
74978
|
+
return import("./innerItem-COru-kKY.js");
|
|
74668
74979
|
});
|
|
74669
74980
|
const { getValue: getValue2 } = useProps();
|
|
74670
74981
|
const tagID = getValue2("tagID");
|
|
@@ -75200,7 +75511,17 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
75200
75511
|
dataTypes: ["String"],
|
|
75201
75512
|
isShow: false
|
|
75202
75513
|
}];
|
|
75203
|
-
|
|
75514
|
+
const responseMappingEditorTypes = [{
|
|
75515
|
+
componentName: "ElsResponseMappingEditor",
|
|
75516
|
+
label: "字段映射编辑器",
|
|
75517
|
+
value: "ResponseMappingEditor",
|
|
75518
|
+
type: "ResponseMappingEditor",
|
|
75519
|
+
group: "Form",
|
|
75520
|
+
formItem: true,
|
|
75521
|
+
dataTypes: ["String"],
|
|
75522
|
+
isShow: false
|
|
75523
|
+
}];
|
|
75524
|
+
currComponentTypes.value.push(...conditionBuilderTypes, ...expressionInputTypes, ...schemaFieldEditorTypes, ...responseMappingEditorTypes);
|
|
75204
75525
|
const dynamicHandler = new DynamicHandler(currDynamicDataType.value, currComponentTypes.value);
|
|
75205
75526
|
function getConverToJsonResult(obj2) {
|
|
75206
75527
|
return dynamicHandler.jsonToConfig(obj2);
|
|
@@ -75555,7 +75876,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
75555
75876
|
};
|
|
75556
75877
|
}
|
|
75557
75878
|
});
|
|
75558
|
-
const Designer = /* @__PURE__ */ _export_sfc$1(_sfc_main$1k, [["__scopeId", "data-v-
|
|
75879
|
+
const Designer = /* @__PURE__ */ _export_sfc$1(_sfc_main$1k, [["__scopeId", "data-v-50df49bb"]]);
|
|
75559
75880
|
const ElsDynamicDesigner = withInstall$1(Designer);
|
|
75560
75881
|
const renderProps = buildProps({
|
|
75561
75882
|
...formItemProps$1,
|
|
@@ -75643,6 +75964,44 @@ const renderProps = buildProps({
|
|
|
75643
75964
|
default: {}
|
|
75644
75965
|
}
|
|
75645
75966
|
});
|
|
75967
|
+
function parseNodePath(path) {
|
|
75968
|
+
return String(path || "").split(".").map((p) => p.trim()).filter(Boolean);
|
|
75969
|
+
}
|
|
75970
|
+
function castNodeValue(item, value) {
|
|
75971
|
+
if (value === null || value === "") return value;
|
|
75972
|
+
const dataType = item.dataTypeName || item.dataType;
|
|
75973
|
+
if (dataType === "Number") {
|
|
75974
|
+
const n = Number(value);
|
|
75975
|
+
return Number.isNaN(n) ? value : n;
|
|
75976
|
+
}
|
|
75977
|
+
if (dataType === "Bool") {
|
|
75978
|
+
if (typeof value === "boolean") return value;
|
|
75979
|
+
if (typeof value === "number") return value !== 0;
|
|
75980
|
+
if (typeof value === "string") {
|
|
75981
|
+
const lower = value.toLowerCase();
|
|
75982
|
+
if (lower === "true" || lower === "1") return true;
|
|
75983
|
+
if (lower === "false" || lower === "0") return false;
|
|
75984
|
+
}
|
|
75985
|
+
}
|
|
75986
|
+
return value;
|
|
75987
|
+
}
|
|
75988
|
+
function setNodeValueByParts(items, parts, value) {
|
|
75989
|
+
if (!(items == null ? void 0 : items.length) || !parts.length) return false;
|
|
75990
|
+
const [current, ...rest] = parts;
|
|
75991
|
+
for (const item of items) {
|
|
75992
|
+
const isObjectContainer = (item.dataTypeName === "Object" || item.dataType === "Object") && item.keyCode && !item.componentTypeName;
|
|
75993
|
+
const isLayoutContainer = item.componentGroup === "Container" && !isObjectContainer;
|
|
75994
|
+
if (item.keyCode === current) {
|
|
75995
|
+
if (!rest.length) {
|
|
75996
|
+
item.value = castNodeValue(item, value);
|
|
75997
|
+
return true;
|
|
75998
|
+
}
|
|
75999
|
+
if (setNodeValueByParts(item.children || [], rest, value)) return true;
|
|
76000
|
+
}
|
|
76001
|
+
if (isLayoutContainer && setNodeValueByParts(item.children || [], parts, value)) return true;
|
|
76002
|
+
}
|
|
76003
|
+
return false;
|
|
76004
|
+
}
|
|
75646
76005
|
const _hoisted_1$12 = { class: "els-node els-dynamic-render" };
|
|
75647
76006
|
const _hoisted_2$h = { class: "els-dynamic-render-inner" };
|
|
75648
76007
|
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
@@ -75654,10 +76013,10 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
75654
76013
|
emits: ["update:modelValue"],
|
|
75655
76014
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
75656
76015
|
const DynamicRenderInner = defineAsyncComponent(() => {
|
|
75657
|
-
return import("./inner-
|
|
76016
|
+
return import("./inner-BVkvNO8N.js").then((n) => n.i);
|
|
75658
76017
|
});
|
|
75659
76018
|
const DynamicRenderForm = defineAsyncComponent(() => {
|
|
75660
|
-
return import("./inner-
|
|
76019
|
+
return import("./inner-BVkvNO8N.js").then((n) => n.f);
|
|
75661
76020
|
});
|
|
75662
76021
|
const props2 = __props;
|
|
75663
76022
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -75809,6 +76168,15 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
75809
76168
|
const result = getNodeValue(renderData.value);
|
|
75810
76169
|
return result;
|
|
75811
76170
|
};
|
|
76171
|
+
function setRootNodeValueByPath(path, value) {
|
|
76172
|
+
const parts = parseNodePath(path);
|
|
76173
|
+
if (!parts.length) return false;
|
|
76174
|
+
const success = setNodeValueByParts(renderData.value, parts, value);
|
|
76175
|
+
if (!success) {
|
|
76176
|
+
console.warn(`[ElsRequestForm] response mapping target not found: ${path}`);
|
|
76177
|
+
}
|
|
76178
|
+
return success;
|
|
76179
|
+
}
|
|
75812
76180
|
function setComponentRef(id, childRef) {
|
|
75813
76181
|
refsData.value[id] = childRef;
|
|
75814
76182
|
}
|
|
@@ -75831,6 +76199,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
75831
76199
|
getRootNode: getCurrNode,
|
|
75832
76200
|
getNodeValue,
|
|
75833
76201
|
getArrayNodeValue,
|
|
76202
|
+
setRootNodeValueByPath,
|
|
75834
76203
|
getResult: (data) => {
|
|
75835
76204
|
return dynamicHandler.result(data);
|
|
75836
76205
|
}
|
|
@@ -75875,7 +76244,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
75875
76244
|
};
|
|
75876
76245
|
}
|
|
75877
76246
|
});
|
|
75878
|
-
const DynamicRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["__scopeId", "data-v-
|
|
76247
|
+
const DynamicRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["__scopeId", "data-v-c6839b6d"]]);
|
|
75879
76248
|
const _hoisted_1$11 = { class: "els-node els-dynamic-render" };
|
|
75880
76249
|
const _hoisted_2$g = { class: "els-dynamic-render-inner" };
|
|
75881
76250
|
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
@@ -75887,10 +76256,10 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
75887
76256
|
emits: ["update:modelValue"],
|
|
75888
76257
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
75889
76258
|
const DynamicRenderInnerAsync = defineAsyncComponent(() => {
|
|
75890
|
-
return import("./inner-
|
|
76259
|
+
return import("./inner-BVkvNO8N.js").then((n) => n.i);
|
|
75891
76260
|
});
|
|
75892
76261
|
const DynamicRenderFormAsync = defineAsyncComponent(() => {
|
|
75893
|
-
return import("./inner-
|
|
76262
|
+
return import("./inner-BVkvNO8N.js").then((n) => n.f);
|
|
75894
76263
|
});
|
|
75895
76264
|
const props2 = __props;
|
|
75896
76265
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -76026,6 +76395,15 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
76026
76395
|
const getCurrNode = function() {
|
|
76027
76396
|
return getNodeValue(renderData.value);
|
|
76028
76397
|
};
|
|
76398
|
+
function setRootNodeValueByPath(path, value) {
|
|
76399
|
+
const parts = parseNodePath(path);
|
|
76400
|
+
if (!parts.length) return false;
|
|
76401
|
+
const success = setNodeValueByParts(renderData.value, parts, value);
|
|
76402
|
+
if (!success) {
|
|
76403
|
+
console.warn(`[ElsRequestForm] response mapping target not found: ${path}`);
|
|
76404
|
+
}
|
|
76405
|
+
return success;
|
|
76406
|
+
}
|
|
76029
76407
|
function setComponentRef(id, childRef) {
|
|
76030
76408
|
refsData.value[id] = childRef;
|
|
76031
76409
|
}
|
|
@@ -76046,6 +76424,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
76046
76424
|
getCurrNodeValueData,
|
|
76047
76425
|
getCurrNode,
|
|
76048
76426
|
getNodeValue,
|
|
76427
|
+
setRootNodeValueByPath,
|
|
76049
76428
|
getResult: (data) => {
|
|
76050
76429
|
return dynamicHandler.result(data);
|
|
76051
76430
|
}
|
|
@@ -76098,7 +76477,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
76098
76477
|
};
|
|
76099
76478
|
}
|
|
76100
76479
|
});
|
|
76101
|
-
const DynamicRenderAsync = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["__scopeId", "data-v-
|
|
76480
|
+
const DynamicRenderAsync = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["__scopeId", "data-v-742ccd6b"]]);
|
|
76102
76481
|
const renderAsync = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76103
76482
|
__proto__: null,
|
|
76104
76483
|
default: DynamicRenderAsync
|
|
@@ -78075,7 +78454,7 @@ function useRender(props2, nodeItem, modelValue = void 0, slotValue = void 0, is
|
|
|
78075
78454
|
}
|
|
78076
78455
|
try {
|
|
78077
78456
|
let currEvent = new Function("refs,globalData,rootNode,parentNode,currNode,currValue,dataType,slotRootHasDefault,slotValue,utils,$event", eventExpress);
|
|
78078
|
-
return currEvent(refsData.value, getGlobalData(), getRootNode(), getParentNode2(), handleGetCurrNode(), modelValue, (_a = nodeItem.value) == null ? void 0 : _a.dataType, slotRootHasDefault, slotValue.value, utils, $event);
|
|
78457
|
+
return currEvent(refsData.value, getGlobalData(), getRootNode(), getParentNode2(), handleGetCurrNode(), modelValue, (_a = nodeItem.value) == null ? void 0 : _a.dataType, slotRootHasDefault, slotValue == null ? void 0 : slotValue.value, utils, $event);
|
|
78079
78458
|
} catch (err) {
|
|
78080
78459
|
console.log("RenderEvent异常");
|
|
78081
78460
|
console.log(eventExpress);
|
|
@@ -78786,14 +79165,15 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
78786
79165
|
}
|
|
78787
79166
|
});
|
|
78788
79167
|
return (_ctx, _cache) => {
|
|
78789
|
-
var _a;
|
|
79168
|
+
var _a, _b, _c, _d, _e;
|
|
78790
79169
|
const _component_els_form = resolveComponent("els-form");
|
|
78791
79170
|
return __props.isRoot ? (openBlock(), createBlock(_component_els_form, mergeProps({
|
|
78792
79171
|
key: 0,
|
|
78793
79172
|
modelValue: nodeItem.value,
|
|
78794
79173
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => nodeItem.value = $event)
|
|
78795
79174
|
}, unref(componentProps), {
|
|
78796
|
-
|
|
79175
|
+
key: (_b = (_a = nodeItem.value.config) == null ? void 0 : _a.baseConfig) == null ? void 0 : _b.labelPosition,
|
|
79176
|
+
class: { "selected": ((_c = unref(getSelectItem)()) == null ? void 0 : _c.keyID) == nodeItem.value.keyID },
|
|
78797
79177
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => unref(setSelectItem)(nodeItem.value), ["stop"]))
|
|
78798
79178
|
}), {
|
|
78799
79179
|
default: withCtx(() => [
|
|
@@ -78823,7 +79203,9 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
78823
79203
|
key: 1,
|
|
78824
79204
|
modelValue: nodeItem.value,
|
|
78825
79205
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => nodeItem.value = $event)
|
|
78826
|
-
}, unref(componentProps)
|
|
79206
|
+
}, unref(componentProps), {
|
|
79207
|
+
key: (_e = (_d = nodeItem.value.config) == null ? void 0 : _d.baseConfig) == null ? void 0 : _e.labelPosition
|
|
79208
|
+
}), {
|
|
78827
79209
|
default: withCtx(() => [
|
|
78828
79210
|
(openBlock(), createBlock(resolveDynamicComponent(unref(isMobile) ? "van-cell-group" : "div"), {
|
|
78829
79211
|
title: nodeItem.value.keyName
|
|
@@ -78857,7 +79239,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
78857
79239
|
};
|
|
78858
79240
|
}
|
|
78859
79241
|
});
|
|
78860
|
-
const DynamicDesignerViewForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["__scopeId", "data-v-
|
|
79242
|
+
const DynamicDesignerViewForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["__scopeId", "data-v-d9daae7f"]]);
|
|
78861
79243
|
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
78862
79244
|
__name: "body",
|
|
78863
79245
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -79277,6 +79659,16 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
79277
79659
|
dataTypes: ["String"],
|
|
79278
79660
|
isShow: false
|
|
79279
79661
|
}];
|
|
79662
|
+
const responseMappingEditorTypes = [{
|
|
79663
|
+
componentName: "ElsResponseMappingEditor",
|
|
79664
|
+
label: "字段映射编辑器",
|
|
79665
|
+
value: "ResponseMappingEditor",
|
|
79666
|
+
type: "ResponseMappingEditor",
|
|
79667
|
+
group: "Form",
|
|
79668
|
+
formItem: true,
|
|
79669
|
+
dataTypes: ["String"],
|
|
79670
|
+
isShow: false
|
|
79671
|
+
}];
|
|
79280
79672
|
const currComponentTypes = ref([]);
|
|
79281
79673
|
if (componentData) {
|
|
79282
79674
|
currComponentTypes.value = componentData;
|
|
@@ -79298,7 +79690,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
79298
79690
|
});
|
|
79299
79691
|
}
|
|
79300
79692
|
}
|
|
79301
|
-
currComponentTypes.value.push(...conditionBuilderTypes, ...expressionInputTypes, ...schemaFieldEditorTypes);
|
|
79693
|
+
currComponentTypes.value.push(...conditionBuilderTypes, ...expressionInputTypes, ...schemaFieldEditorTypes, ...responseMappingEditorTypes);
|
|
79302
79694
|
const objectData = ref([
|
|
79303
79695
|
{
|
|
79304
79696
|
keyID: "id_" + utils.randomNumber().toString(),
|
|
@@ -80851,7 +81243,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
80851
81243
|
};
|
|
80852
81244
|
}
|
|
80853
81245
|
});
|
|
80854
|
-
const DesignerView = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["__scopeId", "data-v-
|
|
81246
|
+
const DesignerView = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["__scopeId", "data-v-5db89a7f"]]);
|
|
80855
81247
|
const ElsDesignerView = withInstall$1(DesignerView);
|
|
80856
81248
|
(function(Prism2) {
|
|
80857
81249
|
var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
@@ -81590,31 +81982,31 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
|
|
|
81590
81982
|
__publicField(this, "editor", ref());
|
|
81591
81983
|
onMounted(() => {
|
|
81592
81984
|
if (props2.language === "json") {
|
|
81593
|
-
const currModule = import("./mode-json-
|
|
81985
|
+
const currModule = import("./mode-json-DoxC9nzJ.js").then((n) => n.m);
|
|
81594
81986
|
currModule.then((res) => {
|
|
81595
81987
|
ace.config.setModuleUrl("ace/mode/json", res);
|
|
81596
81988
|
this.init();
|
|
81597
81989
|
});
|
|
81598
81990
|
} else if (props2.language === "javascript") {
|
|
81599
|
-
const currModule = import("./mode-javascript-
|
|
81991
|
+
const currModule = import("./mode-javascript-8sxvp2xm.js").then((n) => n.m);
|
|
81600
81992
|
currModule.then((res) => {
|
|
81601
81993
|
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
81602
81994
|
this.init();
|
|
81603
81995
|
});
|
|
81604
81996
|
} else if (props2.language === "csharp") {
|
|
81605
|
-
const currModule = import("./mode-csharp-
|
|
81997
|
+
const currModule = import("./mode-csharp-D6MaIFhw.js").then((n) => n.m);
|
|
81606
81998
|
currModule.then((res) => {
|
|
81607
81999
|
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
81608
82000
|
this.init();
|
|
81609
82001
|
});
|
|
81610
82002
|
} else if (props2.language === "mysql") {
|
|
81611
|
-
const currModule = import("./mode-mysql-
|
|
82003
|
+
const currModule = import("./mode-mysql-B7vGuPt6.js").then((n) => n.m);
|
|
81612
82004
|
currModule.then((res) => {
|
|
81613
82005
|
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
81614
82006
|
this.init();
|
|
81615
82007
|
});
|
|
81616
82008
|
} else if (props2.language === "css") {
|
|
81617
|
-
const currModule = import("./mode-css-
|
|
82009
|
+
const currModule = import("./mode-css-Dy8BzF_i.js").then((n) => n.m);
|
|
81618
82010
|
currModule.then((res) => {
|
|
81619
82011
|
ace.config.setModuleUrl("ace/mode/css", res);
|
|
81620
82012
|
this.init();
|
|
@@ -90555,6 +90947,7 @@ const ElementLess = {
|
|
|
90555
90947
|
app.component("ElsConditionBuilder", ConditionBuilderVue);
|
|
90556
90948
|
app.component("ElsExpressionInput", ExpressionInputVue);
|
|
90557
90949
|
app.component("ElsSchemaFieldEditor", SchemaFieldEditorVue);
|
|
90950
|
+
app.component("ElsResponseMappingEditor", ResponseMappingEditorVue);
|
|
90558
90951
|
setConfig(options2);
|
|
90559
90952
|
app.config.globalProperties.$utils = utils;
|
|
90560
90953
|
app.config.globalProperties.$less_message = ProxyElsMessage;
|