element-less 0.0.69 → 0.0.71
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/components.d.ts +1 -0
- package/custom/dynamic/common/interfaces/dynamicComponentType.d.ts +1 -0
- package/custom/dynamic/common/propertys/index.d.ts +1 -0
- package/custom/dynamic/common/propertys/requestForm.d.ts +456 -0
- package/custom/dynamic/designerView/src/schemaFieldEditor.vue.d.ts +9 -0
- package/custom/requestForm/index.d.ts +90 -0
- package/custom/requestForm/src/requestForm.d.ts +12 -0
- package/custom/requestForm/src/requestForm.vue.d.ts +48 -0
- package/custom/waterFall/index.d.ts +6 -6
- package/custom/waterFall/src/lib/components/Waterfall.vue.d.ts +1 -1
- package/custom/waterFall/src/waterFall.vue.d.ts +12 -12
- package/element-less.cjs +1 -1
- package/element-less.iife.js +1 -1
- package/element-less.js +110 -108
- package/element-less.umd.cjs +1 -1
- package/elementui/radio/index.d.ts +2 -2
- package/elementui/segmented/index.d.ts +1 -1
- package/elementui/select/index.d.ts +1 -1
- package/elementui/upload/index.d.ts +4 -4
- package/elementui/upload/src/upload.vue.d.ts +1 -1
- package/global.d.ts +1 -0
- package/{index-_NmrAw-e.js → index-B8iHDuyg.js} +1785 -733
- package/index-D2_Ffw2X.cjs +1 -0
- package/{inner-c32GSLul.js → inner-L97xvW77.js} +10 -9
- package/inner-mujhq8s8.cjs +1 -0
- package/{innerItem-DU40XfAJ.js → innerItem-DZT7gaYq.js} +1 -1
- package/{innerItem-Ct5Ckcbw.cjs → innerItem-Dt9vRyey.cjs} +1 -1
- package/{mode-csharp-CuNXmvyE.cjs → mode-csharp-B8gSfoYt.cjs} +1 -1
- package/{mode-csharp-BOa7PnjW.js → mode-csharp-DRL6iOsg.js} +1 -1
- package/{mode-css-DiFYgdWg.cjs → mode-css-BKQrbOqL.cjs} +1 -1
- package/{mode-css-CIRwr__W.js → mode-css-CVbsNLio.js} +1 -1
- package/{mode-javascript-cKgW4Fbi.js → mode-javascript-BIpkDE77.js} +1 -1
- package/{mode-javascript-D8gqFAdA.cjs → mode-javascript-Jnhe7ejL.cjs} +1 -1
- package/{mode-json-B8PST1D1.js → mode-json-CuyvB_kf.js} +1 -1
- package/{mode-json-CC3Ebsc1.cjs → mode-json-LbMnm4dK.cjs} +1 -1
- package/{mode-mysql-DdaLezhw.js → mode-mysql-BPWNA-Mx.js} +1 -1
- package/{mode-mysql-dH39eh73.cjs → mode-mysql-ChXX0s6O.cjs} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/index-DqhHTsHe.cjs +0 -1
- package/inner-CzNTDijK.cjs +0 -1
|
@@ -7,6 +7,7 @@ import pkg from "file-saver";
|
|
|
7
7
|
import * as XLSX from "xlsx";
|
|
8
8
|
import { ElMessageBox, ElMessage, ElNotification, formItemProps as formItemProps$2, formProps as formProps$2, ElSpace, inputProps as inputProps$1, inputEmits, radioProps as radioProps$1, checkboxProps as checkboxProps$1, useId, ElCheckboxButton, ElCheckbox, ElRadioButton, ElRadio, rowProps as rowProps$1, useNamespace, rowContextKey, colProps, ElForm, ElButton, paginationProps, ElLoading, menuProps as menuProps$1, ElMenu, menuItemProps as menuItemProps$1, menuItemEmits, ElMenuItem, subMenuProps as subMenuProps$1, ElSubMenu, switchProps as switchProps$1, imageProps as imageProps$1, imageViewerProps as imageViewerProps$1, autocompleteProps as autocompleteProps$1, cascaderProps as cascaderProps$1, dialogProps as dialogProps$2, drawerProps as drawerProps$1, dropdownProps as dropdownProps$1, sliderProps as sliderProps$1, inputNumberProps as inputNumberProps$1, uploadProps as uploadProps$1, timePickerDefaultProps, datePickerProps as datePickerProps$1, tabsProps as tabsProps$1, colorPickerProps as colorPickerProps$1, segmentedProps as segmentedProps$1, tagProps as tagProps$1, ElContainer, useSizeProp as useSizeProp$1 } from "element-plus";
|
|
9
9
|
import { useClipboard, onClickOutside, useResizeObserver, useDebounceFn } from "@vueuse/core";
|
|
10
|
+
import JsonEditorVue from "json-editor-vue";
|
|
10
11
|
import lodash, { debounce as debounce$2 } from "lodash";
|
|
11
12
|
import draggable from "vuedraggable";
|
|
12
13
|
import Sortable from "sortablejs";
|
|
@@ -16,7 +17,6 @@ import prism from "prismjs";
|
|
|
16
17
|
import ace from "ace-builds";
|
|
17
18
|
import { createEditor, DomEditor, createToolbar } from "@wangeditor/editor";
|
|
18
19
|
import VueJsonViewer from "vue-json-viewer";
|
|
19
|
-
import JsonEditorVue from "json-editor-vue";
|
|
20
20
|
function OrderedMap(content) {
|
|
21
21
|
this.content = content;
|
|
22
22
|
}
|
|
@@ -26579,6 +26579,21 @@ var _sfc_main6 = /* @__PURE__ */ defineComponent({
|
|
|
26579
26579
|
]));
|
|
26580
26580
|
}
|
|
26581
26581
|
}), arrow_down_default = _sfc_main6;
|
|
26582
|
+
var _sfc_main12 = /* @__PURE__ */ defineComponent({
|
|
26583
|
+
name: "ArrowUp",
|
|
26584
|
+
__name: "arrow-up",
|
|
26585
|
+
setup(__props) {
|
|
26586
|
+
return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
|
|
26587
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26588
|
+
viewBox: "0 0 1024 1024"
|
|
26589
|
+
}, [
|
|
26590
|
+
createElementVNode("path", {
|
|
26591
|
+
fill: "currentColor",
|
|
26592
|
+
d: "m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"
|
|
26593
|
+
})
|
|
26594
|
+
]));
|
|
26595
|
+
}
|
|
26596
|
+
}), arrow_up_default = _sfc_main12;
|
|
26582
26597
|
var _sfc_main43 = /* @__PURE__ */ defineComponent({
|
|
26583
26598
|
name: "Check",
|
|
26584
26599
|
__name: "check",
|
|
@@ -26677,6 +26692,21 @@ var _sfc_main201 = /* @__PURE__ */ defineComponent({
|
|
|
26677
26692
|
]));
|
|
26678
26693
|
}
|
|
26679
26694
|
}), plus_default = _sfc_main201;
|
|
26695
|
+
var _sfc_main283 = /* @__PURE__ */ defineComponent({
|
|
26696
|
+
name: "View",
|
|
26697
|
+
__name: "view",
|
|
26698
|
+
setup(__props) {
|
|
26699
|
+
return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
|
|
26700
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26701
|
+
viewBox: "0 0 1024 1024"
|
|
26702
|
+
}, [
|
|
26703
|
+
createElementVNode("path", {
|
|
26704
|
+
fill: "currentColor",
|
|
26705
|
+
d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
|
|
26706
|
+
})
|
|
26707
|
+
]));
|
|
26708
|
+
}
|
|
26709
|
+
}), view_default = _sfc_main283;
|
|
26680
26710
|
var _sfc_main292 = /* @__PURE__ */ defineComponent({
|
|
26681
26711
|
name: "ZoomIn",
|
|
26682
26712
|
__name: "zoom-in",
|
|
@@ -26819,7 +26849,7 @@ const _export_sfc$1 = (sfc, props2) => {
|
|
|
26819
26849
|
}
|
|
26820
26850
|
return target;
|
|
26821
26851
|
};
|
|
26822
|
-
const _sfc_main$
|
|
26852
|
+
const _sfc_main$2t = /* @__PURE__ */ Object.assign({ name: "ElsTiptapEditor" }, {
|
|
26823
26853
|
__name: "tipTapEditor",
|
|
26824
26854
|
props: tipTapEditorProps,
|
|
26825
26855
|
emits: [
|
|
@@ -27319,7 +27349,7 @@ const _sfc_main$2r = /* @__PURE__ */ Object.assign({ name: "ElsTiptapEditor" },
|
|
|
27319
27349
|
};
|
|
27320
27350
|
}
|
|
27321
27351
|
});
|
|
27322
|
-
const TipTapEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
27352
|
+
const TipTapEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$2t, [["__scopeId", "data-v-329f0d4d"]]);
|
|
27323
27353
|
const { saveAs } = pkg;
|
|
27324
27354
|
function _toConsumableArray(e) {
|
|
27325
27355
|
if (Array.isArray(e)) {
|
|
@@ -31816,6 +31846,11 @@ function useTree(props2 = {}, dataTree, defaultEmits, componentName) {
|
|
|
31816
31846
|
const selectValue = ref([]);
|
|
31817
31847
|
const prevCascaderValue = ref([]);
|
|
31818
31848
|
let cascadeNormalizing = false;
|
|
31849
|
+
const lastReturnedModel = ref(void 0);
|
|
31850
|
+
function returnCascaderModel(v) {
|
|
31851
|
+
lastReturnedModel.value = v;
|
|
31852
|
+
returnModelValue(v);
|
|
31853
|
+
}
|
|
31819
31854
|
const selectOptionData = ref([]);
|
|
31820
31855
|
const remoteLoading = ref(false);
|
|
31821
31856
|
const defaultExpandedKeys = ref([]);
|
|
@@ -31854,6 +31889,9 @@ function useTree(props2 = {}, dataTree, defaultEmits, componentName) {
|
|
|
31854
31889
|
}
|
|
31855
31890
|
}, { immediate: true });
|
|
31856
31891
|
watch(currModelValue, () => {
|
|
31892
|
+
if (componentName === "cascader" && props2.multiple && props2.checkStrictly && (props2.checkWithParent || props2.unCheckWithchild) && currModelValue.value === lastReturnedModel.value) {
|
|
31893
|
+
return;
|
|
31894
|
+
}
|
|
31857
31895
|
initSelectValue();
|
|
31858
31896
|
}, { immediate: true });
|
|
31859
31897
|
function handleHasLazyChild(item, data = null) {
|
|
@@ -32223,19 +32261,27 @@ function useTree(props2 = {}, dataTree, defaultEmits, componentName) {
|
|
|
32223
32261
|
}
|
|
32224
32262
|
if (props2.multiple && props2.checkStrictly && (props2.checkWithParent || props2.unCheckWithchild) && !cascadeNormalizing) {
|
|
32225
32263
|
const arr = Array.isArray(value) ? value : [];
|
|
32264
|
+
const prev = prevCascaderValue.value;
|
|
32226
32265
|
const normalized = normalizeCascaderCascade(arr);
|
|
32227
|
-
prevCascaderValue.value = normalized;
|
|
32228
32266
|
if (!sameCascaderValueSet(normalized, arr)) {
|
|
32267
|
+
const { added, removed } = diffCascaderEntries(arr, prev);
|
|
32268
|
+
prevCascaderValue.value = normalized;
|
|
32269
|
+
const panel = getCascaderPanel();
|
|
32270
|
+
if (panel == null ? void 0 : panel.handleCheckChange) {
|
|
32271
|
+
nextTick(() => applyCascadeViaPanel(added, removed));
|
|
32272
|
+
return;
|
|
32273
|
+
}
|
|
32229
32274
|
cascadeNormalizing = true;
|
|
32230
32275
|
selectValue.value = normalized;
|
|
32231
32276
|
cascadeNormalizing = false;
|
|
32232
32277
|
return;
|
|
32233
32278
|
}
|
|
32279
|
+
prevCascaderValue.value = normalized;
|
|
32234
32280
|
} else if (props2.multiple && props2.checkStrictly) {
|
|
32235
32281
|
prevCascaderValue.value = Array.isArray(value) ? [...value] : [];
|
|
32236
32282
|
}
|
|
32237
32283
|
if (!value || value.length == 0) {
|
|
32238
|
-
|
|
32284
|
+
returnCascaderModel("");
|
|
32239
32285
|
if (initSelect.value) {
|
|
32240
32286
|
defaultEmits("update:select", {});
|
|
32241
32287
|
defaultEmits("update:select-label", "");
|
|
@@ -32248,7 +32294,7 @@ function useTree(props2 = {}, dataTree, defaultEmits, componentName) {
|
|
|
32248
32294
|
}
|
|
32249
32295
|
if (props2.multiple && props2.emitPath) {
|
|
32250
32296
|
const currValue = value.map((ele) => ele.join(props2.valueSeparator)).join(props2.pathSeparator);
|
|
32251
|
-
|
|
32297
|
+
returnCascaderModel(currValue);
|
|
32252
32298
|
if (initSelect && optionData.value.length) {
|
|
32253
32299
|
let selectData = value.map((ele) => optionData.value.filter((cele) => ele.includes(cele[props2.valueField])));
|
|
32254
32300
|
defaultEmits("update:select", selectData);
|
|
@@ -32262,7 +32308,7 @@ function useTree(props2 = {}, dataTree, defaultEmits, componentName) {
|
|
|
32262
32308
|
return;
|
|
32263
32309
|
}
|
|
32264
32310
|
if (props2.emitPath || props2.multiple) {
|
|
32265
|
-
|
|
32311
|
+
returnCascaderModel(value.join(props2.valueSeparator));
|
|
32266
32312
|
if (initSelect.value && optionData.value.length) {
|
|
32267
32313
|
let selectData = optionData.value.filter((cele) => value.indexOf(cele[props2.valueField]) > -1);
|
|
32268
32314
|
defaultEmits("update:select", selectData);
|
|
@@ -32275,7 +32321,7 @@ function useTree(props2 = {}, dataTree, defaultEmits, componentName) {
|
|
|
32275
32321
|
}
|
|
32276
32322
|
return;
|
|
32277
32323
|
}
|
|
32278
|
-
|
|
32324
|
+
returnCascaderModel(value);
|
|
32279
32325
|
if (initSelect.value && optionData.value.length) {
|
|
32280
32326
|
let selectData = optionData.value.find((cele) => value == cele[props2.valueField]);
|
|
32281
32327
|
if (selectData) {
|
|
@@ -32413,6 +32459,65 @@ function useTree(props2 = {}, dataTree, defaultEmits, componentName) {
|
|
|
32413
32459
|
const kb = b.map(pathKey);
|
|
32414
32460
|
return a.every((p) => kb.indexOf(pathKey(p)) > -1);
|
|
32415
32461
|
}
|
|
32462
|
+
function diffCascaderEntries(curr, prev) {
|
|
32463
|
+
const ck = curr.map(pathKey);
|
|
32464
|
+
const pk = prev.map(pathKey);
|
|
32465
|
+
return {
|
|
32466
|
+
added: curr.filter((e) => pk.indexOf(pathKey(e)) === -1),
|
|
32467
|
+
removed: prev.filter((e) => ck.indexOf(pathKey(e)) === -1)
|
|
32468
|
+
};
|
|
32469
|
+
}
|
|
32470
|
+
function getCascaderPanel() {
|
|
32471
|
+
const inst = dataTree.value;
|
|
32472
|
+
if (!inst) return null;
|
|
32473
|
+
return inst.cascaderPanelRef || inst;
|
|
32474
|
+
}
|
|
32475
|
+
function findCascaderNode(entry) {
|
|
32476
|
+
var _a, _b;
|
|
32477
|
+
const nodes = ((_b = (_a = getCascaderPanel()) == null ? void 0 : _a.getFlattedNodes) == null ? void 0 : _b.call(_a, false)) || [];
|
|
32478
|
+
if (Array.isArray(entry)) {
|
|
32479
|
+
const key = entry.map(String).join("\0");
|
|
32480
|
+
return nodes.find((n) => (n.pathValues || []).map(String).join("\0") === key);
|
|
32481
|
+
}
|
|
32482
|
+
return nodes.find((n) => String(n.value) === String(entry));
|
|
32483
|
+
}
|
|
32484
|
+
function collectDescendantNodes(node, acc = []) {
|
|
32485
|
+
(node.children || []).forEach((child) => {
|
|
32486
|
+
acc.push(child);
|
|
32487
|
+
collectDescendantNodes(child, acc);
|
|
32488
|
+
});
|
|
32489
|
+
return acc;
|
|
32490
|
+
}
|
|
32491
|
+
function applyCascadeViaPanel(added, removed) {
|
|
32492
|
+
const panel = getCascaderPanel();
|
|
32493
|
+
if (!(panel == null ? void 0 : panel.handleCheckChange)) return false;
|
|
32494
|
+
let changed = false;
|
|
32495
|
+
if (props2.checkWithParent) {
|
|
32496
|
+
added.forEach((e) => {
|
|
32497
|
+
const node = findCascaderNode(e);
|
|
32498
|
+
if (!node) return;
|
|
32499
|
+
(node.pathNodes || []).slice(0, -1).forEach((anc) => {
|
|
32500
|
+
if (anc && anc.checked !== true) {
|
|
32501
|
+
panel.handleCheckChange(reactive(anc), true, false);
|
|
32502
|
+
changed = true;
|
|
32503
|
+
}
|
|
32504
|
+
});
|
|
32505
|
+
});
|
|
32506
|
+
}
|
|
32507
|
+
if (props2.unCheckWithchild) {
|
|
32508
|
+
removed.forEach((e) => {
|
|
32509
|
+
const node = findCascaderNode(e);
|
|
32510
|
+
if (!node) return;
|
|
32511
|
+
collectDescendantNodes(node).forEach((d) => {
|
|
32512
|
+
if (d && d.checked !== false) {
|
|
32513
|
+
panel.handleCheckChange(reactive(d), false, false);
|
|
32514
|
+
changed = true;
|
|
32515
|
+
}
|
|
32516
|
+
});
|
|
32517
|
+
});
|
|
32518
|
+
}
|
|
32519
|
+
return changed;
|
|
32520
|
+
}
|
|
32416
32521
|
function unCheckChild(parentID) {
|
|
32417
32522
|
optionData.value.filter((ele) => ele[props2.parentIdField] == parentID).forEach((ele) => {
|
|
32418
32523
|
if (dataTree.value.getCheckedKeys().indexOf(ele[currIdField.value]) > -1) {
|
|
@@ -32676,17 +32781,17 @@ function filterGlobalDataFields(options2, query) {
|
|
|
32676
32781
|
return result;
|
|
32677
32782
|
}, []);
|
|
32678
32783
|
}
|
|
32679
|
-
const _hoisted_1$
|
|
32680
|
-
const _hoisted_2$
|
|
32681
|
-
const _hoisted_3$
|
|
32682
|
-
const _hoisted_4$
|
|
32683
|
-
const _hoisted_5$
|
|
32684
|
-
const _hoisted_6$
|
|
32685
|
-
const _hoisted_7$
|
|
32686
|
-
const _hoisted_8$
|
|
32687
|
-
const _hoisted_9$
|
|
32688
|
-
const _hoisted_10$
|
|
32689
|
-
const _hoisted_11$
|
|
32784
|
+
const _hoisted_1$1t = { class: "fp-panel" };
|
|
32785
|
+
const _hoisted_2$C = { class: "fp-search" };
|
|
32786
|
+
const _hoisted_3$t = ["onClick"];
|
|
32787
|
+
const _hoisted_4$k = { class: "fp-name" };
|
|
32788
|
+
const _hoisted_5$i = { class: "fp-code" };
|
|
32789
|
+
const _hoisted_6$e = ["onClick"];
|
|
32790
|
+
const _hoisted_7$c = { class: "fp-name" };
|
|
32791
|
+
const _hoisted_8$9 = { class: "fp-code" };
|
|
32792
|
+
const _hoisted_9$7 = ["onClick"];
|
|
32793
|
+
const _hoisted_10$5 = { class: "fp-name" };
|
|
32794
|
+
const _hoisted_11$5 = { class: "fp-code" };
|
|
32690
32795
|
const _hoisted_12$4 = ["onClick"];
|
|
32691
32796
|
const _hoisted_13$4 = { class: "fp-name" };
|
|
32692
32797
|
const _hoisted_14$4 = { class: "fp-code" };
|
|
@@ -32712,7 +32817,7 @@ const _hoisted_33$1 = {
|
|
|
32712
32817
|
key: 4,
|
|
32713
32818
|
class: "fp-empty"
|
|
32714
32819
|
};
|
|
32715
|
-
const _sfc_main$
|
|
32820
|
+
const _sfc_main$2s = /* @__PURE__ */ defineComponent({
|
|
32716
32821
|
...{ name: "ElsFieldPicker" },
|
|
32717
32822
|
__name: "fieldPicker",
|
|
32718
32823
|
props: {
|
|
@@ -32920,8 +33025,8 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
32920
33025
|
], true)
|
|
32921
33026
|
]),
|
|
32922
33027
|
default: withCtx(() => [
|
|
32923
|
-
createElementVNode("div", _hoisted_1$
|
|
32924
|
-
createElementVNode("div", _hoisted_2$
|
|
33028
|
+
createElementVNode("div", _hoisted_1$1t, [
|
|
33029
|
+
createElementVNode("div", _hoisted_2$C, [
|
|
32925
33030
|
createVNode(_component_el_input, {
|
|
32926
33031
|
modelValue: search.value,
|
|
32927
33032
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => search.value = $event),
|
|
@@ -32960,9 +33065,9 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
32960
33065
|
createElementVNode("span", {
|
|
32961
33066
|
class: normalizeClass(["fp-badge", TYPE_CLASS[item.dataTypeName]])
|
|
32962
33067
|
}, toDisplayString(TYPE_LABEL[item.dataTypeName] || item.dataTypeName), 3),
|
|
32963
|
-
createElementVNode("span", _hoisted_4$
|
|
32964
|
-
createElementVNode("span", _hoisted_5$
|
|
32965
|
-
], 8, _hoisted_3$
|
|
33068
|
+
createElementVNode("span", _hoisted_4$k, toDisplayString(item.label), 1),
|
|
33069
|
+
createElementVNode("span", _hoisted_5$i, toDisplayString(item.sub), 1)
|
|
33070
|
+
], 8, _hoisted_3$t)) : (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
32966
33071
|
createElementVNode("div", {
|
|
32967
33072
|
class: "fp-item fp-item--container",
|
|
32968
33073
|
onClick: ($event) => toggleCurrContainer(item.keyCode)
|
|
@@ -32976,9 +33081,9 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
32976
33081
|
_: 1
|
|
32977
33082
|
}, 8, ["class"]),
|
|
32978
33083
|
_cache[3] || (_cache[3] = createElementVNode("span", { class: "fp-badge fp-t-obj" }, "{ }", -1)),
|
|
32979
|
-
createElementVNode("span", _hoisted_7$
|
|
32980
|
-
createElementVNode("span", _hoisted_8$
|
|
32981
|
-
], 8, _hoisted_6$
|
|
33084
|
+
createElementVNode("span", _hoisted_7$c, toDisplayString(item.keyName), 1),
|
|
33085
|
+
createElementVNode("span", _hoisted_8$9, toDisplayString(item.keyCode), 1)
|
|
33086
|
+
], 8, _hoisted_6$e),
|
|
32982
33087
|
expandedCurrContainers.value.includes(item.keyCode) ? (openBlock(true), createElementBlock(Fragment$1, { key: 0 }, renderList(item.children, (child) => {
|
|
32983
33088
|
return openBlock(), createElementBlock("div", {
|
|
32984
33089
|
key: child.value,
|
|
@@ -32988,9 +33093,9 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
32988
33093
|
createElementVNode("span", {
|
|
32989
33094
|
class: normalizeClass(["fp-badge", TYPE_CLASS[child.dataTypeName]])
|
|
32990
33095
|
}, toDisplayString(TYPE_LABEL[child.dataTypeName] || child.dataTypeName), 3),
|
|
32991
|
-
createElementVNode("span", _hoisted_10$
|
|
32992
|
-
createElementVNode("span", _hoisted_11$
|
|
32993
|
-
], 8, _hoisted_9$
|
|
33096
|
+
createElementVNode("span", _hoisted_10$5, toDisplayString(child.label), 1),
|
|
33097
|
+
createElementVNode("span", _hoisted_11$5, toDisplayString(child.sub), 1)
|
|
33098
|
+
], 8, _hoisted_9$7);
|
|
32994
33099
|
}), 128)) : createCommentVNode("", true)
|
|
32995
33100
|
], 64))
|
|
32996
33101
|
], 64);
|
|
@@ -33138,23 +33243,23 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
|
33138
33243
|
};
|
|
33139
33244
|
}
|
|
33140
33245
|
});
|
|
33141
|
-
const FieldPicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
33142
|
-
const _hoisted_1$
|
|
33143
|
-
const _hoisted_2$
|
|
33144
|
-
const _hoisted_3$
|
|
33145
|
-
const _hoisted_4$
|
|
33246
|
+
const FieldPicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$2s, [["__scopeId", "data-v-f7844c2e"]]);
|
|
33247
|
+
const _hoisted_1$1s = { class: "condition-builder-trigger" };
|
|
33248
|
+
const _hoisted_2$B = { class: "cb-dialog-body" };
|
|
33249
|
+
const _hoisted_3$s = { class: "cb-header" };
|
|
33250
|
+
const _hoisted_4$j = {
|
|
33146
33251
|
key: 0,
|
|
33147
33252
|
class: "cb-no-fields"
|
|
33148
33253
|
};
|
|
33149
|
-
const _hoisted_5$
|
|
33150
|
-
const _hoisted_6$
|
|
33254
|
+
const _hoisted_5$h = { class: "cb-conditions" };
|
|
33255
|
+
const _hoisted_6$d = {
|
|
33151
33256
|
key: 0,
|
|
33152
33257
|
class: "cb-logic-row"
|
|
33153
33258
|
};
|
|
33154
|
-
const _hoisted_7$
|
|
33155
|
-
const _hoisted_8$
|
|
33259
|
+
const _hoisted_7$b = { class: "cb-condition-row" };
|
|
33260
|
+
const _hoisted_8$8 = { class: "cb-field-label" };
|
|
33156
33261
|
const nodePattern = "(currNode|parentNode|rootNode)";
|
|
33157
|
-
const _sfc_main$
|
|
33262
|
+
const _sfc_main$2r = /* @__PURE__ */ defineComponent({
|
|
33158
33263
|
...{ name: "ElsConditionBuilder" },
|
|
33159
33264
|
__name: "conditionBuilder",
|
|
33160
33265
|
props: {
|
|
@@ -33665,7 +33770,7 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33665
33770
|
const _component_el_input = resolveComponent("el-input");
|
|
33666
33771
|
const _component_Plus = resolveComponent("Plus");
|
|
33667
33772
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
33668
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
33773
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1s, [
|
|
33669
33774
|
createVNode(_component_el_button, {
|
|
33670
33775
|
size: "small",
|
|
33671
33776
|
style: { "width": "100%" },
|
|
@@ -33716,8 +33821,8 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33716
33821
|
})
|
|
33717
33822
|
]),
|
|
33718
33823
|
default: withCtx(() => [
|
|
33719
|
-
createElementVNode("div", _hoisted_2$
|
|
33720
|
-
createElementVNode("div", _hoisted_3$
|
|
33824
|
+
createElementVNode("div", _hoisted_2$B, [
|
|
33825
|
+
createElementVNode("div", _hoisted_3$s, [
|
|
33721
33826
|
createVNode(_component_el_button_group, { size: "small" }, {
|
|
33722
33827
|
default: withCtx(() => [
|
|
33723
33828
|
createVNode(_component_el_button, {
|
|
@@ -33763,13 +33868,13 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33763
33868
|
description: "当前表达式较复杂,无法转为可视化模式,请继续使用代码模式编辑。"
|
|
33764
33869
|
})) : createCommentVNode("", true),
|
|
33765
33870
|
mode.value === "visual" ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
33766
|
-
!allFieldOptions.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
33871
|
+
!allFieldOptions.value.length ? (openBlock(), createElementBlock("div", _hoisted_4$j, [..._cache[7] || (_cache[7] = [
|
|
33767
33872
|
createElementVNode("span", null, "暂无可用字段", -1)
|
|
33768
33873
|
])])) : createCommentVNode("", true),
|
|
33769
|
-
createElementVNode("div", _hoisted_5$
|
|
33874
|
+
createElementVNode("div", _hoisted_5$h, [
|
|
33770
33875
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(localConditions.value, (cond, i) => {
|
|
33771
33876
|
return openBlock(), createElementBlock(Fragment$1, { key: i }, [
|
|
33772
|
-
i > 0 ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
33877
|
+
i > 0 ? (openBlock(), createElementBlock("div", _hoisted_6$d, [
|
|
33773
33878
|
createVNode(_component_el_radio_group, {
|
|
33774
33879
|
modelValue: localConditions.value[i - 1].logicOp,
|
|
33775
33880
|
"onUpdate:modelValue": ($event) => localConditions.value[i - 1].logicOp = $event,
|
|
@@ -33792,7 +33897,7 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33792
33897
|
_: 1
|
|
33793
33898
|
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
33794
33899
|
])) : createCommentVNode("", true),
|
|
33795
|
-
createElementVNode("div", _hoisted_7$
|
|
33900
|
+
createElementVNode("div", _hoisted_7$b, [
|
|
33796
33901
|
createVNode(FieldPicker, {
|
|
33797
33902
|
class: "cb-field-picker",
|
|
33798
33903
|
onSelect: (opt) => applyFieldSelect(cond, opt)
|
|
@@ -33805,7 +33910,7 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33805
33910
|
key: 0,
|
|
33806
33911
|
class: normalizeClass(["cb-type-badge", TYPE_CLASS[cond.dataTypeName]])
|
|
33807
33912
|
}, toDisplayString(TYPE_LABEL[cond.dataTypeName] || cond.dataTypeName), 3)) : createCommentVNode("", true),
|
|
33808
|
-
createElementVNode("span", _hoisted_8$
|
|
33913
|
+
createElementVNode("span", _hoisted_8$8, toDisplayString(cond.fieldName || "选择字段..."), 1),
|
|
33809
33914
|
createVNode(_component_el_icon, { class: "cb-field-arrow" }, {
|
|
33810
33915
|
default: withCtx(() => [
|
|
33811
33916
|
createVNode(_component_ArrowDown)
|
|
@@ -33940,27 +34045,27 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
|
33940
34045
|
};
|
|
33941
34046
|
}
|
|
33942
34047
|
});
|
|
33943
|
-
const ConditionBuilderVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
33944
|
-
const _hoisted_1$
|
|
33945
|
-
const _hoisted_2$
|
|
34048
|
+
const ConditionBuilderVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$2r, [["__scopeId", "data-v-3580b83f"]]);
|
|
34049
|
+
const _hoisted_1$1r = { class: "expr-input-wrapper" };
|
|
34050
|
+
const _hoisted_2$A = {
|
|
33946
34051
|
key: 0,
|
|
33947
34052
|
class: "expr-mode-badge"
|
|
33948
34053
|
};
|
|
33949
|
-
const _hoisted_3$
|
|
33950
|
-
const _hoisted_4$
|
|
33951
|
-
const _hoisted_5$
|
|
34054
|
+
const _hoisted_3$r = { class: "expr-dialog-header" };
|
|
34055
|
+
const _hoisted_4$i = { class: "expr-toolbar-right" };
|
|
34056
|
+
const _hoisted_5$g = {
|
|
33952
34057
|
key: 0,
|
|
33953
34058
|
class: "expr-mode-hint"
|
|
33954
34059
|
};
|
|
33955
|
-
const _hoisted_6$
|
|
34060
|
+
const _hoisted_6$c = {
|
|
33956
34061
|
key: 1,
|
|
33957
34062
|
class: "expr-mode-hint expr-mode-hint--expr"
|
|
33958
34063
|
};
|
|
33959
|
-
const _hoisted_7$
|
|
34064
|
+
const _hoisted_7$a = {
|
|
33960
34065
|
key: 2,
|
|
33961
34066
|
class: "expr-mode-hint expr-mode-hint--raw"
|
|
33962
34067
|
};
|
|
33963
|
-
const _sfc_main$
|
|
34068
|
+
const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
33964
34069
|
...{ name: "ElsExpressionInput" },
|
|
33965
34070
|
__name: "expressionInput",
|
|
33966
34071
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -34181,7 +34286,7 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
|
|
|
34181
34286
|
const _component_el_button_group = resolveComponent("el-button-group");
|
|
34182
34287
|
const _component_el_input = resolveComponent("el-input");
|
|
34183
34288
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
34184
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
34289
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1r, [
|
|
34185
34290
|
createVNode(TipTapEditor, {
|
|
34186
34291
|
class: "expr-compact",
|
|
34187
34292
|
modelValue: modelValue.value,
|
|
@@ -34195,7 +34300,7 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
|
|
|
34195
34300
|
resizable: true,
|
|
34196
34301
|
border: true
|
|
34197
34302
|
}, null, 8, ["modelValue", "options", "renderOption", "placeholder"]),
|
|
34198
|
-
isExprMode.value ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
34303
|
+
isExprMode.value ? (openBlock(), createElementBlock("span", _hoisted_2$A, "JS")) : createCommentVNode("", true),
|
|
34199
34304
|
createVNode(_component_el_tooltip, {
|
|
34200
34305
|
content: "扩展编辑",
|
|
34201
34306
|
placement: "top"
|
|
@@ -34241,7 +34346,7 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
|
|
|
34241
34346
|
})
|
|
34242
34347
|
]),
|
|
34243
34348
|
default: withCtx(() => [
|
|
34244
|
-
createElementVNode("div", _hoisted_3$
|
|
34349
|
+
createElementVNode("div", _hoisted_3$r, [
|
|
34245
34350
|
_cache[13] || (_cache[13] = createElementVNode("div", { class: "expr-vars-hint" }, [
|
|
34246
34351
|
createTextVNode(" 可用变量:"),
|
|
34247
34352
|
createElementVNode("code", null, "currNode"),
|
|
@@ -34257,7 +34362,7 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
|
|
|
34257
34362
|
createElementVNode("code", null, "{}"),
|
|
34258
34363
|
createTextVNode(" 插入字段引用 ")
|
|
34259
34364
|
], -1)),
|
|
34260
|
-
createElementVNode("div", _hoisted_4$
|
|
34365
|
+
createElementVNode("div", _hoisted_4$i, [
|
|
34261
34366
|
createVNode(FieldPicker, { onSelect: onPickerSelectDialog }, {
|
|
34262
34367
|
trigger: withCtx(() => [
|
|
34263
34368
|
createVNode(_component_el_tooltip, {
|
|
@@ -34317,15 +34422,15 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
|
|
|
34317
34422
|
})
|
|
34318
34423
|
])
|
|
34319
34424
|
]),
|
|
34320
|
-
editMode.value === "template" ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
34425
|
+
editMode.value === "template" ? (openBlock(), createElementBlock("div", _hoisted_5$g, [..._cache[14] || (_cache[14] = [
|
|
34321
34426
|
createTextVNode(" 字符串插值模式:用 ", -1),
|
|
34322
34427
|
createElementVNode("code", null, "{{expr}}", -1),
|
|
34323
34428
|
createTextVNode(" 嵌入表达式,适合文本拼接,如 ", -1),
|
|
34324
34429
|
createElementVNode("code", null, "你好,{{currNode['name'].value}}", -1)
|
|
34325
|
-
])])) : editMode.value === "expression" ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
34430
|
+
])])) : editMode.value === "expression" ? (openBlock(), createElementBlock("div", _hoisted_6$c, [..._cache[15] || (_cache[15] = [
|
|
34326
34431
|
createTextVNode(" JS 表达式模式:整体作为一个 JS 表达式求值,支持三元、运算符等,如 ", -1),
|
|
34327
34432
|
createElementVNode("code", null, "currNode['age'].value > 18 ? '成年' : '未成年'", -1)
|
|
34328
|
-
])])) : (openBlock(), createElementBlock("div", _hoisted_7$
|
|
34433
|
+
])])) : (openBlock(), createElementBlock("div", _hoisted_7$a, [..._cache[16] || (_cache[16] = [
|
|
34329
34434
|
createTextVNode(" 源码模式:直接编辑原始字符串。以 ", -1),
|
|
34330
34435
|
createElementVNode("code", null, ":", -1),
|
|
34331
34436
|
createTextVNode(" 开头为 JS 表达式,", -1),
|
|
@@ -34371,202 +34476,7 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
|
|
|
34371
34476
|
};
|
|
34372
34477
|
}
|
|
34373
34478
|
});
|
|
34374
|
-
const ExpressionInputVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
34375
|
-
Number.prototype.toFixedNumber = function toFixedNumber(digits = 2) {
|
|
34376
|
-
return parseFloat(this.toFixed(digits));
|
|
34377
|
-
};
|
|
34378
|
-
Number.prototype.appendPx = function() {
|
|
34379
|
-
if (this) {
|
|
34380
|
-
return this + "px";
|
|
34381
|
-
}
|
|
34382
|
-
return "";
|
|
34383
|
-
};
|
|
34384
|
-
Number.prototype.formatDate = function(format2) {
|
|
34385
|
-
if (!this) {
|
|
34386
|
-
return "";
|
|
34387
|
-
}
|
|
34388
|
-
return utils.formatDate(this, format2);
|
|
34389
|
-
};
|
|
34390
|
-
String.prototype.setPowerPublicQuery = function(excludeQuery = "") {
|
|
34391
|
-
if (!this) {
|
|
34392
|
-
return "";
|
|
34393
|
-
}
|
|
34394
|
-
let url = this;
|
|
34395
|
-
let currParms = location.href.split("?")[1];
|
|
34396
|
-
if (currParms) {
|
|
34397
|
-
let dtParms = currParms.split("&");
|
|
34398
|
-
const excludeParams = excludeQuery.split(",");
|
|
34399
|
-
dtParms.forEach((ele) => {
|
|
34400
|
-
let parmKeyValue = ele.split("=");
|
|
34401
|
-
if (ele && (ele.includes("Power_") || ele.includes("Transfer_")) && !url.includes(parmKeyValue[0]) && !excludeParams.includes(parmKeyValue[0])) {
|
|
34402
|
-
url = url.indexOf("?") == -1 ? url + "?" + parmKeyValue[0] + "=" + parmKeyValue[1] : url + "&" + parmKeyValue[0] + "=" + parmKeyValue[1];
|
|
34403
|
-
}
|
|
34404
|
-
});
|
|
34405
|
-
}
|
|
34406
|
-
return url.toString();
|
|
34407
|
-
}, String.prototype.setTransferParams = function(transferParams) {
|
|
34408
|
-
if (!this || !transferParams) {
|
|
34409
|
-
return (this == null ? void 0 : this.toString()) || "";
|
|
34410
|
-
}
|
|
34411
|
-
let url = this.toString();
|
|
34412
|
-
Object.entries(transferParams).forEach(([key, value]) => {
|
|
34413
|
-
if (value !== void 0 && value !== null && value !== "") {
|
|
34414
|
-
const paramName = "Transfer_" + key;
|
|
34415
|
-
url = url.addUrlParameter(paramName, value);
|
|
34416
|
-
}
|
|
34417
|
-
});
|
|
34418
|
-
return url.toString();
|
|
34419
|
-
}, String.prototype.toCamel = function() {
|
|
34420
|
-
return this.toString().replace(/-([a-z])/g, function(match, letter) {
|
|
34421
|
-
console.log(match);
|
|
34422
|
-
return letter.toUpperCase();
|
|
34423
|
-
});
|
|
34424
|
-
};
|
|
34425
|
-
String.prototype.toKebabCase = function() {
|
|
34426
|
-
const currVal = this.toString().replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
34427
|
-
if (currVal.startsWith("-")) {
|
|
34428
|
-
return currVal.substring(1);
|
|
34429
|
-
}
|
|
34430
|
-
return currVal;
|
|
34431
|
-
};
|
|
34432
|
-
String.prototype.appendPx = function() {
|
|
34433
|
-
if (!this) {
|
|
34434
|
-
return "";
|
|
34435
|
-
}
|
|
34436
|
-
if (utils.isNumber(this.toString())) {
|
|
34437
|
-
return this + "px";
|
|
34438
|
-
}
|
|
34439
|
-
return this.toString();
|
|
34440
|
-
};
|
|
34441
|
-
String.prototype.toList = function(valueSeparator = ",") {
|
|
34442
|
-
if (this) {
|
|
34443
|
-
return this.toString().split(valueSeparator);
|
|
34444
|
-
}
|
|
34445
|
-
return [];
|
|
34446
|
-
};
|
|
34447
|
-
String.prototype.toListNumber = function(valueSeparator = ",") {
|
|
34448
|
-
if (this) {
|
|
34449
|
-
return this.toString().split(valueSeparator).map((ele) => parseFloat(ele));
|
|
34450
|
-
}
|
|
34451
|
-
return [];
|
|
34452
|
-
};
|
|
34453
|
-
String.prototype.toBool = function toBool() {
|
|
34454
|
-
if (this.toLowerCase() === "true") {
|
|
34455
|
-
return true;
|
|
34456
|
-
} else if (this.toLowerCase() === "false") {
|
|
34457
|
-
return false;
|
|
34458
|
-
}
|
|
34459
|
-
return false;
|
|
34460
|
-
};
|
|
34461
|
-
String.prototype.toInt = function toInt() {
|
|
34462
|
-
if (utils.isNumber(this.toString())) {
|
|
34463
|
-
return parseInt(this.toString());
|
|
34464
|
-
}
|
|
34465
|
-
return 0;
|
|
34466
|
-
};
|
|
34467
|
-
String.prototype.toFloat = function toFloat(digits = 2) {
|
|
34468
|
-
if (!digits) {
|
|
34469
|
-
return parseFloat(this.toString());
|
|
34470
|
-
}
|
|
34471
|
-
return parseFloat(parseFloat(this.toString()).toFixed(digits));
|
|
34472
|
-
};
|
|
34473
|
-
String.prototype.cutWord = function(len) {
|
|
34474
|
-
if (this) {
|
|
34475
|
-
if (this.length > len) {
|
|
34476
|
-
return this.substring(0, len) + "...";
|
|
34477
|
-
}
|
|
34478
|
-
}
|
|
34479
|
-
return this.toString();
|
|
34480
|
-
};
|
|
34481
|
-
String.prototype.downloadFile = function(filename = "") {
|
|
34482
|
-
utils.downloadFile(this.toString(), filename);
|
|
34483
|
-
};
|
|
34484
|
-
String.prototype.replacePowerUrl = function replacePowerUrl() {
|
|
34485
|
-
try {
|
|
34486
|
-
let currUrl = this;
|
|
34487
|
-
if (this && this.indexOf("{Power_CoteID}") > -1 && location.host) {
|
|
34488
|
-
currUrl = this.replace("{Power_CoteID}", location.host.split(".")[0]);
|
|
34489
|
-
}
|
|
34490
|
-
if (this && this.indexOf("{Power_Environment}") > -1 && location.host) {
|
|
34491
|
-
if (location.host.split(".").length == 5) {
|
|
34492
|
-
currUrl = currUrl.replace("{Power_Environment}", location.host.split(".")[2]);
|
|
34493
|
-
} else if (location.host.split(".").length == 4) {
|
|
34494
|
-
currUrl = currUrl.replace("{Power_Environment}", location.host.split(".")[1]);
|
|
34495
|
-
}
|
|
34496
|
-
}
|
|
34497
|
-
if (this && this.indexOf("{Power_CoteDeptID}") > -1) {
|
|
34498
|
-
let currCoteDeptID = utils.getUrlParms("Power_CoteDeptID");
|
|
34499
|
-
if (!currCoteDeptID) {
|
|
34500
|
-
currCoteDeptID = "0";
|
|
34501
|
-
}
|
|
34502
|
-
currUrl = currUrl.replace("{Power_CoteDeptID}", currCoteDeptID);
|
|
34503
|
-
}
|
|
34504
|
-
return currUrl.toString();
|
|
34505
|
-
} catch (err) {
|
|
34506
|
-
console.log(err);
|
|
34507
|
-
}
|
|
34508
|
-
return this.toString();
|
|
34509
|
-
};
|
|
34510
|
-
String.prototype.addUrlParameter = function addUrlParameter(param, value) {
|
|
34511
|
-
if (value === void 0) {
|
|
34512
|
-
return this.toString();
|
|
34513
|
-
}
|
|
34514
|
-
if (this.toString().indexOf(param) > -1) {
|
|
34515
|
-
var oUrl = this.toString();
|
|
34516
|
-
return oUrl.replace(new RegExp("/(" + param + "=)([^&]*)/gi"), param + "=" + value);
|
|
34517
|
-
}
|
|
34518
|
-
let cSymbol = this.indexOf("?") > -1 ? "&" : "?";
|
|
34519
|
-
return `${this}${cSymbol}${param}=${value}`;
|
|
34520
|
-
};
|
|
34521
|
-
String.prototype.post = function post(postdata, axiosInstance2) {
|
|
34522
|
-
return utils.post(this.toString(), postdata, axiosInstance2);
|
|
34523
|
-
};
|
|
34524
|
-
String.prototype.get = function get3(postdata, axiosInstance2) {
|
|
34525
|
-
return utils.get(this.toString(), postdata, axiosInstance2);
|
|
34526
|
-
};
|
|
34527
|
-
String.prototype.postWithCancel = function post2(postdata, cancel, axiosInstance2) {
|
|
34528
|
-
return utils.postWithCancel(this.toString(), postdata, cancel, axiosInstance2);
|
|
34529
|
-
};
|
|
34530
|
-
String.prototype.getWithCancel = function get22(postdata, cancel, axiosInstance2) {
|
|
34531
|
-
return utils.getWithCancel(this.toString(), postdata, cancel, axiosInstance2);
|
|
34532
|
-
};
|
|
34533
|
-
String.prototype.fetchStream = function fetchStream(processFunc, data, options2 = {}) {
|
|
34534
|
-
return utils.fetchStream(this.toString(), processFunc, data, options2);
|
|
34535
|
-
};
|
|
34536
|
-
String.prototype.fetchSSE = function fetchSSE(processFunc, data, options2 = {}) {
|
|
34537
|
-
return utils.fetchSSE(this.toString(), processFunc, data, options2);
|
|
34538
|
-
};
|
|
34539
|
-
String.prototype.upload = function upload(formdata) {
|
|
34540
|
-
return utils.post(this.toString(), formdata);
|
|
34541
|
-
};
|
|
34542
|
-
String.prototype.trimQuotes = function trimQuotes() {
|
|
34543
|
-
return this.toString().replace(/^['"]|['"]$/g, "");
|
|
34544
|
-
};
|
|
34545
|
-
String.prototype.trimComma = function trimComma() {
|
|
34546
|
-
return this.toString().replace(/^,+/, "").replace(/,+$/, "");
|
|
34547
|
-
};
|
|
34548
|
-
String.prototype.md5 = function md5() {
|
|
34549
|
-
return utils.md5(this.toString());
|
|
34550
|
-
};
|
|
34551
|
-
String.prototype.formatDate = function(format2) {
|
|
34552
|
-
if (!this) {
|
|
34553
|
-
return "";
|
|
34554
|
-
}
|
|
34555
|
-
return utils.formatDate(this.toString(), format2);
|
|
34556
|
-
};
|
|
34557
|
-
String.prototype.getUrlParms = function(paramName) {
|
|
34558
|
-
let vars = this.split("&");
|
|
34559
|
-
if (this.indexOf("?") > -1) {
|
|
34560
|
-
vars = this.split("?")[1].split("&");
|
|
34561
|
-
}
|
|
34562
|
-
for (var i = 0; i < vars.length; i++) {
|
|
34563
|
-
var pair = vars[i].split("=");
|
|
34564
|
-
if (pair[0] === paramName) {
|
|
34565
|
-
return pair[1];
|
|
34566
|
-
}
|
|
34567
|
-
}
|
|
34568
|
-
return "";
|
|
34569
|
-
};
|
|
34479
|
+
const ExpressionInputVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$2q, [["__scopeId", "data-v-4cf2ed46"]]);
|
|
34570
34480
|
const formItemProps$1 = buildProps({
|
|
34571
34481
|
...formItemProps$2,
|
|
34572
34482
|
/**
|
|
@@ -34808,12 +34718,12 @@ class TBaseCom {
|
|
|
34808
34718
|
}
|
|
34809
34719
|
}
|
|
34810
34720
|
const formItemProps = formItemProps$1;
|
|
34811
|
-
const _hoisted_1$
|
|
34812
|
-
const _hoisted_2$
|
|
34813
|
-
const _hoisted_3$
|
|
34814
|
-
const _hoisted_4$
|
|
34815
|
-
const _hoisted_5$
|
|
34816
|
-
const _sfc_main$
|
|
34721
|
+
const _hoisted_1$1q = ["innerHTML"];
|
|
34722
|
+
const _hoisted_2$z = { class: "els-form-item-label" };
|
|
34723
|
+
const _hoisted_3$q = ["innerHTML"];
|
|
34724
|
+
const _hoisted_4$h = { class: "els-form-item-append" };
|
|
34725
|
+
const _hoisted_5$f = ["innerHTML"];
|
|
34726
|
+
const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
34817
34727
|
...{ name: "ElsFormItem" },
|
|
34818
34728
|
__name: "formItem",
|
|
34819
34729
|
props: formItemProps,
|
|
@@ -34996,10 +34906,10 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
|
|
|
34996
34906
|
placement: "top"
|
|
34997
34907
|
}, {
|
|
34998
34908
|
content: withCtx(() => [
|
|
34999
|
-
createElementVNode("div", { innerHTML: _ctx.tip }, null, 8, _hoisted_3$
|
|
34909
|
+
createElementVNode("div", { innerHTML: _ctx.tip }, null, 8, _hoisted_3$q)
|
|
35000
34910
|
]),
|
|
35001
34911
|
default: withCtx(() => [
|
|
35002
|
-
createElementVNode("span", _hoisted_4$
|
|
34912
|
+
createElementVNode("span", _hoisted_4$h, [
|
|
35003
34913
|
createVNode(_component_el_icon, { style: { "margin-left": "5px", "cursor": "pointer" } }, {
|
|
35004
34914
|
default: withCtx(() => [
|
|
35005
34915
|
createVNode(_component_Question_Filled)
|
|
@@ -35014,7 +34924,7 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
|
|
|
35014
34924
|
key: 2,
|
|
35015
34925
|
innerHTML: _ctx.suffixContent,
|
|
35016
34926
|
class: "els-form-item-append"
|
|
35017
|
-
}, null, 8, _hoisted_5$
|
|
34927
|
+
}, null, 8, _hoisted_5$f)) : createCommentVNode("", true),
|
|
35018
34928
|
unref(slots).error ? renderSlot(_ctx.$slots, "error", { key: 3 }, void 0, true) : createCommentVNode("", true)
|
|
35019
34929
|
]),
|
|
35020
34930
|
_: 2
|
|
@@ -35030,10 +34940,10 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
|
|
|
35030
34940
|
fn: withCtx(() => [
|
|
35031
34941
|
createVNode(_component_el_tooltip, { placement: "top" }, {
|
|
35032
34942
|
content: withCtx(() => [
|
|
35033
|
-
createElementVNode("div", { innerHTML: _ctx.tip }, null, 8, _hoisted_1$
|
|
34943
|
+
createElementVNode("div", { innerHTML: _ctx.tip }, null, 8, _hoisted_1$1q)
|
|
35034
34944
|
]),
|
|
35035
34945
|
default: withCtx(() => [
|
|
35036
|
-
createElementVNode("span", _hoisted_2$
|
|
34946
|
+
createElementVNode("span", _hoisted_2$z, [
|
|
35037
34947
|
createTextVNode(toDisplayString(_ctx.label) + " ", 1),
|
|
35038
34948
|
createVNode(_component_el_icon, { style: { "margin-left": "5px", "cursor": "pointer" } }, {
|
|
35039
34949
|
default: withCtx(() => [
|
|
@@ -35052,9 +34962,9 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
|
|
|
35052
34962
|
};
|
|
35053
34963
|
}
|
|
35054
34964
|
});
|
|
35055
|
-
const FormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
34965
|
+
const FormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2p, [["__scopeId", "data-v-53c65fe2"]]);
|
|
35056
34966
|
const ElsFormItem = withInstall$1(FormItem);
|
|
35057
|
-
const _sfc_main$
|
|
34967
|
+
const _sfc_main$2o = /* @__PURE__ */ defineComponent({
|
|
35058
34968
|
...{ name: "ElsFormNode" },
|
|
35059
34969
|
__name: "formNode",
|
|
35060
34970
|
props: formItemProps$1,
|
|
@@ -35120,7 +35030,7 @@ const _sfc_main$2m = /* @__PURE__ */ defineComponent({
|
|
|
35120
35030
|
};
|
|
35121
35031
|
}
|
|
35122
35032
|
});
|
|
35123
|
-
const FormNode = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
35033
|
+
const FormNode = /* @__PURE__ */ _export_sfc$1(_sfc_main$2o, [["__scopeId", "data-v-c800fb00"]]);
|
|
35124
35034
|
const ElsFormNode = withInstall$1(FormNode);
|
|
35125
35035
|
function _isSlot$5(s) {
|
|
35126
35036
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
@@ -35285,6 +35195,475 @@ class TBaseTree extends TBaseFormItem {
|
|
|
35285
35195
|
return this._isMobile.value && this.mobileRender ? this.mobileRender(this._selectState) : this.pcRender(this._selectState);
|
|
35286
35196
|
}
|
|
35287
35197
|
}
|
|
35198
|
+
const jsonEditorProps = buildProps({
|
|
35199
|
+
...formItemProps$1,
|
|
35200
|
+
/**
|
|
35201
|
+
* @description 绑定值
|
|
35202
|
+
*/
|
|
35203
|
+
modelValue: {
|
|
35204
|
+
type: [String, Object]
|
|
35205
|
+
},
|
|
35206
|
+
/**
|
|
35207
|
+
* @description 值类型 String|Object
|
|
35208
|
+
*/
|
|
35209
|
+
valueType: {
|
|
35210
|
+
type: String,
|
|
35211
|
+
values: ["String", "Object"]
|
|
35212
|
+
}
|
|
35213
|
+
});
|
|
35214
|
+
let JsonEditor$1 = class JsonEditor extends TBaseFormItem {
|
|
35215
|
+
constructor(props2, ctx) {
|
|
35216
|
+
super(props2, ctx);
|
|
35217
|
+
__publicField(this, "jsonEditor", ref());
|
|
35218
|
+
}
|
|
35219
|
+
watchModelValue() {
|
|
35220
|
+
watch(this._modelValue, (val) => {
|
|
35221
|
+
if (val) {
|
|
35222
|
+
if (typeof val === "object") {
|
|
35223
|
+
this._comValue.value = val;
|
|
35224
|
+
} else {
|
|
35225
|
+
this._comValue.value = JSON.parse(val);
|
|
35226
|
+
}
|
|
35227
|
+
}
|
|
35228
|
+
}, {
|
|
35229
|
+
immediate: true,
|
|
35230
|
+
deep: true
|
|
35231
|
+
});
|
|
35232
|
+
}
|
|
35233
|
+
watchComValue() {
|
|
35234
|
+
watch(this._comValue, (val) => {
|
|
35235
|
+
if (typeof val === "string") {
|
|
35236
|
+
try {
|
|
35237
|
+
JSON.parse(val);
|
|
35238
|
+
} catch {
|
|
35239
|
+
return;
|
|
35240
|
+
}
|
|
35241
|
+
}
|
|
35242
|
+
if (typeof this._modelValue.value === "object" || this._props.valueType === "Object") {
|
|
35243
|
+
if (typeof val === "string") {
|
|
35244
|
+
try {
|
|
35245
|
+
const currValue = JSON.parse(val);
|
|
35246
|
+
this.returnValue(currValue);
|
|
35247
|
+
} catch (err) {
|
|
35248
|
+
}
|
|
35249
|
+
} else {
|
|
35250
|
+
this.returnValue(val);
|
|
35251
|
+
}
|
|
35252
|
+
return;
|
|
35253
|
+
}
|
|
35254
|
+
if (typeof val === "object") {
|
|
35255
|
+
this.returnValue(JSON.stringify(val));
|
|
35256
|
+
return;
|
|
35257
|
+
}
|
|
35258
|
+
this.returnValue(val);
|
|
35259
|
+
}, {
|
|
35260
|
+
deep: true
|
|
35261
|
+
});
|
|
35262
|
+
}
|
|
35263
|
+
pcRender() {
|
|
35264
|
+
return createVNode(Fragment$1, null, [createVNode("div", {
|
|
35265
|
+
"class": "els-jsoneditor"
|
|
35266
|
+
}, [createVNode(JsonEditorVue, mergeProps({
|
|
35267
|
+
"modelValue": this._comValue.value,
|
|
35268
|
+
"onUpdate:modelValue": ($event) => this._comValue.value = $event
|
|
35269
|
+
}, this._attrs, {
|
|
35270
|
+
"ref": this.jsonEditor,
|
|
35271
|
+
"mode": "text"
|
|
35272
|
+
}), null)])]);
|
|
35273
|
+
}
|
|
35274
|
+
};
|
|
35275
|
+
const _sfc_main$2n = defineComponent({
|
|
35276
|
+
name: "ElsJsonEditor",
|
|
35277
|
+
inheritAttrs: false,
|
|
35278
|
+
props: jsonEditorProps,
|
|
35279
|
+
setup(props2, ctx) {
|
|
35280
|
+
const editor = new JsonEditor$1(props2, ctx);
|
|
35281
|
+
return () => editor.render();
|
|
35282
|
+
},
|
|
35283
|
+
emits: ["update:modelValue"]
|
|
35284
|
+
});
|
|
35285
|
+
const JsonEditor2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$2n, [["__scopeId", "data-v-ebf6dbd5"]]);
|
|
35286
|
+
const ElsJsonEditor = withInstall$1(JsonEditor2);
|
|
35287
|
+
const _hoisted_1$1p = { class: "els-schema-field-editor" };
|
|
35288
|
+
const _hoisted_2$y = { class: "els-schema-field-editor__toolbar" };
|
|
35289
|
+
const _hoisted_3$p = {
|
|
35290
|
+
key: 0,
|
|
35291
|
+
class: "els-schema-field-editor__rows"
|
|
35292
|
+
};
|
|
35293
|
+
const _hoisted_4$g = {
|
|
35294
|
+
key: 1,
|
|
35295
|
+
class: "els-schema-field-editor__empty"
|
|
35296
|
+
};
|
|
35297
|
+
const _sfc_main$2m = /* @__PURE__ */ defineComponent({
|
|
35298
|
+
...{ name: "ElsSchemaFieldEditor" },
|
|
35299
|
+
__name: "schemaFieldEditor",
|
|
35300
|
+
props: {
|
|
35301
|
+
"modelValue": { default: "{}" },
|
|
35302
|
+
"modelModifiers": {}
|
|
35303
|
+
},
|
|
35304
|
+
emits: ["update:modelValue"],
|
|
35305
|
+
setup(__props) {
|
|
35306
|
+
const modelValue = useModel$1(__props, "modelValue");
|
|
35307
|
+
const typeOptions = [
|
|
35308
|
+
{ label: "文本", value: "String" },
|
|
35309
|
+
{ label: "数字", value: "Number" },
|
|
35310
|
+
{ label: "布尔", value: "Bool" },
|
|
35311
|
+
{ label: "数组", value: "Array" },
|
|
35312
|
+
{ label: "对象", value: "Object" }
|
|
35313
|
+
];
|
|
35314
|
+
let uid = 0;
|
|
35315
|
+
function nextId() {
|
|
35316
|
+
uid += 1;
|
|
35317
|
+
return "row_" + uid;
|
|
35318
|
+
}
|
|
35319
|
+
function normalizeType(type) {
|
|
35320
|
+
const t2 = String(type || "String").toLowerCase();
|
|
35321
|
+
if (t2 === "number") return "Number";
|
|
35322
|
+
if (t2 === "bool" || t2 === "boolean") return "Bool";
|
|
35323
|
+
if (t2 === "array") return "Array";
|
|
35324
|
+
if (t2 === "object") return "Object";
|
|
35325
|
+
return "String";
|
|
35326
|
+
}
|
|
35327
|
+
function parseModelValue(raw) {
|
|
35328
|
+
let data = {};
|
|
35329
|
+
try {
|
|
35330
|
+
data = raw ? JSON.parse(raw) : {};
|
|
35331
|
+
} catch {
|
|
35332
|
+
data = {};
|
|
35333
|
+
}
|
|
35334
|
+
if (!data || typeof data !== "object" || Array.isArray(data)) data = {};
|
|
35335
|
+
const result = [];
|
|
35336
|
+
for (const label in data) {
|
|
35337
|
+
const value = data[label];
|
|
35338
|
+
if (typeof value === "string") {
|
|
35339
|
+
result.push({ id: nextId(), label, path: value, type: "String" });
|
|
35340
|
+
} else if (value && typeof value === "object" && typeof value.name === "string") {
|
|
35341
|
+
result.push({ id: nextId(), label, path: value.name, type: normalizeType(value.type) });
|
|
35342
|
+
}
|
|
35343
|
+
}
|
|
35344
|
+
return result;
|
|
35345
|
+
}
|
|
35346
|
+
const rows = ref(parseModelValue(modelValue.value));
|
|
35347
|
+
const mode = ref("list");
|
|
35348
|
+
let syncingFromSelf = false;
|
|
35349
|
+
watch(modelValue, (val) => {
|
|
35350
|
+
if (syncingFromSelf) return;
|
|
35351
|
+
rows.value = parseModelValue(val || "{}");
|
|
35352
|
+
});
|
|
35353
|
+
function serialize() {
|
|
35354
|
+
const data = {};
|
|
35355
|
+
rows.value.forEach((row) => {
|
|
35356
|
+
if (!row.label || !row.path) return;
|
|
35357
|
+
data[row.label] = { name: row.path, type: row.type };
|
|
35358
|
+
});
|
|
35359
|
+
syncingFromSelf = true;
|
|
35360
|
+
modelValue.value = JSON.stringify(data);
|
|
35361
|
+
requestAnimationFrame(() => {
|
|
35362
|
+
syncingFromSelf = false;
|
|
35363
|
+
});
|
|
35364
|
+
}
|
|
35365
|
+
watch(rows, serialize, { deep: true });
|
|
35366
|
+
function handleAddRow() {
|
|
35367
|
+
rows.value.push({ id: nextId(), label: "", path: "", type: "String" });
|
|
35368
|
+
}
|
|
35369
|
+
function handleRemoveRow(row) {
|
|
35370
|
+
rows.value = rows.value.filter((r) => r.id !== row.id);
|
|
35371
|
+
}
|
|
35372
|
+
return (_ctx, _cache) => {
|
|
35373
|
+
const _component_el_button = resolveComponent("el-button");
|
|
35374
|
+
const _component_el_input = resolveComponent("el-input");
|
|
35375
|
+
const _component_el_option = resolveComponent("el-option");
|
|
35376
|
+
const _component_el_select = resolveComponent("el-select");
|
|
35377
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
35378
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1p, [
|
|
35379
|
+
createElementVNode("div", _hoisted_2$y, [
|
|
35380
|
+
_cache[2] || (_cache[2] = createElementVNode("span", { class: "els-schema-field-editor__hint" }, "声明响应里有哪些字段,其他组件可在数据绑定面板里直接选用", -1)),
|
|
35381
|
+
createVNode(_component_el_button, {
|
|
35382
|
+
link: "",
|
|
35383
|
+
type: "primary",
|
|
35384
|
+
size: "small",
|
|
35385
|
+
onClick: _cache[0] || (_cache[0] = ($event) => mode.value = mode.value === "list" ? "json" : "list")
|
|
35386
|
+
}, {
|
|
35387
|
+
default: withCtx(() => [
|
|
35388
|
+
createTextVNode(toDisplayString(mode.value === "list" ? "JSON 编辑" : "列表编辑"), 1)
|
|
35389
|
+
]),
|
|
35390
|
+
_: 1
|
|
35391
|
+
})
|
|
35392
|
+
]),
|
|
35393
|
+
mode.value === "list" ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
|
|
35394
|
+
rows.value.length ? (openBlock(), createElementBlock("div", _hoisted_3$p, [
|
|
35395
|
+
_cache[3] || (_cache[3] = createElementVNode("div", { class: "els-schema-field-editor__head" }, [
|
|
35396
|
+
createElementVNode("span", null, "展示名称"),
|
|
35397
|
+
createElementVNode("span", null, "接口字段"),
|
|
35398
|
+
createElementVNode("span", null, "类型"),
|
|
35399
|
+
createElementVNode("span")
|
|
35400
|
+
], -1)),
|
|
35401
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(rows.value, (row) => {
|
|
35402
|
+
return openBlock(), createElementBlock("div", {
|
|
35403
|
+
class: "els-schema-field-editor__row",
|
|
35404
|
+
key: row.id
|
|
35405
|
+
}, [
|
|
35406
|
+
createVNode(_component_el_input, {
|
|
35407
|
+
modelValue: row.label,
|
|
35408
|
+
"onUpdate:modelValue": ($event) => row.label = $event,
|
|
35409
|
+
placeholder: "如:用户名"
|
|
35410
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
35411
|
+
createVNode(_component_el_input, {
|
|
35412
|
+
modelValue: row.path,
|
|
35413
|
+
"onUpdate:modelValue": ($event) => row.path = $event,
|
|
35414
|
+
placeholder: "如:user.name"
|
|
35415
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
35416
|
+
createVNode(_component_el_select, {
|
|
35417
|
+
modelValue: row.type,
|
|
35418
|
+
"onUpdate:modelValue": ($event) => row.type = $event
|
|
35419
|
+
}, {
|
|
35420
|
+
default: withCtx(() => [
|
|
35421
|
+
(openBlock(), createElementBlock(Fragment$1, null, renderList(typeOptions, (opt) => {
|
|
35422
|
+
return createVNode(_component_el_option, {
|
|
35423
|
+
key: opt.value,
|
|
35424
|
+
label: opt.label,
|
|
35425
|
+
value: opt.value
|
|
35426
|
+
}, null, 8, ["label", "value"]);
|
|
35427
|
+
}), 64))
|
|
35428
|
+
]),
|
|
35429
|
+
_: 1
|
|
35430
|
+
}, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
35431
|
+
createVNode(_component_el_icon, {
|
|
35432
|
+
class: "els-schema-field-editor__remove",
|
|
35433
|
+
onClick: ($event) => handleRemoveRow(row)
|
|
35434
|
+
}, {
|
|
35435
|
+
default: withCtx(() => [
|
|
35436
|
+
createVNode(unref(delete_default))
|
|
35437
|
+
]),
|
|
35438
|
+
_: 1
|
|
35439
|
+
}, 8, ["onClick"])
|
|
35440
|
+
]);
|
|
35441
|
+
}), 128))
|
|
35442
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_4$g, "暂无字段,点击下方按钮添加")),
|
|
35443
|
+
createVNode(_component_el_button, {
|
|
35444
|
+
class: "els-schema-field-editor__add",
|
|
35445
|
+
onClick: handleAddRow
|
|
35446
|
+
}, {
|
|
35447
|
+
default: withCtx(() => [
|
|
35448
|
+
createVNode(_component_el_icon, null, {
|
|
35449
|
+
default: withCtx(() => [
|
|
35450
|
+
createVNode(unref(plus_default))
|
|
35451
|
+
]),
|
|
35452
|
+
_: 1
|
|
35453
|
+
}),
|
|
35454
|
+
_cache[4] || (_cache[4] = createTextVNode("添加字段 ", -1))
|
|
35455
|
+
]),
|
|
35456
|
+
_: 1
|
|
35457
|
+
})
|
|
35458
|
+
], 64)) : (openBlock(), createBlock(unref(ElsJsonEditor), {
|
|
35459
|
+
key: 1,
|
|
35460
|
+
modelValue: modelValue.value,
|
|
35461
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => modelValue.value = $event),
|
|
35462
|
+
mode: "tree",
|
|
35463
|
+
"main-menu-bar": true,
|
|
35464
|
+
"navigation-bar": false,
|
|
35465
|
+
"status-bar": false
|
|
35466
|
+
}, null, 8, ["modelValue"]))
|
|
35467
|
+
]);
|
|
35468
|
+
};
|
|
35469
|
+
}
|
|
35470
|
+
});
|
|
35471
|
+
const SchemaFieldEditorVue = /* @__PURE__ */ _export_sfc$1(_sfc_main$2m, [["__scopeId", "data-v-43e169bb"]]);
|
|
35472
|
+
Number.prototype.toFixedNumber = function toFixedNumber(digits = 2) {
|
|
35473
|
+
return parseFloat(this.toFixed(digits));
|
|
35474
|
+
};
|
|
35475
|
+
Number.prototype.appendPx = function() {
|
|
35476
|
+
if (this) {
|
|
35477
|
+
return this + "px";
|
|
35478
|
+
}
|
|
35479
|
+
return "";
|
|
35480
|
+
};
|
|
35481
|
+
Number.prototype.formatDate = function(format2) {
|
|
35482
|
+
if (!this) {
|
|
35483
|
+
return "";
|
|
35484
|
+
}
|
|
35485
|
+
return utils.formatDate(this, format2);
|
|
35486
|
+
};
|
|
35487
|
+
String.prototype.setPowerPublicQuery = function(excludeQuery = "") {
|
|
35488
|
+
if (!this) {
|
|
35489
|
+
return "";
|
|
35490
|
+
}
|
|
35491
|
+
let url = this;
|
|
35492
|
+
let currParms = location.href.split("?")[1];
|
|
35493
|
+
if (currParms) {
|
|
35494
|
+
let dtParms = currParms.split("&");
|
|
35495
|
+
const excludeParams = excludeQuery.split(",");
|
|
35496
|
+
dtParms.forEach((ele) => {
|
|
35497
|
+
let parmKeyValue = ele.split("=");
|
|
35498
|
+
if (ele && (ele.includes("Power_") || ele.includes("Transfer_")) && !url.includes(parmKeyValue[0]) && !excludeParams.includes(parmKeyValue[0])) {
|
|
35499
|
+
url = url.indexOf("?") == -1 ? url + "?" + parmKeyValue[0] + "=" + parmKeyValue[1] : url + "&" + parmKeyValue[0] + "=" + parmKeyValue[1];
|
|
35500
|
+
}
|
|
35501
|
+
});
|
|
35502
|
+
}
|
|
35503
|
+
return url.toString();
|
|
35504
|
+
}, String.prototype.setTransferParams = function(transferParams) {
|
|
35505
|
+
if (!this || !transferParams) {
|
|
35506
|
+
return (this == null ? void 0 : this.toString()) || "";
|
|
35507
|
+
}
|
|
35508
|
+
let url = this.toString();
|
|
35509
|
+
Object.entries(transferParams).forEach(([key, value]) => {
|
|
35510
|
+
if (value !== void 0 && value !== null && value !== "") {
|
|
35511
|
+
const paramName = "Transfer_" + key;
|
|
35512
|
+
url = url.addUrlParameter(paramName, value);
|
|
35513
|
+
}
|
|
35514
|
+
});
|
|
35515
|
+
return url.toString();
|
|
35516
|
+
}, String.prototype.toCamel = function() {
|
|
35517
|
+
return this.toString().replace(/-([a-z])/g, function(match, letter) {
|
|
35518
|
+
console.log(match);
|
|
35519
|
+
return letter.toUpperCase();
|
|
35520
|
+
});
|
|
35521
|
+
};
|
|
35522
|
+
String.prototype.toKebabCase = function() {
|
|
35523
|
+
const currVal = this.toString().replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
35524
|
+
if (currVal.startsWith("-")) {
|
|
35525
|
+
return currVal.substring(1);
|
|
35526
|
+
}
|
|
35527
|
+
return currVal;
|
|
35528
|
+
};
|
|
35529
|
+
String.prototype.appendPx = function() {
|
|
35530
|
+
if (!this) {
|
|
35531
|
+
return "";
|
|
35532
|
+
}
|
|
35533
|
+
if (utils.isNumber(this.toString())) {
|
|
35534
|
+
return this + "px";
|
|
35535
|
+
}
|
|
35536
|
+
return this.toString();
|
|
35537
|
+
};
|
|
35538
|
+
String.prototype.toList = function(valueSeparator = ",") {
|
|
35539
|
+
if (this) {
|
|
35540
|
+
return this.toString().split(valueSeparator);
|
|
35541
|
+
}
|
|
35542
|
+
return [];
|
|
35543
|
+
};
|
|
35544
|
+
String.prototype.toListNumber = function(valueSeparator = ",") {
|
|
35545
|
+
if (this) {
|
|
35546
|
+
return this.toString().split(valueSeparator).map((ele) => parseFloat(ele));
|
|
35547
|
+
}
|
|
35548
|
+
return [];
|
|
35549
|
+
};
|
|
35550
|
+
String.prototype.toBool = function toBool() {
|
|
35551
|
+
if (this.toLowerCase() === "true") {
|
|
35552
|
+
return true;
|
|
35553
|
+
} else if (this.toLowerCase() === "false") {
|
|
35554
|
+
return false;
|
|
35555
|
+
}
|
|
35556
|
+
return false;
|
|
35557
|
+
};
|
|
35558
|
+
String.prototype.toInt = function toInt() {
|
|
35559
|
+
if (utils.isNumber(this.toString())) {
|
|
35560
|
+
return parseInt(this.toString());
|
|
35561
|
+
}
|
|
35562
|
+
return 0;
|
|
35563
|
+
};
|
|
35564
|
+
String.prototype.toFloat = function toFloat(digits = 2) {
|
|
35565
|
+
if (!digits) {
|
|
35566
|
+
return parseFloat(this.toString());
|
|
35567
|
+
}
|
|
35568
|
+
return parseFloat(parseFloat(this.toString()).toFixed(digits));
|
|
35569
|
+
};
|
|
35570
|
+
String.prototype.cutWord = function(len) {
|
|
35571
|
+
if (this) {
|
|
35572
|
+
if (this.length > len) {
|
|
35573
|
+
return this.substring(0, len) + "...";
|
|
35574
|
+
}
|
|
35575
|
+
}
|
|
35576
|
+
return this.toString();
|
|
35577
|
+
};
|
|
35578
|
+
String.prototype.downloadFile = function(filename = "") {
|
|
35579
|
+
utils.downloadFile(this.toString(), filename);
|
|
35580
|
+
};
|
|
35581
|
+
String.prototype.replacePowerUrl = function replacePowerUrl() {
|
|
35582
|
+
try {
|
|
35583
|
+
let currUrl = this;
|
|
35584
|
+
if (this && this.indexOf("{Power_CoteID}") > -1 && location.host) {
|
|
35585
|
+
currUrl = this.replace("{Power_CoteID}", location.host.split(".")[0]);
|
|
35586
|
+
}
|
|
35587
|
+
if (this && this.indexOf("{Power_Environment}") > -1 && location.host) {
|
|
35588
|
+
if (location.host.split(".").length == 5) {
|
|
35589
|
+
currUrl = currUrl.replace("{Power_Environment}", location.host.split(".")[2]);
|
|
35590
|
+
} else if (location.host.split(".").length == 4) {
|
|
35591
|
+
currUrl = currUrl.replace("{Power_Environment}", location.host.split(".")[1]);
|
|
35592
|
+
}
|
|
35593
|
+
}
|
|
35594
|
+
if (this && this.indexOf("{Power_CoteDeptID}") > -1) {
|
|
35595
|
+
let currCoteDeptID = utils.getUrlParms("Power_CoteDeptID");
|
|
35596
|
+
if (!currCoteDeptID) {
|
|
35597
|
+
currCoteDeptID = "0";
|
|
35598
|
+
}
|
|
35599
|
+
currUrl = currUrl.replace("{Power_CoteDeptID}", currCoteDeptID);
|
|
35600
|
+
}
|
|
35601
|
+
return currUrl.toString();
|
|
35602
|
+
} catch (err) {
|
|
35603
|
+
console.log(err);
|
|
35604
|
+
}
|
|
35605
|
+
return this.toString();
|
|
35606
|
+
};
|
|
35607
|
+
String.prototype.addUrlParameter = function addUrlParameter(param, value) {
|
|
35608
|
+
if (value === void 0) {
|
|
35609
|
+
return this.toString();
|
|
35610
|
+
}
|
|
35611
|
+
if (this.toString().indexOf(param) > -1) {
|
|
35612
|
+
var oUrl = this.toString();
|
|
35613
|
+
return oUrl.replace(new RegExp("/(" + param + "=)([^&]*)/gi"), param + "=" + value);
|
|
35614
|
+
}
|
|
35615
|
+
let cSymbol = this.indexOf("?") > -1 ? "&" : "?";
|
|
35616
|
+
return `${this}${cSymbol}${param}=${value}`;
|
|
35617
|
+
};
|
|
35618
|
+
String.prototype.post = function post(postdata, axiosInstance2) {
|
|
35619
|
+
return utils.post(this.toString(), postdata, axiosInstance2);
|
|
35620
|
+
};
|
|
35621
|
+
String.prototype.get = function get3(postdata, axiosInstance2) {
|
|
35622
|
+
return utils.get(this.toString(), postdata, axiosInstance2);
|
|
35623
|
+
};
|
|
35624
|
+
String.prototype.postWithCancel = function post2(postdata, cancel, axiosInstance2) {
|
|
35625
|
+
return utils.postWithCancel(this.toString(), postdata, cancel, axiosInstance2);
|
|
35626
|
+
};
|
|
35627
|
+
String.prototype.getWithCancel = function get22(postdata, cancel, axiosInstance2) {
|
|
35628
|
+
return utils.getWithCancel(this.toString(), postdata, cancel, axiosInstance2);
|
|
35629
|
+
};
|
|
35630
|
+
String.prototype.fetchStream = function fetchStream(processFunc, data, options2 = {}) {
|
|
35631
|
+
return utils.fetchStream(this.toString(), processFunc, data, options2);
|
|
35632
|
+
};
|
|
35633
|
+
String.prototype.fetchSSE = function fetchSSE(processFunc, data, options2 = {}) {
|
|
35634
|
+
return utils.fetchSSE(this.toString(), processFunc, data, options2);
|
|
35635
|
+
};
|
|
35636
|
+
String.prototype.upload = function upload(formdata) {
|
|
35637
|
+
return utils.post(this.toString(), formdata);
|
|
35638
|
+
};
|
|
35639
|
+
String.prototype.trimQuotes = function trimQuotes() {
|
|
35640
|
+
return this.toString().replace(/^['"]|['"]$/g, "");
|
|
35641
|
+
};
|
|
35642
|
+
String.prototype.trimComma = function trimComma() {
|
|
35643
|
+
return this.toString().replace(/^,+/, "").replace(/,+$/, "");
|
|
35644
|
+
};
|
|
35645
|
+
String.prototype.md5 = function md5() {
|
|
35646
|
+
return utils.md5(this.toString());
|
|
35647
|
+
};
|
|
35648
|
+
String.prototype.formatDate = function(format2) {
|
|
35649
|
+
if (!this) {
|
|
35650
|
+
return "";
|
|
35651
|
+
}
|
|
35652
|
+
return utils.formatDate(this.toString(), format2);
|
|
35653
|
+
};
|
|
35654
|
+
String.prototype.getUrlParms = function(paramName) {
|
|
35655
|
+
let vars = this.split("&");
|
|
35656
|
+
if (this.indexOf("?") > -1) {
|
|
35657
|
+
vars = this.split("?")[1].split("&");
|
|
35658
|
+
}
|
|
35659
|
+
for (var i = 0; i < vars.length; i++) {
|
|
35660
|
+
var pair = vars[i].split("=");
|
|
35661
|
+
if (pair[0] === paramName) {
|
|
35662
|
+
return pair[1];
|
|
35663
|
+
}
|
|
35664
|
+
}
|
|
35665
|
+
return "";
|
|
35666
|
+
};
|
|
35288
35667
|
const inputProps = buildProps({
|
|
35289
35668
|
...formItemProps$1,
|
|
35290
35669
|
...inputProps$1,
|
|
@@ -37900,11 +38279,11 @@ const optionGroupProps = buildProps({
|
|
|
37900
38279
|
*/
|
|
37901
38280
|
label: String
|
|
37902
38281
|
});
|
|
37903
|
-
const _hoisted_1$
|
|
38282
|
+
const _hoisted_1$1o = {
|
|
37904
38283
|
key: 1,
|
|
37905
38284
|
style: { "width": "100%" }
|
|
37906
38285
|
};
|
|
37907
|
-
const _hoisted_2$
|
|
38286
|
+
const _hoisted_2$x = { class: "els-radio-group-item" };
|
|
37908
38287
|
const _sfc_main$2c = /* @__PURE__ */ defineComponent({
|
|
37909
38288
|
...{ name: "ElsOptionGroup" },
|
|
37910
38289
|
__name: "optionGroup",
|
|
@@ -37928,8 +38307,8 @@ const _sfc_main$2c = /* @__PURE__ */ defineComponent({
|
|
|
37928
38307
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
37929
38308
|
]),
|
|
37930
38309
|
_: 3
|
|
37931
|
-
}, 16, ["label"])) : (openBlock(), createElementBlock("div", _hoisted_1$
|
|
37932
|
-
createElementVNode("div", _hoisted_2$
|
|
38310
|
+
}, 16, ["label"])) : (openBlock(), createElementBlock("div", _hoisted_1$1o, [
|
|
38311
|
+
createElementVNode("div", _hoisted_2$x, toDisplayString(_ctx.label), 1),
|
|
37933
38312
|
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(attrs))), void 0, true)
|
|
37934
38313
|
]));
|
|
37935
38314
|
};
|
|
@@ -39107,11 +39486,11 @@ const tableColumnProps = Object.assign({}, defaults_default$1, buildProps({
|
|
|
39107
39486
|
}
|
|
39108
39487
|
}
|
|
39109
39488
|
}));
|
|
39110
|
-
const _hoisted_1$
|
|
39111
|
-
const _hoisted_2$
|
|
39112
|
-
const _hoisted_3$
|
|
39113
|
-
const _hoisted_4$
|
|
39114
|
-
const _hoisted_5$
|
|
39489
|
+
const _hoisted_1$1n = { key: 0 };
|
|
39490
|
+
const _hoisted_2$w = ["innerHTML"];
|
|
39491
|
+
const _hoisted_3$o = ["innerHTML"];
|
|
39492
|
+
const _hoisted_4$f = ["innerHTML"];
|
|
39493
|
+
const _hoisted_5$e = {
|
|
39115
39494
|
key: 0,
|
|
39116
39495
|
class: "el-table-tr-split"
|
|
39117
39496
|
};
|
|
@@ -39332,7 +39711,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
39332
39711
|
column,
|
|
39333
39712
|
$index
|
|
39334
39713
|
}, () => [
|
|
39335
|
-
_ctx.tip ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
39714
|
+
_ctx.tip ? (openBlock(), createElementBlock("span", _hoisted_1$1n, [
|
|
39336
39715
|
createTextVNode(toDisplayString(unref(attrs)["label"]) + " ", 1),
|
|
39337
39716
|
createVNode(_component_el_tooltip, {
|
|
39338
39717
|
content: _ctx.tip,
|
|
@@ -39360,7 +39739,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
39360
39739
|
_ctx.prop ? (openBlock(), createElementBlock("span", {
|
|
39361
39740
|
key: 0,
|
|
39362
39741
|
innerHTML: row[_ctx.prop]
|
|
39363
|
-
}, null, 8, _hoisted_2$
|
|
39742
|
+
}, null, 8, _hoisted_2$w)) : createCommentVNode("", true)
|
|
39364
39743
|
]) : (_ctx.isEdit === false || !unref(tableGlobalData).isEdit && (!row.edit || _ctx.isEdit !== true)) && _ctx.prop ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
39365
39744
|
_ctx.type == "image" ? (openBlock(), createBlock(_component_els_image, {
|
|
39366
39745
|
key: 0,
|
|
@@ -39409,12 +39788,12 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
39409
39788
|
_ctx.compareField && _ctx.prop ? (openBlock(), createElementBlock("span", {
|
|
39410
39789
|
key: 0,
|
|
39411
39790
|
innerHTML: compareValue(row)
|
|
39412
|
-
}, null, 8, _hoisted_3$
|
|
39791
|
+
}, null, 8, _hoisted_3$o)) : (_ctx.isLocaleString || _ctx.isAvgDay || _ctx.dateFormatter) && _ctx.prop ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
|
|
39413
39792
|
createTextVNode(toDisplayString(formatterText(row[_ctx.prop])), 1)
|
|
39414
39793
|
], 64)) : _ctx.prop ? (openBlock(), createElementBlock("span", {
|
|
39415
39794
|
key: 2,
|
|
39416
39795
|
innerHTML: row[_ctx.prop]
|
|
39417
|
-
}, null, 8, _hoisted_4$
|
|
39796
|
+
}, null, 8, _hoisted_4$f)) : createCommentVNode("", true)
|
|
39418
39797
|
])
|
|
39419
39798
|
], 64)) : !unref(tableGlobalData).isEdit && (!row.edit || !_ctx.isEdit) || !_ctx.prop ? (openBlock(), createElementBlock(Fragment$1, { key: 2 }, [
|
|
39420
39799
|
_ctx.type == "operate" ? (openBlock(), createBlock(_component_els_menu_dropdown, {
|
|
@@ -39439,7 +39818,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
39439
39818
|
column,
|
|
39440
39819
|
$index
|
|
39441
39820
|
}),
|
|
39442
|
-
_ctx.hasBottomBorder ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
39821
|
+
_ctx.hasBottomBorder ? (openBlock(), createElementBlock("div", _hoisted_5$e)) : createCommentVNode("", true)
|
|
39443
39822
|
], 64)) : renderSlot(_ctx.$slots, "default", {
|
|
39444
39823
|
key: 3,
|
|
39445
39824
|
row,
|
|
@@ -40231,25 +40610,25 @@ const tableProps = Object.assign({}, defaults_default, buildProps({
|
|
|
40231
40610
|
/** @description 导出事件 */
|
|
40232
40611
|
onExport: Function
|
|
40233
40612
|
}));
|
|
40234
|
-
const _hoisted_1$
|
|
40613
|
+
const _hoisted_1$1m = {
|
|
40235
40614
|
key: 0,
|
|
40236
40615
|
class: "select_container"
|
|
40237
40616
|
};
|
|
40238
|
-
const _hoisted_2$
|
|
40239
|
-
const _hoisted_3$
|
|
40240
|
-
const _hoisted_4$
|
|
40617
|
+
const _hoisted_2$v = { key: 0 };
|
|
40618
|
+
const _hoisted_3$n = ["innerHTML"];
|
|
40619
|
+
const _hoisted_4$e = {
|
|
40241
40620
|
key: 1,
|
|
40242
40621
|
class: "drag-oper"
|
|
40243
40622
|
};
|
|
40244
|
-
const _hoisted_5$
|
|
40623
|
+
const _hoisted_5$d = {
|
|
40245
40624
|
key: 0,
|
|
40246
40625
|
class: "els-bottom-scroll-fixed"
|
|
40247
40626
|
};
|
|
40248
|
-
const _hoisted_6$
|
|
40627
|
+
const _hoisted_6$b = {
|
|
40249
40628
|
key: 1,
|
|
40250
40629
|
style: { "margin-top": "8px" }
|
|
40251
40630
|
};
|
|
40252
|
-
const _hoisted_7$
|
|
40631
|
+
const _hoisted_7$9 = {
|
|
40253
40632
|
key: 2,
|
|
40254
40633
|
class: "pagination-container",
|
|
40255
40634
|
style: { "margin-top": "10px" }
|
|
@@ -41965,7 +42344,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
41965
42344
|
const _component_els_menu_context = resolveComponent("els-menu-context");
|
|
41966
42345
|
const _directive_loading = resolveDirective("loading");
|
|
41967
42346
|
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
41968
|
-
_ctx.showCheckField ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
42347
|
+
_ctx.showCheckField ? (openBlock(), createElementBlock("div", _hoisted_1$1m, [
|
|
41969
42348
|
createVNode(unref(draggable), {
|
|
41970
42349
|
list: unref(tableCheckData).checkRows,
|
|
41971
42350
|
"item-key": dataKey.value.toString(),
|
|
@@ -41979,7 +42358,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
41979
42358
|
}, {
|
|
41980
42359
|
default: withCtx(() => [
|
|
41981
42360
|
renderSlot(_ctx.$slots, "checklabel", { checkItem: element }, () => [
|
|
41982
|
-
_ctx.showCheckField ? (openBlock(), createElementBlock("span", _hoisted_2$
|
|
42361
|
+
_ctx.showCheckField ? (openBlock(), createElementBlock("span", _hoisted_2$v, toDisplayString(element[_ctx.showCheckField]), 1)) : createCommentVNode("", true)
|
|
41983
42362
|
], true)
|
|
41984
42363
|
]),
|
|
41985
42364
|
_: 2
|
|
@@ -42026,7 +42405,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
42026
42405
|
props2.columnRender ? (openBlock(), createElementBlock("div", {
|
|
42027
42406
|
key: 0,
|
|
42028
42407
|
innerHTML: props2.columnRender(row, column, $index)
|
|
42029
|
-
}, null, 8, _hoisted_3$
|
|
42408
|
+
}, null, 8, _hoisted_3$n)) : renderSlot(_ctx.$slots, column.slotName || column.prop, mergeProps({
|
|
42030
42409
|
key: 1,
|
|
42031
42410
|
ref_for: true
|
|
42032
42411
|
}, { row, $index }), void 0, true)
|
|
@@ -42079,7 +42458,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
42079
42458
|
]),
|
|
42080
42459
|
_: 2
|
|
42081
42460
|
}, 1032, ["onClick", "type"])
|
|
42082
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_4$
|
|
42461
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_4$e, [
|
|
42083
42462
|
createVNode(_component_el_tooltip, { content: "添加子节点" }, {
|
|
42084
42463
|
default: withCtx(() => [
|
|
42085
42464
|
row.children ? (openBlock(), createBlock(_component_el_icon, {
|
|
@@ -42134,7 +42513,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
42134
42513
|
target: "." + unref(tagID)
|
|
42135
42514
|
}, {
|
|
42136
42515
|
default: withCtx(() => [
|
|
42137
|
-
!unref(dataLoading) ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
42516
|
+
!unref(dataLoading) ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
|
|
42138
42517
|
createVNode(_component_el_scrollbar, {
|
|
42139
42518
|
ref_key: "bottomScroll",
|
|
42140
42519
|
ref: bottomScroll,
|
|
@@ -42155,7 +42534,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
42155
42534
|
]),
|
|
42156
42535
|
_: 3
|
|
42157
42536
|
}, 512)),
|
|
42158
|
-
_ctx.isEdit && _ctx.canAddRow ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
42537
|
+
_ctx.isEdit && _ctx.canAddRow ? (openBlock(), createElementBlock("div", _hoisted_6$b, [
|
|
42159
42538
|
createVNode(_component_el_button, {
|
|
42160
42539
|
type: "primary",
|
|
42161
42540
|
text: "",
|
|
@@ -42169,7 +42548,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
42169
42548
|
_: 1
|
|
42170
42549
|
})
|
|
42171
42550
|
])) : createCommentVNode("", true),
|
|
42172
|
-
_ctx.hasPage && (_ctx.isClientPage || unref(currPageTotal) > 0) ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
42551
|
+
_ctx.hasPage && (_ctx.isClientPage || unref(currPageTotal) > 0) ? (openBlock(), createElementBlock("div", _hoisted_7$9, [
|
|
42173
42552
|
createVNode(_component_el_pagination, mergeProps({
|
|
42174
42553
|
background: "",
|
|
42175
42554
|
small: "",
|
|
@@ -42683,7 +43062,7 @@ const menuEmits = {
|
|
|
42683
43062
|
click: (item) => {
|
|
42684
43063
|
}
|
|
42685
43064
|
};
|
|
42686
|
-
const _hoisted_1$
|
|
43065
|
+
const _hoisted_1$1l = {
|
|
42687
43066
|
key: 0,
|
|
42688
43067
|
class: "menu-filterable"
|
|
42689
43068
|
};
|
|
@@ -42920,7 +43299,7 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
|
42920
43299
|
default: withCtx(() => [
|
|
42921
43300
|
createVNode(_component_el_collapse_transition, null, {
|
|
42922
43301
|
default: withCtx(() => [
|
|
42923
|
-
_ctx.filterable && (_ctx.url || _ctx.data) ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
43302
|
+
_ctx.filterable && (_ctx.url || _ctx.data) ? (openBlock(), createElementBlock("span", _hoisted_1$1l, [
|
|
42924
43303
|
createVNode(_component_el_input, {
|
|
42925
43304
|
modelValue: searchKey.value,
|
|
42926
43305
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchKey.value = $event),
|
|
@@ -42963,9 +43342,9 @@ const menuItemProps = buildProps({
|
|
|
42963
43342
|
type: Object
|
|
42964
43343
|
}
|
|
42965
43344
|
});
|
|
42966
|
-
const _hoisted_1$
|
|
42967
|
-
const _hoisted_2$
|
|
42968
|
-
const _hoisted_3$
|
|
43345
|
+
const _hoisted_1$1k = ["title"];
|
|
43346
|
+
const _hoisted_2$u = ["title"];
|
|
43347
|
+
const _hoisted_3$m = ["title"];
|
|
42969
43348
|
const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
42970
43349
|
...{ name: "ElsMenuItem", inheritAttrs: false },
|
|
42971
43350
|
__name: "menuItem",
|
|
@@ -43001,7 +43380,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
43001
43380
|
_ctx.item.label ? (openBlock(), createElementBlock("span", {
|
|
43002
43381
|
key: 0,
|
|
43003
43382
|
title: _ctx.item.label
|
|
43004
|
-
}, toDisplayString(_ctx.item.label), 9, _hoisted_1$
|
|
43383
|
+
}, toDisplayString(_ctx.item.label), 9, _hoisted_1$1k)) : createCommentVNode("", true)
|
|
43005
43384
|
]),
|
|
43006
43385
|
default: withCtx(() => [
|
|
43007
43386
|
_ctx.item.icon ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {
|
|
@@ -43030,7 +43409,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
43030
43409
|
_ctx.item.label ? (openBlock(), createElementBlock("span", {
|
|
43031
43410
|
key: 0,
|
|
43032
43411
|
title: _ctx.item.label
|
|
43033
|
-
}, toDisplayString(_ctx.item.label), 9, _hoisted_2$
|
|
43412
|
+
}, toDisplayString(_ctx.item.label), 9, _hoisted_2$u)) : createCommentVNode("", true)
|
|
43034
43413
|
], 2)
|
|
43035
43414
|
]),
|
|
43036
43415
|
default: withCtx(() => [
|
|
@@ -43049,7 +43428,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
43049
43428
|
citem.label ? (openBlock(), createElementBlock("span", {
|
|
43050
43429
|
key: 0,
|
|
43051
43430
|
title: citem.label
|
|
43052
|
-
}, toDisplayString(citem.label), 9, _hoisted_3$
|
|
43431
|
+
}, toDisplayString(citem.label), 9, _hoisted_3$m)) : createCommentVNode("", true)
|
|
43053
43432
|
]),
|
|
43054
43433
|
default: withCtx(() => [
|
|
43055
43434
|
citem.icon ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {
|
|
@@ -43211,8 +43590,8 @@ const imageProps = buildProps({
|
|
|
43211
43590
|
*/
|
|
43212
43591
|
onSwitch: Function
|
|
43213
43592
|
});
|
|
43214
|
-
const _hoisted_1$
|
|
43215
|
-
const _hoisted_2$
|
|
43593
|
+
const _hoisted_1$1j = ["width"];
|
|
43594
|
+
const _hoisted_2$t = ["innerHTML"];
|
|
43216
43595
|
const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
43217
43596
|
...{ name: "ElsImage", inheritAttrs: false },
|
|
43218
43597
|
__name: "image",
|
|
@@ -43287,12 +43666,12 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
43287
43666
|
"data-spm-anchor-id": "a313x.7781069.0.i10",
|
|
43288
43667
|
class: "selected"
|
|
43289
43668
|
}, null, -1)
|
|
43290
|
-
])], 8, _hoisted_1$
|
|
43669
|
+
])], 8, _hoisted_1$1j)),
|
|
43291
43670
|
_ctx.emptyDesc ? (openBlock(), createElementBlock("div", {
|
|
43292
43671
|
key: 0,
|
|
43293
43672
|
innerHTML: _ctx.emptyDesc,
|
|
43294
43673
|
class: "els_image_empty_desc"
|
|
43295
|
-
}, null, 8, _hoisted_2$
|
|
43674
|
+
}, null, 8, _hoisted_2$t)) : createCommentVNode("", true)
|
|
43296
43675
|
], 4)) : (openBlock(true), createElementBlock(Fragment$1, { key: 1 }, renderList(thumbnailPicUrls.value, (item, index) => {
|
|
43297
43676
|
var _a2, _b2;
|
|
43298
43677
|
return openBlock(), createBlock(_component_el_image, mergeProps({ ref_for: true }, props2, {
|
|
@@ -43864,8 +44243,8 @@ const dialogProps = buildProps({
|
|
|
43864
44243
|
*/
|
|
43865
44244
|
cancel: Function
|
|
43866
44245
|
});
|
|
43867
|
-
const _hoisted_1$
|
|
43868
|
-
const _hoisted_2$
|
|
44246
|
+
const _hoisted_1$1i = ["src"];
|
|
44247
|
+
const _hoisted_2$s = ["src"];
|
|
43869
44248
|
const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
43870
44249
|
...{
|
|
43871
44250
|
name: "ElsDialog"
|
|
@@ -44015,7 +44394,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
44015
44394
|
src: dialogUrl.value.setPowerPublicQuery(),
|
|
44016
44395
|
frameborder: "0",
|
|
44017
44396
|
style: normalizeStyle(contentStyle.value)
|
|
44018
|
-
}, null, 12, _hoisted_1$
|
|
44397
|
+
}, null, 12, _hoisted_1$1i)) : createCommentVNode("", true)
|
|
44019
44398
|
])
|
|
44020
44399
|
], 4)), [
|
|
44021
44400
|
[_directive_loading, pageLoading.value]
|
|
@@ -44049,7 +44428,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
44049
44428
|
src: dialogUrl.value.setPowerPublicQuery(),
|
|
44050
44429
|
frameborder: "0",
|
|
44051
44430
|
style: normalizeStyle(contentStyle.value)
|
|
44052
|
-
}, null, 12, _hoisted_2$
|
|
44431
|
+
}, null, 12, _hoisted_2$s)) : createCommentVNode("", true)
|
|
44053
44432
|
])
|
|
44054
44433
|
], 4)), [
|
|
44055
44434
|
[_directive_loading, pageLoading.value]
|
|
@@ -44102,7 +44481,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
44102
44481
|
}
|
|
44103
44482
|
});
|
|
44104
44483
|
const ElsDialog = withInstall$1(_sfc_main$1P);
|
|
44105
|
-
const _hoisted_1$
|
|
44484
|
+
const _hoisted_1$1h = ["src"];
|
|
44106
44485
|
const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
44107
44486
|
...{
|
|
44108
44487
|
name: "ElsDrawer"
|
|
@@ -44205,7 +44584,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
44205
44584
|
src: drawerUrl.value,
|
|
44206
44585
|
frameborder: "0",
|
|
44207
44586
|
style: { "height": "calc(100vh - 48px)", "width": "100%" }
|
|
44208
|
-
}, null, 8, _hoisted_1$
|
|
44587
|
+
}, null, 8, _hoisted_1$1h)) : createCommentVNode("", true)
|
|
44209
44588
|
])
|
|
44210
44589
|
]),
|
|
44211
44590
|
_: 2
|
|
@@ -44327,9 +44706,9 @@ const dropdownProps = buildProps({
|
|
|
44327
44706
|
*/
|
|
44328
44707
|
placeholder: String
|
|
44329
44708
|
});
|
|
44330
|
-
const _hoisted_1$
|
|
44331
|
-
const _hoisted_2$
|
|
44332
|
-
const _hoisted_3$
|
|
44709
|
+
const _hoisted_1$1g = { class: "el-dropdown-link" };
|
|
44710
|
+
const _hoisted_2$r = ["innerHTML"];
|
|
44711
|
+
const _hoisted_3$l = ["innerHTML"];
|
|
44333
44712
|
const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
44334
44713
|
...{
|
|
44335
44714
|
name: "ElsDropdown"
|
|
@@ -44402,8 +44781,8 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
44402
44781
|
]),
|
|
44403
44782
|
default: withCtx(() => [
|
|
44404
44783
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
44405
|
-
createElementVNode("span", _hoisted_1$
|
|
44406
|
-
createElementVNode("span", { innerHTML: showTitle.value }, null, 8, _hoisted_2$
|
|
44784
|
+
createElementVNode("span", _hoisted_1$1g, [
|
|
44785
|
+
createElementVNode("span", { innerHTML: showTitle.value }, null, 8, _hoisted_2$r),
|
|
44407
44786
|
createVNode(_component_el_icon, { class: "el-icon--right" }, {
|
|
44408
44787
|
default: withCtx(() => [
|
|
44409
44788
|
createVNode(_component_arrow_down)
|
|
@@ -44430,7 +44809,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
44430
44809
|
name: "title",
|
|
44431
44810
|
fn: withCtx(() => [
|
|
44432
44811
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
44433
|
-
createElementVNode("span", { innerHTML: _ctx.title }, null, 8, _hoisted_3$
|
|
44812
|
+
createElementVNode("span", { innerHTML: _ctx.title }, null, 8, _hoisted_3$l)
|
|
44434
44813
|
])
|
|
44435
44814
|
]),
|
|
44436
44815
|
key: "0"
|
|
@@ -44439,7 +44818,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
|
44439
44818
|
};
|
|
44440
44819
|
}
|
|
44441
44820
|
});
|
|
44442
|
-
const _hoisted_1$
|
|
44821
|
+
const _hoisted_1$1f = {
|
|
44443
44822
|
key: 0,
|
|
44444
44823
|
class: "els-dropdown-group"
|
|
44445
44824
|
};
|
|
@@ -44459,7 +44838,7 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
44459
44838
|
});
|
|
44460
44839
|
return (_ctx, _cache) => {
|
|
44461
44840
|
const _component_van_dropdown_menu = resolveComponent("van-dropdown-menu");
|
|
44462
|
-
return !unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
44841
|
+
return !unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_1$1f, [
|
|
44463
44842
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
44464
44843
|
])) : (openBlock(), createBlock(_component_van_dropdown_menu, normalizeProps(mergeProps({ key: 1 }, unref(attrs))), {
|
|
44465
44844
|
default: withCtx(() => [
|
|
@@ -46503,7 +46882,7 @@ const tabsProps = buildProps({
|
|
|
46503
46882
|
default: "未知选项"
|
|
46504
46883
|
}
|
|
46505
46884
|
});
|
|
46506
|
-
const _hoisted_1$
|
|
46885
|
+
const _hoisted_1$1e = {
|
|
46507
46886
|
class: "els-node",
|
|
46508
46887
|
style: { "--margin-bottom": "0px" }
|
|
46509
46888
|
};
|
|
@@ -46528,7 +46907,7 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
46528
46907
|
return (_ctx, _cache) => {
|
|
46529
46908
|
const _component_els_option = resolveComponent("els-option");
|
|
46530
46909
|
const _component_el_tabs = resolveComponent("el-tabs");
|
|
46531
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
46910
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1e, [
|
|
46532
46911
|
createVNode(_component_el_tabs, mergeProps({
|
|
46533
46912
|
modelValue: unref(selectValue),
|
|
46534
46913
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(selectValue) ? selectValue.value = $event : null),
|
|
@@ -46790,8 +47169,8 @@ const menuContextProps = buildProps({
|
|
|
46790
47169
|
default: 120
|
|
46791
47170
|
}
|
|
46792
47171
|
});
|
|
46793
|
-
const _hoisted_1$
|
|
46794
|
-
const _hoisted_2$
|
|
47172
|
+
const _hoisted_1$1d = ["onClick"];
|
|
47173
|
+
const _hoisted_2$q = { class: "els-context-info" };
|
|
46795
47174
|
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
46796
47175
|
...{ name: "ElsMenuContext" },
|
|
46797
47176
|
__name: "menuContext",
|
|
@@ -46872,8 +47251,8 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
46872
47251
|
]),
|
|
46873
47252
|
_: 2
|
|
46874
47253
|
}, 1024)) : createCommentVNode("", true),
|
|
46875
|
-
createElementVNode("span", _hoisted_2$
|
|
46876
|
-
], 8, _hoisted_1$
|
|
47254
|
+
createElementVNode("span", _hoisted_2$q, toDisplayString(item[unref(nameFieldname)]), 1)
|
|
47255
|
+
], 8, _hoisted_1$1d);
|
|
46877
47256
|
}), 128))
|
|
46878
47257
|
], 6)), [
|
|
46879
47258
|
[vShow, modelValue.value]
|
|
@@ -46911,12 +47290,12 @@ const menuDropdownProps = buildProps({
|
|
|
46911
47290
|
*/
|
|
46912
47291
|
onClick: Function
|
|
46913
47292
|
});
|
|
46914
|
-
const _hoisted_1$
|
|
47293
|
+
const _hoisted_1$1c = {
|
|
46915
47294
|
key: 0,
|
|
46916
47295
|
class: "els-table-operate"
|
|
46917
47296
|
};
|
|
46918
|
-
const _hoisted_2$
|
|
46919
|
-
const _hoisted_3$
|
|
47297
|
+
const _hoisted_2$p = { class: "els-table-operate-link" };
|
|
47298
|
+
const _hoisted_3$k = ["onClick"];
|
|
46920
47299
|
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
46921
47300
|
...{ name: "ElsMenuDropdown" },
|
|
46922
47301
|
__name: "menuDropdown",
|
|
@@ -46968,7 +47347,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
46968
47347
|
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
46969
47348
|
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
46970
47349
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
46971
|
-
return unref(nameFieldname) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
47350
|
+
return unref(nameFieldname) ? (openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
46972
47351
|
unref(isMobile) ? (openBlock(), createBlock(_component_el_link, {
|
|
46973
47352
|
key: 0,
|
|
46974
47353
|
type: "primary",
|
|
@@ -47018,7 +47397,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
47018
47397
|
})
|
|
47019
47398
|
]),
|
|
47020
47399
|
default: withCtx(() => [
|
|
47021
|
-
createElementVNode("span", _hoisted_2$
|
|
47400
|
+
createElementVNode("span", _hoisted_2$p, [
|
|
47022
47401
|
createTextVNode(toDisplayString(_ctx.unFoldCount > 0 ? "更多操作" : "操作") + " ", 1),
|
|
47023
47402
|
createVNode(_component_el_icon, { class: "el-icon--right" }, {
|
|
47024
47403
|
default: withCtx(() => [
|
|
@@ -47058,7 +47437,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
47058
47437
|
class: "center",
|
|
47059
47438
|
onClick: ($event) => menuCommand(item),
|
|
47060
47439
|
style: { "line-height": "50px", "border-bottom": "1px solid #dcdcdc" }
|
|
47061
|
-
}, toDisplayString(item.MenuName), 9, _hoisted_3$
|
|
47440
|
+
}, toDisplayString(item.MenuName), 9, _hoisted_3$k);
|
|
47062
47441
|
}), 256))
|
|
47063
47442
|
]),
|
|
47064
47443
|
_: 1
|
|
@@ -47118,13 +47497,13 @@ const menuToolProps = buildProps({
|
|
|
47118
47497
|
*/
|
|
47119
47498
|
onUploaded: Function
|
|
47120
47499
|
});
|
|
47121
|
-
const _hoisted_1$
|
|
47122
|
-
const _hoisted_2$
|
|
47123
|
-
const _hoisted_3$
|
|
47500
|
+
const _hoisted_1$1b = { class: "els-tool-menu" };
|
|
47501
|
+
const _hoisted_2$o = { class: "els-tool-menu-button" };
|
|
47502
|
+
const _hoisted_3$j = {
|
|
47124
47503
|
key: 0,
|
|
47125
47504
|
class: "operationlog"
|
|
47126
47505
|
};
|
|
47127
|
-
const _hoisted_4$
|
|
47506
|
+
const _hoisted_4$d = { style: { "text-align": "center", "margin-top": "20px" } };
|
|
47128
47507
|
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
47129
47508
|
...{ name: "ElsMenuTool" },
|
|
47130
47509
|
__name: "menuTool",
|
|
@@ -47275,8 +47654,8 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
47275
47654
|
const _component_el_upload = resolveComponent("el-upload");
|
|
47276
47655
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
47277
47656
|
const _component_els_dialog = resolveComponent("els-dialog");
|
|
47278
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
47279
|
-
createElementVNode("div", _hoisted_2$
|
|
47657
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
47658
|
+
createElementVNode("div", _hoisted_2$o, [
|
|
47280
47659
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(menuData, (menu) => {
|
|
47281
47660
|
return openBlock(), createBlock(_component_el_button, mergeProps({
|
|
47282
47661
|
type: unref(colorFieldname) && menu[unref(colorFieldname)],
|
|
@@ -47379,7 +47758,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
47379
47758
|
]), 1040, ["type", "icon", "native-type", "loading", "onClick"]);
|
|
47380
47759
|
}), 128))
|
|
47381
47760
|
]),
|
|
47382
|
-
_ctx.mutiSaveUrl || _ctx.logUrl || _ctx.docUrl || _ctx.noteUrl ? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
47761
|
+
_ctx.mutiSaveUrl || _ctx.logUrl || _ctx.docUrl || _ctx.noteUrl ? (openBlock(), createElementBlock("div", _hoisted_3$j, [
|
|
47383
47762
|
_ctx.mutiSaveUrl && !isTableEdit.value ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
47384
47763
|
key: 0,
|
|
47385
47764
|
placement: "bottom-end",
|
|
@@ -47503,7 +47882,7 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
47503
47882
|
])]),
|
|
47504
47883
|
_: 1
|
|
47505
47884
|
}, 8, ["href"])),
|
|
47506
|
-
createElementVNode("div", _hoisted_4$
|
|
47885
|
+
createElementVNode("div", _hoisted_4$d, [
|
|
47507
47886
|
createVNode(_component_el_upload, {
|
|
47508
47887
|
multiple: "",
|
|
47509
47888
|
drag: "",
|
|
@@ -47605,11 +47984,11 @@ const captionProps = buildProps({
|
|
|
47605
47984
|
default: "150px"
|
|
47606
47985
|
}
|
|
47607
47986
|
});
|
|
47608
|
-
const _hoisted_1$
|
|
47987
|
+
const _hoisted_1$1a = {
|
|
47609
47988
|
key: 0,
|
|
47610
47989
|
class: "els-caption-sub-header"
|
|
47611
47990
|
};
|
|
47612
|
-
const _hoisted_2$
|
|
47991
|
+
const _hoisted_2$n = { class: "els-caption-title" };
|
|
47613
47992
|
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
47614
47993
|
...{ name: "ElsCaption" },
|
|
47615
47994
|
__name: "caption",
|
|
@@ -47658,10 +48037,10 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
47658
48037
|
key: 0,
|
|
47659
48038
|
class: normalizeClass(["els-caption", { "els-left-caption": _ctx.type == "left" }])
|
|
47660
48039
|
}, [
|
|
47661
|
-
_ctx.type == "left" ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
48040
|
+
_ctx.type == "left" ? (openBlock(), createElementBlock("span", _hoisted_1$1a, [..._cache[2] || (_cache[2] = [
|
|
47662
48041
|
createElementVNode("i", { class: "dec" }, null, -1)
|
|
47663
48042
|
])])) : createCommentVNode("", true),
|
|
47664
|
-
createElementVNode("span", _hoisted_2$
|
|
48043
|
+
createElementVNode("span", _hoisted_2$n, [
|
|
47665
48044
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
47666
48045
|
createTextVNode(toDisplayString(modelValue.value || _ctx.title), 1)
|
|
47667
48046
|
], true),
|
|
@@ -47706,6 +48085,330 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
47706
48085
|
});
|
|
47707
48086
|
const Caption = /* @__PURE__ */ _export_sfc$1(_sfc_main$1w, [["__scopeId", "data-v-72cb8719"]]);
|
|
47708
48087
|
const ElsCaption = withInstall$1(Caption);
|
|
48088
|
+
const requestFormProps = buildProps({
|
|
48089
|
+
/**
|
|
48090
|
+
* @description 绑定值,子组件的字段值会自动聚合到此对象
|
|
48091
|
+
*/
|
|
48092
|
+
modelValue: {
|
|
48093
|
+
type: Object,
|
|
48094
|
+
default: () => ({})
|
|
48095
|
+
},
|
|
48096
|
+
/**
|
|
48097
|
+
* @description 请求地址
|
|
48098
|
+
*/
|
|
48099
|
+
requestUrl: String,
|
|
48100
|
+
/**
|
|
48101
|
+
* @description 请求方式 GET|POST|SSE
|
|
48102
|
+
*/
|
|
48103
|
+
requestMethod: {
|
|
48104
|
+
type: String,
|
|
48105
|
+
default: "POST"
|
|
48106
|
+
},
|
|
48107
|
+
/**
|
|
48108
|
+
* @description 提交按钮文本
|
|
48109
|
+
*/
|
|
48110
|
+
submitLabel: {
|
|
48111
|
+
type: String,
|
|
48112
|
+
default: "提交"
|
|
48113
|
+
},
|
|
48114
|
+
/**
|
|
48115
|
+
* @description 返回值结构定义(仅供设计器字段选择器使用,不影响实际请求逻辑)
|
|
48116
|
+
*/
|
|
48117
|
+
returnSchema: String,
|
|
48118
|
+
/**
|
|
48119
|
+
* @description 节点自身的字段标识,由渲染层自动传入。设置时返回数据整体挂载到 globalData[keyCode] 下,未设置则扁平合并到 globalData 根节点
|
|
48120
|
+
*/
|
|
48121
|
+
keyCode: String
|
|
48122
|
+
});
|
|
48123
|
+
const _hoisted_1$19 = { class: "els-request-form__meta" };
|
|
48124
|
+
const _hoisted_2$m = { class: "els-request-form__method" };
|
|
48125
|
+
const _hoisted_3$i = ["title"];
|
|
48126
|
+
const _hoisted_4$c = {
|
|
48127
|
+
key: 0,
|
|
48128
|
+
class: "els-request-form__result"
|
|
48129
|
+
};
|
|
48130
|
+
const _hoisted_5$c = { class: "els-request-form__result-header" };
|
|
48131
|
+
const _hoisted_6$a = { class: "els-request-form__result-title" };
|
|
48132
|
+
const _hoisted_7$8 = {
|
|
48133
|
+
key: 1,
|
|
48134
|
+
class: "els-request-form__result-time"
|
|
48135
|
+
};
|
|
48136
|
+
const _hoisted_8$7 = { class: "els-request-form__result-actions" };
|
|
48137
|
+
const _hoisted_9$6 = { class: "els-request-form__result-body" };
|
|
48138
|
+
const _hoisted_10$4 = {
|
|
48139
|
+
key: 0,
|
|
48140
|
+
class: "els-request-form__result-code"
|
|
48141
|
+
};
|
|
48142
|
+
const _hoisted_11$4 = { class: "els-request-form__footer" };
|
|
48143
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
48144
|
+
...{ name: "ElsRequestForm" },
|
|
48145
|
+
__name: "requestForm",
|
|
48146
|
+
props: /* @__PURE__ */ mergeModels(requestFormProps, {
|
|
48147
|
+
"modelValue": { default: () => ({}) },
|
|
48148
|
+
"modelModifiers": {}
|
|
48149
|
+
}),
|
|
48150
|
+
emits: /* @__PURE__ */ mergeModels(["success", "error"], ["update:modelValue"]),
|
|
48151
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
48152
|
+
const props2 = __props;
|
|
48153
|
+
const emit = __emit;
|
|
48154
|
+
const { getValue: getValue2 } = useProps();
|
|
48155
|
+
const getGlobalData = getValue2("getGlobalData", () => ({}));
|
|
48156
|
+
const { $codeField, $messageField, $dataField, $success } = utils.getApiConfig();
|
|
48157
|
+
const modelValue = useModel$1(__props, "modelValue");
|
|
48158
|
+
const loading = ref(false);
|
|
48159
|
+
const sseAbort = ref(null);
|
|
48160
|
+
const resultVisible = ref(false);
|
|
48161
|
+
const resultExpanded = ref(true);
|
|
48162
|
+
const resultStatus = ref("");
|
|
48163
|
+
const resultData = ref(void 0);
|
|
48164
|
+
const resultTime = ref("");
|
|
48165
|
+
const methodTheme = computed(() => {
|
|
48166
|
+
const map2 = { GET: "success", POST: "primary", SSE: "warning" };
|
|
48167
|
+
return map2[props2.requestMethod] || "primary";
|
|
48168
|
+
});
|
|
48169
|
+
function applyResult(data) {
|
|
48170
|
+
const globalData = getGlobalData();
|
|
48171
|
+
if (!globalData || data === void 0 || data === null) return;
|
|
48172
|
+
if (props2.keyCode) {
|
|
48173
|
+
globalData[props2.keyCode] = data;
|
|
48174
|
+
} else if (typeof data === "object") {
|
|
48175
|
+
Object.assign(globalData, data);
|
|
48176
|
+
}
|
|
48177
|
+
}
|
|
48178
|
+
function formatResult(data) {
|
|
48179
|
+
if (data === void 0) return "";
|
|
48180
|
+
if (typeof data === "string") return data;
|
|
48181
|
+
try {
|
|
48182
|
+
return JSON.stringify(data, null, 2);
|
|
48183
|
+
} catch {
|
|
48184
|
+
return String(data);
|
|
48185
|
+
}
|
|
48186
|
+
}
|
|
48187
|
+
const resultText = computed(() => formatResult(resultData.value));
|
|
48188
|
+
const hasResult = computed(() => resultData.value !== void 0);
|
|
48189
|
+
const resultTitle = computed(() => {
|
|
48190
|
+
if (!hasResult.value) return "暂无结果";
|
|
48191
|
+
return resultStatus.value === "error" ? "请求异常" : "请求结果";
|
|
48192
|
+
});
|
|
48193
|
+
function setResult(data, status = "success", append2 = false) {
|
|
48194
|
+
if (append2) {
|
|
48195
|
+
const list = Array.isArray(resultData.value) ? resultData.value : resultData.value === void 0 ? [] : [resultData.value];
|
|
48196
|
+
resultData.value = [...list, data];
|
|
48197
|
+
} else {
|
|
48198
|
+
resultData.value = data;
|
|
48199
|
+
}
|
|
48200
|
+
resultStatus.value = status;
|
|
48201
|
+
resultTime.value = (/* @__PURE__ */ new Date()).toLocaleString();
|
|
48202
|
+
resultVisible.value = true;
|
|
48203
|
+
resultExpanded.value = true;
|
|
48204
|
+
}
|
|
48205
|
+
function clearResult() {
|
|
48206
|
+
resultData.value = void 0;
|
|
48207
|
+
resultStatus.value = "";
|
|
48208
|
+
resultTime.value = "";
|
|
48209
|
+
resultVisible.value = false;
|
|
48210
|
+
}
|
|
48211
|
+
function copyResult() {
|
|
48212
|
+
if (!resultText.value) return;
|
|
48213
|
+
utils.clip(resultText.value);
|
|
48214
|
+
}
|
|
48215
|
+
function handleResponse(res) {
|
|
48216
|
+
const append2 = props2.requestMethod === "SSE";
|
|
48217
|
+
if (res && res[$codeField] !== void 0) {
|
|
48218
|
+
if (res[$codeField] != $success) {
|
|
48219
|
+
ProxyElsMessage.error(res[$messageField]);
|
|
48220
|
+
setResult(res, "error", append2);
|
|
48221
|
+
emit("error", res);
|
|
48222
|
+
return;
|
|
48223
|
+
}
|
|
48224
|
+
const data = res[$dataField];
|
|
48225
|
+
applyResult(data);
|
|
48226
|
+
setResult(res, "success", append2);
|
|
48227
|
+
emit("success", data);
|
|
48228
|
+
return;
|
|
48229
|
+
}
|
|
48230
|
+
applyResult(res);
|
|
48231
|
+
setResult(res, "success", append2);
|
|
48232
|
+
emit("success", res);
|
|
48233
|
+
}
|
|
48234
|
+
function extractErrorMessage(err) {
|
|
48235
|
+
var _a, _b, _c;
|
|
48236
|
+
return ((_a = err == null ? void 0 : err.data) == null ? void 0 : _a[$messageField]) || ((_c = (_b = err == null ? void 0 : err.response) == null ? void 0 : _b.data) == null ? void 0 : _c[$messageField]) || (err == null ? void 0 : err.message) || "请求失败";
|
|
48237
|
+
}
|
|
48238
|
+
function normalizeError(err) {
|
|
48239
|
+
var _a;
|
|
48240
|
+
return ((_a = err == null ? void 0 : err.response) == null ? void 0 : _a.data) || (err == null ? void 0 : err.data) || {
|
|
48241
|
+
message: extractErrorMessage(err)
|
|
48242
|
+
};
|
|
48243
|
+
}
|
|
48244
|
+
async function handleSubmit() {
|
|
48245
|
+
if (loading.value || !props2.requestUrl) return;
|
|
48246
|
+
loading.value = true;
|
|
48247
|
+
clearResult();
|
|
48248
|
+
const params = { ...modelValue.value || {} };
|
|
48249
|
+
try {
|
|
48250
|
+
if (props2.requestMethod === "GET") {
|
|
48251
|
+
const res = await utils.get(props2.requestUrl, params);
|
|
48252
|
+
handleResponse(res);
|
|
48253
|
+
} else if (props2.requestMethod === "SSE") {
|
|
48254
|
+
await new Promise((resolve2, reject) => {
|
|
48255
|
+
const { abort, promise } = utils.fetchSSE(props2.requestUrl, (message, isDone) => {
|
|
48256
|
+
if (isDone || !message) return;
|
|
48257
|
+
try {
|
|
48258
|
+
handleResponse(JSON.parse(message));
|
|
48259
|
+
} catch {
|
|
48260
|
+
handleResponse(message);
|
|
48261
|
+
}
|
|
48262
|
+
}, params);
|
|
48263
|
+
sseAbort.value = abort;
|
|
48264
|
+
promise.then(resolve2).catch(reject);
|
|
48265
|
+
});
|
|
48266
|
+
} else {
|
|
48267
|
+
const res = await utils.post(props2.requestUrl, params);
|
|
48268
|
+
handleResponse(res);
|
|
48269
|
+
}
|
|
48270
|
+
} catch (err) {
|
|
48271
|
+
ProxyElsMessage.error(extractErrorMessage(err));
|
|
48272
|
+
setResult(normalizeError(err), "error");
|
|
48273
|
+
emit("error", err);
|
|
48274
|
+
} finally {
|
|
48275
|
+
loading.value = false;
|
|
48276
|
+
sseAbort.value = null;
|
|
48277
|
+
}
|
|
48278
|
+
}
|
|
48279
|
+
function handleAbort() {
|
|
48280
|
+
var _a;
|
|
48281
|
+
(_a = sseAbort.value) == null ? void 0 : _a.call(sseAbort);
|
|
48282
|
+
}
|
|
48283
|
+
__expose({ submit: handleSubmit, abort: handleAbort });
|
|
48284
|
+
return (_ctx, _cache) => {
|
|
48285
|
+
const _component_el_form = resolveComponent("el-form");
|
|
48286
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
48287
|
+
const _component_el_tag = resolveComponent("el-tag");
|
|
48288
|
+
const _component_el_button = resolveComponent("el-button");
|
|
48289
|
+
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
48290
|
+
const _component_el_empty = resolveComponent("el-empty");
|
|
48291
|
+
return openBlock(), createElementBlock("div", {
|
|
48292
|
+
class: normalizeClass(["els-request-form", [`els-request-form--${methodTheme.value}`, { "is-loading": loading.value }]])
|
|
48293
|
+
}, [
|
|
48294
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "els-request-form__accent" }, null, -1)),
|
|
48295
|
+
createElementVNode("div", _hoisted_1$19, [
|
|
48296
|
+
createElementVNode("span", _hoisted_2$m, toDisplayString(_ctx.requestMethod), 1),
|
|
48297
|
+
createElementVNode("span", {
|
|
48298
|
+
class: "els-request-form__url",
|
|
48299
|
+
title: _ctx.requestUrl
|
|
48300
|
+
}, toDisplayString(_ctx.requestUrl || "未配置接口地址"), 9, _hoisted_3$i)
|
|
48301
|
+
]),
|
|
48302
|
+
createVNode(_component_el_form, {
|
|
48303
|
+
model: modelValue.value,
|
|
48304
|
+
class: "els-request-form__body"
|
|
48305
|
+
}, {
|
|
48306
|
+
default: withCtx(() => [
|
|
48307
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
48308
|
+
]),
|
|
48309
|
+
_: 3
|
|
48310
|
+
}, 8, ["model"]),
|
|
48311
|
+
resultVisible.value || loading.value ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
48312
|
+
createElementVNode("div", _hoisted_5$c, [
|
|
48313
|
+
createElementVNode("div", _hoisted_6$a, [
|
|
48314
|
+
createVNode(_component_el_icon, null, {
|
|
48315
|
+
default: withCtx(() => [
|
|
48316
|
+
createVNode(unref(view_default))
|
|
48317
|
+
]),
|
|
48318
|
+
_: 1
|
|
48319
|
+
}),
|
|
48320
|
+
createElementVNode("span", null, toDisplayString(resultTitle.value), 1),
|
|
48321
|
+
resultStatus.value ? (openBlock(), createBlock(_component_el_tag, {
|
|
48322
|
+
key: 0,
|
|
48323
|
+
type: resultStatus.value === "error" ? "danger" : "success",
|
|
48324
|
+
size: "small",
|
|
48325
|
+
effect: "light"
|
|
48326
|
+
}, {
|
|
48327
|
+
default: withCtx(() => [
|
|
48328
|
+
createTextVNode(toDisplayString(resultStatus.value === "error" ? "失败" : "成功"), 1)
|
|
48329
|
+
]),
|
|
48330
|
+
_: 1
|
|
48331
|
+
}, 8, ["type"])) : createCommentVNode("", true),
|
|
48332
|
+
resultTime.value ? (openBlock(), createElementBlock("span", _hoisted_7$8, toDisplayString(resultTime.value), 1)) : createCommentVNode("", true)
|
|
48333
|
+
]),
|
|
48334
|
+
createElementVNode("div", _hoisted_8$7, [
|
|
48335
|
+
createVNode(_component_el_tooltip, {
|
|
48336
|
+
content: "复制结果",
|
|
48337
|
+
placement: "top"
|
|
48338
|
+
}, {
|
|
48339
|
+
default: withCtx(() => [
|
|
48340
|
+
createVNode(_component_el_button, {
|
|
48341
|
+
text: "",
|
|
48342
|
+
icon: unref(copy_document_default),
|
|
48343
|
+
disabled: !hasResult.value,
|
|
48344
|
+
onClick: copyResult
|
|
48345
|
+
}, null, 8, ["icon", "disabled"])
|
|
48346
|
+
]),
|
|
48347
|
+
_: 1
|
|
48348
|
+
}),
|
|
48349
|
+
createVNode(_component_el_tooltip, {
|
|
48350
|
+
content: "清空结果",
|
|
48351
|
+
placement: "top"
|
|
48352
|
+
}, {
|
|
48353
|
+
default: withCtx(() => [
|
|
48354
|
+
createVNode(_component_el_button, {
|
|
48355
|
+
text: "",
|
|
48356
|
+
icon: unref(delete_default),
|
|
48357
|
+
disabled: !hasResult.value && !loading.value,
|
|
48358
|
+
onClick: clearResult
|
|
48359
|
+
}, null, 8, ["icon", "disabled"])
|
|
48360
|
+
]),
|
|
48361
|
+
_: 1
|
|
48362
|
+
}),
|
|
48363
|
+
createVNode(_component_el_tooltip, {
|
|
48364
|
+
content: resultExpanded.value ? "收起结果" : "展开结果",
|
|
48365
|
+
placement: "top"
|
|
48366
|
+
}, {
|
|
48367
|
+
default: withCtx(() => [
|
|
48368
|
+
createVNode(_component_el_button, {
|
|
48369
|
+
text: "",
|
|
48370
|
+
icon: resultExpanded.value ? unref(arrow_up_default) : unref(arrow_down_default),
|
|
48371
|
+
onClick: _cache[0] || (_cache[0] = ($event) => resultExpanded.value = !resultExpanded.value)
|
|
48372
|
+
}, null, 8, ["icon"])
|
|
48373
|
+
]),
|
|
48374
|
+
_: 1
|
|
48375
|
+
}, 8, ["content"])
|
|
48376
|
+
])
|
|
48377
|
+
]),
|
|
48378
|
+
withDirectives(createElementVNode("div", _hoisted_9$6, [
|
|
48379
|
+
hasResult.value ? (openBlock(), createElementBlock("pre", _hoisted_10$4, toDisplayString(resultText.value), 1)) : loading.value ? (openBlock(), createBlock(_component_el_empty, {
|
|
48380
|
+
key: 1,
|
|
48381
|
+
description: "请求中...",
|
|
48382
|
+
"image-size": 72
|
|
48383
|
+
})) : (openBlock(), createBlock(_component_el_empty, {
|
|
48384
|
+
key: 2,
|
|
48385
|
+
description: "暂无结果",
|
|
48386
|
+
"image-size": 72
|
|
48387
|
+
}))
|
|
48388
|
+
], 512), [
|
|
48389
|
+
[vShow, resultExpanded.value]
|
|
48390
|
+
])
|
|
48391
|
+
])) : createCommentVNode("", true),
|
|
48392
|
+
createElementVNode("div", _hoisted_11$4, [
|
|
48393
|
+
createVNode(_component_el_button, {
|
|
48394
|
+
type: "primary",
|
|
48395
|
+
class: "els-request-form__submit",
|
|
48396
|
+
disabled: !_ctx.requestUrl,
|
|
48397
|
+
loading: loading.value,
|
|
48398
|
+
onClick: handleSubmit
|
|
48399
|
+
}, {
|
|
48400
|
+
default: withCtx(() => [
|
|
48401
|
+
createTextVNode(toDisplayString(_ctx.submitLabel || "提交"), 1)
|
|
48402
|
+
]),
|
|
48403
|
+
_: 1
|
|
48404
|
+
}, 8, ["disabled", "loading"])
|
|
48405
|
+
])
|
|
48406
|
+
], 2);
|
|
48407
|
+
};
|
|
48408
|
+
}
|
|
48409
|
+
});
|
|
48410
|
+
const RequestForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$1v, [["__scopeId", "data-v-22a202b2"]]);
|
|
48411
|
+
const ElsRequestForm = withInstall$1(RequestForm);
|
|
47709
48412
|
const dataModalProps = buildProps({
|
|
47710
48413
|
...formItemProps$1,
|
|
47711
48414
|
/**
|
|
@@ -48021,7 +48724,7 @@ let DataModal$1 = class DataModal extends TBaseFormItem {
|
|
|
48021
48724
|
})]);
|
|
48022
48725
|
}
|
|
48023
48726
|
};
|
|
48024
|
-
const _sfc_main$
|
|
48727
|
+
const _sfc_main$1u = defineComponent({
|
|
48025
48728
|
name: "ElsDataModal",
|
|
48026
48729
|
inheritAttrs: false,
|
|
48027
48730
|
props: dataModalProps,
|
|
@@ -48031,9 +48734,9 @@ const _sfc_main$1v = defineComponent({
|
|
|
48031
48734
|
},
|
|
48032
48735
|
emits: ["update:select", "update:modelValue", "update:select-label"]
|
|
48033
48736
|
});
|
|
48034
|
-
const DataModal2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
48737
|
+
const DataModal2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$1u, [["__scopeId", "data-v-68c1b3ab"]]);
|
|
48035
48738
|
const ElsDataModal = withInstall$1(DataModal2);
|
|
48036
|
-
const _sfc_main$
|
|
48739
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
48037
48740
|
...{ name: "ElsButtonSelect" },
|
|
48038
48741
|
__name: "buttonSelect",
|
|
48039
48742
|
props: {
|
|
@@ -48075,8 +48778,8 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
48075
48778
|
};
|
|
48076
48779
|
}
|
|
48077
48780
|
});
|
|
48078
|
-
const ElsButtonSelect = withInstall$1(_sfc_main$
|
|
48079
|
-
const _sfc_main$
|
|
48781
|
+
const ElsButtonSelect = withInstall$1(_sfc_main$1t);
|
|
48782
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
48080
48783
|
...{ name: "ElsButtonSearch" },
|
|
48081
48784
|
__name: "buttonSearch",
|
|
48082
48785
|
emits: ["click"],
|
|
@@ -48122,8 +48825,8 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
48122
48825
|
};
|
|
48123
48826
|
}
|
|
48124
48827
|
});
|
|
48125
|
-
const ElsButtonSearch = withInstall$1(_sfc_main$
|
|
48126
|
-
const _sfc_main$
|
|
48828
|
+
const ElsButtonSearch = withInstall$1(_sfc_main$1s);
|
|
48829
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
48127
48830
|
...{ name: "ElsButtonExport" },
|
|
48128
48831
|
__name: "buttonExport",
|
|
48129
48832
|
props: {
|
|
@@ -48169,7 +48872,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
48169
48872
|
};
|
|
48170
48873
|
}
|
|
48171
48874
|
});
|
|
48172
|
-
const ElsButtonExport = withInstall$1(_sfc_main$
|
|
48875
|
+
const ElsButtonExport = withInstall$1(_sfc_main$1r);
|
|
48173
48876
|
const listProps = buildProps({
|
|
48174
48877
|
/**
|
|
48175
48878
|
* @description 绑定的列表数据
|
|
@@ -48288,7 +48991,7 @@ const _hoisted_5$b = {
|
|
|
48288
48991
|
};
|
|
48289
48992
|
const _hoisted_6$9 = { class: "els-list-index" };
|
|
48290
48993
|
const _hoisted_7$7 = { class: "els-list-handle" };
|
|
48291
|
-
const _sfc_main$
|
|
48994
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
48292
48995
|
...{ name: "ElsList", inheritAttrs: false },
|
|
48293
48996
|
__name: "list",
|
|
48294
48997
|
props: /* @__PURE__ */ mergeModels(listProps, {
|
|
@@ -48692,10 +49395,10 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
48692
49395
|
};
|
|
48693
49396
|
}
|
|
48694
49397
|
});
|
|
48695
|
-
const List = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
49398
|
+
const List = /* @__PURE__ */ _export_sfc$1(_sfc_main$1q, [["__scopeId", "data-v-daf08a14"]]);
|
|
48696
49399
|
const ElsList = withInstall$1(List);
|
|
48697
49400
|
const _hoisted_1$17 = { class: "custom-block-title" };
|
|
48698
|
-
const _sfc_main$
|
|
49401
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
48699
49402
|
...{ name: "ElsTip" },
|
|
48700
49403
|
__name: "tip",
|
|
48701
49404
|
props: {
|
|
@@ -48720,7 +49423,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
48720
49423
|
};
|
|
48721
49424
|
}
|
|
48722
49425
|
});
|
|
48723
|
-
const Tip = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
49426
|
+
const Tip = /* @__PURE__ */ _export_sfc$1(_sfc_main$1p, [["__scopeId", "data-v-c950eb09"]]);
|
|
48724
49427
|
const tipProps = buildProps({
|
|
48725
49428
|
/**
|
|
48726
49429
|
* @description 标题
|
|
@@ -48836,7 +49539,7 @@ let InputTag$1 = class InputTag extends TBaseFormItem {
|
|
|
48836
49539
|
})])]);
|
|
48837
49540
|
}
|
|
48838
49541
|
};
|
|
48839
|
-
const _sfc_main$
|
|
49542
|
+
const _sfc_main$1o = defineComponent({
|
|
48840
49543
|
name: "ElsInputTag",
|
|
48841
49544
|
inheritAttrs: false,
|
|
48842
49545
|
props: inputTagProps,
|
|
@@ -48845,7 +49548,7 @@ const _sfc_main$1p = defineComponent({
|
|
|
48845
49548
|
return () => sw.render();
|
|
48846
49549
|
}
|
|
48847
49550
|
});
|
|
48848
|
-
const InputTag2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
49551
|
+
const InputTag2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$1o, [["__scopeId", "data-v-c1f0387c"]]);
|
|
48849
49552
|
const ElsInputTag = withInstall$1(InputTag2);
|
|
48850
49553
|
const property_input = [
|
|
48851
49554
|
{
|
|
@@ -71305,6 +72008,356 @@ const property_cascader = [
|
|
|
71305
72008
|
}
|
|
71306
72009
|
}
|
|
71307
72010
|
];
|
|
72011
|
+
const property_requestForm = [
|
|
72012
|
+
{
|
|
72013
|
+
"keyID": "rf_root",
|
|
72014
|
+
"keyName": "Form",
|
|
72015
|
+
"keyCode": "rf_root_code",
|
|
72016
|
+
"children": [
|
|
72017
|
+
{
|
|
72018
|
+
"keyID": "rf_row_url",
|
|
72019
|
+
"keyName": "栅格行",
|
|
72020
|
+
"keyCode": "rf_row_url_code",
|
|
72021
|
+
"children": [
|
|
72022
|
+
{
|
|
72023
|
+
"keyID": "rf_requestUrl",
|
|
72024
|
+
"keyName": "请求地址",
|
|
72025
|
+
"keyCode": "requestUrl",
|
|
72026
|
+
"children": [],
|
|
72027
|
+
"dataType": "String",
|
|
72028
|
+
"arrayDataType": "",
|
|
72029
|
+
"componentTypeLabel": "表达式输入框",
|
|
72030
|
+
"componentType": "ExpressionInput",
|
|
72031
|
+
"formItem": true,
|
|
72032
|
+
"config": {
|
|
72033
|
+
"arrayConfig": {},
|
|
72034
|
+
"baseConfig": {
|
|
72035
|
+
"width": "",
|
|
72036
|
+
"placeholder": "请输入请求地址,如 /api/user/info"
|
|
72037
|
+
},
|
|
72038
|
+
"formConfig": {
|
|
72039
|
+
"labelWidth": "",
|
|
72040
|
+
"tip": "",
|
|
72041
|
+
"tipPosition": "left",
|
|
72042
|
+
"suffixContent": "",
|
|
72043
|
+
"required": false,
|
|
72044
|
+
"requiredMessage": "",
|
|
72045
|
+
"validType": "",
|
|
72046
|
+
"validExpression": "",
|
|
72047
|
+
"validMessage": "",
|
|
72048
|
+
"validMethod": ""
|
|
72049
|
+
},
|
|
72050
|
+
"advancedConfig": {
|
|
72051
|
+
"style": "",
|
|
72052
|
+
"vif": "",
|
|
72053
|
+
"disabled": "",
|
|
72054
|
+
"eventChange": ""
|
|
72055
|
+
}
|
|
72056
|
+
}
|
|
72057
|
+
}
|
|
72058
|
+
],
|
|
72059
|
+
"dataType": "None",
|
|
72060
|
+
"arrayDataType": "",
|
|
72061
|
+
"componentTypeLabel": "栅格行",
|
|
72062
|
+
"componentType": "Row",
|
|
72063
|
+
"formItem": false,
|
|
72064
|
+
"config": {
|
|
72065
|
+
"formConfig": {},
|
|
72066
|
+
"baseConfig": { "gutter": 10, "justify": "", "align": "", "tag": "div" },
|
|
72067
|
+
"advancedConfig": { "style": "", "vif": "", "disabled": "", "eventChange": "" },
|
|
72068
|
+
"arrayConfig": {}
|
|
72069
|
+
}
|
|
72070
|
+
},
|
|
72071
|
+
{
|
|
72072
|
+
"keyID": "rf_row_method",
|
|
72073
|
+
"keyName": "栅格行",
|
|
72074
|
+
"keyCode": "rf_row_method_code",
|
|
72075
|
+
"children": [
|
|
72076
|
+
{
|
|
72077
|
+
"keyID": "rf_requestMethod",
|
|
72078
|
+
"keyName": "请求方式",
|
|
72079
|
+
"keyCode": "requestMethod",
|
|
72080
|
+
"children": [],
|
|
72081
|
+
"dataType": "String",
|
|
72082
|
+
"componentType": "Radio",
|
|
72083
|
+
"defaultValue": "POST",
|
|
72084
|
+
"config": {
|
|
72085
|
+
"arrayConfig": {},
|
|
72086
|
+
"baseConfig": {
|
|
72087
|
+
"type": "button",
|
|
72088
|
+
"dataType": 1,
|
|
72089
|
+
"data": [
|
|
72090
|
+
{ "label": "GET", "value": "GET" },
|
|
72091
|
+
{ "label": "POST", "value": "POST" },
|
|
72092
|
+
{ "label": "SSE", "value": "SSE" }
|
|
72093
|
+
]
|
|
72094
|
+
},
|
|
72095
|
+
"formConfig": {
|
|
72096
|
+
"labelWidth": "",
|
|
72097
|
+
"tip": "",
|
|
72098
|
+
"tipPosition": "left",
|
|
72099
|
+
"suffixContent": "",
|
|
72100
|
+
"required": false,
|
|
72101
|
+
"requiredMessage": "",
|
|
72102
|
+
"validType": "",
|
|
72103
|
+
"validExpression": "",
|
|
72104
|
+
"validMessage": "",
|
|
72105
|
+
"validMethod": ""
|
|
72106
|
+
},
|
|
72107
|
+
"advancedConfig": {
|
|
72108
|
+
"style": "",
|
|
72109
|
+
"vif": "",
|
|
72110
|
+
"disabled": "",
|
|
72111
|
+
"eventChange": ""
|
|
72112
|
+
}
|
|
72113
|
+
},
|
|
72114
|
+
"formItem": true
|
|
72115
|
+
}
|
|
72116
|
+
],
|
|
72117
|
+
"dataType": "None",
|
|
72118
|
+
"arrayDataType": "",
|
|
72119
|
+
"componentTypeLabel": "栅格行",
|
|
72120
|
+
"componentType": "Row",
|
|
72121
|
+
"formItem": false,
|
|
72122
|
+
"config": {
|
|
72123
|
+
"formConfig": {},
|
|
72124
|
+
"baseConfig": { "gutter": 10, "justify": "", "align": "", "tag": "div" },
|
|
72125
|
+
"advancedConfig": { "style": "", "vif": "", "disabled": "", "eventChange": "" },
|
|
72126
|
+
"arrayConfig": {}
|
|
72127
|
+
}
|
|
72128
|
+
},
|
|
72129
|
+
{
|
|
72130
|
+
"keyID": "rf_row_submitLabel",
|
|
72131
|
+
"keyName": "栅格行",
|
|
72132
|
+
"keyCode": "rf_row_submitLabel_code",
|
|
72133
|
+
"children": [
|
|
72134
|
+
{
|
|
72135
|
+
"keyID": "rf_submitLabel",
|
|
72136
|
+
"keyName": "提交按钮文本",
|
|
72137
|
+
"keyCode": "submitLabel",
|
|
72138
|
+
"children": [],
|
|
72139
|
+
"dataType": "String",
|
|
72140
|
+
"componentType": "Input",
|
|
72141
|
+
"defaultValue": "提交",
|
|
72142
|
+
"config": {
|
|
72143
|
+
"arrayConfig": {},
|
|
72144
|
+
"baseConfig": {
|
|
72145
|
+
"width": "",
|
|
72146
|
+
"placeholder": ""
|
|
72147
|
+
},
|
|
72148
|
+
"formConfig": {
|
|
72149
|
+
"labelWidth": "",
|
|
72150
|
+
"tip": "",
|
|
72151
|
+
"tipPosition": "left",
|
|
72152
|
+
"suffixContent": "",
|
|
72153
|
+
"required": false,
|
|
72154
|
+
"requiredMessage": "",
|
|
72155
|
+
"validType": "",
|
|
72156
|
+
"validExpression": "",
|
|
72157
|
+
"validMessage": "",
|
|
72158
|
+
"validMethod": ""
|
|
72159
|
+
},
|
|
72160
|
+
"advancedConfig": {
|
|
72161
|
+
"style": "",
|
|
72162
|
+
"vif": "",
|
|
72163
|
+
"disabled": "",
|
|
72164
|
+
"eventChange": ""
|
|
72165
|
+
}
|
|
72166
|
+
},
|
|
72167
|
+
"formItem": true
|
|
72168
|
+
}
|
|
72169
|
+
],
|
|
72170
|
+
"dataType": "None",
|
|
72171
|
+
"arrayDataType": "",
|
|
72172
|
+
"componentTypeLabel": "栅格行",
|
|
72173
|
+
"componentType": "Row",
|
|
72174
|
+
"formItem": false,
|
|
72175
|
+
"config": {
|
|
72176
|
+
"formConfig": {},
|
|
72177
|
+
"baseConfig": { "gutter": 10, "justify": "", "align": "", "tag": "div" },
|
|
72178
|
+
"advancedConfig": { "style": "", "vif": "", "disabled": "", "eventChange": "" },
|
|
72179
|
+
"arrayConfig": {}
|
|
72180
|
+
}
|
|
72181
|
+
},
|
|
72182
|
+
{
|
|
72183
|
+
"keyID": "rf_row_returnSchema",
|
|
72184
|
+
"keyName": "栅格行",
|
|
72185
|
+
"keyCode": "rf_row_returnSchema_code",
|
|
72186
|
+
"children": [
|
|
72187
|
+
{
|
|
72188
|
+
"keyID": "rf_returnSchema",
|
|
72189
|
+
"keyName": "返回值结构定义",
|
|
72190
|
+
"keyCode": "returnSchema",
|
|
72191
|
+
"children": [],
|
|
72192
|
+
"dataType": "String",
|
|
72193
|
+
"componentType": "SchemaFieldEditor",
|
|
72194
|
+
"defaultValue": "{}",
|
|
72195
|
+
"config": {
|
|
72196
|
+
"arrayConfig": {},
|
|
72197
|
+
"baseConfig": {},
|
|
72198
|
+
"formConfig": {
|
|
72199
|
+
"labelWidth": "",
|
|
72200
|
+
"tip": '点击"添加字段",填写展示名称和接口返回的字段路径(如 user.name),供其他组件在数据绑定面板中选择,不影响实际请求逻辑',
|
|
72201
|
+
"tipPosition": "left",
|
|
72202
|
+
"suffixContent": "",
|
|
72203
|
+
"required": false,
|
|
72204
|
+
"requiredMessage": "",
|
|
72205
|
+
"validType": "",
|
|
72206
|
+
"validExpression": "",
|
|
72207
|
+
"validMessage": "",
|
|
72208
|
+
"validMethod": ""
|
|
72209
|
+
},
|
|
72210
|
+
"advancedConfig": {
|
|
72211
|
+
"style": "",
|
|
72212
|
+
"vif": "",
|
|
72213
|
+
"disabled": "",
|
|
72214
|
+
"eventChange": ""
|
|
72215
|
+
}
|
|
72216
|
+
},
|
|
72217
|
+
"formItem": true
|
|
72218
|
+
}
|
|
72219
|
+
],
|
|
72220
|
+
"dataType": "None",
|
|
72221
|
+
"arrayDataType": "",
|
|
72222
|
+
"componentTypeLabel": "栅格行",
|
|
72223
|
+
"componentType": "Row",
|
|
72224
|
+
"formItem": false,
|
|
72225
|
+
"config": {
|
|
72226
|
+
"formConfig": {},
|
|
72227
|
+
"baseConfig": { "gutter": 10, "justify": "", "align": "", "tag": "div" },
|
|
72228
|
+
"advancedConfig": { "style": "", "vif": "", "disabled": "", "eventChange": "" },
|
|
72229
|
+
"arrayConfig": {}
|
|
72230
|
+
}
|
|
72231
|
+
},
|
|
72232
|
+
{
|
|
72233
|
+
"keyID": "rf_eventSuccess",
|
|
72234
|
+
"keyName": "请求成功事件",
|
|
72235
|
+
"keyCode": "eventSuccess",
|
|
72236
|
+
"children": [],
|
|
72237
|
+
"dataType": "String",
|
|
72238
|
+
"componentTypeLabel": "弹窗选择",
|
|
72239
|
+
"componentType": "DataModal",
|
|
72240
|
+
"icon": "share",
|
|
72241
|
+
"operateType": "button",
|
|
72242
|
+
"slots": [
|
|
72243
|
+
{
|
|
72244
|
+
"name": "default",
|
|
72245
|
+
"children": [
|
|
72246
|
+
{
|
|
72247
|
+
"keyID": "rf_eventSuccess_tip",
|
|
72248
|
+
"keyName": "页面提示",
|
|
72249
|
+
"keyCode": "",
|
|
72250
|
+
"children": [],
|
|
72251
|
+
"dataType": "None",
|
|
72252
|
+
"dataTypeName": "None",
|
|
72253
|
+
"arrayDataTypeName": "",
|
|
72254
|
+
"arrayDataType": "",
|
|
72255
|
+
"componentGroup": "Show",
|
|
72256
|
+
"componentTypeLabel": "页面提示",
|
|
72257
|
+
"componentTypeName": "Tip",
|
|
72258
|
+
"componentName": "ElsTip",
|
|
72259
|
+
"componentType": "Tip",
|
|
72260
|
+
"formItem": false,
|
|
72261
|
+
"componentShow": true,
|
|
72262
|
+
"icon": "tips",
|
|
72263
|
+
"slots": [],
|
|
72264
|
+
"config": {
|
|
72265
|
+
"formConfig": {},
|
|
72266
|
+
"baseConfig": {
|
|
72267
|
+
"title": "事件参数",
|
|
72268
|
+
"content": "响应数据:$event,组件:refs,全局数据:globalData,工具类:utils。请求成功后会自动按 returnRoot 把响应数据写入 globalData,此事件用于额外的自定义逻辑(非必需,可留空)"
|
|
72269
|
+
},
|
|
72270
|
+
"advancedConfig": {},
|
|
72271
|
+
"arrayConfig": {}
|
|
72272
|
+
}
|
|
72273
|
+
},
|
|
72274
|
+
{
|
|
72275
|
+
"keyID": "rf_eventSuccess_editor",
|
|
72276
|
+
"keyName": "编辑事件",
|
|
72277
|
+
"keyCode": "default",
|
|
72278
|
+
"children": [],
|
|
72279
|
+
"dataType": "String",
|
|
72280
|
+
"dataTypeName": "String",
|
|
72281
|
+
"arrayDataTypeName": "",
|
|
72282
|
+
"arrayDataType": "",
|
|
72283
|
+
"componentGroup": "Form",
|
|
72284
|
+
"componentTypeLabel": "Ace编辑器",
|
|
72285
|
+
"componentTypeName": "AceEditor",
|
|
72286
|
+
"componentName": "ElsAceEditor",
|
|
72287
|
+
"componentType": "AceEditor",
|
|
72288
|
+
"formItem": true,
|
|
72289
|
+
"componentShow": true,
|
|
72290
|
+
"icon": "text-style",
|
|
72291
|
+
"slots": [],
|
|
72292
|
+
"config": {
|
|
72293
|
+
"formConfig": {},
|
|
72294
|
+
"baseConfig": {
|
|
72295
|
+
"rows": 10,
|
|
72296
|
+
"readonly": false,
|
|
72297
|
+
"theme": "",
|
|
72298
|
+
"language": ""
|
|
72299
|
+
},
|
|
72300
|
+
"advancedConfig": {},
|
|
72301
|
+
"arrayConfig": {}
|
|
72302
|
+
}
|
|
72303
|
+
}
|
|
72304
|
+
]
|
|
72305
|
+
}
|
|
72306
|
+
],
|
|
72307
|
+
"config": {
|
|
72308
|
+
"formConfig": {},
|
|
72309
|
+
"baseConfig": {
|
|
72310
|
+
"buttonLabel": "编辑事件",
|
|
72311
|
+
"buttonWidth": "100%",
|
|
72312
|
+
"hasInput": false,
|
|
72313
|
+
"inputWidth": "",
|
|
72314
|
+
"title": "请求成功事件",
|
|
72315
|
+
"width": "",
|
|
72316
|
+
"height": "",
|
|
72317
|
+
"targetType": "",
|
|
72318
|
+
"url": "",
|
|
72319
|
+
"dataUrl": "",
|
|
72320
|
+
"buttonComponent": "",
|
|
72321
|
+
"showBadge": true,
|
|
72322
|
+
"buttonProps": { "bg": true, "text": true, "type": "info" },
|
|
72323
|
+
"function_confirm": ""
|
|
72324
|
+
},
|
|
72325
|
+
"advancedConfig": {},
|
|
72326
|
+
"arrayConfig": {}
|
|
72327
|
+
},
|
|
72328
|
+
"formItem": true
|
|
72329
|
+
}
|
|
72330
|
+
],
|
|
72331
|
+
"dataType": "None",
|
|
72332
|
+
"arrayDataType": "",
|
|
72333
|
+
"componentTypeLabel": "Form表单",
|
|
72334
|
+
"componentType": "Form",
|
|
72335
|
+
"config": {
|
|
72336
|
+
"baseConfig": {
|
|
72337
|
+
"inline": false,
|
|
72338
|
+
"labelPosition": "top",
|
|
72339
|
+
"labelWidth": "",
|
|
72340
|
+
"labelSuffix": "",
|
|
72341
|
+
"hideRequiredAsterisk": false,
|
|
72342
|
+
"requireAsteriskPosition": "",
|
|
72343
|
+
"showMessage": true,
|
|
72344
|
+
"inlineMessage": false,
|
|
72345
|
+
"statusIcon": false,
|
|
72346
|
+
"disabled": false,
|
|
72347
|
+
"scrollToError": false,
|
|
72348
|
+
"scrollIntoViewOptions": false
|
|
72349
|
+
},
|
|
72350
|
+
"advancedConfig": {
|
|
72351
|
+
"style": "",
|
|
72352
|
+
"vif": "",
|
|
72353
|
+
"disabled": "",
|
|
72354
|
+
"eventChange": ""
|
|
72355
|
+
},
|
|
72356
|
+
"arrayConfig": {}
|
|
72357
|
+
},
|
|
72358
|
+
"formItem": false
|
|
72359
|
+
}
|
|
72360
|
+
];
|
|
71308
72361
|
const dynamicComponentTypes = [
|
|
71309
72362
|
{
|
|
71310
72363
|
componentName: "ElsInput",
|
|
@@ -71968,6 +73021,21 @@ const dynamicComponentTypes = [
|
|
|
71968
73021
|
isShow: true,
|
|
71969
73022
|
inline: true,
|
|
71970
73023
|
slots: ["default", "content"]
|
|
73024
|
+
},
|
|
73025
|
+
{
|
|
73026
|
+
componentName: "ElsRequestForm",
|
|
73027
|
+
icon: "send",
|
|
73028
|
+
label: "请求表单",
|
|
73029
|
+
value: "RequestForm",
|
|
73030
|
+
type: "RequestForm",
|
|
73031
|
+
dataTypes: ["Object"],
|
|
73032
|
+
defaultPropertys: {},
|
|
73033
|
+
propertys: property_requestForm,
|
|
73034
|
+
events: ["success"],
|
|
73035
|
+
group: "Container",
|
|
73036
|
+
formItem: true,
|
|
73037
|
+
isShow: true,
|
|
73038
|
+
excludeFromResult: true
|
|
71971
73039
|
}
|
|
71972
73040
|
];
|
|
71973
73041
|
const dynamicDataTypes = [
|
|
@@ -72113,6 +73181,7 @@ class DynamicHandler {
|
|
|
72113
73181
|
item.componentName = currcomponentType == null ? void 0 : currcomponentType.componentName;
|
|
72114
73182
|
item.formItem = currcomponentType == null ? void 0 : currcomponentType.formItem;
|
|
72115
73183
|
item.componentGroup = currcomponentType == null ? void 0 : currcomponentType.group;
|
|
73184
|
+
item.excludeFromResult = currcomponentType == null ? void 0 : currcomponentType.excludeFromResult;
|
|
72116
73185
|
if (((currDataType == null ? void 0 : currDataType.type) === "Object" || (currDataType == null ? void 0 : currDataType.type) === "Array") && !item.componentTypeName) {
|
|
72117
73186
|
item.formItem = true;
|
|
72118
73187
|
item.componentGroup = "Form";
|
|
@@ -72514,6 +73583,9 @@ class DynamicHandler {
|
|
|
72514
73583
|
}
|
|
72515
73584
|
itemValue(item) {
|
|
72516
73585
|
let currValue = {};
|
|
73586
|
+
if (item.excludeFromResult) {
|
|
73587
|
+
return currValue;
|
|
73588
|
+
}
|
|
72517
73589
|
if (item.formItem || item.componentGroup === "Form" || item.dataTypeName == "Array" || item.dataType === "Object") {
|
|
72518
73590
|
if (item.dataTypeName == "Object" && item.keyCode && !item.componentTypeName) {
|
|
72519
73591
|
currValue[item.keyCode] = this.childResult(item);
|
|
@@ -72553,7 +73625,7 @@ const _hoisted_2$k = {
|
|
|
72553
73625
|
key: 0,
|
|
72554
73626
|
class: "els-tool"
|
|
72555
73627
|
};
|
|
72556
|
-
const _sfc_main$
|
|
73628
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
72557
73629
|
...{
|
|
72558
73630
|
name: "ElsContainer"
|
|
72559
73631
|
},
|
|
@@ -73134,7 +74206,7 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
73134
74206
|
};
|
|
73135
74207
|
}
|
|
73136
74208
|
});
|
|
73137
|
-
const Container = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
74209
|
+
const Container = /* @__PURE__ */ _export_sfc$1(_sfc_main$1n, [["__scopeId", "data-v-b15ec31d"]]);
|
|
73138
74210
|
const ElsContainer = withInstall$1(Container);
|
|
73139
74211
|
const createProps = buildProps({
|
|
73140
74212
|
/**
|
|
@@ -73171,7 +74243,7 @@ const createProps = buildProps({
|
|
|
73171
74243
|
const _hoisted_1$15 = { class: "els-dynamic-create" };
|
|
73172
74244
|
const _hoisted_2$j = { style: { "margin-bottom": "10px" } };
|
|
73173
74245
|
const _hoisted_3$g = { class: "dialog-footer" };
|
|
73174
|
-
const _sfc_main$
|
|
74246
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
73175
74247
|
...{
|
|
73176
74248
|
name: "ElsDynamicCreate"
|
|
73177
74249
|
},
|
|
@@ -73469,7 +74541,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
73469
74541
|
};
|
|
73470
74542
|
}
|
|
73471
74543
|
});
|
|
73472
|
-
const ElsDynamicCreate = withInstall$1(_sfc_main$
|
|
74544
|
+
const ElsDynamicCreate = withInstall$1(_sfc_main$1m);
|
|
73473
74545
|
const _hoisted_1$14 = {
|
|
73474
74546
|
key: 0,
|
|
73475
74547
|
class: "tag-name"
|
|
@@ -73574,7 +74646,7 @@ const _hoisted_36 = {
|
|
|
73574
74646
|
};
|
|
73575
74647
|
const _hoisted_37 = { class: "els-dynamic-d-oper" };
|
|
73576
74648
|
const _hoisted_38 = { class: "dialog-footer" };
|
|
73577
|
-
const _sfc_main$
|
|
74649
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
73578
74650
|
...{
|
|
73579
74651
|
name: "ElsDynamicDesigner"
|
|
73580
74652
|
},
|
|
@@ -73592,7 +74664,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
73592
74664
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
73593
74665
|
setup(__props, { emit: __emit }) {
|
|
73594
74666
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
73595
|
-
return import("./innerItem-
|
|
74667
|
+
return import("./innerItem-DZT7gaYq.js");
|
|
73596
74668
|
});
|
|
73597
74669
|
const { getValue: getValue2 } = useProps();
|
|
73598
74670
|
const tagID = getValue2("tagID");
|
|
@@ -73923,7 +74995,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
73923
74995
|
};
|
|
73924
74996
|
}
|
|
73925
74997
|
});
|
|
73926
|
-
const DynamicDesignerInner = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
74998
|
+
const DynamicDesignerInner = /* @__PURE__ */ _export_sfc$1(_sfc_main$1l, [["__scopeId", "data-v-9f8f7295"]]);
|
|
73927
74999
|
const designerProps = buildProps({
|
|
73928
75000
|
...formItemProps$1,
|
|
73929
75001
|
/**
|
|
@@ -74052,7 +75124,7 @@ const designerProps = buildProps({
|
|
|
74052
75124
|
}
|
|
74053
75125
|
});
|
|
74054
75126
|
const _hoisted_1$13 = { class: "els-dynamic-config-tool" };
|
|
74055
|
-
const _sfc_main$
|
|
75127
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
74056
75128
|
...{
|
|
74057
75129
|
name: "ElsDynamicDesigner"
|
|
74058
75130
|
},
|
|
@@ -74118,7 +75190,17 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
74118
75190
|
dataTypes: ["String"],
|
|
74119
75191
|
isShow: false
|
|
74120
75192
|
}];
|
|
74121
|
-
|
|
75193
|
+
const schemaFieldEditorTypes = [{
|
|
75194
|
+
componentName: "ElsSchemaFieldEditor",
|
|
75195
|
+
label: "字段结构编辑器",
|
|
75196
|
+
value: "SchemaFieldEditor",
|
|
75197
|
+
type: "SchemaFieldEditor",
|
|
75198
|
+
group: "Form",
|
|
75199
|
+
formItem: true,
|
|
75200
|
+
dataTypes: ["String"],
|
|
75201
|
+
isShow: false
|
|
75202
|
+
}];
|
|
75203
|
+
currComponentTypes.value.push(...conditionBuilderTypes, ...expressionInputTypes, ...schemaFieldEditorTypes);
|
|
74122
75204
|
const dynamicHandler = new DynamicHandler(currDynamicDataType.value, currComponentTypes.value);
|
|
74123
75205
|
function getConverToJsonResult(obj2) {
|
|
74124
75206
|
return dynamicHandler.jsonToConfig(obj2);
|
|
@@ -74473,7 +75555,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
74473
75555
|
};
|
|
74474
75556
|
}
|
|
74475
75557
|
});
|
|
74476
|
-
const Designer = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75558
|
+
const Designer = /* @__PURE__ */ _export_sfc$1(_sfc_main$1k, [["__scopeId", "data-v-f7275d9d"]]);
|
|
74477
75559
|
const ElsDynamicDesigner = withInstall$1(Designer);
|
|
74478
75560
|
const renderProps = buildProps({
|
|
74479
75561
|
...formItemProps$1,
|
|
@@ -74563,7 +75645,7 @@ const renderProps = buildProps({
|
|
|
74563
75645
|
});
|
|
74564
75646
|
const _hoisted_1$12 = { class: "els-node els-dynamic-render" };
|
|
74565
75647
|
const _hoisted_2$h = { class: "els-dynamic-render-inner" };
|
|
74566
|
-
const _sfc_main$
|
|
75648
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
74567
75649
|
...{
|
|
74568
75650
|
name: "ElsDynamicRender"
|
|
74569
75651
|
},
|
|
@@ -74572,10 +75654,10 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
74572
75654
|
emits: ["update:modelValue"],
|
|
74573
75655
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
74574
75656
|
const DynamicRenderInner = defineAsyncComponent(() => {
|
|
74575
|
-
return import("./inner-
|
|
75657
|
+
return import("./inner-L97xvW77.js").then((n) => n.i);
|
|
74576
75658
|
});
|
|
74577
75659
|
const DynamicRenderForm = defineAsyncComponent(() => {
|
|
74578
|
-
return import("./inner-
|
|
75660
|
+
return import("./inner-L97xvW77.js").then((n) => n.f);
|
|
74579
75661
|
});
|
|
74580
75662
|
const props2 = __props;
|
|
74581
75663
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -74793,10 +75875,10 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
74793
75875
|
};
|
|
74794
75876
|
}
|
|
74795
75877
|
});
|
|
74796
|
-
const DynamicRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75878
|
+
const DynamicRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["__scopeId", "data-v-7093d0ee"]]);
|
|
74797
75879
|
const _hoisted_1$11 = { class: "els-node els-dynamic-render" };
|
|
74798
75880
|
const _hoisted_2$g = { class: "els-dynamic-render-inner" };
|
|
74799
|
-
const _sfc_main$
|
|
75881
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
74800
75882
|
...{
|
|
74801
75883
|
name: "ElsDynamicRenderAsync"
|
|
74802
75884
|
},
|
|
@@ -74805,10 +75887,10 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
74805
75887
|
emits: ["update:modelValue"],
|
|
74806
75888
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
74807
75889
|
const DynamicRenderInnerAsync = defineAsyncComponent(() => {
|
|
74808
|
-
return import("./inner-
|
|
75890
|
+
return import("./inner-L97xvW77.js").then((n) => n.i);
|
|
74809
75891
|
});
|
|
74810
75892
|
const DynamicRenderFormAsync = defineAsyncComponent(() => {
|
|
74811
|
-
return import("./inner-
|
|
75893
|
+
return import("./inner-L97xvW77.js").then((n) => n.f);
|
|
74812
75894
|
});
|
|
74813
75895
|
const props2 = __props;
|
|
74814
75896
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props2);
|
|
@@ -75016,14 +76098,14 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
75016
76098
|
};
|
|
75017
76099
|
}
|
|
75018
76100
|
});
|
|
75019
|
-
const DynamicRenderAsync = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
76101
|
+
const DynamicRenderAsync = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["__scopeId", "data-v-a96b65cd"]]);
|
|
75020
76102
|
const renderAsync = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
75021
76103
|
__proto__: null,
|
|
75022
76104
|
default: DynamicRenderAsync
|
|
75023
76105
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
75024
76106
|
const ElsRender = withInstall$1(DynamicRender);
|
|
75025
76107
|
const ElsRenderAsync = withInstall$1(DynamicRenderAsync);
|
|
75026
|
-
const _sfc_main$
|
|
76108
|
+
const _sfc_main$1h = {};
|
|
75027
76109
|
const _hoisted_1$10 = {
|
|
75028
76110
|
width: "24",
|
|
75029
76111
|
height: "24",
|
|
@@ -75067,8 +76149,8 @@ function _sfc_render$H(_ctx, _cache) {
|
|
|
75067
76149
|
}, null, -1)
|
|
75068
76150
|
])]);
|
|
75069
76151
|
}
|
|
75070
|
-
const Text = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75071
|
-
const _sfc_main$
|
|
76152
|
+
const Text = /* @__PURE__ */ _export_sfc$1(_sfc_main$1h, [["render", _sfc_render$H]]);
|
|
76153
|
+
const _sfc_main$1g = {};
|
|
75072
76154
|
const _hoisted_1$$ = {
|
|
75073
76155
|
width: "24",
|
|
75074
76156
|
height: "24",
|
|
@@ -75081,8 +76163,8 @@ function _sfc_render$G(_ctx, _cache) {
|
|
|
75081
76163
|
createStaticVNode('<path d="M9.58303 27.1824C7.86719 28.3542 7.00928 30.2934 7.00928 33.0002C7.00928 37.0602 12.0001 44.0002 16.5006 44.0002C21.001 44.0002 23.6111 44.0002 28.016 44.0002C32.421 44.0002 35.0965 40.1495 35.0965 37.0602C35.0965 32.9069 35.0965 28.7536 35.0965 24.6002C35.0965 22.8072 33.6456 21.3522 31.8525 21.3472C30.0659 21.3422 28.6135 22.7865 28.6085 24.5731C28.6085 24.5761 28.6085 24.5791 28.6085 24.5821V24.6836" stroke="#333" stroke-width="4" stroke-linecap="round"></path><path d="M10.9814 29.4453V7.66246C10.9814 5.88568 12.4218 4.44531 14.1986 4.44531C15.9754 4.44531 17.4157 5.88568 17.4157 7.66246V23.6479" stroke="#333" stroke-width="4" stroke-linecap="round"></path><path d="M17.4155 24.0001V19.8076C17.4155 18.2589 18.671 17.0034 20.2197 17.0034C21.7684 17.0034 23.0239 18.2589 23.0239 19.8076V24.4272" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M23 24.6583V21.8076C23 20.2589 24.2555 19.0034 25.8042 19.0034C27.3529 19.0034 28.6084 20.2589 28.6084 21.8076V25.0034" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M11 8H41" stroke="#333" stroke-width="4" stroke-linecap="round"></path><path d="M36 12.5L37.6667 11L41 8L37.6667 5L36 3.5" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path>', 6)
|
|
75082
76164
|
])]);
|
|
75083
76165
|
}
|
|
75084
|
-
const HandDrag = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75085
|
-
const _sfc_main$
|
|
76166
|
+
const HandDrag = /* @__PURE__ */ _export_sfc$1(_sfc_main$1g, [["render", _sfc_render$G]]);
|
|
76167
|
+
const _sfc_main$1f = {};
|
|
75086
76168
|
const _hoisted_1$_ = {
|
|
75087
76169
|
width: "24",
|
|
75088
76170
|
height: "24",
|
|
@@ -75108,8 +76190,8 @@ function _sfc_render$F(_ctx, _cache) {
|
|
|
75108
76190
|
}, null, -1)
|
|
75109
76191
|
])]);
|
|
75110
76192
|
}
|
|
75111
|
-
const ExpandTextInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75112
|
-
const _sfc_main$
|
|
76193
|
+
const ExpandTextInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$1f, [["render", _sfc_render$F]]);
|
|
76194
|
+
const _sfc_main$1e = {};
|
|
75113
76195
|
const _hoisted_1$Z = {
|
|
75114
76196
|
width: "24",
|
|
75115
76197
|
height: "24",
|
|
@@ -75122,8 +76204,8 @@ function _sfc_render$E(_ctx, _cache) {
|
|
|
75122
76204
|
createStaticVNode('<path d="M20 9H42" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M20 19H42" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M20 29H42" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M20 39H42" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M6 29H12V32L6 38V39H12" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7 11L9 9V19M9 19H7M9 19H11" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path>', 6)
|
|
75123
76205
|
])]);
|
|
75124
76206
|
}
|
|
75125
|
-
const ListNumbers = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75126
|
-
const _sfc_main$
|
|
76207
|
+
const ListNumbers = /* @__PURE__ */ _export_sfc$1(_sfc_main$1e, [["render", _sfc_render$E]]);
|
|
76208
|
+
const _sfc_main$1d = {};
|
|
75127
76209
|
const _hoisted_1$Y = {
|
|
75128
76210
|
width: "24",
|
|
75129
76211
|
height: "24",
|
|
@@ -75164,8 +76246,8 @@ function _sfc_render$D(_ctx, _cache) {
|
|
|
75164
76246
|
}, null, -1)
|
|
75165
76247
|
])]);
|
|
75166
76248
|
}
|
|
75167
|
-
const SwitchOne = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75168
|
-
const _sfc_main$
|
|
76249
|
+
const SwitchOne = /* @__PURE__ */ _export_sfc$1(_sfc_main$1d, [["render", _sfc_render$D]]);
|
|
76250
|
+
const _sfc_main$1c = {};
|
|
75169
76251
|
const _hoisted_1$X = {
|
|
75170
76252
|
width: "24",
|
|
75171
76253
|
height: "24",
|
|
@@ -75178,8 +76260,8 @@ function _sfc_render$C(_ctx, _cache) {
|
|
|
75178
76260
|
createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M20 24H44H20Z" fill="none"></path><path d="M20 24H44" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M20 38H44H20Z" fill="none"></path><path d="M20 38H44" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M20 10H44H20Z" fill="none"></path><path d="M20 10H44" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><rect x="4" y="34" width="8" height="8" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"></rect><rect x="4" y="20" width="8" height="8" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"></rect><rect x="4" y="6" width="8" height="8" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"></rect>', 9)
|
|
75179
76261
|
])]);
|
|
75180
76262
|
}
|
|
75181
|
-
const ListCheckbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75182
|
-
const _sfc_main$
|
|
76263
|
+
const ListCheckbox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1c, [["render", _sfc_render$C]]);
|
|
76264
|
+
const _sfc_main$1b = {};
|
|
75183
76265
|
const _hoisted_1$W = {
|
|
75184
76266
|
width: "24",
|
|
75185
76267
|
height: "24",
|
|
@@ -75219,8 +76301,8 @@ function _sfc_render$B(_ctx, _cache) {
|
|
|
75219
76301
|
}, null, -1)
|
|
75220
76302
|
])]);
|
|
75221
76303
|
}
|
|
75222
|
-
const FullScreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75223
|
-
const _sfc_main$
|
|
76304
|
+
const FullScreen = /* @__PURE__ */ _export_sfc$1(_sfc_main$1b, [["render", _sfc_render$B]]);
|
|
76305
|
+
const _sfc_main$1a = {};
|
|
75224
76306
|
const _hoisted_1$V = {
|
|
75225
76307
|
width: "24",
|
|
75226
76308
|
height: "24",
|
|
@@ -75250,8 +76332,8 @@ function _sfc_render$A(_ctx, _cache) {
|
|
|
75250
76332
|
}, null, -1)
|
|
75251
76333
|
])]);
|
|
75252
76334
|
}
|
|
75253
|
-
const RadioTwo = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75254
|
-
const _sfc_main$
|
|
76335
|
+
const RadioTwo = /* @__PURE__ */ _export_sfc$1(_sfc_main$1a, [["render", _sfc_render$A]]);
|
|
76336
|
+
const _sfc_main$19 = {};
|
|
75255
76337
|
const _hoisted_1$U = {
|
|
75256
76338
|
width: "24",
|
|
75257
76339
|
height: "24",
|
|
@@ -75264,8 +76346,8 @@ function _sfc_render$z(_ctx, _cache) {
|
|
|
75264
76346
|
createStaticVNode('<path d="M44 24C44 22.8954 43.1046 22 42 22C40.8954 22 40 22.8954 40 24H44ZM24 8C25.1046 8 26 7.10457 26 6C26 4.89543 25.1046 4 24 4V8ZM39 40H9V44H39V40ZM8 39V9H4V39H8ZM40 24V39H44V24H40ZM9 8H24V4H9V8ZM9 40C8.44772 40 8 39.5523 8 39H4C4 41.7614 6.23857 44 9 44V40ZM39 44C41.7614 44 44 41.7614 44 39H40C40 39.5523 39.5523 40 39 40V44ZM8 9C8 8.44772 8.44771 8 9 8V4C6.23858 4 4 6.23857 4 9H8Z" fill="#333"></path><path d="M6 35L16.6931 25.198C17.4389 24.5143 18.5779 24.4953 19.3461 25.1538L32 36" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M28 31L32.7735 26.2265C33.4772 25.5228 34.5914 25.4436 35.3877 26.0408L42 31" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M30 12L42 12" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M36 6V18" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path>', 5)
|
|
75265
76347
|
])]);
|
|
75266
76348
|
}
|
|
75267
|
-
const AddPicture = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75268
|
-
const _sfc_main$
|
|
76349
|
+
const AddPicture = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["render", _sfc_render$z]]);
|
|
76350
|
+
const _sfc_main$18 = {};
|
|
75269
76351
|
const _hoisted_1$T = {
|
|
75270
76352
|
width: "24",
|
|
75271
76353
|
height: "24",
|
|
@@ -75278,8 +76360,8 @@ function _sfc_render$y(_ctx, _cache) {
|
|
|
75278
76360
|
createStaticVNode('<rect x="6" y="6" width="30" height="30" rx="2" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"></rect><path d="M42 12V39C42 40.6569 40.6569 42 39 42H12" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M6 25L13.6562 18.1944C14.4204 17.5152 15.5738 17.5216 16.3303 18.2094L26 27" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M22 23L26.7849 19.0125C27.4971 18.4191 28.5237 18.3928 29.2653 18.949L36 24" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M6 19L6 27" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M36 19V27" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path>', 6)
|
|
75279
76361
|
])]);
|
|
75280
76362
|
}
|
|
75281
|
-
const PictureAlbum = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75282
|
-
const _sfc_main$
|
|
76363
|
+
const PictureAlbum = /* @__PURE__ */ _export_sfc$1(_sfc_main$18, [["render", _sfc_render$y]]);
|
|
76364
|
+
const _sfc_main$17 = {};
|
|
75283
76365
|
const _hoisted_1$S = {
|
|
75284
76366
|
width: "24",
|
|
75285
76367
|
height: "24",
|
|
@@ -75292,8 +76374,8 @@ function _sfc_render$x(_ctx, _cache) {
|
|
|
75292
76374
|
createStaticVNode('<mask id="icon-27acf327f10b972" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48" style="mask-type:alpha;"><path d="M48 0H0V48H48V0Z" fill="#333"></path></mask><g mask="url(#icon-27acf327f10b972)"><path d="M6 24.0083V42H42V24" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M33 15L24 6L15 15" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M23.9917 32V6" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path></g>', 2)
|
|
75293
76375
|
])]);
|
|
75294
76376
|
}
|
|
75295
|
-
const Upload2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75296
|
-
const _sfc_main$
|
|
76377
|
+
const Upload2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$17, [["render", _sfc_render$x]]);
|
|
76378
|
+
const _sfc_main$16 = {};
|
|
75297
76379
|
const _hoisted_1$R = {
|
|
75298
76380
|
width: "24",
|
|
75299
76381
|
height: "24",
|
|
@@ -75326,8 +76408,8 @@ function _sfc_render$w(_ctx, _cache) {
|
|
|
75326
76408
|
}, null, -1)
|
|
75327
76409
|
])]);
|
|
75328
76410
|
}
|
|
75329
|
-
const Share = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75330
|
-
const _sfc_main$
|
|
76411
|
+
const Share = /* @__PURE__ */ _export_sfc$1(_sfc_main$16, [["render", _sfc_render$w]]);
|
|
76412
|
+
const _sfc_main$15 = {};
|
|
75331
76413
|
const _hoisted_1$Q = {
|
|
75332
76414
|
width: "24",
|
|
75333
76415
|
height: "24",
|
|
@@ -75340,8 +76422,8 @@ function _sfc_render$v(_ctx, _cache) {
|
|
|
75340
76422
|
createStaticVNode('<rect x="4" y="4" width="40" height="40" rx="2" fill="none" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></rect><path d="M4 14H44" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><line x1="44" y1="11" x2="44" y2="23" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></line><path d="M12 22H16" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M22 22H26" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M32 22H36" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 29H16" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M22 29H26" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M32 29H36" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 36H16" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M22 36H26" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M32 36H36" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><line x1="4" y1="11" x2="4" y2="23" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></line>', 13)
|
|
75341
76423
|
])]);
|
|
75342
76424
|
}
|
|
75343
|
-
const CalendarDot = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75344
|
-
const _sfc_main$
|
|
76425
|
+
const CalendarDot = /* @__PURE__ */ _export_sfc$1(_sfc_main$15, [["render", _sfc_render$v]]);
|
|
76426
|
+
const _sfc_main$14 = {};
|
|
75345
76427
|
const _hoisted_1$P = {
|
|
75346
76428
|
width: "24",
|
|
75347
76429
|
height: "24",
|
|
@@ -75367,8 +76449,8 @@ function _sfc_render$u(_ctx, _cache) {
|
|
|
75367
76449
|
}, null, -1)
|
|
75368
76450
|
])]);
|
|
75369
76451
|
}
|
|
75370
|
-
const Time = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75371
|
-
const _sfc_main$
|
|
76452
|
+
const Time = /* @__PURE__ */ _export_sfc$1(_sfc_main$14, [["render", _sfc_render$u]]);
|
|
76453
|
+
const _sfc_main$13 = {};
|
|
75372
76454
|
const _hoisted_1$O = {
|
|
75373
76455
|
width: "24",
|
|
75374
76456
|
height: "24",
|
|
@@ -75381,8 +76463,8 @@ function _sfc_render$t(_ctx, _cache) {
|
|
|
75381
76463
|
createStaticVNode('<path d="M38 20H18V28H38V20Z" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"></path><path d="M32 6H18V14H32V6Z" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"></path><path d="M44 34H18V42H44V34Z" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"></path><path d="M17 10H5" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17 24H5" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17 38H5" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5 44V4" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path>', 7)
|
|
75382
76464
|
])]);
|
|
75383
76465
|
}
|
|
75384
|
-
const TreeList = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75385
|
-
const _sfc_main$
|
|
76466
|
+
const TreeList = /* @__PURE__ */ _export_sfc$1(_sfc_main$13, [["render", _sfc_render$t]]);
|
|
76467
|
+
const _sfc_main$12 = {};
|
|
75386
76468
|
const _hoisted_1$N = {
|
|
75387
76469
|
width: "24",
|
|
75388
76470
|
height: "24",
|
|
@@ -75408,8 +76490,8 @@ function _sfc_render$s(_ctx, _cache) {
|
|
|
75408
76490
|
}, null, -1)
|
|
75409
76491
|
])]);
|
|
75410
76492
|
}
|
|
75411
|
-
const Planet = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75412
|
-
const _sfc_main$
|
|
76493
|
+
const Planet = /* @__PURE__ */ _export_sfc$1(_sfc_main$12, [["render", _sfc_render$s]]);
|
|
76494
|
+
const _sfc_main$11 = {};
|
|
75413
76495
|
const _hoisted_1$M = {
|
|
75414
76496
|
width: "24",
|
|
75415
76497
|
height: "24",
|
|
@@ -75438,8 +76520,8 @@ function _sfc_render$r(_ctx, _cache) {
|
|
|
75438
76520
|
}, null, -1)
|
|
75439
76521
|
])]);
|
|
75440
76522
|
}
|
|
75441
|
-
const Word = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75442
|
-
const _sfc_main$
|
|
76523
|
+
const Word = /* @__PURE__ */ _export_sfc$1(_sfc_main$11, [["render", _sfc_render$r]]);
|
|
76524
|
+
const _sfc_main$10 = {};
|
|
75443
76525
|
const _hoisted_1$L = {
|
|
75444
76526
|
width: "24",
|
|
75445
76527
|
height: "24",
|
|
@@ -75452,8 +76534,8 @@ function _sfc_render$q(_ctx, _cache) {
|
|
|
75452
76534
|
createStaticVNode('<path d="M32 6H42V16" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M17 32L19.1875 27M31 32L28.8125 27M19.1875 27L24 16L28.8125 27M19.1875 27H28.8125" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 6H6V16" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M32 42H42V32" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 42H6V32" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path>', 5)
|
|
75453
76535
|
])]);
|
|
75454
76536
|
}
|
|
75455
|
-
const TextStyle = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75456
|
-
const _sfc_main
|
|
76537
|
+
const TextStyle = /* @__PURE__ */ _export_sfc$1(_sfc_main$10, [["render", _sfc_render$q]]);
|
|
76538
|
+
const _sfc_main$$ = {};
|
|
75457
76539
|
const _hoisted_1$K = {
|
|
75458
76540
|
width: "24",
|
|
75459
76541
|
height: "24",
|
|
@@ -75497,8 +76579,8 @@ function _sfc_render$p(_ctx, _cache) {
|
|
|
75497
76579
|
}, null, -1)
|
|
75498
76580
|
])]);
|
|
75499
76581
|
}
|
|
75500
|
-
const LayoutTwo = /* @__PURE__ */ _export_sfc$1(_sfc_main
|
|
75501
|
-
const _sfc_main
|
|
76582
|
+
const LayoutTwo = /* @__PURE__ */ _export_sfc$1(_sfc_main$$, [["render", _sfc_render$p]]);
|
|
76583
|
+
const _sfc_main$_ = {};
|
|
75502
76584
|
const _hoisted_1$J = {
|
|
75503
76585
|
width: "24",
|
|
75504
76586
|
height: "24",
|
|
@@ -75511,8 +76593,8 @@ function _sfc_render$o(_ctx, _cache) {
|
|
|
75511
76593
|
createStaticVNode('<rect x="6" y="6" width="36" height="36" rx="3" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"></rect><path d="M34 6V42" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 6V42" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M31 42H37" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M11 42H17" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M11 6H17" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M30 6H36" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path>', 7)
|
|
75512
76594
|
])]);
|
|
75513
76595
|
}
|
|
75514
|
-
const Margin = /* @__PURE__ */ _export_sfc$1(_sfc_main
|
|
75515
|
-
const _sfc_main$
|
|
76596
|
+
const Margin = /* @__PURE__ */ _export_sfc$1(_sfc_main$_, [["render", _sfc_render$o]]);
|
|
76597
|
+
const _sfc_main$Z = {};
|
|
75516
76598
|
const _hoisted_1$I = {
|
|
75517
76599
|
width: "24",
|
|
75518
76600
|
height: "24",
|
|
@@ -75542,8 +76624,8 @@ function _sfc_render$n(_ctx, _cache) {
|
|
|
75542
76624
|
}, null, -1)
|
|
75543
76625
|
])]);
|
|
75544
76626
|
}
|
|
75545
|
-
const Label = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75546
|
-
const _sfc_main$
|
|
76627
|
+
const Label = /* @__PURE__ */ _export_sfc$1(_sfc_main$Z, [["render", _sfc_render$n]]);
|
|
76628
|
+
const _sfc_main$Y = {};
|
|
75547
76629
|
const _hoisted_1$H = {
|
|
75548
76630
|
width: "24",
|
|
75549
76631
|
height: "24",
|
|
@@ -75579,8 +76661,8 @@ function _sfc_render$m(_ctx, _cache) {
|
|
|
75579
76661
|
}, null, -1)
|
|
75580
76662
|
])]);
|
|
75581
76663
|
}
|
|
75582
|
-
const Bookmark = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75583
|
-
const _sfc_main$
|
|
76664
|
+
const Bookmark = /* @__PURE__ */ _export_sfc$1(_sfc_main$Y, [["render", _sfc_render$m]]);
|
|
76665
|
+
const _sfc_main$X = {};
|
|
75584
76666
|
const _hoisted_1$G = {
|
|
75585
76667
|
width: "24",
|
|
75586
76668
|
height: "24",
|
|
@@ -75593,8 +76675,8 @@ function _sfc_render$l(_ctx, _cache) {
|
|
|
75593
76675
|
createStaticVNode('<rect x="6" y="6" width="36" height="36" rx="3" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></rect><path d="M6 14H40" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M30 22H42" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M30 30H42" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M23 22H24" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M23 30H24" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 6L14 42" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path>', 7)
|
|
75594
76676
|
])]);
|
|
75595
76677
|
}
|
|
75596
|
-
const FormOne = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75597
|
-
const _sfc_main$
|
|
76678
|
+
const FormOne = /* @__PURE__ */ _export_sfc$1(_sfc_main$X, [["render", _sfc_render$l]]);
|
|
76679
|
+
const _sfc_main$W = {};
|
|
75598
76680
|
const _hoisted_1$F = {
|
|
75599
76681
|
width: "24",
|
|
75600
76682
|
height: "24",
|
|
@@ -75634,8 +76716,8 @@ function _sfc_render$k(_ctx, _cache) {
|
|
|
75634
76716
|
}, null, -1)
|
|
75635
76717
|
])]);
|
|
75636
76718
|
}
|
|
75637
|
-
const MenuUnfold = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75638
|
-
const _sfc_main$
|
|
76719
|
+
const MenuUnfold = /* @__PURE__ */ _export_sfc$1(_sfc_main$W, [["render", _sfc_render$k]]);
|
|
76720
|
+
const _sfc_main$V = {};
|
|
75639
76721
|
const _hoisted_1$E = {
|
|
75640
76722
|
width: "24",
|
|
75641
76723
|
height: "24",
|
|
@@ -75668,8 +76750,8 @@ function _sfc_render$j(_ctx, _cache) {
|
|
|
75668
76750
|
}, null, -1)
|
|
75669
76751
|
])]);
|
|
75670
76752
|
}
|
|
75671
|
-
const HamburgerButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75672
|
-
const _sfc_main$
|
|
76753
|
+
const HamburgerButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["render", _sfc_render$j]]);
|
|
76754
|
+
const _sfc_main$U = {};
|
|
75673
76755
|
const _hoisted_1$D = {
|
|
75674
76756
|
width: "24",
|
|
75675
76757
|
height: "24",
|
|
@@ -75682,8 +76764,8 @@ function _sfc_render$i(_ctx, _cache) {
|
|
|
75682
76764
|
createStaticVNode('<path d="M4 10C4 8.89543 4.89543 8 6 8H42C43.1046 8 44 8.89543 44 10V38C44 39.1046 43.1046 40 42 40H6C4.89543 40 4 39.1046 4 38V10Z" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"></path><path d="M4 16H44" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M27 32H36" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M44 10V26" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4 10V26" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path>', 5)
|
|
75683
76765
|
])]);
|
|
75684
76766
|
}
|
|
75685
|
-
const BankCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75686
|
-
const _sfc_main$
|
|
76767
|
+
const BankCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$U, [["render", _sfc_render$i]]);
|
|
76768
|
+
const _sfc_main$T = {};
|
|
75687
76769
|
const _hoisted_1$C = {
|
|
75688
76770
|
width: "24",
|
|
75689
76771
|
height: "24",
|
|
@@ -75715,8 +76797,8 @@ function _sfc_render$h(_ctx, _cache) {
|
|
|
75715
76797
|
}, null, -1)
|
|
75716
76798
|
])]);
|
|
75717
76799
|
}
|
|
75718
|
-
const Code = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75719
|
-
const _sfc_main$
|
|
76800
|
+
const Code = /* @__PURE__ */ _export_sfc$1(_sfc_main$T, [["render", _sfc_render$h]]);
|
|
76801
|
+
const _sfc_main$S = {};
|
|
75720
76802
|
const _hoisted_1$B = {
|
|
75721
76803
|
width: "24",
|
|
75722
76804
|
height: "24",
|
|
@@ -75729,8 +76811,8 @@ function _sfc_render$g(_ctx, _cache) {
|
|
|
75729
76811
|
createStaticVNode('<path d="M5 24H43" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M21 38H27" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M37 38H43" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M21 10H27" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5 38H11" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5 10H11" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M37 10H43" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path>', 7)
|
|
75730
76812
|
])]);
|
|
75731
76813
|
}
|
|
75732
|
-
const DividingLine = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75733
|
-
const _sfc_main$
|
|
76814
|
+
const DividingLine = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["render", _sfc_render$g]]);
|
|
76815
|
+
const _sfc_main$R = {};
|
|
75734
76816
|
const _hoisted_1$A = {
|
|
75735
76817
|
width: "24",
|
|
75736
76818
|
height: "24",
|
|
@@ -75764,8 +76846,8 @@ function _sfc_render$f(_ctx, _cache) {
|
|
|
75764
76846
|
}, null, -1)
|
|
75765
76847
|
])]);
|
|
75766
76848
|
}
|
|
75767
|
-
const Tips = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75768
|
-
const _sfc_main$
|
|
76849
|
+
const Tips = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$f]]);
|
|
76850
|
+
const _sfc_main$Q = {};
|
|
75769
76851
|
const _hoisted_1$z = {
|
|
75770
76852
|
width: "24",
|
|
75771
76853
|
height: "24",
|
|
@@ -75778,8 +76860,8 @@ function _sfc_render$e(_ctx, _cache) {
|
|
|
75778
76860
|
createStaticVNode('<path d="M44 8H4V38H19L24 43L29 38H44V8Z" fill="none" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path><path d="M21 15L20 32" stroke="#333" stroke-width="4" stroke-linecap="round"></path><path d="M28 15L27 32" stroke="#333" stroke-width="4" stroke-linecap="round"></path><path d="M33 20L16 20" stroke="#333" stroke-width="4" stroke-linecap="round"></path><path d="M32 27L15 27" stroke="#333" stroke-width="4" stroke-linecap="round"></path>', 5)
|
|
75779
76861
|
])]);
|
|
75780
76862
|
}
|
|
75781
|
-
const TopicDiscussion = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75782
|
-
const _sfc_main$
|
|
76863
|
+
const TopicDiscussion = /* @__PURE__ */ _export_sfc$1(_sfc_main$Q, [["render", _sfc_render$e]]);
|
|
76864
|
+
const _sfc_main$P = {};
|
|
75783
76865
|
const _hoisted_1$y = {
|
|
75784
76866
|
width: "25",
|
|
75785
76867
|
height: "25",
|
|
@@ -75800,8 +76882,8 @@ function _sfc_render$d(_ctx, _cache) {
|
|
|
75800
76882
|
}, null, -1)
|
|
75801
76883
|
])]);
|
|
75802
76884
|
}
|
|
75803
|
-
const Back = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75804
|
-
const _sfc_main$
|
|
76885
|
+
const Back = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["render", _sfc_render$d]]);
|
|
76886
|
+
const _sfc_main$O = {};
|
|
75805
76887
|
const _hoisted_1$x = {
|
|
75806
76888
|
width: "25",
|
|
75807
76889
|
height: "25",
|
|
@@ -75822,8 +76904,8 @@ function _sfc_render$c(_ctx, _cache) {
|
|
|
75822
76904
|
}, null, -1)
|
|
75823
76905
|
])]);
|
|
75824
76906
|
}
|
|
75825
|
-
const Next = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75826
|
-
const _sfc_main$
|
|
76907
|
+
const Next = /* @__PURE__ */ _export_sfc$1(_sfc_main$O, [["render", _sfc_render$c]]);
|
|
76908
|
+
const _sfc_main$N = {};
|
|
75827
76909
|
const _hoisted_1$w = {
|
|
75828
76910
|
t: "1722952350799",
|
|
75829
76911
|
class: "icon",
|
|
@@ -75843,8 +76925,8 @@ function _sfc_render$b(_ctx, _cache) {
|
|
|
75843
76925
|
}, null, -1)
|
|
75844
76926
|
])]);
|
|
75845
76927
|
}
|
|
75846
|
-
const Json = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75847
|
-
const _sfc_main$
|
|
76928
|
+
const Json = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["render", _sfc_render$b]]);
|
|
76929
|
+
const _sfc_main$M = {};
|
|
75848
76930
|
const _hoisted_1$v = {
|
|
75849
76931
|
width: "25",
|
|
75850
76932
|
height: "25",
|
|
@@ -75884,8 +76966,8 @@ function _sfc_render$a(_ctx, _cache) {
|
|
|
75884
76966
|
}, null, -1)
|
|
75885
76967
|
])]);
|
|
75886
76968
|
}
|
|
75887
|
-
const Platte = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75888
|
-
const _sfc_main$
|
|
76969
|
+
const Platte = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$a]]);
|
|
76970
|
+
const _sfc_main$L = {};
|
|
75889
76971
|
const _hoisted_1$u = {
|
|
75890
76972
|
t: "1722952854816",
|
|
75891
76973
|
class: "icon",
|
|
@@ -75908,8 +76990,8 @@ function _sfc_render$9(_ctx, _cache) {
|
|
|
75908
76990
|
}, null, -1)
|
|
75909
76991
|
])]);
|
|
75910
76992
|
}
|
|
75911
|
-
const QueryForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75912
|
-
const _sfc_main$
|
|
76993
|
+
const QueryForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$L, [["render", _sfc_render$9]]);
|
|
76994
|
+
const _sfc_main$K = {};
|
|
75913
76995
|
const _hoisted_1$t = {
|
|
75914
76996
|
t: "1722953108155",
|
|
75915
76997
|
class: "icon",
|
|
@@ -75940,8 +77022,8 @@ function _sfc_render$8(_ctx, _cache) {
|
|
|
75940
77022
|
}, null, -1)
|
|
75941
77023
|
])]);
|
|
75942
77024
|
}
|
|
75943
|
-
const ExportButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75944
|
-
const _sfc_main$
|
|
77025
|
+
const ExportButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["render", _sfc_render$8]]);
|
|
77026
|
+
const _sfc_main$J = {};
|
|
75945
77027
|
const _hoisted_1$s = {
|
|
75946
77028
|
t: "1722953211989",
|
|
75947
77029
|
class: "icon",
|
|
@@ -75960,8 +77042,8 @@ function _sfc_render$7(_ctx, _cache) {
|
|
|
75960
77042
|
}, null, -1)
|
|
75961
77043
|
])]);
|
|
75962
77044
|
}
|
|
75963
|
-
const Table = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75964
|
-
const _sfc_main$
|
|
77045
|
+
const Table = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["render", _sfc_render$7]]);
|
|
77046
|
+
const _sfc_main$I = {};
|
|
75965
77047
|
const _hoisted_1$r = {
|
|
75966
77048
|
t: "1722953305278",
|
|
75967
77049
|
class: "icon",
|
|
@@ -75984,8 +77066,8 @@ function _sfc_render$6(_ctx, _cache) {
|
|
|
75984
77066
|
}, null, -1)
|
|
75985
77067
|
])]);
|
|
75986
77068
|
}
|
|
75987
|
-
const SearchButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
75988
|
-
const _sfc_main$
|
|
77069
|
+
const SearchButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["render", _sfc_render$6]]);
|
|
77070
|
+
const _sfc_main$H = {};
|
|
75989
77071
|
const _hoisted_1$q = {
|
|
75990
77072
|
t: "1722953426019",
|
|
75991
77073
|
class: "icon",
|
|
@@ -76008,8 +77090,8 @@ function _sfc_render$5(_ctx, _cache) {
|
|
|
76008
77090
|
}, null, -1)
|
|
76009
77091
|
])]);
|
|
76010
77092
|
}
|
|
76011
|
-
const Tag = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
76012
|
-
const _sfc_main$
|
|
77093
|
+
const Tag = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["render", _sfc_render$5]]);
|
|
77094
|
+
const _sfc_main$G = {};
|
|
76013
77095
|
const _hoisted_1$p = {
|
|
76014
77096
|
t: "1722953581253",
|
|
76015
77097
|
class: "icon",
|
|
@@ -76032,8 +77114,8 @@ function _sfc_render$4(_ctx, _cache) {
|
|
|
76032
77114
|
}, null, -1)
|
|
76033
77115
|
])]);
|
|
76034
77116
|
}
|
|
76035
|
-
const DataType = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
76036
|
-
const _sfc_main$
|
|
77117
|
+
const DataType = /* @__PURE__ */ _export_sfc$1(_sfc_main$G, [["render", _sfc_render$4]]);
|
|
77118
|
+
const _sfc_main$F = {};
|
|
76037
77119
|
const _hoisted_1$o = {
|
|
76038
77120
|
t: "1722953747058",
|
|
76039
77121
|
class: "icon",
|
|
@@ -76078,8 +77160,8 @@ function _sfc_render$3(_ctx, _cache) {
|
|
|
76078
77160
|
}, null, -1)
|
|
76079
77161
|
])]);
|
|
76080
77162
|
}
|
|
76081
|
-
const Button = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
76082
|
-
const _sfc_main$
|
|
77163
|
+
const Button = /* @__PURE__ */ _export_sfc$1(_sfc_main$F, [["render", _sfc_render$3]]);
|
|
77164
|
+
const _sfc_main$E = {};
|
|
76083
77165
|
const _hoisted_1$n = {
|
|
76084
77166
|
t: "1722953911617",
|
|
76085
77167
|
class: "icon",
|
|
@@ -76104,8 +77186,8 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
76104
77186
|
}, null, -1)
|
|
76105
77187
|
])]);
|
|
76106
77188
|
}
|
|
76107
|
-
const Select2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
76108
|
-
const _sfc_main$
|
|
77189
|
+
const Select2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["render", _sfc_render$2]]);
|
|
77190
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
76109
77191
|
__name: "index",
|
|
76110
77192
|
props: {
|
|
76111
77193
|
name: {}
|
|
@@ -76170,7 +77252,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
76170
77252
|
};
|
|
76171
77253
|
}
|
|
76172
77254
|
});
|
|
76173
|
-
const _sfc_main$
|
|
77255
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
76174
77256
|
__name: "baseSetting",
|
|
76175
77257
|
props: {
|
|
76176
77258
|
"nodeItem": { default: () => {
|
|
@@ -76253,7 +77335,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
76253
77335
|
]),
|
|
76254
77336
|
_: 1
|
|
76255
77337
|
}),
|
|
76256
|
-
currSelectItem.value.formItem ? (openBlock(), createBlock(_component_els_input, {
|
|
77338
|
+
currSelectItem.value.formItem && !currSelectItem.value.excludeFromResult ? (openBlock(), createBlock(_component_els_input, {
|
|
76257
77339
|
key: 0,
|
|
76258
77340
|
label: "字段名",
|
|
76259
77341
|
prop: "keyCode",
|
|
@@ -76358,13 +77440,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
76358
77440
|
};
|
|
76359
77441
|
}
|
|
76360
77442
|
});
|
|
76361
|
-
const DynamicDesignerViewBaseSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
77443
|
+
const DynamicDesignerViewBaseSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$C, [["__scopeId", "data-v-106df2fe"]]);
|
|
76362
77444
|
const _hoisted_1$m = { class: "se-root" };
|
|
76363
77445
|
const _hoisted_2$f = { class: "se-margin-zone" };
|
|
76364
77446
|
const _hoisted_3$e = { class: "se-row" };
|
|
76365
77447
|
const _hoisted_4$9 = { class: "se-padding-zone" };
|
|
76366
77448
|
const _hoisted_5$9 = { class: "se-row" };
|
|
76367
|
-
const _sfc_main$
|
|
77449
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
76368
77450
|
__name: "spacingEditor",
|
|
76369
77451
|
props: {
|
|
76370
77452
|
"modelValue": { default: () => ({}) },
|
|
@@ -76779,7 +77861,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
76779
77861
|
};
|
|
76780
77862
|
}
|
|
76781
77863
|
});
|
|
76782
|
-
const SpacingEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
77864
|
+
const SpacingEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$B, [["__scopeId", "data-v-f8633774"]]);
|
|
76783
77865
|
function buildSpacingCss(advancedConfig) {
|
|
76784
77866
|
if (!advancedConfig) return "";
|
|
76785
77867
|
const parts = [];
|
|
@@ -77102,7 +78184,7 @@ function useComponentRef(nodeItem, dyComponent) {
|
|
|
77102
78184
|
}
|
|
77103
78185
|
});
|
|
77104
78186
|
}
|
|
77105
|
-
const _sfc_main$
|
|
78187
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
77106
78188
|
...{
|
|
77107
78189
|
inheritAttrs: false
|
|
77108
78190
|
},
|
|
@@ -77154,7 +78236,7 @@ const _hoisted_1$l = {
|
|
|
77154
78236
|
};
|
|
77155
78237
|
const _hoisted_2$e = { class: "els-dynamic-d-v-item-move" };
|
|
77156
78238
|
const _hoisted_3$d = { key: 0 };
|
|
77157
|
-
const _sfc_main$
|
|
78239
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
77158
78240
|
__name: "operate",
|
|
77159
78241
|
props: {
|
|
77160
78242
|
nodeItem: {},
|
|
@@ -77186,7 +78268,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
77186
78268
|
const _component_Delete = resolveComponent("Delete");
|
|
77187
78269
|
const _component_Rank = resolveComponent("Rank");
|
|
77188
78270
|
return openBlock(), createElementBlock(Fragment$1, null, [
|
|
77189
|
-
__props.nodeItem.componentGroup == "Form" || __props.nodeItem.formItem && __props.nodeItem.keyCode ? (openBlock(), createElementBlock("span", _hoisted_1$l, [
|
|
78271
|
+
!__props.nodeItem.excludeFromResult && (__props.nodeItem.componentGroup == "Form" || __props.nodeItem.formItem && __props.nodeItem.keyCode) ? (openBlock(), createElementBlock("span", _hoisted_1$l, [
|
|
77190
78272
|
createElementVNode("span", null, toDisplayString(__props.nodeItem.keyCode), 1),
|
|
77191
78273
|
createElementVNode("span", null, toDisplayString(__props.nodeItem.dataTypeName === "Array" && !__props.nodeItem.componentType || __props.nodeItem.arrayDataTypeName ? `Array
|
|
77192
78274
|
<${__props.nodeItem.arrayDataTypeName ? __props.nodeItem.arrayDataTypeName : "T"}>` : __props.nodeItem.dataTypeName), 1)
|
|
@@ -77239,9 +78321,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
77239
78321
|
};
|
|
77240
78322
|
}
|
|
77241
78323
|
});
|
|
77242
|
-
const DynamicDesignerViewOperate = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
78324
|
+
const DynamicDesignerViewOperate = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["__scopeId", "data-v-7cc3e387"]]);
|
|
77243
78325
|
const _hoisted_1$k = { key: 1 };
|
|
77244
|
-
const _sfc_main$
|
|
78326
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
77245
78327
|
__name: "wrap",
|
|
77246
78328
|
props: /* @__PURE__ */ mergeModels({
|
|
77247
78329
|
parentNode: {},
|
|
@@ -77270,7 +78352,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
77270
78352
|
});
|
|
77271
78353
|
const wrapStyle = computed(() => {
|
|
77272
78354
|
var _a;
|
|
77273
|
-
|
|
78355
|
+
const minHeight = nodeItem.value.componentName === "ElsRequestForm" ? 100 : 30;
|
|
78356
|
+
return `min-height:${minHeight}px;width:100%;padding:10px 0px;` + ((_a = componentProps.value) == null ? void 0 : _a.style);
|
|
77274
78357
|
});
|
|
77275
78358
|
function handleAddComponent(e) {
|
|
77276
78359
|
recordComponent();
|
|
@@ -77409,9 +78492,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
77409
78492
|
};
|
|
77410
78493
|
}
|
|
77411
78494
|
});
|
|
77412
|
-
const DynamicDesignerViewWrap = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
78495
|
+
const DynamicDesignerViewWrap = /* @__PURE__ */ _export_sfc$1(_sfc_main$y, [["__scopeId", "data-v-534deb2f"]]);
|
|
77413
78496
|
const _hoisted_1$j = ["innerHTML"];
|
|
77414
|
-
const _sfc_main$
|
|
78497
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
77415
78498
|
...{
|
|
77416
78499
|
inheritAttrs: false
|
|
77417
78500
|
},
|
|
@@ -77482,7 +78565,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
77482
78565
|
const _hoisted_1$i = ["data-restrict-child", "data-restrict-parent", "data-type"];
|
|
77483
78566
|
const _hoisted_2$d = { class: "component-inner" };
|
|
77484
78567
|
const _hoisted_3$c = { class: "component-inner-wrap" };
|
|
77485
|
-
const _sfc_main$
|
|
78568
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
77486
78569
|
__name: "inner",
|
|
77487
78570
|
props: {
|
|
77488
78571
|
"nodeItem": { default: () => {
|
|
@@ -77543,19 +78626,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
77543
78626
|
key: 0,
|
|
77544
78627
|
parentNode: nodeItem.value,
|
|
77545
78628
|
nodeItem: nodeItem.value
|
|
77546
|
-
}, null, 8, ["parentNode", "nodeItem"])) : nodeItem.value.componentTypeName && nodeItem.value.componentGroup === "Show" && nodeItem.value.keyCode ? (openBlock(), createBlock(_sfc_main$
|
|
78629
|
+
}, null, 8, ["parentNode", "nodeItem"])) : nodeItem.value.componentTypeName && nodeItem.value.componentGroup === "Show" && nodeItem.value.keyCode ? (openBlock(), createBlock(_sfc_main$x, {
|
|
77547
78630
|
key: 1,
|
|
77548
78631
|
nodeItem: nodeItem.value,
|
|
77549
78632
|
style: normalizeStyle(nodeItem.value.config.advancedConfig.style),
|
|
77550
78633
|
title: nodeItem.value.keyName,
|
|
77551
78634
|
modelValue: nodeItem.value.value,
|
|
77552
78635
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => nodeItem.value.value = $event)
|
|
77553
|
-
}, null, 8, ["nodeItem", "style", "title", "modelValue"])) : nodeItem.value.componentTypeName && nodeItem.value.componentGroup === "Show" ? (openBlock(), createBlock(_sfc_main$
|
|
78636
|
+
}, null, 8, ["nodeItem", "style", "title", "modelValue"])) : nodeItem.value.componentTypeName && nodeItem.value.componentGroup === "Show" ? (openBlock(), createBlock(_sfc_main$x, {
|
|
77554
78637
|
key: 2,
|
|
77555
78638
|
nodeItem: nodeItem.value,
|
|
77556
78639
|
style: normalizeStyle(nodeItem.value.config.advancedConfig.style),
|
|
77557
78640
|
title: nodeItem.value.keyName
|
|
77558
|
-
}, null, 8, ["nodeItem", "style", "title"])) : unref(isMobile) && (nodeItem.value.componentTypeName === "Input" || nodeItem.value.componentTypeName === "Textarea") ? (openBlock(), createBlock(_sfc_main$
|
|
78641
|
+
}, null, 8, ["nodeItem", "style", "title"])) : unref(isMobile) && (nodeItem.value.componentTypeName === "Input" || nodeItem.value.componentTypeName === "Textarea") ? (openBlock(), createBlock(_sfc_main$A, mergeProps({
|
|
77559
78642
|
key: 3,
|
|
77560
78643
|
disabled: unref(renderDisabled)()
|
|
77561
78644
|
}, unref(formProps2), {
|
|
@@ -77572,10 +78655,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
77572
78655
|
title: nodeItem.value.keyName
|
|
77573
78656
|
}, {
|
|
77574
78657
|
default: withCtx(() => [
|
|
77575
|
-
createVNode(_sfc_main$
|
|
78658
|
+
createVNode(_sfc_main$A, { nodeItem: nodeItem.value }, null, 8, ["nodeItem"])
|
|
77576
78659
|
]),
|
|
77577
78660
|
_: 1
|
|
77578
|
-
}, 8, ["title"])) : (openBlock(), createBlock(_sfc_main$
|
|
78661
|
+
}, 8, ["title"])) : (openBlock(), createBlock(_sfc_main$A, {
|
|
77579
78662
|
key: 1,
|
|
77580
78663
|
disabled: unref(renderDisabled)(),
|
|
77581
78664
|
nodeItem: nodeItem.value
|
|
@@ -77612,7 +78695,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
77612
78695
|
default: withCtx(() => [
|
|
77613
78696
|
createElementVNode("div", _hoisted_2$d, [
|
|
77614
78697
|
createElementVNode("div", _hoisted_3$c, [
|
|
77615
|
-
createVNode(_sfc_main$
|
|
78698
|
+
createVNode(_sfc_main$u, {
|
|
77616
78699
|
renderData: slot.children,
|
|
77617
78700
|
minHeight: "100",
|
|
77618
78701
|
isMobile: unref(isMobile)
|
|
@@ -77633,8 +78716,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
77633
78716
|
};
|
|
77634
78717
|
}
|
|
77635
78718
|
});
|
|
77636
|
-
const DynamicDesignerViewInner = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
77637
|
-
const _sfc_main$
|
|
78719
|
+
const DynamicDesignerViewInner = /* @__PURE__ */ _export_sfc$1(_sfc_main$w, [["__scopeId", "data-v-39ddb864"]]);
|
|
78720
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
77638
78721
|
__name: "form",
|
|
77639
78722
|
props: /* @__PURE__ */ mergeModels({
|
|
77640
78723
|
isRoot: { type: Boolean }
|
|
@@ -77774,8 +78857,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
77774
78857
|
};
|
|
77775
78858
|
}
|
|
77776
78859
|
});
|
|
77777
|
-
const DynamicDesignerViewForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
77778
|
-
const _sfc_main$
|
|
78860
|
+
const DynamicDesignerViewForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$v, [["__scopeId", "data-v-06406908"]]);
|
|
78861
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
77779
78862
|
__name: "body",
|
|
77780
78863
|
props: /* @__PURE__ */ mergeModels({
|
|
77781
78864
|
isMobile: { type: Boolean },
|
|
@@ -78109,7 +79192,7 @@ const _hoisted_29 = { class: "pc-content" };
|
|
|
78109
79192
|
const _hoisted_30 = { class: "form-canvas" };
|
|
78110
79193
|
const _hoisted_31 = { class: "view-data" };
|
|
78111
79194
|
const _hoisted_32 = { class: "json-card" };
|
|
78112
|
-
const _sfc_main$
|
|
79195
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
78113
79196
|
...{
|
|
78114
79197
|
name: "ElsDynamicDesignerView",
|
|
78115
79198
|
inheritAttrs: false
|
|
@@ -78184,6 +79267,16 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
78184
79267
|
dataTypes: ["String"],
|
|
78185
79268
|
isShow: false
|
|
78186
79269
|
}];
|
|
79270
|
+
const schemaFieldEditorTypes = [{
|
|
79271
|
+
componentName: "ElsSchemaFieldEditor",
|
|
79272
|
+
label: "字段结构编辑器",
|
|
79273
|
+
value: "SchemaFieldEditor",
|
|
79274
|
+
type: "SchemaFieldEditor",
|
|
79275
|
+
group: "Form",
|
|
79276
|
+
formItem: true,
|
|
79277
|
+
dataTypes: ["String"],
|
|
79278
|
+
isShow: false
|
|
79279
|
+
}];
|
|
78187
79280
|
const currComponentTypes = ref([]);
|
|
78188
79281
|
if (componentData) {
|
|
78189
79282
|
currComponentTypes.value = componentData;
|
|
@@ -78205,7 +79298,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
78205
79298
|
});
|
|
78206
79299
|
}
|
|
78207
79300
|
}
|
|
78208
|
-
currComponentTypes.value.push(...conditionBuilderTypes, ...expressionInputTypes);
|
|
79301
|
+
currComponentTypes.value.push(...conditionBuilderTypes, ...expressionInputTypes, ...schemaFieldEditorTypes);
|
|
78209
79302
|
const objectData = ref([
|
|
78210
79303
|
{
|
|
78211
79304
|
keyID: "id_" + utils.randomNumber().toString(),
|
|
@@ -78302,6 +79395,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
78302
79395
|
icon: ele.icon,
|
|
78303
79396
|
operateType: ele.operateType,
|
|
78304
79397
|
inline: ele.inline,
|
|
79398
|
+
excludeFromResult: ele.excludeFromResult,
|
|
78305
79399
|
slots,
|
|
78306
79400
|
config: {
|
|
78307
79401
|
formConfig: {},
|
|
@@ -78557,13 +79651,18 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
78557
79651
|
);
|
|
78558
79652
|
const allFormFields = computed(() => {
|
|
78559
79653
|
const result = [];
|
|
78560
|
-
|
|
78561
|
-
|
|
79654
|
+
let selectedRfScope = null;
|
|
79655
|
+
function collect(items, containerPath = [], containerKeyNames = [], rfScope = null) {
|
|
79656
|
+
var _a2, _b2, _c, _d, _e;
|
|
78562
79657
|
if (!items) return;
|
|
78563
79658
|
for (const item of items) {
|
|
79659
|
+
const ownRfScope = item.componentName === "ElsRequestForm" ? item.keyID : rfScope;
|
|
79660
|
+
if (item.keyID === ((_a2 = currSelectItem.value) == null ? void 0 : _a2.keyID)) {
|
|
79661
|
+
selectedRfScope = ownRfScope;
|
|
79662
|
+
}
|
|
78564
79663
|
const isObjContainer = item.dataType === "Object" && item.keyCode && !item.componentTypeName;
|
|
78565
79664
|
const isArrayContainer = item.dataType === "Array" && item.keyCode;
|
|
78566
|
-
if (item.formItem && item.keyCode && item.componentGroup === "Form" && item.dataType !== "Object" && item.keyCode !== ((
|
|
79665
|
+
if (item.formItem && item.keyCode && item.componentGroup === "Form" && item.dataType !== "Object" && item.keyCode !== ((_b2 = currSelectItem.value) == null ? void 0 : _b2.keyCode)) {
|
|
78567
79666
|
const typeName = item.componentTypeName || item.componentType || "";
|
|
78568
79667
|
result.push({
|
|
78569
79668
|
keyCode: item.keyCode,
|
|
@@ -78572,21 +79671,56 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
78572
79671
|
containerPath,
|
|
78573
79672
|
containerKeyNames,
|
|
78574
79673
|
componentType: typeName,
|
|
78575
|
-
componentOptions: SELECT_TYPES_FIELD.includes(typeName) ? ((
|
|
78576
|
-
multiple: isMultiSelectField(item, typeName)
|
|
79674
|
+
componentOptions: SELECT_TYPES_FIELD.includes(typeName) ? ((_d = (_c = item.config) == null ? void 0 : _c.baseConfig) == null ? void 0 : _d.data) || null : null,
|
|
79675
|
+
multiple: isMultiSelectField(item, typeName),
|
|
79676
|
+
rfScope: ownRfScope
|
|
78577
79677
|
});
|
|
78578
79678
|
}
|
|
78579
79679
|
if (!isArrayContainer) {
|
|
78580
79680
|
const newPath = isObjContainer ? [...containerPath, item.keyCode] : containerPath;
|
|
78581
79681
|
const newNames = isObjContainer ? [...containerKeyNames, item.keyName || item.keyCode] : containerKeyNames;
|
|
78582
|
-
collect(item.children, newPath, newNames);
|
|
78583
|
-
(
|
|
79682
|
+
collect(item.children, newPath, newNames, ownRfScope);
|
|
79683
|
+
(_e = item.slots) == null ? void 0 : _e.forEach((s) => collect(s.children, newPath, newNames, ownRfScope));
|
|
78584
79684
|
}
|
|
78585
79685
|
}
|
|
78586
79686
|
}
|
|
78587
79687
|
collect(renderData.value);
|
|
78588
79688
|
const seen = /* @__PURE__ */ new Set();
|
|
78589
|
-
return result.filter((f) => !seen.has(f.keyCode) && !!seen.add(f.keyCode));
|
|
79689
|
+
return result.filter((f) => f.rfScope === null || f.rfScope === selectedRfScope).filter((f) => !seen.has(f.keyCode) && !!seen.add(f.keyCode));
|
|
79690
|
+
});
|
|
79691
|
+
const requestFormGlobalDataSchema = computed(() => {
|
|
79692
|
+
const schema2 = {};
|
|
79693
|
+
function collect(items) {
|
|
79694
|
+
var _a2, _b2, _c;
|
|
79695
|
+
if (!items) return;
|
|
79696
|
+
for (const item of items) {
|
|
79697
|
+
if (item.componentName === "ElsRequestForm") {
|
|
79698
|
+
const raw = (_b2 = (_a2 = item.config) == null ? void 0 : _a2.baseConfig) == null ? void 0 : _b2.returnSchema;
|
|
79699
|
+
if (raw) {
|
|
79700
|
+
try {
|
|
79701
|
+
const parsed = JSON.parse(raw);
|
|
79702
|
+
if (parsed && typeof parsed === "object") {
|
|
79703
|
+
if (item.keyCode) {
|
|
79704
|
+
schema2[item.keyCode] = parsed;
|
|
79705
|
+
} else {
|
|
79706
|
+
Object.assign(schema2, parsed);
|
|
79707
|
+
}
|
|
79708
|
+
}
|
|
79709
|
+
} catch (e) {
|
|
79710
|
+
}
|
|
79711
|
+
}
|
|
79712
|
+
}
|
|
79713
|
+
collect(item.children);
|
|
79714
|
+
(_c = item.slots) == null ? void 0 : _c.forEach((s) => collect(s.children));
|
|
79715
|
+
}
|
|
79716
|
+
}
|
|
79717
|
+
collect(renderData.value);
|
|
79718
|
+
return schema2;
|
|
79719
|
+
});
|
|
79720
|
+
const mergedGlobalDataTemplate = computed(() => {
|
|
79721
|
+
const requestFormSchema = requestFormGlobalDataSchema.value;
|
|
79722
|
+
if (!Object.keys(requestFormSchema).length) return props2.globalData || null;
|
|
79723
|
+
return lodash.merge({}, props2.globalData || {}, requestFormSchema);
|
|
78590
79724
|
});
|
|
78591
79725
|
function findItemContext(targetKeyID) {
|
|
78592
79726
|
function traverse(items) {
|
|
@@ -78819,8 +79953,11 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
78819
79953
|
},
|
|
78820
79954
|
recordComponent,
|
|
78821
79955
|
getAllFormFields: () => allFormFields.value,
|
|
78822
|
-
getGlobalDataKeys: () =>
|
|
78823
|
-
|
|
79956
|
+
getGlobalDataKeys: () => {
|
|
79957
|
+
const merged = mergedGlobalDataTemplate.value;
|
|
79958
|
+
return merged ? getGlobalDataFieldKeys(merged) : props2.globalDataFields || [];
|
|
79959
|
+
},
|
|
79960
|
+
getGlobalDataTemplate: () => mergedGlobalDataTemplate.value,
|
|
78824
79961
|
getSiblingFields: () => {
|
|
78825
79962
|
if (!currSelectItem.value) return allFormFields.value;
|
|
78826
79963
|
const ctx = findItemContext(currSelectItem.value.keyID);
|
|
@@ -78929,7 +80066,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
78929
80066
|
key: index,
|
|
78930
80067
|
"data-restrict-parent": element.restrictParent
|
|
78931
80068
|
}, [
|
|
78932
|
-
element.icon && !element.icon.startsWith("http") ? (openBlock(), createBlock(_sfc_main$
|
|
80069
|
+
element.icon && !element.icon.startsWith("http") ? (openBlock(), createBlock(_sfc_main$D, {
|
|
78933
80070
|
key: 0,
|
|
78934
80071
|
name: element.icon
|
|
78935
80072
|
}, null, 8, ["name"])) : element.icon ? (openBlock(), createElementBlock("img", {
|
|
@@ -78971,7 +80108,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
78971
80108
|
"data-restrict-parent": element.restrictParent,
|
|
78972
80109
|
key: index
|
|
78973
80110
|
}, [
|
|
78974
|
-
element.icon ? (openBlock(), createBlock(_sfc_main$
|
|
80111
|
+
element.icon ? (openBlock(), createBlock(_sfc_main$D, {
|
|
78975
80112
|
key: 0,
|
|
78976
80113
|
name: element.icon
|
|
78977
80114
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
@@ -79026,7 +80163,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
79026
80163
|
"data-type": "Col",
|
|
79027
80164
|
key: index
|
|
79028
80165
|
}, [
|
|
79029
|
-
element.icon ? (openBlock(), createBlock(_sfc_main$
|
|
80166
|
+
element.icon ? (openBlock(), createBlock(_sfc_main$D, {
|
|
79030
80167
|
key: 0,
|
|
79031
80168
|
name: element.icon
|
|
79032
80169
|
}, null, 8, ["name"])) : createCommentVNode("", true),
|
|
@@ -79059,7 +80196,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
79059
80196
|
"data-type": element.dataTypeName,
|
|
79060
80197
|
key: index
|
|
79061
80198
|
}, [
|
|
79062
|
-
createVNode(_sfc_main$
|
|
80199
|
+
createVNode(_sfc_main$D, {
|
|
79063
80200
|
name: element.icon
|
|
79064
80201
|
}, null, 8, ["name"]),
|
|
79065
80202
|
createTextVNode(" " + toDisplayString(element.componentTypeLabel), 1)
|
|
@@ -79140,7 +80277,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
79140
80277
|
"data-restrict-parent": element.restrictParent,
|
|
79141
80278
|
key: index
|
|
79142
80279
|
}, [
|
|
79143
|
-
createVNode(_sfc_main$
|
|
80280
|
+
createVNode(_sfc_main$D, {
|
|
79144
80281
|
name: element.icon
|
|
79145
80282
|
}, null, 8, ["name"]),
|
|
79146
80283
|
createTextVNode(" " + toDisplayString(element.componentTypeLabel), 1)
|
|
@@ -79171,7 +80308,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
79171
80308
|
class: "container-widget-item",
|
|
79172
80309
|
key: index
|
|
79173
80310
|
}, [
|
|
79174
|
-
createVNode(_sfc_main$
|
|
80311
|
+
createVNode(_sfc_main$D, {
|
|
79175
80312
|
name: element.icon
|
|
79176
80313
|
}, null, 8, ["name"]),
|
|
79177
80314
|
createTextVNode(" " + toDisplayString(element.componentTypeLabel), 1)
|
|
@@ -79210,7 +80347,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
79210
80347
|
disabled: isDisabledUndo.value
|
|
79211
80348
|
}, {
|
|
79212
80349
|
default: withCtx(() => [
|
|
79213
|
-
createVNode(_sfc_main$
|
|
80350
|
+
createVNode(_sfc_main$D, { name: "back" })
|
|
79214
80351
|
]),
|
|
79215
80352
|
_: 1
|
|
79216
80353
|
}, 8, ["disabled"])) : createCommentVNode("", true),
|
|
@@ -79221,7 +80358,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
79221
80358
|
disabled: isDisabledReDo.value
|
|
79222
80359
|
}, {
|
|
79223
80360
|
default: withCtx(() => [
|
|
79224
|
-
createVNode(_sfc_main$
|
|
80361
|
+
createVNode(_sfc_main$D, { name: "next" })
|
|
79225
80362
|
]),
|
|
79226
80363
|
_: 1
|
|
79227
80364
|
}, 8, ["disabled"])) : createCommentVNode("", true),
|
|
@@ -79405,11 +80542,11 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
79405
80542
|
])
|
|
79406
80543
|
])
|
|
79407
80544
|
])) : (openBlock(), createElementBlock("div", _hoisted_18$1, [
|
|
79408
|
-
deviceType.value == "H5" ? (openBlock(), createBlock(_sfc_main$
|
|
80545
|
+
deviceType.value == "H5" ? (openBlock(), createBlock(_sfc_main$u, {
|
|
79409
80546
|
key: 0,
|
|
79410
80547
|
isMobile: true,
|
|
79411
80548
|
renderData: renderData.value
|
|
79412
|
-
}, null, 8, ["renderData"])) : (openBlock(), createBlock(_sfc_main$
|
|
80549
|
+
}, null, 8, ["renderData"])) : (openBlock(), createBlock(_sfc_main$u, {
|
|
79413
80550
|
key: 1,
|
|
79414
80551
|
type: deviceType.value,
|
|
79415
80552
|
renderData: renderData.value
|
|
@@ -79714,7 +80851,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
79714
80851
|
};
|
|
79715
80852
|
}
|
|
79716
80853
|
});
|
|
79717
|
-
const DesignerView = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
80854
|
+
const DesignerView = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["__scopeId", "data-v-fdd95ac4"]]);
|
|
79718
80855
|
const ElsDesignerView = withInstall$1(DesignerView);
|
|
79719
80856
|
(function(Prism2) {
|
|
79720
80857
|
var string = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
@@ -80234,7 +81371,7 @@ const ElsDesignerView = withInstall$1(DesignerView);
|
|
|
80234
81371
|
}
|
|
80235
81372
|
});
|
|
80236
81373
|
})();
|
|
80237
|
-
const _sfc_main$
|
|
81374
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
80238
81375
|
...{
|
|
80239
81376
|
name: "ElsHighlight",
|
|
80240
81377
|
inheritAttrs: false
|
|
@@ -80272,7 +81409,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
80272
81409
|
};
|
|
80273
81410
|
}
|
|
80274
81411
|
});
|
|
80275
|
-
const ElsHighlight = withInstall$1(_sfc_main$
|
|
81412
|
+
const ElsHighlight = withInstall$1(_sfc_main$s);
|
|
80276
81413
|
const uEditorProps = buildProps({
|
|
80277
81414
|
...formItemProps$1,
|
|
80278
81415
|
/**
|
|
@@ -80392,7 +81529,7 @@ class UEditor extends TBaseFormItem {
|
|
|
80392
81529
|
}, null)]);
|
|
80393
81530
|
}
|
|
80394
81531
|
}
|
|
80395
|
-
const _sfc_main$
|
|
81532
|
+
const _sfc_main$r = defineComponent({
|
|
80396
81533
|
name: "ElsUEditor",
|
|
80397
81534
|
inheritAttrs: false,
|
|
80398
81535
|
props: uEditorProps,
|
|
@@ -80402,7 +81539,7 @@ const _sfc_main$s = defineComponent({
|
|
|
80402
81539
|
},
|
|
80403
81540
|
emits: ["update:modelValue"]
|
|
80404
81541
|
});
|
|
80405
|
-
const ElsUEditor = withInstall$1(_sfc_main$
|
|
81542
|
+
const ElsUEditor = withInstall$1(_sfc_main$r);
|
|
80406
81543
|
const aceEditorProps = buildProps({
|
|
80407
81544
|
...formItemProps$1,
|
|
80408
81545
|
/**
|
|
@@ -80453,31 +81590,31 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
|
|
|
80453
81590
|
__publicField(this, "editor", ref());
|
|
80454
81591
|
onMounted(() => {
|
|
80455
81592
|
if (props2.language === "json") {
|
|
80456
|
-
const currModule = import("./mode-json-
|
|
81593
|
+
const currModule = import("./mode-json-CuyvB_kf.js").then((n) => n.m);
|
|
80457
81594
|
currModule.then((res) => {
|
|
80458
81595
|
ace.config.setModuleUrl("ace/mode/json", res);
|
|
80459
81596
|
this.init();
|
|
80460
81597
|
});
|
|
80461
81598
|
} else if (props2.language === "javascript") {
|
|
80462
|
-
const currModule = import("./mode-javascript-
|
|
81599
|
+
const currModule = import("./mode-javascript-BIpkDE77.js").then((n) => n.m);
|
|
80463
81600
|
currModule.then((res) => {
|
|
80464
81601
|
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
80465
81602
|
this.init();
|
|
80466
81603
|
});
|
|
80467
81604
|
} else if (props2.language === "csharp") {
|
|
80468
|
-
const currModule = import("./mode-csharp-
|
|
81605
|
+
const currModule = import("./mode-csharp-DRL6iOsg.js").then((n) => n.m);
|
|
80469
81606
|
currModule.then((res) => {
|
|
80470
81607
|
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
80471
81608
|
this.init();
|
|
80472
81609
|
});
|
|
80473
81610
|
} else if (props2.language === "mysql") {
|
|
80474
|
-
const currModule = import("./mode-mysql-
|
|
81611
|
+
const currModule = import("./mode-mysql-BPWNA-Mx.js").then((n) => n.m);
|
|
80475
81612
|
currModule.then((res) => {
|
|
80476
81613
|
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
80477
81614
|
this.init();
|
|
80478
81615
|
});
|
|
80479
81616
|
} else if (props2.language === "css") {
|
|
80480
|
-
const currModule = import("./mode-css-
|
|
81617
|
+
const currModule = import("./mode-css-CVbsNLio.js").then((n) => n.m);
|
|
80481
81618
|
currModule.then((res) => {
|
|
80482
81619
|
ace.config.setModuleUrl("ace/mode/css", res);
|
|
80483
81620
|
this.init();
|
|
@@ -80546,7 +81683,7 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
|
|
|
80546
81683
|
}, null)])])]);
|
|
80547
81684
|
}
|
|
80548
81685
|
};
|
|
80549
|
-
const _sfc_main$
|
|
81686
|
+
const _sfc_main$q = defineComponent({
|
|
80550
81687
|
name: "ElsAceEditor",
|
|
80551
81688
|
inheritAttrs: false,
|
|
80552
81689
|
props: aceEditorProps,
|
|
@@ -80556,7 +81693,7 @@ const _sfc_main$r = defineComponent({
|
|
|
80556
81693
|
},
|
|
80557
81694
|
emits: ["update:modelValue", "formatter"]
|
|
80558
81695
|
});
|
|
80559
|
-
const AceEditor2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
81696
|
+
const AceEditor2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["__scopeId", "data-v-bbf3dec5"]]);
|
|
80560
81697
|
const ElsAceEditor = withInstall$1(AceEditor2);
|
|
80561
81698
|
const mdEditorProps = buildProps({
|
|
80562
81699
|
...formItemProps$1,
|
|
@@ -80658,7 +81795,7 @@ class MdEditor extends TBaseFormItem {
|
|
|
80658
81795
|
}, null)])]);
|
|
80659
81796
|
}
|
|
80660
81797
|
}
|
|
80661
|
-
const _sfc_main$
|
|
81798
|
+
const _sfc_main$p = defineComponent({
|
|
80662
81799
|
name: "ElsMdEditor",
|
|
80663
81800
|
inheritAttrs: false,
|
|
80664
81801
|
props: mdEditorProps,
|
|
@@ -80668,7 +81805,7 @@ const _sfc_main$q = defineComponent({
|
|
|
80668
81805
|
},
|
|
80669
81806
|
emits: ["update:modelValue", "update:html"]
|
|
80670
81807
|
});
|
|
80671
|
-
const ElsMdEditor = withInstall$1(_sfc_main$
|
|
81808
|
+
const ElsMdEditor = withInstall$1(_sfc_main$p);
|
|
80672
81809
|
var __defProp$1 = Object.defineProperty;
|
|
80673
81810
|
var __defProps = Object.defineProperties;
|
|
80674
81811
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -80831,7 +81968,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
80831
81968
|
return openBlock(), createElementBlock("div", _hoisted_1$1$1, null, 512);
|
|
80832
81969
|
}
|
|
80833
81970
|
var Editor3 = /* @__PURE__ */ _export_sfc(_sfc_main$1$1, [["render", _sfc_render$1]]);
|
|
80834
|
-
const _sfc_main$
|
|
81971
|
+
const _sfc_main$o = defineComponent({
|
|
80835
81972
|
props: {
|
|
80836
81973
|
editor: {
|
|
80837
81974
|
type: Object
|
|
@@ -80877,7 +82014,7 @@ const _hoisted_1$g = { ref: "selector" };
|
|
|
80877
82014
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
80878
82015
|
return openBlock(), createElementBlock("div", _hoisted_1$g, null, 512);
|
|
80879
82016
|
}
|
|
80880
|
-
var Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
82017
|
+
var Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render]]);
|
|
80881
82018
|
const wangEditorProps = buildProps({
|
|
80882
82019
|
...formItemProps$1,
|
|
80883
82020
|
/**
|
|
@@ -81009,7 +82146,7 @@ let WangEditor$1 = class WangEditor extends TBaseFormItem {
|
|
|
81009
82146
|
}), null)])]);
|
|
81010
82147
|
}
|
|
81011
82148
|
};
|
|
81012
|
-
const _sfc_main$
|
|
82149
|
+
const _sfc_main$n = defineComponent({
|
|
81013
82150
|
name: "ElsWangEditor",
|
|
81014
82151
|
inheritAttrs: false,
|
|
81015
82152
|
props: wangEditorProps,
|
|
@@ -81019,7 +82156,7 @@ const _sfc_main$o = defineComponent({
|
|
|
81019
82156
|
},
|
|
81020
82157
|
emits: ["update:modelValue"]
|
|
81021
82158
|
});
|
|
81022
|
-
const WangEditor2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
82159
|
+
const WangEditor2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["__scopeId", "data-v-21475bac"]]);
|
|
81023
82160
|
const ElsWangEditor = withInstall$1(WangEditor2);
|
|
81024
82161
|
const jsonViewerProps = buildProps({
|
|
81025
82162
|
/**
|
|
@@ -81030,7 +82167,7 @@ const jsonViewerProps = buildProps({
|
|
|
81030
82167
|
}
|
|
81031
82168
|
});
|
|
81032
82169
|
const _hoisted_1$f = { class: "json-viewer" };
|
|
81033
|
-
const _sfc_main$
|
|
82170
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
81034
82171
|
...{
|
|
81035
82172
|
name: "ElsJsonViewer",
|
|
81036
82173
|
inheritAttrs: false
|
|
@@ -81066,96 +82203,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
81066
82203
|
};
|
|
81067
82204
|
}
|
|
81068
82205
|
});
|
|
81069
|
-
const ElsJsonViewer = withInstall$1(_sfc_main$
|
|
81070
|
-
const jsonEditorProps = buildProps({
|
|
81071
|
-
...formItemProps$1,
|
|
81072
|
-
/**
|
|
81073
|
-
* @description 绑定值
|
|
81074
|
-
*/
|
|
81075
|
-
modelValue: {
|
|
81076
|
-
type: [String, Object]
|
|
81077
|
-
},
|
|
81078
|
-
/**
|
|
81079
|
-
* @description 值类型 String|Object
|
|
81080
|
-
*/
|
|
81081
|
-
valueType: {
|
|
81082
|
-
type: String,
|
|
81083
|
-
values: ["String", "Object"]
|
|
81084
|
-
}
|
|
81085
|
-
});
|
|
81086
|
-
let JsonEditor$1 = class JsonEditor extends TBaseFormItem {
|
|
81087
|
-
constructor(props2, ctx) {
|
|
81088
|
-
super(props2, ctx);
|
|
81089
|
-
__publicField(this, "jsonEditor", ref());
|
|
81090
|
-
}
|
|
81091
|
-
watchModelValue() {
|
|
81092
|
-
watch(this._modelValue, (val) => {
|
|
81093
|
-
if (val) {
|
|
81094
|
-
if (typeof val === "object") {
|
|
81095
|
-
this._comValue.value = val;
|
|
81096
|
-
} else {
|
|
81097
|
-
this._comValue.value = JSON.parse(val);
|
|
81098
|
-
}
|
|
81099
|
-
}
|
|
81100
|
-
}, {
|
|
81101
|
-
immediate: true,
|
|
81102
|
-
deep: true
|
|
81103
|
-
});
|
|
81104
|
-
}
|
|
81105
|
-
watchComValue() {
|
|
81106
|
-
watch(this._comValue, (val) => {
|
|
81107
|
-
if (typeof val === "string") {
|
|
81108
|
-
try {
|
|
81109
|
-
JSON.parse(val);
|
|
81110
|
-
} catch {
|
|
81111
|
-
return;
|
|
81112
|
-
}
|
|
81113
|
-
}
|
|
81114
|
-
if (typeof this._modelValue.value === "object" || this._props.valueType === "Object") {
|
|
81115
|
-
if (typeof val === "string") {
|
|
81116
|
-
try {
|
|
81117
|
-
const currValue = JSON.parse(val);
|
|
81118
|
-
this.returnValue(currValue);
|
|
81119
|
-
} catch (err) {
|
|
81120
|
-
}
|
|
81121
|
-
} else {
|
|
81122
|
-
this.returnValue(val);
|
|
81123
|
-
}
|
|
81124
|
-
return;
|
|
81125
|
-
}
|
|
81126
|
-
if (typeof val === "object") {
|
|
81127
|
-
this.returnValue(JSON.stringify(val));
|
|
81128
|
-
return;
|
|
81129
|
-
}
|
|
81130
|
-
this.returnValue(val);
|
|
81131
|
-
}, {
|
|
81132
|
-
deep: true
|
|
81133
|
-
});
|
|
81134
|
-
}
|
|
81135
|
-
pcRender() {
|
|
81136
|
-
return createVNode(Fragment$1, null, [createVNode("div", {
|
|
81137
|
-
"class": "els-jsoneditor"
|
|
81138
|
-
}, [createVNode(JsonEditorVue, mergeProps({
|
|
81139
|
-
"modelValue": this._comValue.value,
|
|
81140
|
-
"onUpdate:modelValue": ($event) => this._comValue.value = $event
|
|
81141
|
-
}, this._attrs, {
|
|
81142
|
-
"ref": this.jsonEditor,
|
|
81143
|
-
"mode": "text"
|
|
81144
|
-
}), null)])]);
|
|
81145
|
-
}
|
|
81146
|
-
};
|
|
81147
|
-
const _sfc_main$m = defineComponent({
|
|
81148
|
-
name: "ElsJsonEditor",
|
|
81149
|
-
inheritAttrs: false,
|
|
81150
|
-
props: jsonEditorProps,
|
|
81151
|
-
setup(props2, ctx) {
|
|
81152
|
-
const editor = new JsonEditor$1(props2, ctx);
|
|
81153
|
-
return () => editor.render();
|
|
81154
|
-
},
|
|
81155
|
-
emits: ["update:modelValue"]
|
|
81156
|
-
});
|
|
81157
|
-
const JsonEditor2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["__scopeId", "data-v-ebf6dbd5"]]);
|
|
81158
|
-
const ElsJsonEditor = withInstall$1(JsonEditor2);
|
|
82206
|
+
const ElsJsonViewer = withInstall$1(_sfc_main$m);
|
|
81159
82207
|
const _hoisted_1$e = { class: "els-workpain" };
|
|
81160
82208
|
const _hoisted_2$b = { style: { "display": "flex" } };
|
|
81161
82209
|
const _hoisted_3$a = { style: { "display": "flex" } };
|
|
@@ -89494,7 +90542,8 @@ const components = [
|
|
|
89494
90542
|
ElsAMap,
|
|
89495
90543
|
ElsWaterfall,
|
|
89496
90544
|
ElsLazyImage,
|
|
89497
|
-
ElsTiptapEditor
|
|
90545
|
+
ElsTiptapEditor,
|
|
90546
|
+
ElsRequestForm
|
|
89498
90547
|
];
|
|
89499
90548
|
const ElementLess = {
|
|
89500
90549
|
install(app, options2 = {}) {
|
|
@@ -89505,6 +90554,7 @@ const ElementLess = {
|
|
|
89505
90554
|
});
|
|
89506
90555
|
app.component("ElsConditionBuilder", ConditionBuilderVue);
|
|
89507
90556
|
app.component("ElsExpressionInput", ExpressionInputVue);
|
|
90557
|
+
app.component("ElsSchemaFieldEditor", SchemaFieldEditorVue);
|
|
89508
90558
|
setConfig(options2);
|
|
89509
90559
|
app.config.globalProperties.$utils = utils;
|
|
89510
90560
|
app.config.globalProperties.$less_message = ProxyElsMessage;
|
|
@@ -89542,7 +90592,7 @@ export {
|
|
|
89542
90592
|
ElsDialog as Z,
|
|
89543
90593
|
_export_sfc$1 as _,
|
|
89544
90594
|
useRender as a,
|
|
89545
|
-
|
|
90595
|
+
Radio$1 as a$,
|
|
89546
90596
|
ElsDropdown as a0,
|
|
89547
90597
|
ElsDropdownGroup as a1,
|
|
89548
90598
|
ElsDynamicDesigner as a2,
|
|
@@ -89553,33 +90603,33 @@ export {
|
|
|
89553
90603
|
ElsHighlight as a7,
|
|
89554
90604
|
ElsImage as a8,
|
|
89555
90605
|
ElsImageViewer as a9,
|
|
89556
|
-
|
|
89557
|
-
|
|
89558
|
-
|
|
89559
|
-
|
|
89560
|
-
|
|
89561
|
-
|
|
89562
|
-
|
|
89563
|
-
|
|
89564
|
-
|
|
89565
|
-
|
|
89566
|
-
|
|
89567
|
-
|
|
89568
|
-
|
|
89569
|
-
|
|
89570
|
-
|
|
89571
|
-
|
|
89572
|
-
|
|
89573
|
-
|
|
89574
|
-
|
|
89575
|
-
|
|
89576
|
-
|
|
89577
|
-
|
|
89578
|
-
|
|
89579
|
-
|
|
89580
|
-
|
|
89581
|
-
|
|
89582
|
-
|
|
90606
|
+
ElsSegmented as aA,
|
|
90607
|
+
ElsSelect as aB,
|
|
90608
|
+
ElsSlider as aC,
|
|
90609
|
+
ElsStampBadge as aD,
|
|
90610
|
+
ElsSwitch as aE,
|
|
90611
|
+
ElsTable as aF,
|
|
90612
|
+
ElsTabs as aG,
|
|
90613
|
+
ElsTextarea as aH,
|
|
90614
|
+
ElsTimePicker as aI,
|
|
90615
|
+
ElsTimePickerRange as aJ,
|
|
90616
|
+
ElsTip as aK,
|
|
90617
|
+
ElsTiptapEditor as aL,
|
|
90618
|
+
ElsTree as aM,
|
|
90619
|
+
ElsTreeSelect as aN,
|
|
90620
|
+
ElsUEditor as aO,
|
|
90621
|
+
ElsUpload as aP,
|
|
90622
|
+
ElsWangEditor as aQ,
|
|
90623
|
+
ElsWaterfall as aR,
|
|
90624
|
+
ElsWorkFlow as aS,
|
|
90625
|
+
ElsWorkPlan as aT,
|
|
90626
|
+
Input as aU,
|
|
90627
|
+
InputNumber as aV,
|
|
90628
|
+
InputRange as aW,
|
|
90629
|
+
InputTag$1 as aX,
|
|
90630
|
+
JsonEditor$1 as aY,
|
|
90631
|
+
MdEditor as aZ,
|
|
90632
|
+
Option as a_,
|
|
89583
90633
|
ElsInput as aa,
|
|
89584
90634
|
ElsInputNumber as ab,
|
|
89585
90635
|
ElsInputRange as ac,
|
|
@@ -89604,87 +90654,89 @@ export {
|
|
|
89604
90654
|
ElsRadioButton as av,
|
|
89605
90655
|
ElsRender as aw,
|
|
89606
90656
|
ElsRenderAsync as ax,
|
|
89607
|
-
|
|
89608
|
-
|
|
90657
|
+
ElsRequestForm as ay,
|
|
90658
|
+
ElsRow as az,
|
|
89609
90659
|
buildSpacingCss as b,
|
|
89610
|
-
|
|
89611
|
-
|
|
89612
|
-
|
|
89613
|
-
|
|
89614
|
-
|
|
89615
|
-
|
|
89616
|
-
|
|
89617
|
-
|
|
89618
|
-
|
|
89619
|
-
|
|
89620
|
-
|
|
89621
|
-
|
|
89622
|
-
|
|
89623
|
-
|
|
89624
|
-
|
|
89625
|
-
|
|
89626
|
-
|
|
89627
|
-
|
|
89628
|
-
|
|
89629
|
-
|
|
89630
|
-
|
|
89631
|
-
|
|
89632
|
-
|
|
89633
|
-
|
|
89634
|
-
|
|
89635
|
-
|
|
89636
|
-
|
|
89637
|
-
|
|
89638
|
-
|
|
89639
|
-
|
|
89640
|
-
|
|
89641
|
-
|
|
89642
|
-
|
|
89643
|
-
|
|
89644
|
-
|
|
89645
|
-
|
|
89646
|
-
|
|
89647
|
-
|
|
89648
|
-
|
|
89649
|
-
|
|
89650
|
-
|
|
89651
|
-
|
|
89652
|
-
|
|
89653
|
-
|
|
89654
|
-
|
|
89655
|
-
|
|
89656
|
-
|
|
89657
|
-
|
|
89658
|
-
|
|
89659
|
-
|
|
89660
|
-
|
|
89661
|
-
|
|
89662
|
-
|
|
89663
|
-
|
|
89664
|
-
|
|
89665
|
-
|
|
89666
|
-
|
|
89667
|
-
|
|
89668
|
-
|
|
89669
|
-
|
|
89670
|
-
|
|
89671
|
-
|
|
89672
|
-
|
|
89673
|
-
|
|
90660
|
+
setResponseInterceptors as b$,
|
|
90661
|
+
Segmented as b0,
|
|
90662
|
+
Select$1 as b1,
|
|
90663
|
+
Slider as b2,
|
|
90664
|
+
Switch as b3,
|
|
90665
|
+
TimePicker as b4,
|
|
90666
|
+
TimePickerRange as b5,
|
|
90667
|
+
Tree$1 as b6,
|
|
90668
|
+
UEditor as b7,
|
|
90669
|
+
Upload$2 as b8,
|
|
90670
|
+
WangEditor$1 as b9,
|
|
90671
|
+
imageViewerProps as bA,
|
|
90672
|
+
inputNumberProps as bB,
|
|
90673
|
+
inputProps as bC,
|
|
90674
|
+
inputRangeProps as bD,
|
|
90675
|
+
inputTagProps as bE,
|
|
90676
|
+
jsonEditorProps as bF,
|
|
90677
|
+
jsonViewerProps as bG,
|
|
90678
|
+
listProps as bH,
|
|
90679
|
+
loadAsyncComponent as bI,
|
|
90680
|
+
loadSkeletonAsyncComponent as bJ,
|
|
90681
|
+
mdEditorProps as bK,
|
|
90682
|
+
menuContextProps as bL,
|
|
90683
|
+
menuDropdownProps as bM,
|
|
90684
|
+
menuEmits as bN,
|
|
90685
|
+
menuItemProps as bO,
|
|
90686
|
+
menuProps as bP,
|
|
90687
|
+
menuToolProps as bQ,
|
|
90688
|
+
optionGroupProps as bR,
|
|
90689
|
+
optionProps as bS,
|
|
90690
|
+
radioProps as bT,
|
|
90691
|
+
renderProps as bU,
|
|
90692
|
+
requestFormProps as bV,
|
|
90693
|
+
segmentedProps as bW,
|
|
90694
|
+
selectProps as bX,
|
|
90695
|
+
setConfig as bY,
|
|
90696
|
+
setJwtToken as bZ,
|
|
90697
|
+
setRequestInterceptors as b_,
|
|
90698
|
+
aceEditorProps as ba,
|
|
90699
|
+
autocompleteProps as bb,
|
|
90700
|
+
captionProps as bc,
|
|
90701
|
+
cascaderProps as bd,
|
|
90702
|
+
checkboxProps as be,
|
|
90703
|
+
collapseTransitionProps as bf,
|
|
90704
|
+
colorPickerProps as bg,
|
|
90705
|
+
containerProps as bh,
|
|
90706
|
+
createAxiosInstance as bi,
|
|
90707
|
+
dataModalProps as bj,
|
|
90708
|
+
datePickerProps as bk,
|
|
90709
|
+
datePickerRangeProps as bl,
|
|
90710
|
+
ElementLess as bm,
|
|
90711
|
+
defaultConfig as bn,
|
|
90712
|
+
designerProps as bo,
|
|
90713
|
+
designerViewProps as bp,
|
|
90714
|
+
dialogProps as bq,
|
|
90715
|
+
drawerProps as br,
|
|
90716
|
+
dropdownProps as bs,
|
|
90717
|
+
formItemProps as bt,
|
|
90718
|
+
formProps as bu,
|
|
90719
|
+
formQueryProps as bv,
|
|
90720
|
+
getAxiosConfig as bw,
|
|
90721
|
+
getAxiosInstance as bx,
|
|
90722
|
+
globalConfig as by,
|
|
90723
|
+
imageProps as bz,
|
|
89674
90724
|
utils as c,
|
|
89675
|
-
|
|
89676
|
-
|
|
89677
|
-
|
|
89678
|
-
|
|
89679
|
-
|
|
89680
|
-
|
|
89681
|
-
|
|
89682
|
-
|
|
89683
|
-
|
|
89684
|
-
|
|
89685
|
-
|
|
89686
|
-
|
|
89687
|
-
|
|
90725
|
+
sliderProps as c0,
|
|
90726
|
+
stampBadgeProps as c1,
|
|
90727
|
+
switchProps as c2,
|
|
90728
|
+
tableColumnProps as c3,
|
|
90729
|
+
tableProps as c4,
|
|
90730
|
+
tabsProps as c5,
|
|
90731
|
+
timePickerProps as c6,
|
|
90732
|
+
timePickerRangeProps as c7,
|
|
90733
|
+
tipProps as c8,
|
|
90734
|
+
tipTapEditorProps as c9,
|
|
90735
|
+
treeProps as ca,
|
|
90736
|
+
uEditorProps as cb,
|
|
90737
|
+
uploadProps as cc,
|
|
90738
|
+
wangEditorProps as cd,
|
|
90739
|
+
workFlowProps as ce,
|
|
89688
90740
|
useComponentRef as d,
|
|
89689
90741
|
DynamicRenderAsync as e,
|
|
89690
90742
|
DynamicDesignerInner as f,
|