ef-design 1.0.0 → 1.0.2
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/dist/design.css +16 -0
- package/dist/{formDesign.es.js → design.es.js} +147 -131
- package/dist/{formDesign.umd.js → design.umd.js} +110 -110
- package/package.json +3 -3
- package/dist/formDesign.css +0 -16
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import require$$0$1, { reactive, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, resolveComponent, createBlock,
|
|
20
|
+
import require$$0$1, { reactive, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, resolveComponent, createBlock, withCtx, createVNode, createTextVNode, withKeys, Fragment, renderList, renderSlot, normalizeStyle, withModifiers, resolveDirective, withDirectives, createSlots, watch, ref, onBeforeUnmount, onMounted, onUnmounted, mergeProps, resolveDynamicComponent, vShow, defineComponent, isVNode } from "vue";
|
|
21
21
|
import { ElNotification, ElMessage } from "element-plus";
|
|
22
22
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
23
23
|
function getDefaultExportFromCjs(x) {
|
|
@@ -6390,8 +6390,8 @@ const _sfc_main$38 = {
|
|
|
6390
6390
|
inject: ["getBannedWidgets", "getDesignerConfig"],
|
|
6391
6391
|
data() {
|
|
6392
6392
|
return {
|
|
6393
|
-
|
|
6394
|
-
|
|
6393
|
+
position1: "",
|
|
6394
|
+
position2: "",
|
|
6395
6395
|
alwaysRequire: [
|
|
6396
6396
|
"coopName",
|
|
6397
6397
|
"settlementCoopName",
|
|
@@ -6427,15 +6427,22 @@ const _sfc_main$38 = {
|
|
|
6427
6427
|
this.loadWidgets();
|
|
6428
6428
|
},
|
|
6429
6429
|
mounted() {
|
|
6430
|
-
this.scrollerHeight = window.innerHeight - 56 + "px";
|
|
6431
|
-
addWindowResizeHandler(() => {
|
|
6432
|
-
this.$nextTick(() => {
|
|
6433
|
-
this.scrollerHeight = window.innerHeight - 56 + "px";
|
|
6434
|
-
});
|
|
6435
|
-
});
|
|
6436
6430
|
this.initData();
|
|
6437
6431
|
},
|
|
6438
6432
|
methods: {
|
|
6433
|
+
renderForm() {
|
|
6434
|
+
this.$nextTick(() => {
|
|
6435
|
+
var _a;
|
|
6436
|
+
((_a = this.selectedList) == null ? void 0 : _a.length) > 0 && this.selectedList.forEach((item) => {
|
|
6437
|
+
var _a2, _b;
|
|
6438
|
+
if ((_a2 = item.widgetList) == null ? void 0 : _a2.length) {
|
|
6439
|
+
if (((_b = item.widgetList[0].options) == null ? void 0 : _b.name) && this.alwaysRequire.includes(item.widgetList[0].options.name)) {
|
|
6440
|
+
item.widgetList[0].options.required = true;
|
|
6441
|
+
}
|
|
6442
|
+
}
|
|
6443
|
+
});
|
|
6444
|
+
});
|
|
6445
|
+
},
|
|
6439
6446
|
initData() {
|
|
6440
6447
|
if (this.title.includes("\u8FDB\u53E3")) {
|
|
6441
6448
|
this.alwaysRequire = [
|
|
@@ -6472,39 +6479,56 @@ const _sfc_main$38 = {
|
|
|
6472
6479
|
"arrivalDate"
|
|
6473
6480
|
];
|
|
6474
6481
|
}
|
|
6482
|
+
this.renderForm();
|
|
6475
6483
|
},
|
|
6476
|
-
|
|
6477
|
-
let
|
|
6478
|
-
if (
|
|
6479
|
-
|
|
6484
|
+
getPosition(n, search2, arr) {
|
|
6485
|
+
let id = "";
|
|
6486
|
+
if (n === 2) {
|
|
6487
|
+
arr.forEach((item, index2) => {
|
|
6480
6488
|
if (item.widgetList.length) {
|
|
6481
|
-
if (item.widgetList[0].options.label.
|
|
6482
|
-
if (!
|
|
6483
|
-
|
|
6489
|
+
if (item.widgetList[0].options.label.includes(search2)) {
|
|
6490
|
+
if (!id) {
|
|
6491
|
+
id = item.widgetList[0].options.name;
|
|
6484
6492
|
}
|
|
6485
6493
|
}
|
|
6486
6494
|
}
|
|
6487
6495
|
});
|
|
6488
|
-
}
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6496
|
+
}
|
|
6497
|
+
if (n === 1) {
|
|
6498
|
+
arr.forEach((item, index2) => {
|
|
6499
|
+
if (item.options.label.includes(search2)) {
|
|
6500
|
+
if (!id) {
|
|
6501
|
+
id = item.options.name;
|
|
6493
6502
|
}
|
|
6494
6503
|
}
|
|
6495
6504
|
});
|
|
6496
6505
|
}
|
|
6497
|
-
|
|
6498
|
-
let target = document.getElementById(value2);
|
|
6499
|
-
let parent = document.getElementById(parentDivBox);
|
|
6500
|
-
parent.scrollTo(0, target.offsetTop - parent.offsetTop);
|
|
6501
|
-
}
|
|
6502
|
-
},
|
|
6503
|
-
waitSelectValueBlur() {
|
|
6504
|
-
this.quickLocation(this.waitSelectValue, this.noSelectedList, "waitSelect", false);
|
|
6506
|
+
return id;
|
|
6505
6507
|
},
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
+
scrollToView(n) {
|
|
6509
|
+
var _a;
|
|
6510
|
+
let txt = this["position" + n];
|
|
6511
|
+
let arr = n === 1 ? this.noSelectedList : this.selectedList;
|
|
6512
|
+
let _X_ID = this.getPosition(n, txt, arr);
|
|
6513
|
+
if (n === 1 && "\u5206\u5272\u7EBF".includes(txt)) {
|
|
6514
|
+
let parent = this.$refs["list_1"];
|
|
6515
|
+
parent.scrollTo({
|
|
6516
|
+
top: 0,
|
|
6517
|
+
behavior: "smooth"
|
|
6518
|
+
});
|
|
6519
|
+
}
|
|
6520
|
+
if (!!_X_ID) {
|
|
6521
|
+
let target = document.querySelector("#" + _X_ID);
|
|
6522
|
+
let parent = this.$refs["list_" + n];
|
|
6523
|
+
let tTop = (target == null ? void 0 : target.offsetTop) || 0;
|
|
6524
|
+
let pTop = ((_a = parent == null ? void 0 : parent.$el) == null ? void 0 : _a.offsetTop) || 0;
|
|
6525
|
+
this.$nextTick(() => {
|
|
6526
|
+
parent.scrollTo({
|
|
6527
|
+
top: tTop - pTop - 50,
|
|
6528
|
+
behavior: "smooth"
|
|
6529
|
+
});
|
|
6530
|
+
});
|
|
6531
|
+
}
|
|
6508
6532
|
},
|
|
6509
6533
|
drawingItemDelete(index2, list, listKey) {
|
|
6510
6534
|
if (list[index2].options.name === "coopName" || list[index2].options.name === "salesName" || list[index2].options.name === "expectDeparture" || list[index2].options.name === "controllerName" || list[index2].options.name === "routingPersonName" || list[index2].options.name === "servicerName") {
|
|
@@ -6523,25 +6547,29 @@ const _sfc_main$38 = {
|
|
|
6523
6547
|
console.log("\u5F85\u9009-panel", this.noSelectedList);
|
|
6524
6548
|
},
|
|
6525
6549
|
setRequired(item, index2) {
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
item.widgetList[0].options.
|
|
6550
|
+
this.$nextTick(() => {
|
|
6551
|
+
if (this.alwaysRequire.indexOf(item.widgetList[0].options.name) > -1) {
|
|
6552
|
+
ElNotification({
|
|
6553
|
+
type: "warning",
|
|
6554
|
+
title: "\u63D0\u793A",
|
|
6555
|
+
message: "\u5FC5\u586B\u9879\u4E0D\u53EF\u5220\u9664",
|
|
6556
|
+
position: "bottom-right"
|
|
6557
|
+
});
|
|
6558
|
+
} else {
|
|
6559
|
+
item.widgetList[0].options.required = !item.widgetList[0].options.required;
|
|
6560
|
+
if (item.widgetList[0].options.required) {
|
|
6561
|
+
item.widgetList[0].options.onValidate = false;
|
|
6562
|
+
}
|
|
6537
6563
|
}
|
|
6538
|
-
}
|
|
6564
|
+
});
|
|
6539
6565
|
},
|
|
6540
6566
|
setRemind(item) {
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
item.widgetList[0].options.
|
|
6544
|
-
|
|
6567
|
+
this.$nextTick(() => {
|
|
6568
|
+
item.widgetList[0].options.onValidate = !item.widgetList[0].options.onValidate;
|
|
6569
|
+
if (item.widgetList[0].options.onValidate) {
|
|
6570
|
+
item.widgetList[0].options.required = false;
|
|
6571
|
+
}
|
|
6572
|
+
});
|
|
6545
6573
|
},
|
|
6546
6574
|
isBanned(wName) {
|
|
6547
6575
|
return this.getBannedWidgets().indexOf(wName) > -1;
|
|
@@ -6638,19 +6666,24 @@ const _sfc_main$38 = {
|
|
|
6638
6666
|
const _hoisted_1$D = { class: "panel-container" };
|
|
6639
6667
|
const _hoisted_2$p = ["title", "onDblclick"];
|
|
6640
6668
|
const _hoisted_3$l = { class: "search-item-input" };
|
|
6641
|
-
const _hoisted_4$e = {
|
|
6669
|
+
const _hoisted_4$e = {
|
|
6670
|
+
class: "center-box",
|
|
6671
|
+
ref: "list_1"
|
|
6672
|
+
};
|
|
6642
6673
|
const _hoisted_5$c = ["title", "onDblclick", "id"];
|
|
6643
6674
|
const _hoisted_6$b = { class: "search-item-input" };
|
|
6644
|
-
const _hoisted_7$8 = {
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
const
|
|
6649
|
-
const
|
|
6675
|
+
const _hoisted_7$8 = {
|
|
6676
|
+
class: "selected-box",
|
|
6677
|
+
ref: "list_2"
|
|
6678
|
+
};
|
|
6679
|
+
const _hoisted_8$5 = ["id"];
|
|
6680
|
+
const _hoisted_9$3 = { key: 0 };
|
|
6681
|
+
const _hoisted_10$2 = ["onClick"];
|
|
6682
|
+
const _hoisted_11$2 = {
|
|
6650
6683
|
key: 1,
|
|
6651
6684
|
style: { "padding": "12px" }
|
|
6652
6685
|
};
|
|
6653
|
-
const
|
|
6686
|
+
const _hoisted_12$1 = ["onClick"];
|
|
6654
6687
|
function _sfc_render$38(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6655
6688
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
6656
6689
|
const _component_draggable = resolveComponent("draggable");
|
|
@@ -6659,15 +6692,12 @@ function _sfc_render$38(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6659
6692
|
const _component_el_button = resolveComponent("el-button");
|
|
6660
6693
|
const _component_el_collapse = resolveComponent("el-collapse");
|
|
6661
6694
|
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
6662
|
-
return openBlock(), createBlock(_component_el_scrollbar, {
|
|
6663
|
-
class: "side-scroll-bar",
|
|
6664
|
-
style: normalizeStyle({ height: $data.scrollerHeight })
|
|
6665
|
-
}, {
|
|
6695
|
+
return openBlock(), createBlock(_component_el_scrollbar, { class: "side-scroll-bar" }, {
|
|
6666
6696
|
default: withCtx(() => [
|
|
6667
6697
|
createElementVNode("div", _hoisted_1$D, [
|
|
6668
6698
|
createVNode(_component_el_collapse, {
|
|
6669
6699
|
modelValue: $data.activeNames,
|
|
6670
|
-
"onUpdate:modelValue": _cache[
|
|
6700
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.activeNames = $event),
|
|
6671
6701
|
class: "widget-collapse"
|
|
6672
6702
|
}, {
|
|
6673
6703
|
default: withCtx(() => [
|
|
@@ -6716,12 +6746,12 @@ function _sfc_render$38(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6716
6746
|
createElementVNode("div", _hoisted_3$l, [
|
|
6717
6747
|
createVNode(_component_el_input, {
|
|
6718
6748
|
placeholder: "\u641C\u7D22\u5173\u952E\u5B57",
|
|
6719
|
-
modelValue: $data.
|
|
6720
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.
|
|
6749
|
+
modelValue: $data.position1,
|
|
6750
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.position1 = $event),
|
|
6721
6751
|
class: "input-with-select",
|
|
6722
|
-
onBlur: $options.
|
|
6723
|
-
onKeyup: withKeys($options.
|
|
6724
|
-
}, null, 8, ["modelValue"
|
|
6752
|
+
onBlur: _cache[1] || (_cache[1] = ($event) => $options.scrollToView(1)),
|
|
6753
|
+
onKeyup: _cache[2] || (_cache[2] = withKeys(($event) => $options.scrollToView(1), ["enter", "native"]))
|
|
6754
|
+
}, null, 8, ["modelValue"])
|
|
6725
6755
|
]),
|
|
6726
6756
|
createElementVNode("div", _hoisted_4$e, [
|
|
6727
6757
|
createVNode(_component_draggable, {
|
|
@@ -6732,17 +6762,16 @@ function _sfc_render$38(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6732
6762
|
move: $options.checkFieldMove,
|
|
6733
6763
|
clone: $options.handleFieldWidgetClone,
|
|
6734
6764
|
"ghost-class": "ghost",
|
|
6735
|
-
sort: false
|
|
6736
|
-
id: "waitSelect"
|
|
6765
|
+
sort: false
|
|
6737
6766
|
}, {
|
|
6738
|
-
item: withCtx(({ element: fld }) => {
|
|
6767
|
+
item: withCtx(({ element: fld, index: index2 }) => {
|
|
6739
6768
|
var _a, _b, _c;
|
|
6740
6769
|
return [
|
|
6741
6770
|
createElementVNode("li", {
|
|
6742
6771
|
class: "field-widget-item",
|
|
6743
6772
|
title: (_a = fld.options) == null ? void 0 : _a.label,
|
|
6744
6773
|
onDblclick: ($event) => $options.addFieldByDbClick(fld),
|
|
6745
|
-
id: (_b = fld.options) == null ? void 0 : _b.name
|
|
6774
|
+
id: ((_b = fld.options) == null ? void 0 : _b.name) || "divider"
|
|
6746
6775
|
}, [
|
|
6747
6776
|
createElementVNode("span", null, [
|
|
6748
6777
|
createVNode(_component_svg_icon, {
|
|
@@ -6756,7 +6785,7 @@ function _sfc_render$38(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6756
6785
|
}),
|
|
6757
6786
|
_: 1
|
|
6758
6787
|
}, 8, ["list", "move", "clone"])
|
|
6759
|
-
])
|
|
6788
|
+
], 512)
|
|
6760
6789
|
]),
|
|
6761
6790
|
_: 1
|
|
6762
6791
|
}),
|
|
@@ -6769,30 +6798,30 @@ function _sfc_render$38(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6769
6798
|
createElementVNode("div", _hoisted_6$b, [
|
|
6770
6799
|
createVNode(_component_el_input, {
|
|
6771
6800
|
placeholder: "\u641C\u7D22\u5173\u952E\u5B57",
|
|
6772
|
-
modelValue: $data.
|
|
6773
|
-
"onUpdate:modelValue": _cache[
|
|
6801
|
+
modelValue: $data.position2,
|
|
6802
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.position2 = $event),
|
|
6774
6803
|
class: "input-with-select",
|
|
6775
|
-
onBlur: $options.
|
|
6776
|
-
onKeyup: withKeys($options.
|
|
6777
|
-
}, null, 8, ["modelValue"
|
|
6804
|
+
onBlur: _cache[4] || (_cache[4] = ($event) => $options.scrollToView(2)),
|
|
6805
|
+
onKeyup: _cache[5] || (_cache[5] = withKeys(($event) => $options.scrollToView(2), ["enter", "native"]))
|
|
6806
|
+
}, null, 8, ["modelValue"])
|
|
6778
6807
|
]),
|
|
6779
6808
|
createElementVNode("div", _hoisted_7$8, [
|
|
6780
|
-
createElementVNode("ul",
|
|
6809
|
+
createElementVNode("ul", null, [
|
|
6781
6810
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.selectedList, (item, index2) => {
|
|
6782
6811
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
6783
|
-
return openBlock(), createElementBlock("
|
|
6812
|
+
return openBlock(), createElementBlock("p", {
|
|
6784
6813
|
key: index2,
|
|
6785
|
-
class: "selected-
|
|
6814
|
+
class: "selected-p",
|
|
6786
6815
|
id: (_b = (_a = item.widgetList[0]) == null ? void 0 : _a.options) == null ? void 0 : _b.name
|
|
6787
6816
|
}, [
|
|
6788
|
-
item.widgetList.length > 0 ? (openBlock(), createElementBlock("li",
|
|
6817
|
+
item.widgetList.length > 0 ? (openBlock(), createElementBlock("li", _hoisted_9$3, [
|
|
6789
6818
|
createElementVNode("span", null, [
|
|
6790
6819
|
$data.alwaysRequire.indexOf((_d = (_c = item.widgetList[0]) == null ? void 0 : _c.options) == null ? void 0 : _d.name) == -1 ? (openBlock(), createElementBlock("img", {
|
|
6791
6820
|
key: 0,
|
|
6792
6821
|
class: "del-img",
|
|
6793
6822
|
src: _imports_0,
|
|
6794
6823
|
onClick: ($event) => $options.drawingItemDelete(index2, $props.selectedList, "formDataNoselected")
|
|
6795
|
-
}, null, 8,
|
|
6824
|
+
}, null, 8, _hoisted_10$2)) : (openBlock(), createElementBlock("span", _hoisted_11$2)),
|
|
6796
6825
|
createTextVNode(" " + toDisplayString((_f = (_e = item.widgetList[0]) == null ? void 0 : _e.options) == null ? void 0 : _f.label), 1)
|
|
6797
6826
|
]),
|
|
6798
6827
|
createElementVNode("span", null, [
|
|
@@ -6805,7 +6834,7 @@ function _sfc_render$38(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6805
6834
|
}),
|
|
6806
6835
|
onClick: ($event) => $options.setRequired(item, index2)
|
|
6807
6836
|
}, {
|
|
6808
|
-
default: withCtx(() => _cache[
|
|
6837
|
+
default: withCtx(() => _cache[7] || (_cache[7] = [
|
|
6809
6838
|
createTextVNode(" \u5FC5\u586B ")
|
|
6810
6839
|
])),
|
|
6811
6840
|
_: 2
|
|
@@ -6818,7 +6847,7 @@ function _sfc_render$38(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6818
6847
|
}),
|
|
6819
6848
|
onClick: ($event) => $options.setRemind(item, index2)
|
|
6820
6849
|
}, {
|
|
6821
|
-
default: withCtx(() => _cache[
|
|
6850
|
+
default: withCtx(() => _cache[8] || (_cache[8] = [
|
|
6822
6851
|
createTextVNode(" \u63D0\u9192 ")
|
|
6823
6852
|
])),
|
|
6824
6853
|
_: 2
|
|
@@ -6832,7 +6861,7 @@ function _sfc_render$38(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6832
6861
|
class: "del-img",
|
|
6833
6862
|
src: _imports_0,
|
|
6834
6863
|
onClick: ($event) => $options.drawingItemDelete(index1, item.options.children, "children")
|
|
6835
|
-
}, null, 8,
|
|
6864
|
+
}, null, 8, _hoisted_12$1),
|
|
6836
6865
|
createTextVNode(" " + toDisplayString(item1.options.label), 1)
|
|
6837
6866
|
]),
|
|
6838
6867
|
createElementVNode("span", null, [
|
|
@@ -6844,7 +6873,7 @@ function _sfc_render$38(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6844
6873
|
}),
|
|
6845
6874
|
onClick: ($event) => $options.setRequired(item1, index1)
|
|
6846
6875
|
}, {
|
|
6847
|
-
default: withCtx(() => _cache[
|
|
6876
|
+
default: withCtx(() => _cache[9] || (_cache[9] = [
|
|
6848
6877
|
createTextVNode(" \u5FC5\u586B ")
|
|
6849
6878
|
])),
|
|
6850
6879
|
_: 2
|
|
@@ -6852,10 +6881,10 @@ function _sfc_render$38(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6852
6881
|
])
|
|
6853
6882
|
]);
|
|
6854
6883
|
}), 128)) : createCommentVNode("", true)
|
|
6855
|
-
], 8,
|
|
6884
|
+
], 8, _hoisted_8$5);
|
|
6856
6885
|
}), 128))
|
|
6857
6886
|
])
|
|
6858
|
-
])
|
|
6887
|
+
], 512)
|
|
6859
6888
|
]),
|
|
6860
6889
|
_: 1
|
|
6861
6890
|
})
|
|
@@ -6865,9 +6894,9 @@ function _sfc_render$38(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6865
6894
|
])
|
|
6866
6895
|
]),
|
|
6867
6896
|
_: 1
|
|
6868
|
-
}
|
|
6897
|
+
});
|
|
6869
6898
|
}
|
|
6870
|
-
var WidgetPanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$38, [["render", _sfc_render$38], ["__scopeId", "data-v-
|
|
6899
|
+
var WidgetPanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$38, [["render", _sfc_render$38], ["__scopeId", "data-v-95bc8322"]]);
|
|
6871
6900
|
var emitter = {
|
|
6872
6901
|
data() {
|
|
6873
6902
|
return {
|
|
@@ -23132,8 +23161,8 @@ var ContainerItems = {
|
|
|
23132
23161
|
};
|
|
23133
23162
|
var index_vue_vue_type_style_index_0_scoped_true_lang$5 = "";
|
|
23134
23163
|
const _sfc_main$2C = {
|
|
23135
|
-
name: "
|
|
23136
|
-
componentName: "
|
|
23164
|
+
name: "FormRender",
|
|
23165
|
+
componentName: "FormRender",
|
|
23137
23166
|
mixins: [emitter, i18n$1],
|
|
23138
23167
|
components: __spreadValues({}, comps$1),
|
|
23139
23168
|
props: {
|
|
@@ -23714,7 +23743,7 @@ function _sfc_render$2C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23714
23743
|
_: 3
|
|
23715
23744
|
}, 8, ["label-position", "size", "class", "label-width", "model"]);
|
|
23716
23745
|
}
|
|
23717
|
-
var FormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$2C, [["render", _sfc_render$2C], ["__scopeId", "data-v-
|
|
23746
|
+
var FormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$2C, [["render", _sfc_render$2C], ["__scopeId", "data-v-1bb4cc1a"]]);
|
|
23718
23747
|
var ace$2 = { exports: {} };
|
|
23719
23748
|
(function(module, exports) {
|
|
23720
23749
|
(function() {
|
|
@@ -48472,15 +48501,15 @@ const genScopedCSS = function(formConfig2, vue3Flag = false) {
|
|
|
48472
48501
|
div.tab-container {
|
|
48473
48502
|
}
|
|
48474
48503
|
|
|
48475
|
-
.label-left-align ${!!vue3Flag ? `:deep(.el-form-item__label)` :
|
|
48504
|
+
.label-left-align ${!!vue3Flag ? `:deep(.el-form-item__label)` : `:deep(.el-form-item__label)`} {
|
|
48476
48505
|
text-align: left;
|
|
48477
48506
|
}
|
|
48478
48507
|
|
|
48479
|
-
.label-center-align ${!!vue3Flag ? `:deep(.el-form-item__label)` :
|
|
48508
|
+
.label-center-align ${!!vue3Flag ? `:deep(.el-form-item__label)` : `:deep(.el-form-item__label)`} {
|
|
48480
48509
|
text-align: center;
|
|
48481
48510
|
}
|
|
48482
48511
|
|
|
48483
|
-
.label-right-align ${!!vue3Flag ? `:deep(.el-form-item__label)` :
|
|
48512
|
+
.label-right-align ${!!vue3Flag ? `:deep(.el-form-item__label)` : `:deep(.el-form-item__label)`} {
|
|
48484
48513
|
text-align: right;
|
|
48485
48514
|
}
|
|
48486
48515
|
|
|
@@ -48492,7 +48521,7 @@ const genScopedCSS = function(formConfig2, vue3Flag = false) {
|
|
|
48492
48521
|
display: flex;
|
|
48493
48522
|
align-items: center;
|
|
48494
48523
|
|
|
48495
|
-
${!!vue3Flag ? `:deep(.el-divider--horizontal)` :
|
|
48524
|
+
${!!vue3Flag ? `:deep(.el-divider--horizontal)` : `:deep(.el-divider--horizontal)`} {
|
|
48496
48525
|
margin: 0;
|
|
48497
48526
|
}
|
|
48498
48527
|
}`;
|
|
@@ -52036,7 +52065,7 @@ function _sfc_render$1L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
52036
52065
|
_: 1
|
|
52037
52066
|
}, 8, ["label"])) : createCommentVNode("", true);
|
|
52038
52067
|
}
|
|
52039
|
-
var textAlignEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1L, [["render", _sfc_render$1L], ["__scopeId", "data-v-
|
|
52068
|
+
var textAlignEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1L, [["render", _sfc_render$1L], ["__scopeId", "data-v-f9cc7378"]]);
|
|
52040
52069
|
var __glob_0_51 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
52041
52070
|
__proto__: null,
|
|
52042
52071
|
"default": textAlignEditor
|
|
@@ -59532,55 +59561,42 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
59532
59561
|
const _component_v_form_widget = resolveComponent("v-form-widget");
|
|
59533
59562
|
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
59534
59563
|
const _component_el_main = resolveComponent("el-main");
|
|
59535
|
-
const _component_el_container = resolveComponent("el-container");
|
|
59536
59564
|
const _component_widget_panel = resolveComponent("widget-panel");
|
|
59537
59565
|
const _component_el_aside = resolveComponent("el-aside");
|
|
59538
|
-
|
|
59566
|
+
const _component_el_container = resolveComponent("el-container");
|
|
59567
|
+
return openBlock(), createBlock(_component_el_container, { class: "main-container full-height main-design" }, {
|
|
59539
59568
|
default: withCtx(() => [
|
|
59540
|
-
createVNode(
|
|
59569
|
+
createVNode(_component_el_main, { class: "form-widget-main main-design-left" }, {
|
|
59541
59570
|
default: withCtx(() => [
|
|
59542
|
-
createVNode(
|
|
59571
|
+
createVNode(_component_el_scrollbar, { class: "container-scroll-bar" }, {
|
|
59543
59572
|
default: withCtx(() => [
|
|
59544
|
-
createVNode(
|
|
59545
|
-
default: withCtx(() => [
|
|
59546
|
-
createVNode(_component_el_scrollbar, {
|
|
59547
|
-
class: "container-scroll-bar",
|
|
59548
|
-
style: normalizeStyle({ height: $data.scrollerHeight })
|
|
59549
|
-
}, {
|
|
59550
|
-
default: withCtx(() => [
|
|
59551
|
-
createVNode(_component_v_form_widget, {
|
|
59552
|
-
designer: $data.designer,
|
|
59553
|
-
"form-config": $data.designer.formConfig,
|
|
59554
|
-
"global-dsv": $props.globalDsv,
|
|
59555
|
-
ref: "formRef"
|
|
59556
|
-
}, null, 8, ["designer", "form-config", "global-dsv"])
|
|
59557
|
-
]),
|
|
59558
|
-
_: 1
|
|
59559
|
-
}, 8, ["style"])
|
|
59560
|
-
]),
|
|
59561
|
-
_: 1
|
|
59562
|
-
})
|
|
59563
|
-
]),
|
|
59564
|
-
_: 1
|
|
59565
|
-
}),
|
|
59566
|
-
createVNode(_component_el_aside, { class: "side-panel" }, {
|
|
59567
|
-
default: withCtx(() => [
|
|
59568
|
-
createVNode(_component_widget_panel, {
|
|
59573
|
+
createVNode(_component_v_form_widget, {
|
|
59569
59574
|
designer: $data.designer,
|
|
59570
|
-
"
|
|
59571
|
-
"
|
|
59572
|
-
|
|
59575
|
+
"form-config": $data.designer.formConfig,
|
|
59576
|
+
"global-dsv": $props.globalDsv,
|
|
59577
|
+
ref: "formRef"
|
|
59578
|
+
}, null, 8, ["designer", "form-config", "global-dsv"])
|
|
59573
59579
|
]),
|
|
59574
59580
|
_: 1
|
|
59575
59581
|
})
|
|
59576
59582
|
]),
|
|
59577
59583
|
_: 1
|
|
59584
|
+
}),
|
|
59585
|
+
createVNode(_component_el_aside, { class: "side-panel main-design-right" }, {
|
|
59586
|
+
default: withCtx(() => [
|
|
59587
|
+
createVNode(_component_widget_panel, {
|
|
59588
|
+
designer: $data.designer,
|
|
59589
|
+
"selected-list": $data.selectedList,
|
|
59590
|
+
"no-selected-list": $data.noSelectedList
|
|
59591
|
+
}, null, 8, ["designer", "selected-list", "no-selected-list"])
|
|
59592
|
+
]),
|
|
59593
|
+
_: 1
|
|
59578
59594
|
})
|
|
59579
59595
|
]),
|
|
59580
59596
|
_: 1
|
|
59581
59597
|
});
|
|
59582
59598
|
}
|
|
59583
|
-
var FormDesign = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-
|
|
59599
|
+
var FormDesign = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-03ef212d"]]);
|
|
59584
59600
|
var vuedraggable_umd = { exports: {} };
|
|
59585
59601
|
/**!
|
|
59586
59602
|
* Sortable 1.14.0
|
|
@@ -65504,13 +65520,13 @@ function registerIcon(app) {
|
|
|
65504
65520
|
if (typeof window !== "undefined") {
|
|
65505
65521
|
let loadSvg = function() {
|
|
65506
65522
|
var body = document.body;
|
|
65507
|
-
var svgDom = document.getElementById("
|
|
65523
|
+
var svgDom = document.getElementById("__svg__icons__dom__1726284957535__");
|
|
65508
65524
|
if (!svgDom) {
|
|
65509
65525
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
65510
65526
|
svgDom.style.position = "absolute";
|
|
65511
65527
|
svgDom.style.width = "0";
|
|
65512
65528
|
svgDom.style.height = "0";
|
|
65513
|
-
svgDom.id = "
|
|
65529
|
+
svgDom.id = "__svg__icons__dom__1726284957535__";
|
|
65514
65530
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
65515
65531
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
65516
65532
|
}
|