element-less 0.0.71 → 0.0.72
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/requestForm/index.d.ts +7 -0
- package/custom/requestForm/src/requestForm.d.ts +1 -0
- package/custom/requestForm/src/requestForm.vue.d.ts +3 -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-B8iHDuyg.js → index-Ckj1UiS8.js} +516 -94
- package/index-_ZAzzf-F.cjs +1 -0
- package/{inner-L97xvW77.js → inner-Cn9E8KV4.js} +1 -1
- package/{inner-mujhq8s8.cjs → inner-jxs-nG3b.cjs} +1 -1
- package/{innerItem-Dt9vRyey.cjs → innerItem-BhWaV5z6.cjs} +1 -1
- package/{innerItem-DZT7gaYq.js → innerItem-CnLhfK-G.js} +1 -1
- package/{mode-csharp-B8gSfoYt.cjs → mode-csharp-BqjzW6u-.cjs} +1 -1
- package/{mode-csharp-DRL6iOsg.js → mode-csharp-CWbGgzjG.js} +1 -1
- package/{mode-css-BKQrbOqL.cjs → mode-css-BOWKzLQj.cjs} +1 -1
- package/{mode-css-CVbsNLio.js → mode-css-CorxJdP-.js} +1 -1
- package/{mode-javascript-Jnhe7ejL.cjs → mode-javascript-CU4-gDSi.cjs} +1 -1
- package/{mode-javascript-BIpkDE77.js → mode-javascript-DE9c49cw.js} +1 -1
- package/{mode-json-LbMnm4dK.cjs → mode-json-BM-YsleU.cjs} +1 -1
- package/{mode-json-CuyvB_kf.js → mode-json-CIyvEhnr.js} +1 -1
- package/{mode-mysql-BPWNA-Mx.js → mode-mysql-BwT2SuQq.js} +1 -1
- package/{mode-mysql-ChXX0s6O.cjs → mode-mysql-DPV59SE4.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,6 +48328,13 @@ 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
|
*/
|
|
@@ -48153,6 +48373,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
48153
48373
|
const emit = __emit;
|
|
48154
48374
|
const { getValue: getValue2 } = useProps();
|
|
48155
48375
|
const getGlobalData = getValue2("getGlobalData", () => ({}));
|
|
48376
|
+
const setRootNodeValueByPath = getValue2("setRootNodeValueByPath", null);
|
|
48156
48377
|
const { $codeField, $messageField, $dataField, $success } = utils.getApiConfig();
|
|
48157
48378
|
const modelValue = useModel$1(__props, "modelValue");
|
|
48158
48379
|
const loading = ref(false);
|
|
@@ -48175,6 +48396,34 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
48175
48396
|
Object.assign(globalData, data);
|
|
48176
48397
|
}
|
|
48177
48398
|
}
|
|
48399
|
+
function parsePath(path) {
|
|
48400
|
+
return String(path || "").replace(/\[(\d+)\]/g, ".$1").split(".").map((p) => p.trim()).filter(Boolean);
|
|
48401
|
+
}
|
|
48402
|
+
function getValueByPath(data, path) {
|
|
48403
|
+
const parts = parsePath(path);
|
|
48404
|
+
let current = data;
|
|
48405
|
+
for (const part of parts) {
|
|
48406
|
+
if (current === void 0 || current === null) return void 0;
|
|
48407
|
+
current = current[part];
|
|
48408
|
+
}
|
|
48409
|
+
return current;
|
|
48410
|
+
}
|
|
48411
|
+
function parseResponseMappings() {
|
|
48412
|
+
try {
|
|
48413
|
+
const parsed = props2.responseMappings ? JSON.parse(props2.responseMappings) : [];
|
|
48414
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
48415
|
+
} catch {
|
|
48416
|
+
return [];
|
|
48417
|
+
}
|
|
48418
|
+
}
|
|
48419
|
+
function applyResponseMappings(sourceData) {
|
|
48420
|
+
if (props2.requestMethod === "SSE" || !setRootNodeValueByPath) return;
|
|
48421
|
+
parseResponseMappings().filter((item) => item && item.enabled !== false && item.source && item.target).forEach((item) => {
|
|
48422
|
+
const value = getValueByPath(sourceData, item.source);
|
|
48423
|
+
if (value === void 0) return;
|
|
48424
|
+
setRootNodeValueByPath(item.target, value);
|
|
48425
|
+
});
|
|
48426
|
+
}
|
|
48178
48427
|
function formatResult(data) {
|
|
48179
48428
|
if (data === void 0) return "";
|
|
48180
48429
|
if (typeof data === "string") return data;
|
|
@@ -48225,11 +48474,13 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
48225
48474
|
applyResult(data);
|
|
48226
48475
|
setResult(res, "success", append2);
|
|
48227
48476
|
emit("success", data);
|
|
48477
|
+
applyResponseMappings(data);
|
|
48228
48478
|
return;
|
|
48229
48479
|
}
|
|
48230
48480
|
applyResult(res);
|
|
48231
48481
|
setResult(res, "success", append2);
|
|
48232
48482
|
emit("success", res);
|
|
48483
|
+
applyResponseMappings(res);
|
|
48233
48484
|
}
|
|
48234
48485
|
function extractErrorMessage(err) {
|
|
48235
48486
|
var _a, _b, _c;
|
|
@@ -48407,7 +48658,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
48407
48658
|
};
|
|
48408
48659
|
}
|
|
48409
48660
|
});
|
|
48410
|
-
const RequestForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$1v, [["__scopeId", "data-v-
|
|
48661
|
+
const RequestForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$1v, [["__scopeId", "data-v-9fe784ab"]]);
|
|
48411
48662
|
const ElsRequestForm = withInstall$1(RequestForm);
|
|
48412
48663
|
const dataModalProps = buildProps({
|
|
48413
48664
|
...formItemProps$1,
|
|
@@ -72229,6 +72480,56 @@ const property_requestForm = [
|
|
|
72229
72480
|
"arrayConfig": {}
|
|
72230
72481
|
}
|
|
72231
72482
|
},
|
|
72483
|
+
{
|
|
72484
|
+
"keyID": "rf_row_responseMappings",
|
|
72485
|
+
"keyName": "栅格行",
|
|
72486
|
+
"keyCode": "rf_row_responseMappings_code",
|
|
72487
|
+
"children": [
|
|
72488
|
+
{
|
|
72489
|
+
"keyID": "rf_responseMappings",
|
|
72490
|
+
"keyName": "字段映射",
|
|
72491
|
+
"keyCode": "responseMappings",
|
|
72492
|
+
"children": [],
|
|
72493
|
+
"dataType": "String",
|
|
72494
|
+
"componentType": "ResponseMappingEditor",
|
|
72495
|
+
"defaultValue": "[]",
|
|
72496
|
+
"config": {
|
|
72497
|
+
"arrayConfig": {},
|
|
72498
|
+
"baseConfig": {},
|
|
72499
|
+
"formConfig": {
|
|
72500
|
+
"labelWidth": "",
|
|
72501
|
+
"tip": "请求成功后,将接口返回字段写入表单字段。SSE 不执行字段映射",
|
|
72502
|
+
"tipPosition": "left",
|
|
72503
|
+
"suffixContent": "",
|
|
72504
|
+
"required": false,
|
|
72505
|
+
"requiredMessage": "",
|
|
72506
|
+
"validType": "",
|
|
72507
|
+
"validExpression": "",
|
|
72508
|
+
"validMessage": "",
|
|
72509
|
+
"validMethod": ""
|
|
72510
|
+
},
|
|
72511
|
+
"advancedConfig": {
|
|
72512
|
+
"style": "",
|
|
72513
|
+
"vif": "",
|
|
72514
|
+
"disabled": "",
|
|
72515
|
+
"eventChange": ""
|
|
72516
|
+
}
|
|
72517
|
+
},
|
|
72518
|
+
"formItem": true
|
|
72519
|
+
}
|
|
72520
|
+
],
|
|
72521
|
+
"dataType": "None",
|
|
72522
|
+
"arrayDataType": "",
|
|
72523
|
+
"componentTypeLabel": "栅格行",
|
|
72524
|
+
"componentType": "Row",
|
|
72525
|
+
"formItem": false,
|
|
72526
|
+
"config": {
|
|
72527
|
+
"formConfig": {},
|
|
72528
|
+
"baseConfig": { "gutter": 10, "justify": "", "align": "", "tag": "div" },
|
|
72529
|
+
"advancedConfig": { "style": "", "vif": "", "disabled": "", "eventChange": "" },
|
|
72530
|
+
"arrayConfig": {}
|
|
72531
|
+
}
|
|
72532
|
+
},
|
|
72232
72533
|
{
|
|
72233
72534
|
"keyID": "rf_eventSuccess",
|
|
72234
72535
|
"keyName": "请求成功事件",
|
|
@@ -74664,7 +74965,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
74664
74965
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
74665
74966
|
setup(__props, { emit: __emit }) {
|
|
74666
74967
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
74667
|
-
return import("./innerItem-
|
|
74968
|
+
return import("./innerItem-CnLhfK-G.js");
|
|
74668
74969
|
});
|
|
74669
74970
|
const { getValue: getValue2 } = useProps();
|
|
74670
74971
|
const tagID = getValue2("tagID");
|
|
@@ -75200,7 +75501,17 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
75200
75501
|
dataTypes: ["String"],
|
|
75201
75502
|
isShow: false
|
|
75202
75503
|
}];
|
|
75203
|
-
|
|
75504
|
+
const responseMappingEditorTypes = [{
|
|
75505
|
+
componentName: "ElsResponseMappingEditor",
|
|
75506
|
+
label: "字段映射编辑器",
|
|
75507
|
+
value: "ResponseMappingEditor",
|
|
75508
|
+
type: "ResponseMappingEditor",
|
|
75509
|
+
group: "Form",
|
|
75510
|
+
formItem: true,
|
|
75511
|
+
dataTypes: ["String"],
|
|
75512
|
+
isShow: false
|
|
75513
|
+
}];
|
|
75514
|
+
currComponentTypes.value.push(...conditionBuilderTypes, ...expressionInputTypes, ...schemaFieldEditorTypes, ...responseMappingEditorTypes);
|
|
75204
75515
|
const dynamicHandler = new DynamicHandler(currDynamicDataType.value, currComponentTypes.value);
|
|
75205
75516
|
function getConverToJsonResult(obj2) {
|
|
75206
75517
|
return dynamicHandler.jsonToConfig(obj2);
|
|
@@ -75555,7 +75866,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
75555
75866
|
};
|
|
75556
75867
|
}
|
|
75557
75868
|
});
|
|
75558
|
-
const Designer = /* @__PURE__ */ _export_sfc$1(_sfc_main$1k, [["__scopeId", "data-v-
|
|
75869
|
+
const Designer = /* @__PURE__ */ _export_sfc$1(_sfc_main$1k, [["__scopeId", "data-v-50df49bb"]]);
|
|
75559
75870
|
const ElsDynamicDesigner = withInstall$1(Designer);
|
|
75560
75871
|
const renderProps = buildProps({
|
|
75561
75872
|
...formItemProps$1,
|
|
@@ -75654,10 +75965,10 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
75654
75965
|
emits: ["update:modelValue"],
|
|
75655
75966
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
75656
75967
|
const DynamicRenderInner = defineAsyncComponent(() => {
|
|
75657
|
-
return import("./inner-
|
|
75968
|
+
return import("./inner-Cn9E8KV4.js").then((n) => n.i);
|
|
75658
75969
|
});
|
|
75659
75970
|
const DynamicRenderForm = defineAsyncComponent(() => {
|
|
75660
|
-
return import("./inner-
|
|
75971
|
+
return import("./inner-Cn9E8KV4.js").then((n) => n.f);
|
|
75661
75972
|
});
|
|
75662
75973
|
const props2 = __props;
|
|
75663
75974
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -75809,6 +76120,55 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
75809
76120
|
const result = getNodeValue(renderData.value);
|
|
75810
76121
|
return result;
|
|
75811
76122
|
};
|
|
76123
|
+
function parseNodePath(path) {
|
|
76124
|
+
return String(path || "").split(".").map((p) => p.trim()).filter(Boolean);
|
|
76125
|
+
}
|
|
76126
|
+
function castNodeValue(item, value) {
|
|
76127
|
+
if (value === null || value === "") return value;
|
|
76128
|
+
const dataType = item.dataTypeName || item.dataType;
|
|
76129
|
+
if (dataType === "Number") {
|
|
76130
|
+
const numberValue = Number(value);
|
|
76131
|
+
return Number.isNaN(numberValue) ? value : numberValue;
|
|
76132
|
+
}
|
|
76133
|
+
if (dataType === "Bool") {
|
|
76134
|
+
if (typeof value === "boolean") return value;
|
|
76135
|
+
if (typeof value === "number") return value !== 0;
|
|
76136
|
+
if (typeof value === "string") {
|
|
76137
|
+
const lower = value.toLowerCase();
|
|
76138
|
+
if (lower === "true") return true;
|
|
76139
|
+
if (lower === "false") return false;
|
|
76140
|
+
if (lower === "1") return true;
|
|
76141
|
+
if (lower === "0") return false;
|
|
76142
|
+
}
|
|
76143
|
+
}
|
|
76144
|
+
return value;
|
|
76145
|
+
}
|
|
76146
|
+
function setNodeValueByParts(items, parts, value) {
|
|
76147
|
+
if (!(items == null ? void 0 : items.length) || !parts.length) return false;
|
|
76148
|
+
const [current, ...rest] = parts;
|
|
76149
|
+
for (const item of items) {
|
|
76150
|
+
const isObjectContainer = (item.dataTypeName === "Object" || item.dataType === "Object") && item.keyCode && !item.componentTypeName;
|
|
76151
|
+
const isLayoutContainer = item.componentGroup === "Container" && !isObjectContainer;
|
|
76152
|
+
if (item.keyCode === current) {
|
|
76153
|
+
if (!rest.length) {
|
|
76154
|
+
item.value = castNodeValue(item, value);
|
|
76155
|
+
return true;
|
|
76156
|
+
}
|
|
76157
|
+
if (setNodeValueByParts(item.children || [], rest, value)) return true;
|
|
76158
|
+
}
|
|
76159
|
+
if (isLayoutContainer && setNodeValueByParts(item.children || [], parts, value)) return true;
|
|
76160
|
+
}
|
|
76161
|
+
return false;
|
|
76162
|
+
}
|
|
76163
|
+
function setRootNodeValueByPath(path, value) {
|
|
76164
|
+
const parts = parseNodePath(path);
|
|
76165
|
+
if (!parts.length) return false;
|
|
76166
|
+
const success = setNodeValueByParts(renderData.value, parts, value);
|
|
76167
|
+
if (!success) {
|
|
76168
|
+
console.warn(`[ElsRequestForm] response mapping target not found: ${path}`);
|
|
76169
|
+
}
|
|
76170
|
+
return success;
|
|
76171
|
+
}
|
|
75812
76172
|
function setComponentRef(id, childRef) {
|
|
75813
76173
|
refsData.value[id] = childRef;
|
|
75814
76174
|
}
|
|
@@ -75831,6 +76191,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
75831
76191
|
getRootNode: getCurrNode,
|
|
75832
76192
|
getNodeValue,
|
|
75833
76193
|
getArrayNodeValue,
|
|
76194
|
+
setRootNodeValueByPath,
|
|
75834
76195
|
getResult: (data) => {
|
|
75835
76196
|
return dynamicHandler.result(data);
|
|
75836
76197
|
}
|
|
@@ -75875,7 +76236,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
75875
76236
|
};
|
|
75876
76237
|
}
|
|
75877
76238
|
});
|
|
75878
|
-
const DynamicRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["__scopeId", "data-v-
|
|
76239
|
+
const DynamicRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["__scopeId", "data-v-f26f8fe8"]]);
|
|
75879
76240
|
const _hoisted_1$11 = { class: "els-node els-dynamic-render" };
|
|
75880
76241
|
const _hoisted_2$g = { class: "els-dynamic-render-inner" };
|
|
75881
76242
|
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
@@ -75887,10 +76248,10 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
75887
76248
|
emits: ["update:modelValue"],
|
|
75888
76249
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
75889
76250
|
const DynamicRenderInnerAsync = defineAsyncComponent(() => {
|
|
75890
|
-
return import("./inner-
|
|
76251
|
+
return import("./inner-Cn9E8KV4.js").then((n) => n.i);
|
|
75891
76252
|
});
|
|
75892
76253
|
const DynamicRenderFormAsync = defineAsyncComponent(() => {
|
|
75893
|
-
return import("./inner-
|
|
76254
|
+
return import("./inner-Cn9E8KV4.js").then((n) => n.f);
|
|
75894
76255
|
});
|
|
75895
76256
|
const props2 = __props;
|
|
75896
76257
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -76026,6 +76387,55 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
76026
76387
|
const getCurrNode = function() {
|
|
76027
76388
|
return getNodeValue(renderData.value);
|
|
76028
76389
|
};
|
|
76390
|
+
function parseNodePath(path) {
|
|
76391
|
+
return String(path || "").split(".").map((p) => p.trim()).filter(Boolean);
|
|
76392
|
+
}
|
|
76393
|
+
function castNodeValue(item, value) {
|
|
76394
|
+
if (value === null || value === "") return value;
|
|
76395
|
+
const dataType = item.dataTypeName || item.dataType;
|
|
76396
|
+
if (dataType === "Number") {
|
|
76397
|
+
const numberValue = Number(value);
|
|
76398
|
+
return Number.isNaN(numberValue) ? value : numberValue;
|
|
76399
|
+
}
|
|
76400
|
+
if (dataType === "Bool") {
|
|
76401
|
+
if (typeof value === "boolean") return value;
|
|
76402
|
+
if (typeof value === "number") return value !== 0;
|
|
76403
|
+
if (typeof value === "string") {
|
|
76404
|
+
const lower = value.toLowerCase();
|
|
76405
|
+
if (lower === "true") return true;
|
|
76406
|
+
if (lower === "false") return false;
|
|
76407
|
+
if (lower === "1") return true;
|
|
76408
|
+
if (lower === "0") return false;
|
|
76409
|
+
}
|
|
76410
|
+
}
|
|
76411
|
+
return value;
|
|
76412
|
+
}
|
|
76413
|
+
function setNodeValueByParts(items, parts, value) {
|
|
76414
|
+
if (!(items == null ? void 0 : items.length) || !parts.length) return false;
|
|
76415
|
+
const [current, ...rest] = parts;
|
|
76416
|
+
for (const item of items) {
|
|
76417
|
+
const isObjectContainer = (item.dataTypeName === "Object" || item.dataType === "Object") && item.keyCode && !item.componentTypeName;
|
|
76418
|
+
const isLayoutContainer = item.componentGroup === "Container" && !isObjectContainer;
|
|
76419
|
+
if (item.keyCode === current) {
|
|
76420
|
+
if (!rest.length) {
|
|
76421
|
+
item.value = castNodeValue(item, value);
|
|
76422
|
+
return true;
|
|
76423
|
+
}
|
|
76424
|
+
if (setNodeValueByParts(item.children || [], rest, value)) return true;
|
|
76425
|
+
}
|
|
76426
|
+
if (isLayoutContainer && setNodeValueByParts(item.children || [], parts, value)) return true;
|
|
76427
|
+
}
|
|
76428
|
+
return false;
|
|
76429
|
+
}
|
|
76430
|
+
function setRootNodeValueByPath(path, value) {
|
|
76431
|
+
const parts = parseNodePath(path);
|
|
76432
|
+
if (!parts.length) return false;
|
|
76433
|
+
const success = setNodeValueByParts(renderData.value, parts, value);
|
|
76434
|
+
if (!success) {
|
|
76435
|
+
console.warn(`[ElsRequestForm] response mapping target not found: ${path}`);
|
|
76436
|
+
}
|
|
76437
|
+
return success;
|
|
76438
|
+
}
|
|
76029
76439
|
function setComponentRef(id, childRef) {
|
|
76030
76440
|
refsData.value[id] = childRef;
|
|
76031
76441
|
}
|
|
@@ -76046,6 +76456,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
76046
76456
|
getCurrNodeValueData,
|
|
76047
76457
|
getCurrNode,
|
|
76048
76458
|
getNodeValue,
|
|
76459
|
+
setRootNodeValueByPath,
|
|
76049
76460
|
getResult: (data) => {
|
|
76050
76461
|
return dynamicHandler.result(data);
|
|
76051
76462
|
}
|
|
@@ -76098,7 +76509,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
76098
76509
|
};
|
|
76099
76510
|
}
|
|
76100
76511
|
});
|
|
76101
|
-
const DynamicRenderAsync = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["__scopeId", "data-v-
|
|
76512
|
+
const DynamicRenderAsync = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["__scopeId", "data-v-cd8d8a25"]]);
|
|
76102
76513
|
const renderAsync = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76103
76514
|
__proto__: null,
|
|
76104
76515
|
default: DynamicRenderAsync
|
|
@@ -78075,7 +78486,7 @@ function useRender(props2, nodeItem, modelValue = void 0, slotValue = void 0, is
|
|
|
78075
78486
|
}
|
|
78076
78487
|
try {
|
|
78077
78488
|
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);
|
|
78489
|
+
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
78490
|
} catch (err) {
|
|
78080
78491
|
console.log("RenderEvent异常");
|
|
78081
78492
|
console.log(eventExpress);
|
|
@@ -79277,6 +79688,16 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
79277
79688
|
dataTypes: ["String"],
|
|
79278
79689
|
isShow: false
|
|
79279
79690
|
}];
|
|
79691
|
+
const responseMappingEditorTypes = [{
|
|
79692
|
+
componentName: "ElsResponseMappingEditor",
|
|
79693
|
+
label: "字段映射编辑器",
|
|
79694
|
+
value: "ResponseMappingEditor",
|
|
79695
|
+
type: "ResponseMappingEditor",
|
|
79696
|
+
group: "Form",
|
|
79697
|
+
formItem: true,
|
|
79698
|
+
dataTypes: ["String"],
|
|
79699
|
+
isShow: false
|
|
79700
|
+
}];
|
|
79280
79701
|
const currComponentTypes = ref([]);
|
|
79281
79702
|
if (componentData) {
|
|
79282
79703
|
currComponentTypes.value = componentData;
|
|
@@ -79298,7 +79719,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
79298
79719
|
});
|
|
79299
79720
|
}
|
|
79300
79721
|
}
|
|
79301
|
-
currComponentTypes.value.push(...conditionBuilderTypes, ...expressionInputTypes, ...schemaFieldEditorTypes);
|
|
79722
|
+
currComponentTypes.value.push(...conditionBuilderTypes, ...expressionInputTypes, ...schemaFieldEditorTypes, ...responseMappingEditorTypes);
|
|
79302
79723
|
const objectData = ref([
|
|
79303
79724
|
{
|
|
79304
79725
|
keyID: "id_" + utils.randomNumber().toString(),
|
|
@@ -80851,7 +81272,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
80851
81272
|
};
|
|
80852
81273
|
}
|
|
80853
81274
|
});
|
|
80854
|
-
const DesignerView = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["__scopeId", "data-v-
|
|
81275
|
+
const DesignerView = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["__scopeId", "data-v-5db89a7f"]]);
|
|
80855
81276
|
const ElsDesignerView = withInstall$1(DesignerView);
|
|
80856
81277
|
(function(Prism2) {
|
|
80857
81278
|
var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
@@ -81590,31 +82011,31 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
|
|
|
81590
82011
|
__publicField(this, "editor", ref());
|
|
81591
82012
|
onMounted(() => {
|
|
81592
82013
|
if (props2.language === "json") {
|
|
81593
|
-
const currModule = import("./mode-json-
|
|
82014
|
+
const currModule = import("./mode-json-CIyvEhnr.js").then((n) => n.m);
|
|
81594
82015
|
currModule.then((res) => {
|
|
81595
82016
|
ace.config.setModuleUrl("ace/mode/json", res);
|
|
81596
82017
|
this.init();
|
|
81597
82018
|
});
|
|
81598
82019
|
} else if (props2.language === "javascript") {
|
|
81599
|
-
const currModule = import("./mode-javascript-
|
|
82020
|
+
const currModule = import("./mode-javascript-DE9c49cw.js").then((n) => n.m);
|
|
81600
82021
|
currModule.then((res) => {
|
|
81601
82022
|
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
81602
82023
|
this.init();
|
|
81603
82024
|
});
|
|
81604
82025
|
} else if (props2.language === "csharp") {
|
|
81605
|
-
const currModule = import("./mode-csharp-
|
|
82026
|
+
const currModule = import("./mode-csharp-CWbGgzjG.js").then((n) => n.m);
|
|
81606
82027
|
currModule.then((res) => {
|
|
81607
82028
|
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
81608
82029
|
this.init();
|
|
81609
82030
|
});
|
|
81610
82031
|
} else if (props2.language === "mysql") {
|
|
81611
|
-
const currModule = import("./mode-mysql-
|
|
82032
|
+
const currModule = import("./mode-mysql-BwT2SuQq.js").then((n) => n.m);
|
|
81612
82033
|
currModule.then((res) => {
|
|
81613
82034
|
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
81614
82035
|
this.init();
|
|
81615
82036
|
});
|
|
81616
82037
|
} else if (props2.language === "css") {
|
|
81617
|
-
const currModule = import("./mode-css-
|
|
82038
|
+
const currModule = import("./mode-css-CorxJdP-.js").then((n) => n.m);
|
|
81618
82039
|
currModule.then((res) => {
|
|
81619
82040
|
ace.config.setModuleUrl("ace/mode/css", res);
|
|
81620
82041
|
this.init();
|
|
@@ -90555,6 +90976,7 @@ const ElementLess = {
|
|
|
90555
90976
|
app.component("ElsConditionBuilder", ConditionBuilderVue);
|
|
90556
90977
|
app.component("ElsExpressionInput", ExpressionInputVue);
|
|
90557
90978
|
app.component("ElsSchemaFieldEditor", SchemaFieldEditorVue);
|
|
90979
|
+
app.component("ElsResponseMappingEditor", ResponseMappingEditorVue);
|
|
90558
90980
|
setConfig(options2);
|
|
90559
90981
|
app.config.globalProperties.$utils = utils;
|
|
90560
90982
|
app.config.globalProperties.$less_message = ProxyElsMessage;
|