form-imagining 0.0.89-13 → 0.0.89-13-cs2
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/README.md +3 -0
- package/dist/{App-Dr_JUxGc.js → App-BEFMYq5r.js} +1 -1
- package/dist/Col-DAvaHA8z.js +4 -0
- package/dist/Collapse-Dg0afpyv.js +4 -0
- package/dist/{Demo-CULSTfqM.js → Demo-DoP4d86z.js} +1 -1
- package/dist/FView-BKAMwSXT.js +4 -0
- package/dist/FX-DfyARilm.js +4 -0
- package/dist/{FormGridCopy-C9SbKai5.js → FormGridCopy-BSATKJrq.js} +1 -1
- package/dist/GenerateForm-BCacmLJO.js +4 -0
- package/dist/GenerateReport-UcztFjIb.js +4 -0
- package/dist/{HelloWorld-DzavwDnV.js → HelloWorld-B5mcy50p.js} +1 -1
- package/dist/Input-/345/210/240/351/231/{244-B_bdQ_L-.js → 244-DC4zzq88.js} +1 -1
- package/dist/Label-/345/210/240/351/231/{244-BNvJ4i_y.js → 244-B6jXNg4e.js} +1 -1
- package/dist/{Login-B5qo5etU.js → Login-CslPa4ft.js} +1 -1
- package/dist/RView-BZOq0KsF.js +4 -0
- package/dist/SqlModule-CBbFuZgA.js +4 -0
- package/dist/TableBtnModal-BiU24FxT.js +4 -0
- package/dist/childForm-DFR6PPDu.js +4 -0
- package/dist/{cssMode-1qGaG9sI.js → cssMode-CBAl5X0f.js} +1 -1
- package/dist/form-imagining.js +1 -1
- package/dist/form-imagining.umd.cjs +4 -4
- package/dist/{formTest-CEaPIFAX.js → formTest-XxJbWvyR.js} +1 -1
- package/dist/{freemarker2-CQ91mE6Z.js → freemarker2-B7n8GgnN.js} +1 -1
- package/dist/{handlebars-C7I9Qo9D.js → handlebars-DqpsjM4k.js} +1 -1
- package/dist/{html-BXO3ikjR.js → html-C9ysmoBM.js} +1 -1
- package/dist/{htmlMode-COcpNzVk.js → htmlMode-Dg7zregt.js} +1 -1
- package/dist/{index-07c8XCH6.js → index-BNin1nk1.js} +1 -1
- package/dist/{index-DoHC7AI4.js → index-Bu-16yaz.js} +1 -1
- package/dist/{index-CYHzxLXJ.js → index-D5t1LvMD.js} +505 -497
- package/dist/{javascript-CY-7aDkp.js → javascript-j_bUX2cJ.js} +1 -1
- package/dist/{jsonMode-Ch7bntkG.js → jsonMode-3C5MnbK8.js} +1 -1
- package/dist/{liquid-B-esvwin.js → liquid-BIwg8TO3.js} +1 -1
- package/dist/{mdx-YL4srKNE.js → mdx-BYEre6RY.js} +1 -1
- package/dist/{python-BdD8FW4g.js → python-CD3qV_bY.js} +1 -1
- package/dist/{razor-PvEZi_Mt.js → razor-D8ENpy-u.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tableSelectDemo-DZILwurX.js → tableSelectDemo-ZzK9Fgee.js} +1 -1
- package/dist/{tableSelectDemo2-CdReipzK.js → tableSelectDemo2-Dnv2PT0a.js} +1 -1
- package/dist/{testIndex-jh44dzAd.js → testIndex-DNJuqMdR.js} +3 -3
- package/dist/{tsMode-CgCkq3hc.js → tsMode-d7v-Rz4D.js} +1 -1
- package/dist/{typescript-Hvtyb-Em.js → typescript-tJCgNZ1e.js} +1 -1
- package/dist/{xml-Dx4jpMI3.js → xml-AVaaG15y.js} +1 -1
- package/dist/{yaml-DvinJYI4.js → yaml-DqUbJ_oC.js} +1 -1
- package/package.json +1 -1
- package/dist/Col-Byl64_Uv.js +0 -4
- package/dist/Collapse-pwtLt3FG.js +0 -4
- package/dist/FView-B6h4egFE.js +0 -4
- package/dist/FX-BEyNGWPG.js +0 -4
- package/dist/GenerateForm--RVbLAZ_.js +0 -4
- package/dist/GenerateReport-62vUFJjV.js +0 -4
- package/dist/RView-BeoxvKe2.js +0 -4
- package/dist/SqlModule-Cj01lo4x.js +0 -4
- package/dist/TableBtnModal-B72tlD1e.js +0 -4
- package/dist/childForm-Dz6W5B-t.js +0 -4
|
@@ -81499,477 +81499,7 @@ const AFlex = defineComponent({
|
|
|
81499
81499
|
}));
|
|
81500
81500
|
};
|
|
81501
81501
|
}
|
|
81502
|
-
}), Flex = withInstall(AFlex),
|
|
81503
|
-
class: "table-header-css",
|
|
81504
|
-
style: { "text-align": "left", "padding-bottom": "5px" }
|
|
81505
|
-
}, _hoisted_4$f = { class: "move" }, _hoisted_5$d = {
|
|
81506
|
-
key: 0,
|
|
81507
|
-
class: "widget-view-drag"
|
|
81508
|
-
}, _hoisted_6$c = ["onClick"], _hoisted_7$a = {
|
|
81509
|
-
key: 0,
|
|
81510
|
-
class: "item-action"
|
|
81511
|
-
}, _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
81512
|
-
__name: "FormTable",
|
|
81513
|
-
props: {
|
|
81514
|
-
list: {
|
|
81515
|
-
type: Array,
|
|
81516
|
-
default: []
|
|
81517
|
-
},
|
|
81518
|
-
data: {
|
|
81519
|
-
type: Object,
|
|
81520
|
-
default: null
|
|
81521
|
-
},
|
|
81522
|
-
activeIndex: {
|
|
81523
|
-
type: String,
|
|
81524
|
-
default: ""
|
|
81525
|
-
},
|
|
81526
|
-
index: {
|
|
81527
|
-
type: String,
|
|
81528
|
-
default: ""
|
|
81529
|
-
}
|
|
81530
|
-
},
|
|
81531
|
-
setup(W) {
|
|
81532
|
-
const C = useFormStore();
|
|
81533
|
-
storeToRefs(C);
|
|
81534
|
-
const Q = W;
|
|
81535
|
-
let Z = ref(null), H = ref(!1);
|
|
81536
|
-
function K(ie) {
|
|
81537
|
-
Z.value != null && (Z.value.className = ""), Z.value = ie, H.value = !0, ie.className = "tableClass";
|
|
81538
|
-
}
|
|
81539
|
-
let G = 0;
|
|
81540
|
-
function U() {
|
|
81541
|
-
Q.data.tableColumns.push({
|
|
81542
|
-
title: "自定义列" + G,
|
|
81543
|
-
dataIndex: "code"
|
|
81544
|
-
}), G++;
|
|
81545
|
-
}
|
|
81546
|
-
function X() {
|
|
81547
|
-
Z.value.children == null && Reflect.set(Z.value, "children", []), Z.value.children.push({
|
|
81548
|
-
title: "自定义列" + G,
|
|
81549
|
-
dataIndex: "code",
|
|
81550
|
-
key: "code"
|
|
81551
|
-
}), G++;
|
|
81552
|
-
}
|
|
81553
|
-
function ee(ie) {
|
|
81554
|
-
let ne = JSON.parse(JSON.stringify(ie));
|
|
81555
|
-
if (Q.list && Q.list.length > 0) {
|
|
81556
|
-
let re = Q.list.findIndex((se) => se.id == ie.id);
|
|
81557
|
-
re > -1 && (ne = setRandomKeyToContentList([ne])[0], Q.list.splice(re + 1, 0, ne));
|
|
81558
|
-
}
|
|
81559
|
-
}
|
|
81560
|
-
function te(ie) {
|
|
81561
|
-
if (Q.list && Q.list.length > 0) {
|
|
81562
|
-
let ne = Q.list.findIndex((re) => re.id == ie.id);
|
|
81563
|
-
ne > -1 && Q.list.splice(ne, 1);
|
|
81564
|
-
}
|
|
81565
|
-
}
|
|
81566
|
-
return (ie, ne) => {
|
|
81567
|
-
const re = resolveComponent("a-button"), se = resolveComponent("a-space"), ae = resolveComponent("a-table");
|
|
81568
|
-
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
81569
|
-
createElementVNode("div", _hoisted_2$n, [
|
|
81570
|
-
createElementVNode("a", { onClick: U }, "添加列"),
|
|
81571
|
-
createTextVNode(" "),
|
|
81572
|
-
unref(H) ? (openBlock(), createElementBlock("a", {
|
|
81573
|
-
key: 0,
|
|
81574
|
-
onClick: X
|
|
81575
|
-
}, "分组『" + toDisplayString(unref(Z).title) + "』添加列", 1)) : createCommentVNode("", !0)
|
|
81576
|
-
]),
|
|
81577
|
-
createElementVNode("div", _hoisted_3$i, [
|
|
81578
|
-
createVNode(se, null, {
|
|
81579
|
-
default: withCtx(() => [
|
|
81580
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(W.data.options.headerBtns, (le) => (openBlock(), createBlock(re, {
|
|
81581
|
-
type: le.type,
|
|
81582
|
-
size: "small"
|
|
81583
|
-
}, {
|
|
81584
|
-
default: withCtx(() => [
|
|
81585
|
-
createTextVNode(toDisplayString(le.title), 1)
|
|
81586
|
-
]),
|
|
81587
|
-
_: 2
|
|
81588
|
-
}, 1032, ["type"]))), 256))
|
|
81589
|
-
]),
|
|
81590
|
-
_: 1
|
|
81591
|
-
})
|
|
81592
|
-
]),
|
|
81593
|
-
createElementVNode("div", _hoisted_4$f, [
|
|
81594
|
-
W.activeIndex == W.index.toString() ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
|
|
81595
|
-
createVNode(unref(DragOutlined), { style: { padding: "6px" } })
|
|
81596
|
-
])) : createCommentVNode("", !0)
|
|
81597
|
-
]),
|
|
81598
|
-
createVNode(ae, {
|
|
81599
|
-
columns: W.data.tableColumns,
|
|
81600
|
-
bordered: "",
|
|
81601
|
-
size: "middle",
|
|
81602
|
-
scroll: { y: 240 }
|
|
81603
|
-
}, {
|
|
81604
|
-
headerCell: withCtx(({ column: le }) => [
|
|
81605
|
-
createElementVNode("div", {
|
|
81606
|
-
onClick: (ce) => K(le)
|
|
81607
|
-
}, toDisplayString(le.title), 9, _hoisted_6$c)
|
|
81608
|
-
]),
|
|
81609
|
-
_: 1
|
|
81610
|
-
}, 8, ["columns"]),
|
|
81611
|
-
W.activeIndex == W.index.toString() ? (openBlock(), createElementBlock("div", _hoisted_7$a, [
|
|
81612
|
-
createVNode(unref(CopyOutlined), {
|
|
81613
|
-
style: { padding: "3px 5px" },
|
|
81614
|
-
onClick: ne[0] || (ne[0] = (le) => ee(W.data))
|
|
81615
|
-
}),
|
|
81616
|
-
createVNode(unref(DeleteOutlined), {
|
|
81617
|
-
onClick: ne[1] || (ne[1] = (le) => te(W.data))
|
|
81618
|
-
})
|
|
81619
|
-
])) : createCommentVNode("", !0)
|
|
81620
|
-
]);
|
|
81621
|
-
};
|
|
81622
|
-
}
|
|
81623
|
-
}), FormTable = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-ed309569"]]), FormTable$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81624
|
-
__proto__: null,
|
|
81625
|
-
default: FormTable
|
|
81626
|
-
}, Symbol.toStringTag, { value: "Module" })), _hoisted_1$w = { class: "col-view" }, _hoisted_2$m = ["onMousedown"], _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
81627
|
-
__name: "FormCol",
|
|
81628
|
-
props: {
|
|
81629
|
-
list: {
|
|
81630
|
-
type: Array,
|
|
81631
|
-
default: []
|
|
81632
|
-
},
|
|
81633
|
-
data: {
|
|
81634
|
-
type: Object,
|
|
81635
|
-
default: null
|
|
81636
|
-
},
|
|
81637
|
-
index: {
|
|
81638
|
-
type: String
|
|
81639
|
-
},
|
|
81640
|
-
activeIndex: {
|
|
81641
|
-
type: String
|
|
81642
|
-
}
|
|
81643
|
-
},
|
|
81644
|
-
emits: ["index", "controlConfig"],
|
|
81645
|
-
setup(W, { emit: C }) {
|
|
81646
|
-
useFormStore();
|
|
81647
|
-
const Q = W, Z = ref("-1"), H = C;
|
|
81648
|
-
watch(
|
|
81649
|
-
() => Q.activeIndex,
|
|
81650
|
-
(ee, te) => {
|
|
81651
|
-
Z.value = ee;
|
|
81652
|
-
}
|
|
81653
|
-
);
|
|
81654
|
-
function K() {
|
|
81655
|
-
console.log("// 开始拖拽");
|
|
81656
|
-
}
|
|
81657
|
-
function G(ee) {
|
|
81658
|
-
if (console.log("end", ee), ee.to.className.includes("col-drag-list") && ee.to.className.includes(`col-drag-list-${Q.index}`))
|
|
81659
|
-
Z.value = Q.index + "-" + ee.newIndex;
|
|
81660
|
-
else if (ee.to.className.includes("col-drag-list") && !ee.to.className.includes(`col-drag-list-${Q.index}`)) {
|
|
81661
|
-
let te = Array.from(ee.to.classList).find((ie) => ie.includes("col-drag-list-"));
|
|
81662
|
-
if (te) {
|
|
81663
|
-
let ie = te.split("-"), ne = ie[ie.length - 2] + "-" + ie[ie.length - 1];
|
|
81664
|
-
Z.value = ne + "-" + ee.newIndex;
|
|
81665
|
-
} else
|
|
81666
|
-
Z.value = "-1";
|
|
81667
|
-
} else
|
|
81668
|
-
Z.value = ee.newIndex;
|
|
81669
|
-
H("index", Z.value);
|
|
81670
|
-
}
|
|
81671
|
-
function U(ee, te, ie) {
|
|
81672
|
-
Z.value = te, H("controlConfig", ee), H("index", te), ie.stopPropagation(), ie.preventDefault();
|
|
81673
|
-
}
|
|
81674
|
-
function X(ee) {
|
|
81675
|
-
return console.log("move", ee), !ee.to.className.includes("row-drag-list");
|
|
81676
|
-
}
|
|
81677
|
-
return (ee, te) => (openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
81678
|
-
createVNode(unref(VueDraggableNext), {
|
|
81679
|
-
class: normalizeClass(["col-drag-list", `col-drag-list-${W.index}`]),
|
|
81680
|
-
list: W.data.list,
|
|
81681
|
-
handle: ".move",
|
|
81682
|
-
group: { name: "itxst" },
|
|
81683
|
-
"ghost-class": "ghost",
|
|
81684
|
-
"fallback-on-body": !0,
|
|
81685
|
-
"force-fallback": !0,
|
|
81686
|
-
"fallback-class": "ghost",
|
|
81687
|
-
onStart: K,
|
|
81688
|
-
onEnd: te[0] || (te[0] = (ie) => G(ie)),
|
|
81689
|
-
move: X,
|
|
81690
|
-
animation: "300",
|
|
81691
|
-
"drag-class": "dragClass1"
|
|
81692
|
-
}, {
|
|
81693
|
-
default: withCtx(() => [
|
|
81694
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(W.data.list, (ie, ne) => (openBlock(), createElementBlock("div", {
|
|
81695
|
-
class: normalizeClass(["widget-view", { active: Z.value == W.index + "-" + ne }]),
|
|
81696
|
-
onMousedown: (re) => U(ie, W.index + "-" + ne, re)
|
|
81697
|
-
}, [
|
|
81698
|
-
ie.type == "table" ? (openBlock(), createBlock(FormTable, {
|
|
81699
|
-
key: 0,
|
|
81700
|
-
data: ie,
|
|
81701
|
-
list: W.data.list,
|
|
81702
|
-
activeIndex: Z.value.toString(),
|
|
81703
|
-
index: W.index + "-" + ne
|
|
81704
|
-
}, null, 8, ["data", "list", "activeIndex", "index"])) : (openBlock(), createBlock(FormInput, {
|
|
81705
|
-
key: 1,
|
|
81706
|
-
data: ie,
|
|
81707
|
-
list: W.data.list,
|
|
81708
|
-
activeIndex: Z.value,
|
|
81709
|
-
index: W.index + "-" + ne
|
|
81710
|
-
}, null, 8, ["data", "list", "activeIndex", "index"]))
|
|
81711
|
-
], 42, _hoisted_2$m))), 256))
|
|
81712
|
-
]),
|
|
81713
|
-
_: 1
|
|
81714
|
-
}, 8, ["class", "list"])
|
|
81715
|
-
]));
|
|
81716
|
-
}
|
|
81717
|
-
}), FormCol = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-701b2396"]]), FormCol$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81718
|
-
__proto__: null,
|
|
81719
|
-
default: FormCol
|
|
81720
|
-
}, Symbol.toStringTag, { value: "Module" })), _hoisted_1$v = { class: "move" }, _hoisted_2$l = {
|
|
81721
|
-
key: 0,
|
|
81722
|
-
class: "widget-view-drag"
|
|
81723
|
-
}, _hoisted_3$h = {
|
|
81724
|
-
key: 1,
|
|
81725
|
-
class: "item-action"
|
|
81726
|
-
}, _hoisted_4$e = { class: "move1" }, _hoisted_5$c = {
|
|
81727
|
-
key: 0,
|
|
81728
|
-
class: "widget-view-drag"
|
|
81729
|
-
}, _hoisted_6$b = {
|
|
81730
|
-
key: 0,
|
|
81731
|
-
class: "item-action"
|
|
81732
|
-
}, _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
81733
|
-
__name: "FormGrid",
|
|
81734
|
-
props: {
|
|
81735
|
-
list: {
|
|
81736
|
-
type: Array,
|
|
81737
|
-
default: []
|
|
81738
|
-
},
|
|
81739
|
-
data: {
|
|
81740
|
-
type: Object,
|
|
81741
|
-
default: null
|
|
81742
|
-
},
|
|
81743
|
-
activeIndex: {
|
|
81744
|
-
type: String,
|
|
81745
|
-
default: ""
|
|
81746
|
-
},
|
|
81747
|
-
index: {
|
|
81748
|
-
type: String,
|
|
81749
|
-
default: ""
|
|
81750
|
-
}
|
|
81751
|
-
},
|
|
81752
|
-
emits: ["childConfig", "index"],
|
|
81753
|
-
setup(W, { emit: C }) {
|
|
81754
|
-
const Q = useFormStore(), Z = W, H = ref("-1");
|
|
81755
|
-
watch(
|
|
81756
|
-
() => Z.activeIndex,
|
|
81757
|
-
(ae, le) => {
|
|
81758
|
-
H.value = ae;
|
|
81759
|
-
}
|
|
81760
|
-
);
|
|
81761
|
-
const K = C;
|
|
81762
|
-
function G(ae) {
|
|
81763
|
-
K("childConfig", ae);
|
|
81764
|
-
}
|
|
81765
|
-
function U(ae) {
|
|
81766
|
-
H.value = ae, K("index", H.value);
|
|
81767
|
-
}
|
|
81768
|
-
function X(ae, le, ce) {
|
|
81769
|
-
H.value = le, K("childConfig", ae), K("index", H.value), ce.stopPropagation(), ce.preventDefault();
|
|
81770
|
-
}
|
|
81771
|
-
function ee(ae) {
|
|
81772
|
-
return !!(ae.draggedContext.element.type == "col" && ae.to.className.includes("row-drag-list"));
|
|
81773
|
-
}
|
|
81774
|
-
function te() {
|
|
81775
|
-
H.value = "-1";
|
|
81776
|
-
}
|
|
81777
|
-
function ie(ae) {
|
|
81778
|
-
if (ae.to.className.includes("row-drag-list") && ae.to.className.includes(`row-drag-list-${Z.index}`))
|
|
81779
|
-
H.value = Z.index + "-" + ae.newIndex;
|
|
81780
|
-
else if (ae.to.className.includes("row-drag-list") && !ae.to.className.includes(`row-drag-list-${Z.index}`)) {
|
|
81781
|
-
let le = Array.from(ae.to.classList).find((ce) => ce.includes("row-drag-list-"));
|
|
81782
|
-
if (le) {
|
|
81783
|
-
let ce = le.split("-"), ue = ce[ce.length - 1];
|
|
81784
|
-
H.value = ue + "-" + ae.newIndex;
|
|
81785
|
-
} else
|
|
81786
|
-
H.value = "-1";
|
|
81787
|
-
} else
|
|
81788
|
-
H.value = ae.newIndex;
|
|
81789
|
-
K("index", H.value);
|
|
81790
|
-
}
|
|
81791
|
-
function ne(ae) {
|
|
81792
|
-
let le = JSON.parse(JSON.stringify(ae));
|
|
81793
|
-
if (Z.data.columns && Z.data.columns.length > 0) {
|
|
81794
|
-
let ce = Z.data.columns.findIndex((ue) => ue.key == ae.key);
|
|
81795
|
-
ce > -1 && (le = setRandomKeyToContentList([le])[0], Z.data.columns.splice(ce + 1, 0, le));
|
|
81796
|
-
}
|
|
81797
|
-
}
|
|
81798
|
-
function re(ae) {
|
|
81799
|
-
let le = Z.data.columns.findIndex((ce) => ce.key == ae.key);
|
|
81800
|
-
le > -1 && Z.data.columns.splice(le, 1);
|
|
81801
|
-
}
|
|
81802
|
-
function se() {
|
|
81803
|
-
if (Z.data.columns.length > 0)
|
|
81804
|
-
Modal.confirm({
|
|
81805
|
-
title: "确定要删除该栅格布局吗?",
|
|
81806
|
-
content: "如果该布局存在表单,将会一并删除",
|
|
81807
|
-
onOk() {
|
|
81808
|
-
const ae = Z.list.findIndex((le) => le.id == Z.data.id);
|
|
81809
|
-
ae != -1 && Z.list.splice(ae, 1);
|
|
81810
|
-
},
|
|
81811
|
-
onCancel() {
|
|
81812
|
-
}
|
|
81813
|
-
});
|
|
81814
|
-
else {
|
|
81815
|
-
const ae = Z.list.findIndex((le) => le.id == Z.data.id);
|
|
81816
|
-
ae != -1 && Z.list.splice(ae, 1);
|
|
81817
|
-
}
|
|
81818
|
-
}
|
|
81819
|
-
return (ae, le) => {
|
|
81820
|
-
const ce = resolveComponent("a-col"), ue = resolveComponent("a-row"), ge = resolveComponent("a-form");
|
|
81821
|
-
return openBlock(), createElementBlock("div", null, [
|
|
81822
|
-
createElementVNode("div", _hoisted_1$v, [
|
|
81823
|
-
W.activeIndex == W.index ? (openBlock(), createElementBlock("div", _hoisted_2$l, [
|
|
81824
|
-
createVNode(unref(DragOutlined), { style: { padding: "6px" } })
|
|
81825
|
-
])) : createCommentVNode("", !0)
|
|
81826
|
-
]),
|
|
81827
|
-
createVNode(ge, {
|
|
81828
|
-
style: normalizeStyle$1({ padding: `${W.data.top || 0}px ${W.data.right || 0}px ${W.data.bottom || 0}px ${W.data.left || 0}px` }),
|
|
81829
|
-
"label-col": { style: { width: unref(Q).formData.config.labelWidth + "px" } },
|
|
81830
|
-
labelWrap: !0,
|
|
81831
|
-
layout: W.data.layout,
|
|
81832
|
-
labelAlign: W.data.labelPosition
|
|
81833
|
-
}, {
|
|
81834
|
-
default: withCtx(() => [
|
|
81835
|
-
createVNode(ue, {
|
|
81836
|
-
gutter: [W.data.options.gutter || 0, 0],
|
|
81837
|
-
tyle: "flex",
|
|
81838
|
-
class: normalizeClass(`${W.data.class || ""}`),
|
|
81839
|
-
style: normalizeStyle$1({ marginLeft: -(W.data.options.gutter || 0) / 2 + "px", marginRight: -(W.data.options.gutter || 0) / 2 + "px" })
|
|
81840
|
-
}, {
|
|
81841
|
-
default: withCtx(() => [
|
|
81842
|
-
createVNode(unref(VueDraggableNext), {
|
|
81843
|
-
class: normalizeClass(["row-drag-list", `row-drag-list-${W.index}`]),
|
|
81844
|
-
list: W.data.columns,
|
|
81845
|
-
handle: ".move1",
|
|
81846
|
-
group: { name: "itxst" },
|
|
81847
|
-
move: ee,
|
|
81848
|
-
"ghost-class": "ghost",
|
|
81849
|
-
animation: "300",
|
|
81850
|
-
"fallback-on-body": !0,
|
|
81851
|
-
"force-fallback": !0,
|
|
81852
|
-
"fallback-class": "ghost",
|
|
81853
|
-
onStart: te,
|
|
81854
|
-
onEnd: le[0] || (le[0] = (Ce) => ie(Ce))
|
|
81855
|
-
}, {
|
|
81856
|
-
default: withCtx(() => [
|
|
81857
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(W.data.columns, (Ce, me) => (openBlock(), createBlock(ce, {
|
|
81858
|
-
class: normalizeClass(["widget-col-item", { active: H.value == W.index + "-" + me }]),
|
|
81859
|
-
span: Ce.options.span,
|
|
81860
|
-
offset: Ce.options.offset,
|
|
81861
|
-
onMousedown: (pe) => X(Ce, W.index + "-" + me, pe)
|
|
81862
|
-
}, {
|
|
81863
|
-
default: withCtx(() => [
|
|
81864
|
-
Ce.type == "col" ? (openBlock(), createBlock(FormCol, {
|
|
81865
|
-
key: 0,
|
|
81866
|
-
data: Ce,
|
|
81867
|
-
list: W.data.columns,
|
|
81868
|
-
onIndex: U,
|
|
81869
|
-
activeIndex: H.value,
|
|
81870
|
-
index: W.index + "-" + me,
|
|
81871
|
-
onControlConfig: G
|
|
81872
|
-
}, null, 8, ["data", "list", "activeIndex", "index"])) : createCommentVNode("", !0),
|
|
81873
|
-
W.activeIndex === W.index + "-" + me ? (openBlock(), createElementBlock("div", _hoisted_3$h, [
|
|
81874
|
-
createVNode(unref(CopyOutlined), {
|
|
81875
|
-
style: { padding: "3px 5px" },
|
|
81876
|
-
onClick: (pe) => ne(Ce)
|
|
81877
|
-
}, null, 8, ["onClick"]),
|
|
81878
|
-
W.data.columns.length !== 1 ? (openBlock(), createBlock(unref(DeleteOutlined), {
|
|
81879
|
-
key: 0,
|
|
81880
|
-
onClick: (pe) => re(Ce)
|
|
81881
|
-
}, null, 8, ["onClick"])) : createCommentVNode("", !0)
|
|
81882
|
-
])) : createCommentVNode("", !0),
|
|
81883
|
-
createElementVNode("div", _hoisted_4$e, [
|
|
81884
|
-
W.activeIndex == W.index + "-" + me ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
|
|
81885
|
-
createVNode(unref(DragOutlined), { style: { padding: "6px" } })
|
|
81886
|
-
])) : createCommentVNode("", !0)
|
|
81887
|
-
])
|
|
81888
|
-
]),
|
|
81889
|
-
_: 2
|
|
81890
|
-
}, 1032, ["class", "span", "offset", "onMousedown"]))), 256))
|
|
81891
|
-
]),
|
|
81892
|
-
_: 1
|
|
81893
|
-
}, 8, ["class", "list"])
|
|
81894
|
-
]),
|
|
81895
|
-
_: 1
|
|
81896
|
-
}, 8, ["gutter", "class", "style"]),
|
|
81897
|
-
W.activeIndex === W.index ? (openBlock(), createElementBlock("div", _hoisted_6$b, [
|
|
81898
|
-
createVNode(unref(DeleteOutlined), {
|
|
81899
|
-
style: { padding: "3px 5px", color: "#fff" },
|
|
81900
|
-
onClick: le[1] || (le[1] = (Ce) => se())
|
|
81901
|
-
})
|
|
81902
|
-
])) : createCommentVNode("", !0)
|
|
81903
|
-
]),
|
|
81904
|
-
_: 1
|
|
81905
|
-
}, 8, ["style", "label-col", "layout", "labelAlign"])
|
|
81906
|
-
]);
|
|
81907
|
-
};
|
|
81908
|
-
}
|
|
81909
|
-
}), FormGrid = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-50b6976e"]]), FormGrid$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81910
|
-
__proto__: null,
|
|
81911
|
-
default: FormGrid
|
|
81912
|
-
}, Symbol.toStringTag, { value: "Module" })), _hoisted_1$u = { id: "report-css" }, _hoisted_2$k = { class: "report-table-css" }, _hoisted_3$g = ["onClick"], _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
81913
|
-
__name: "FormReport",
|
|
81914
|
-
props: {
|
|
81915
|
-
data: {
|
|
81916
|
-
type: Object,
|
|
81917
|
-
default: null
|
|
81918
|
-
},
|
|
81919
|
-
activeIndex: {
|
|
81920
|
-
type: String,
|
|
81921
|
-
default: ""
|
|
81922
|
-
},
|
|
81923
|
-
index: {
|
|
81924
|
-
type: Number,
|
|
81925
|
-
default: ""
|
|
81926
|
-
}
|
|
81927
|
-
},
|
|
81928
|
-
setup(W) {
|
|
81929
|
-
const C = useFormStore(), { formData: Q } = storeToRefs(C);
|
|
81930
|
-
let Z = ref(null), H = ref(!1);
|
|
81931
|
-
function K(X, ee) {
|
|
81932
|
-
Z.value != null && (Z.value.className = ""), Z.value = X, H.value = !0;
|
|
81933
|
-
}
|
|
81934
|
-
function G() {
|
|
81935
|
-
}
|
|
81936
|
-
function U() {
|
|
81937
|
-
Z.value.columns.push({
|
|
81938
|
-
type: "td",
|
|
81939
|
-
options: {
|
|
81940
|
-
customClass: "",
|
|
81941
|
-
colspan: 1,
|
|
81942
|
-
rowspan: 1,
|
|
81943
|
-
align: "left",
|
|
81944
|
-
valign: "top",
|
|
81945
|
-
width: "",
|
|
81946
|
-
height: ""
|
|
81947
|
-
},
|
|
81948
|
-
list: [],
|
|
81949
|
-
key: "fuzps6zb",
|
|
81950
|
-
rules: []
|
|
81951
|
-
});
|
|
81952
|
-
}
|
|
81953
|
-
return (X, ee) => (openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
81954
|
-
createElementVNode("div", { style: { "text-align": "left", "padding-left": "50px" } }, [
|
|
81955
|
-
createElementVNode("a", { onClick: G }, "添加行"),
|
|
81956
|
-
createTextVNode(" "),
|
|
81957
|
-
createElementVNode("a", { onClick: U }, "添加列")
|
|
81958
|
-
]),
|
|
81959
|
-
createElementVNode("table", _hoisted_2$k, [
|
|
81960
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(Q).list[W.index].rows, (te, ie) => (openBlock(), createElementBlock("tr", null, [
|
|
81961
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(te.columns, (ne, re) => (openBlock(), createElementBlock("td", {
|
|
81962
|
-
class: "report-table-item",
|
|
81963
|
-
onClick: (se) => K(te)
|
|
81964
|
-
}, " fdfd ", 8, _hoisted_3$g))), 256))
|
|
81965
|
-
]))), 256))
|
|
81966
|
-
])
|
|
81967
|
-
]));
|
|
81968
|
-
}
|
|
81969
|
-
}), FormReport = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-c1f306bf"]]), FormReport$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81970
|
-
__proto__: null,
|
|
81971
|
-
default: FormReport
|
|
81972
|
-
}, Symbol.toStringTag, { value: "Module" })), useDataStore = defineStore({
|
|
81502
|
+
}), Flex = withInstall(AFlex), useDataStore = defineStore({
|
|
81973
81503
|
id: "dataStore",
|
|
81974
81504
|
state: () => ({
|
|
81975
81505
|
selectList: [],
|
|
@@ -83085,6 +82615,484 @@ function getFormTableHeaderBtnHtml(W, C) {
|
|
|
83085
82615
|
}
|
|
83086
82616
|
return Z;
|
|
83087
82617
|
}
|
|
82618
|
+
const _hoisted_1$x = { id: "table-css" }, _hoisted_2$n = { style: { "text-align": "left", "padding-left": "50px" } }, _hoisted_3$i = {
|
|
82619
|
+
class: "table-header-css",
|
|
82620
|
+
style: { "text-align": "left", "padding-bottom": "5px" }
|
|
82621
|
+
}, _hoisted_4$f = { class: "move" }, _hoisted_5$d = {
|
|
82622
|
+
key: 0,
|
|
82623
|
+
class: "widget-view-drag"
|
|
82624
|
+
}, _hoisted_6$c = ["onClick"], _hoisted_7$a = {
|
|
82625
|
+
key: 0,
|
|
82626
|
+
class: "item-action"
|
|
82627
|
+
}, _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
82628
|
+
__name: "FormTable",
|
|
82629
|
+
props: {
|
|
82630
|
+
list: {
|
|
82631
|
+
type: Array,
|
|
82632
|
+
default: []
|
|
82633
|
+
},
|
|
82634
|
+
data: {
|
|
82635
|
+
type: Object,
|
|
82636
|
+
default: null
|
|
82637
|
+
},
|
|
82638
|
+
activeIndex: {
|
|
82639
|
+
type: String,
|
|
82640
|
+
default: ""
|
|
82641
|
+
},
|
|
82642
|
+
index: {
|
|
82643
|
+
type: String,
|
|
82644
|
+
default: ""
|
|
82645
|
+
}
|
|
82646
|
+
},
|
|
82647
|
+
setup(W) {
|
|
82648
|
+
const C = useFormStore();
|
|
82649
|
+
storeToRefs(C);
|
|
82650
|
+
const Q = W;
|
|
82651
|
+
let Z = ref([]);
|
|
82652
|
+
watch(() => Q.data.tableColumns, (ne) => {
|
|
82653
|
+
Z.value = moveHiddenItems([...Q.data.tableColumns]);
|
|
82654
|
+
}, {
|
|
82655
|
+
immediate: !0,
|
|
82656
|
+
deep: !0
|
|
82657
|
+
});
|
|
82658
|
+
let H = ref(null), K = ref(!1);
|
|
82659
|
+
function G(ne) {
|
|
82660
|
+
H.value != null && (H.value.className = ""), H.value = ne, K.value = !0, ne.className = "tableClass";
|
|
82661
|
+
}
|
|
82662
|
+
let U = 0;
|
|
82663
|
+
function X() {
|
|
82664
|
+
Q.data.tableColumns.push({
|
|
82665
|
+
title: "自定义列" + U,
|
|
82666
|
+
dataIndex: "code"
|
|
82667
|
+
}), U++;
|
|
82668
|
+
}
|
|
82669
|
+
function ee() {
|
|
82670
|
+
H.value.children == null && Reflect.set(H.value, "children", []), H.value.children.push({
|
|
82671
|
+
title: "自定义列" + U,
|
|
82672
|
+
dataIndex: "code",
|
|
82673
|
+
key: "code"
|
|
82674
|
+
}), U++;
|
|
82675
|
+
}
|
|
82676
|
+
function te(ne) {
|
|
82677
|
+
let re = JSON.parse(JSON.stringify(ne));
|
|
82678
|
+
if (Q.list && Q.list.length > 0) {
|
|
82679
|
+
let se = Q.list.findIndex((ae) => ae.id == ne.id);
|
|
82680
|
+
se > -1 && (re = setRandomKeyToContentList([re])[0], Q.list.splice(se + 1, 0, re));
|
|
82681
|
+
}
|
|
82682
|
+
}
|
|
82683
|
+
function ie(ne) {
|
|
82684
|
+
if (Q.list && Q.list.length > 0) {
|
|
82685
|
+
let re = Q.list.findIndex((se) => se.id == ne.id);
|
|
82686
|
+
re > -1 && Q.list.splice(re, 1);
|
|
82687
|
+
}
|
|
82688
|
+
}
|
|
82689
|
+
return (ne, re) => {
|
|
82690
|
+
const se = resolveComponent("a-button"), ae = resolveComponent("a-space"), le = resolveComponent("a-table");
|
|
82691
|
+
return openBlock(), createElementBlock("div", _hoisted_1$x, [
|
|
82692
|
+
createElementVNode("div", _hoisted_2$n, [
|
|
82693
|
+
createElementVNode("a", { onClick: X }, "添加列"),
|
|
82694
|
+
createTextVNode(" "),
|
|
82695
|
+
unref(K) ? (openBlock(), createElementBlock("a", {
|
|
82696
|
+
key: 0,
|
|
82697
|
+
onClick: ee
|
|
82698
|
+
}, "分组『" + toDisplayString(unref(H).title) + "』添加列", 1)) : createCommentVNode("", !0)
|
|
82699
|
+
]),
|
|
82700
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
82701
|
+
createVNode(ae, null, {
|
|
82702
|
+
default: withCtx(() => [
|
|
82703
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(W.data.options.headerBtns, (ce) => (openBlock(), createBlock(se, {
|
|
82704
|
+
type: ce.type,
|
|
82705
|
+
size: "small"
|
|
82706
|
+
}, {
|
|
82707
|
+
default: withCtx(() => [
|
|
82708
|
+
createTextVNode(toDisplayString(ce.title), 1)
|
|
82709
|
+
]),
|
|
82710
|
+
_: 2
|
|
82711
|
+
}, 1032, ["type"]))), 256))
|
|
82712
|
+
]),
|
|
82713
|
+
_: 1
|
|
82714
|
+
})
|
|
82715
|
+
]),
|
|
82716
|
+
createElementVNode("div", _hoisted_4$f, [
|
|
82717
|
+
W.activeIndex == W.index.toString() ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
|
|
82718
|
+
createVNode(unref(DragOutlined), { style: { padding: "6px" } })
|
|
82719
|
+
])) : createCommentVNode("", !0)
|
|
82720
|
+
]),
|
|
82721
|
+
createVNode(le, {
|
|
82722
|
+
columns: unref(Z),
|
|
82723
|
+
bordered: "",
|
|
82724
|
+
size: "middle",
|
|
82725
|
+
scroll: { y: 240 }
|
|
82726
|
+
}, {
|
|
82727
|
+
headerCell: withCtx(({ column: ce }) => [
|
|
82728
|
+
createElementVNode("div", {
|
|
82729
|
+
onClick: (ue) => G(ce)
|
|
82730
|
+
}, toDisplayString(ce.title), 9, _hoisted_6$c)
|
|
82731
|
+
]),
|
|
82732
|
+
_: 1
|
|
82733
|
+
}, 8, ["columns"]),
|
|
82734
|
+
W.activeIndex == W.index.toString() ? (openBlock(), createElementBlock("div", _hoisted_7$a, [
|
|
82735
|
+
createVNode(unref(CopyOutlined), {
|
|
82736
|
+
style: { padding: "3px 5px" },
|
|
82737
|
+
onClick: re[0] || (re[0] = (ce) => te(W.data))
|
|
82738
|
+
}),
|
|
82739
|
+
createVNode(unref(DeleteOutlined), {
|
|
82740
|
+
onClick: re[1] || (re[1] = (ce) => ie(W.data))
|
|
82741
|
+
})
|
|
82742
|
+
])) : createCommentVNode("", !0)
|
|
82743
|
+
]);
|
|
82744
|
+
};
|
|
82745
|
+
}
|
|
82746
|
+
}), FormTable = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-e9cc9e46"]]), FormTable$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82747
|
+
__proto__: null,
|
|
82748
|
+
default: FormTable
|
|
82749
|
+
}, Symbol.toStringTag, { value: "Module" })), _hoisted_1$w = { class: "col-view" }, _hoisted_2$m = ["onMousedown"], _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
82750
|
+
__name: "FormCol",
|
|
82751
|
+
props: {
|
|
82752
|
+
list: {
|
|
82753
|
+
type: Array,
|
|
82754
|
+
default: []
|
|
82755
|
+
},
|
|
82756
|
+
data: {
|
|
82757
|
+
type: Object,
|
|
82758
|
+
default: null
|
|
82759
|
+
},
|
|
82760
|
+
index: {
|
|
82761
|
+
type: String
|
|
82762
|
+
},
|
|
82763
|
+
activeIndex: {
|
|
82764
|
+
type: String
|
|
82765
|
+
}
|
|
82766
|
+
},
|
|
82767
|
+
emits: ["index", "controlConfig"],
|
|
82768
|
+
setup(W, { emit: C }) {
|
|
82769
|
+
useFormStore();
|
|
82770
|
+
const Q = W, Z = ref("-1"), H = C;
|
|
82771
|
+
watch(
|
|
82772
|
+
() => Q.activeIndex,
|
|
82773
|
+
(ee, te) => {
|
|
82774
|
+
Z.value = ee;
|
|
82775
|
+
}
|
|
82776
|
+
);
|
|
82777
|
+
function K() {
|
|
82778
|
+
console.log("// 开始拖拽");
|
|
82779
|
+
}
|
|
82780
|
+
function G(ee) {
|
|
82781
|
+
if (console.log("end", ee), ee.to.className.includes("col-drag-list") && ee.to.className.includes(`col-drag-list-${Q.index}`))
|
|
82782
|
+
Z.value = Q.index + "-" + ee.newIndex;
|
|
82783
|
+
else if (ee.to.className.includes("col-drag-list") && !ee.to.className.includes(`col-drag-list-${Q.index}`)) {
|
|
82784
|
+
let te = Array.from(ee.to.classList).find((ie) => ie.includes("col-drag-list-"));
|
|
82785
|
+
if (te) {
|
|
82786
|
+
let ie = te.split("-"), ne = ie[ie.length - 2] + "-" + ie[ie.length - 1];
|
|
82787
|
+
Z.value = ne + "-" + ee.newIndex;
|
|
82788
|
+
} else
|
|
82789
|
+
Z.value = "-1";
|
|
82790
|
+
} else
|
|
82791
|
+
Z.value = ee.newIndex;
|
|
82792
|
+
H("index", Z.value);
|
|
82793
|
+
}
|
|
82794
|
+
function U(ee, te, ie) {
|
|
82795
|
+
Z.value = te, H("controlConfig", ee), H("index", te), ie.stopPropagation(), ie.preventDefault();
|
|
82796
|
+
}
|
|
82797
|
+
function X(ee) {
|
|
82798
|
+
return console.log("move", ee), !ee.to.className.includes("row-drag-list");
|
|
82799
|
+
}
|
|
82800
|
+
return (ee, te) => (openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
82801
|
+
createVNode(unref(VueDraggableNext), {
|
|
82802
|
+
class: normalizeClass(["col-drag-list", `col-drag-list-${W.index}`]),
|
|
82803
|
+
list: W.data.list,
|
|
82804
|
+
handle: ".move",
|
|
82805
|
+
group: { name: "itxst" },
|
|
82806
|
+
"ghost-class": "ghost",
|
|
82807
|
+
"fallback-on-body": !0,
|
|
82808
|
+
"force-fallback": !0,
|
|
82809
|
+
"fallback-class": "ghost",
|
|
82810
|
+
onStart: K,
|
|
82811
|
+
onEnd: te[0] || (te[0] = (ie) => G(ie)),
|
|
82812
|
+
move: X,
|
|
82813
|
+
animation: "300",
|
|
82814
|
+
"drag-class": "dragClass1"
|
|
82815
|
+
}, {
|
|
82816
|
+
default: withCtx(() => [
|
|
82817
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(W.data.list, (ie, ne) => (openBlock(), createElementBlock("div", {
|
|
82818
|
+
class: normalizeClass(["widget-view", { active: Z.value == W.index + "-" + ne }]),
|
|
82819
|
+
onMousedown: (re) => U(ie, W.index + "-" + ne, re)
|
|
82820
|
+
}, [
|
|
82821
|
+
ie.type == "table" ? (openBlock(), createBlock(FormTable, {
|
|
82822
|
+
key: 0,
|
|
82823
|
+
data: ie,
|
|
82824
|
+
list: W.data.list,
|
|
82825
|
+
activeIndex: Z.value.toString(),
|
|
82826
|
+
index: W.index + "-" + ne
|
|
82827
|
+
}, null, 8, ["data", "list", "activeIndex", "index"])) : (openBlock(), createBlock(FormInput, {
|
|
82828
|
+
key: 1,
|
|
82829
|
+
data: ie,
|
|
82830
|
+
list: W.data.list,
|
|
82831
|
+
activeIndex: Z.value,
|
|
82832
|
+
index: W.index + "-" + ne
|
|
82833
|
+
}, null, 8, ["data", "list", "activeIndex", "index"]))
|
|
82834
|
+
], 42, _hoisted_2$m))), 256))
|
|
82835
|
+
]),
|
|
82836
|
+
_: 1
|
|
82837
|
+
}, 8, ["class", "list"])
|
|
82838
|
+
]));
|
|
82839
|
+
}
|
|
82840
|
+
}), FormCol = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-701b2396"]]), FormCol$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82841
|
+
__proto__: null,
|
|
82842
|
+
default: FormCol
|
|
82843
|
+
}, Symbol.toStringTag, { value: "Module" })), _hoisted_1$v = { class: "move" }, _hoisted_2$l = {
|
|
82844
|
+
key: 0,
|
|
82845
|
+
class: "widget-view-drag"
|
|
82846
|
+
}, _hoisted_3$h = {
|
|
82847
|
+
key: 1,
|
|
82848
|
+
class: "item-action"
|
|
82849
|
+
}, _hoisted_4$e = { class: "move1" }, _hoisted_5$c = {
|
|
82850
|
+
key: 0,
|
|
82851
|
+
class: "widget-view-drag"
|
|
82852
|
+
}, _hoisted_6$b = {
|
|
82853
|
+
key: 0,
|
|
82854
|
+
class: "item-action"
|
|
82855
|
+
}, _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
82856
|
+
__name: "FormGrid",
|
|
82857
|
+
props: {
|
|
82858
|
+
list: {
|
|
82859
|
+
type: Array,
|
|
82860
|
+
default: []
|
|
82861
|
+
},
|
|
82862
|
+
data: {
|
|
82863
|
+
type: Object,
|
|
82864
|
+
default: null
|
|
82865
|
+
},
|
|
82866
|
+
activeIndex: {
|
|
82867
|
+
type: String,
|
|
82868
|
+
default: ""
|
|
82869
|
+
},
|
|
82870
|
+
index: {
|
|
82871
|
+
type: String,
|
|
82872
|
+
default: ""
|
|
82873
|
+
}
|
|
82874
|
+
},
|
|
82875
|
+
emits: ["childConfig", "index"],
|
|
82876
|
+
setup(W, { emit: C }) {
|
|
82877
|
+
const Q = useFormStore(), Z = W, H = ref("-1");
|
|
82878
|
+
watch(
|
|
82879
|
+
() => Z.activeIndex,
|
|
82880
|
+
(ae, le) => {
|
|
82881
|
+
H.value = ae;
|
|
82882
|
+
}
|
|
82883
|
+
);
|
|
82884
|
+
const K = C;
|
|
82885
|
+
function G(ae) {
|
|
82886
|
+
K("childConfig", ae);
|
|
82887
|
+
}
|
|
82888
|
+
function U(ae) {
|
|
82889
|
+
H.value = ae, K("index", H.value);
|
|
82890
|
+
}
|
|
82891
|
+
function X(ae, le, ce) {
|
|
82892
|
+
H.value = le, K("childConfig", ae), K("index", H.value), ce.stopPropagation(), ce.preventDefault();
|
|
82893
|
+
}
|
|
82894
|
+
function ee(ae) {
|
|
82895
|
+
return !!(ae.draggedContext.element.type == "col" && ae.to.className.includes("row-drag-list"));
|
|
82896
|
+
}
|
|
82897
|
+
function te() {
|
|
82898
|
+
H.value = "-1";
|
|
82899
|
+
}
|
|
82900
|
+
function ie(ae) {
|
|
82901
|
+
if (ae.to.className.includes("row-drag-list") && ae.to.className.includes(`row-drag-list-${Z.index}`))
|
|
82902
|
+
H.value = Z.index + "-" + ae.newIndex;
|
|
82903
|
+
else if (ae.to.className.includes("row-drag-list") && !ae.to.className.includes(`row-drag-list-${Z.index}`)) {
|
|
82904
|
+
let le = Array.from(ae.to.classList).find((ce) => ce.includes("row-drag-list-"));
|
|
82905
|
+
if (le) {
|
|
82906
|
+
let ce = le.split("-"), ue = ce[ce.length - 1];
|
|
82907
|
+
H.value = ue + "-" + ae.newIndex;
|
|
82908
|
+
} else
|
|
82909
|
+
H.value = "-1";
|
|
82910
|
+
} else
|
|
82911
|
+
H.value = ae.newIndex;
|
|
82912
|
+
K("index", H.value);
|
|
82913
|
+
}
|
|
82914
|
+
function ne(ae) {
|
|
82915
|
+
let le = JSON.parse(JSON.stringify(ae));
|
|
82916
|
+
if (Z.data.columns && Z.data.columns.length > 0) {
|
|
82917
|
+
let ce = Z.data.columns.findIndex((ue) => ue.key == ae.key);
|
|
82918
|
+
ce > -1 && (le = setRandomKeyToContentList([le])[0], Z.data.columns.splice(ce + 1, 0, le));
|
|
82919
|
+
}
|
|
82920
|
+
}
|
|
82921
|
+
function re(ae) {
|
|
82922
|
+
let le = Z.data.columns.findIndex((ce) => ce.key == ae.key);
|
|
82923
|
+
le > -1 && Z.data.columns.splice(le, 1);
|
|
82924
|
+
}
|
|
82925
|
+
function se() {
|
|
82926
|
+
if (Z.data.columns.length > 0)
|
|
82927
|
+
Modal.confirm({
|
|
82928
|
+
title: "确定要删除该栅格布局吗?",
|
|
82929
|
+
content: "如果该布局存在表单,将会一并删除",
|
|
82930
|
+
onOk() {
|
|
82931
|
+
const ae = Z.list.findIndex((le) => le.id == Z.data.id);
|
|
82932
|
+
ae != -1 && Z.list.splice(ae, 1);
|
|
82933
|
+
},
|
|
82934
|
+
onCancel() {
|
|
82935
|
+
}
|
|
82936
|
+
});
|
|
82937
|
+
else {
|
|
82938
|
+
const ae = Z.list.findIndex((le) => le.id == Z.data.id);
|
|
82939
|
+
ae != -1 && Z.list.splice(ae, 1);
|
|
82940
|
+
}
|
|
82941
|
+
}
|
|
82942
|
+
return (ae, le) => {
|
|
82943
|
+
const ce = resolveComponent("a-col"), ue = resolveComponent("a-row"), ge = resolveComponent("a-form");
|
|
82944
|
+
return openBlock(), createElementBlock("div", null, [
|
|
82945
|
+
createElementVNode("div", _hoisted_1$v, [
|
|
82946
|
+
W.activeIndex == W.index ? (openBlock(), createElementBlock("div", _hoisted_2$l, [
|
|
82947
|
+
createVNode(unref(DragOutlined), { style: { padding: "6px" } })
|
|
82948
|
+
])) : createCommentVNode("", !0)
|
|
82949
|
+
]),
|
|
82950
|
+
createVNode(ge, {
|
|
82951
|
+
style: normalizeStyle$1({ padding: `${W.data.top || 0}px ${W.data.right || 0}px ${W.data.bottom || 0}px ${W.data.left || 0}px` }),
|
|
82952
|
+
"label-col": { style: { width: unref(Q).formData.config.labelWidth + "px" } },
|
|
82953
|
+
labelWrap: !0,
|
|
82954
|
+
layout: W.data.layout,
|
|
82955
|
+
labelAlign: W.data.labelPosition
|
|
82956
|
+
}, {
|
|
82957
|
+
default: withCtx(() => [
|
|
82958
|
+
createVNode(ue, {
|
|
82959
|
+
gutter: [W.data.options.gutter || 0, 0],
|
|
82960
|
+
tyle: "flex",
|
|
82961
|
+
class: normalizeClass(`${W.data.class || ""}`),
|
|
82962
|
+
style: normalizeStyle$1({ marginLeft: -(W.data.options.gutter || 0) / 2 + "px", marginRight: -(W.data.options.gutter || 0) / 2 + "px" })
|
|
82963
|
+
}, {
|
|
82964
|
+
default: withCtx(() => [
|
|
82965
|
+
createVNode(unref(VueDraggableNext), {
|
|
82966
|
+
class: normalizeClass(["row-drag-list", `row-drag-list-${W.index}`]),
|
|
82967
|
+
list: W.data.columns,
|
|
82968
|
+
handle: ".move1",
|
|
82969
|
+
group: { name: "itxst" },
|
|
82970
|
+
move: ee,
|
|
82971
|
+
"ghost-class": "ghost",
|
|
82972
|
+
animation: "300",
|
|
82973
|
+
"fallback-on-body": !0,
|
|
82974
|
+
"force-fallback": !0,
|
|
82975
|
+
"fallback-class": "ghost",
|
|
82976
|
+
onStart: te,
|
|
82977
|
+
onEnd: le[0] || (le[0] = (Ce) => ie(Ce))
|
|
82978
|
+
}, {
|
|
82979
|
+
default: withCtx(() => [
|
|
82980
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(W.data.columns, (Ce, me) => (openBlock(), createBlock(ce, {
|
|
82981
|
+
class: normalizeClass(["widget-col-item", { active: H.value == W.index + "-" + me }]),
|
|
82982
|
+
span: Ce.options.span,
|
|
82983
|
+
offset: Ce.options.offset,
|
|
82984
|
+
onMousedown: (pe) => X(Ce, W.index + "-" + me, pe)
|
|
82985
|
+
}, {
|
|
82986
|
+
default: withCtx(() => [
|
|
82987
|
+
Ce.type == "col" ? (openBlock(), createBlock(FormCol, {
|
|
82988
|
+
key: 0,
|
|
82989
|
+
data: Ce,
|
|
82990
|
+
list: W.data.columns,
|
|
82991
|
+
onIndex: U,
|
|
82992
|
+
activeIndex: H.value,
|
|
82993
|
+
index: W.index + "-" + me,
|
|
82994
|
+
onControlConfig: G
|
|
82995
|
+
}, null, 8, ["data", "list", "activeIndex", "index"])) : createCommentVNode("", !0),
|
|
82996
|
+
W.activeIndex === W.index + "-" + me ? (openBlock(), createElementBlock("div", _hoisted_3$h, [
|
|
82997
|
+
createVNode(unref(CopyOutlined), {
|
|
82998
|
+
style: { padding: "3px 5px" },
|
|
82999
|
+
onClick: (pe) => ne(Ce)
|
|
83000
|
+
}, null, 8, ["onClick"]),
|
|
83001
|
+
W.data.columns.length !== 1 ? (openBlock(), createBlock(unref(DeleteOutlined), {
|
|
83002
|
+
key: 0,
|
|
83003
|
+
onClick: (pe) => re(Ce)
|
|
83004
|
+
}, null, 8, ["onClick"])) : createCommentVNode("", !0)
|
|
83005
|
+
])) : createCommentVNode("", !0),
|
|
83006
|
+
createElementVNode("div", _hoisted_4$e, [
|
|
83007
|
+
W.activeIndex == W.index + "-" + me ? (openBlock(), createElementBlock("div", _hoisted_5$c, [
|
|
83008
|
+
createVNode(unref(DragOutlined), { style: { padding: "6px" } })
|
|
83009
|
+
])) : createCommentVNode("", !0)
|
|
83010
|
+
])
|
|
83011
|
+
]),
|
|
83012
|
+
_: 2
|
|
83013
|
+
}, 1032, ["class", "span", "offset", "onMousedown"]))), 256))
|
|
83014
|
+
]),
|
|
83015
|
+
_: 1
|
|
83016
|
+
}, 8, ["class", "list"])
|
|
83017
|
+
]),
|
|
83018
|
+
_: 1
|
|
83019
|
+
}, 8, ["gutter", "class", "style"]),
|
|
83020
|
+
W.activeIndex === W.index ? (openBlock(), createElementBlock("div", _hoisted_6$b, [
|
|
83021
|
+
createVNode(unref(DeleteOutlined), {
|
|
83022
|
+
style: { padding: "3px 5px", color: "#fff" },
|
|
83023
|
+
onClick: le[1] || (le[1] = (Ce) => se())
|
|
83024
|
+
})
|
|
83025
|
+
])) : createCommentVNode("", !0)
|
|
83026
|
+
]),
|
|
83027
|
+
_: 1
|
|
83028
|
+
}, 8, ["style", "label-col", "layout", "labelAlign"])
|
|
83029
|
+
]);
|
|
83030
|
+
};
|
|
83031
|
+
}
|
|
83032
|
+
}), FormGrid = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-50b6976e"]]), FormGrid$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83033
|
+
__proto__: null,
|
|
83034
|
+
default: FormGrid
|
|
83035
|
+
}, Symbol.toStringTag, { value: "Module" })), _hoisted_1$u = { id: "report-css" }, _hoisted_2$k = { class: "report-table-css" }, _hoisted_3$g = ["onClick"], _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
83036
|
+
__name: "FormReport",
|
|
83037
|
+
props: {
|
|
83038
|
+
data: {
|
|
83039
|
+
type: Object,
|
|
83040
|
+
default: null
|
|
83041
|
+
},
|
|
83042
|
+
activeIndex: {
|
|
83043
|
+
type: String,
|
|
83044
|
+
default: ""
|
|
83045
|
+
},
|
|
83046
|
+
index: {
|
|
83047
|
+
type: Number,
|
|
83048
|
+
default: ""
|
|
83049
|
+
}
|
|
83050
|
+
},
|
|
83051
|
+
setup(W) {
|
|
83052
|
+
const C = useFormStore(), { formData: Q } = storeToRefs(C);
|
|
83053
|
+
let Z = ref(null), H = ref(!1);
|
|
83054
|
+
function K(X, ee) {
|
|
83055
|
+
Z.value != null && (Z.value.className = ""), Z.value = X, H.value = !0;
|
|
83056
|
+
}
|
|
83057
|
+
function G() {
|
|
83058
|
+
}
|
|
83059
|
+
function U() {
|
|
83060
|
+
Z.value.columns.push({
|
|
83061
|
+
type: "td",
|
|
83062
|
+
options: {
|
|
83063
|
+
customClass: "",
|
|
83064
|
+
colspan: 1,
|
|
83065
|
+
rowspan: 1,
|
|
83066
|
+
align: "left",
|
|
83067
|
+
valign: "top",
|
|
83068
|
+
width: "",
|
|
83069
|
+
height: ""
|
|
83070
|
+
},
|
|
83071
|
+
list: [],
|
|
83072
|
+
key: "fuzps6zb",
|
|
83073
|
+
rules: []
|
|
83074
|
+
});
|
|
83075
|
+
}
|
|
83076
|
+
return (X, ee) => (openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
83077
|
+
createElementVNode("div", { style: { "text-align": "left", "padding-left": "50px" } }, [
|
|
83078
|
+
createElementVNode("a", { onClick: G }, "添加行"),
|
|
83079
|
+
createTextVNode(" "),
|
|
83080
|
+
createElementVNode("a", { onClick: U }, "添加列")
|
|
83081
|
+
]),
|
|
83082
|
+
createElementVNode("table", _hoisted_2$k, [
|
|
83083
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(Q).list[W.index].rows, (te, ie) => (openBlock(), createElementBlock("tr", null, [
|
|
83084
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(te.columns, (ne, re) => (openBlock(), createElementBlock("td", {
|
|
83085
|
+
class: "report-table-item",
|
|
83086
|
+
onClick: (se) => K(te)
|
|
83087
|
+
}, " fdfd ", 8, _hoisted_3$g))), 256))
|
|
83088
|
+
]))), 256))
|
|
83089
|
+
])
|
|
83090
|
+
]));
|
|
83091
|
+
}
|
|
83092
|
+
}), FormReport = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-c1f306bf"]]), FormReport$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83093
|
+
__proto__: null,
|
|
83094
|
+
default: FormReport
|
|
83095
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
83088
83096
|
function bind(W, C) {
|
|
83089
83097
|
return function() {
|
|
83090
83098
|
return W.apply(C, arguments);
|
|
@@ -169403,37 +169411,37 @@ registerLanguage({
|
|
|
169403
169411
|
id: "freemarker2",
|
|
169404
169412
|
extensions: [".ftl", ".ftlh", ".ftlx"],
|
|
169405
169413
|
aliases: ["FreeMarker2", "Apache FreeMarker2"],
|
|
169406
|
-
loader: () => import("./freemarker2-
|
|
169414
|
+
loader: () => import("./freemarker2-B7n8GgnN.js").then((W) => W.TagAutoInterpolationDollar)
|
|
169407
169415
|
});
|
|
169408
169416
|
registerLanguage({
|
|
169409
169417
|
id: "freemarker2.tag-angle.interpolation-dollar",
|
|
169410
169418
|
aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
|
|
169411
|
-
loader: () => import("./freemarker2-
|
|
169419
|
+
loader: () => import("./freemarker2-B7n8GgnN.js").then((W) => W.TagAngleInterpolationDollar)
|
|
169412
169420
|
});
|
|
169413
169421
|
registerLanguage({
|
|
169414
169422
|
id: "freemarker2.tag-bracket.interpolation-dollar",
|
|
169415
169423
|
aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
|
|
169416
|
-
loader: () => import("./freemarker2-
|
|
169424
|
+
loader: () => import("./freemarker2-B7n8GgnN.js").then((W) => W.TagBracketInterpolationDollar)
|
|
169417
169425
|
});
|
|
169418
169426
|
registerLanguage({
|
|
169419
169427
|
id: "freemarker2.tag-angle.interpolation-bracket",
|
|
169420
169428
|
aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
|
|
169421
|
-
loader: () => import("./freemarker2-
|
|
169429
|
+
loader: () => import("./freemarker2-B7n8GgnN.js").then((W) => W.TagAngleInterpolationBracket)
|
|
169422
169430
|
});
|
|
169423
169431
|
registerLanguage({
|
|
169424
169432
|
id: "freemarker2.tag-bracket.interpolation-bracket",
|
|
169425
169433
|
aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
|
|
169426
|
-
loader: () => import("./freemarker2-
|
|
169434
|
+
loader: () => import("./freemarker2-B7n8GgnN.js").then((W) => W.TagBracketInterpolationBracket)
|
|
169427
169435
|
});
|
|
169428
169436
|
registerLanguage({
|
|
169429
169437
|
id: "freemarker2.tag-auto.interpolation-dollar",
|
|
169430
169438
|
aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
|
|
169431
|
-
loader: () => import("./freemarker2-
|
|
169439
|
+
loader: () => import("./freemarker2-B7n8GgnN.js").then((W) => W.TagAutoInterpolationDollar)
|
|
169432
169440
|
});
|
|
169433
169441
|
registerLanguage({
|
|
169434
169442
|
id: "freemarker2.tag-auto.interpolation-bracket",
|
|
169435
169443
|
aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
|
|
169436
|
-
loader: () => import("./freemarker2-
|
|
169444
|
+
loader: () => import("./freemarker2-B7n8GgnN.js").then((W) => W.TagAutoInterpolationBracket)
|
|
169437
169445
|
});
|
|
169438
169446
|
/*!-----------------------------------------------------------------------------
|
|
169439
169447
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -169471,7 +169479,7 @@ registerLanguage({
|
|
|
169471
169479
|
extensions: [".handlebars", ".hbs"],
|
|
169472
169480
|
aliases: ["Handlebars", "handlebars", "hbs"],
|
|
169473
169481
|
mimetypes: ["text/x-handlebars-template"],
|
|
169474
|
-
loader: () => import("./handlebars-
|
|
169482
|
+
loader: () => import("./handlebars-DqpsjM4k.js")
|
|
169475
169483
|
});
|
|
169476
169484
|
/*!-----------------------------------------------------------------------------
|
|
169477
169485
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -169496,7 +169504,7 @@ registerLanguage({
|
|
|
169496
169504
|
extensions: [".html", ".htm", ".shtml", ".xhtml", ".mdoc", ".jsp", ".asp", ".aspx", ".jshtm"],
|
|
169497
169505
|
aliases: ["HTML", "htm", "html", "xhtml"],
|
|
169498
169506
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
169499
|
-
loader: () => import("./html-
|
|
169507
|
+
loader: () => import("./html-C9ysmoBM.js")
|
|
169500
169508
|
});
|
|
169501
169509
|
/*!-----------------------------------------------------------------------------
|
|
169502
169510
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -169537,7 +169545,7 @@ registerLanguage({
|
|
|
169537
169545
|
filenames: ["jakefile"],
|
|
169538
169546
|
aliases: ["JavaScript", "javascript", "js"],
|
|
169539
169547
|
mimetypes: ["text/javascript"],
|
|
169540
|
-
loader: () => import("./javascript-
|
|
169548
|
+
loader: () => import("./javascript-j_bUX2cJ.js")
|
|
169541
169549
|
});
|
|
169542
169550
|
/*!-----------------------------------------------------------------------------
|
|
169543
169551
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -169612,7 +169620,7 @@ registerLanguage({
|
|
|
169612
169620
|
extensions: [".liquid", ".html.liquid"],
|
|
169613
169621
|
aliases: ["Liquid", "liquid"],
|
|
169614
169622
|
mimetypes: ["application/liquid"],
|
|
169615
|
-
loader: () => import("./liquid-
|
|
169623
|
+
loader: () => import("./liquid-BIwg8TO3.js")
|
|
169616
169624
|
});
|
|
169617
169625
|
/*!-----------------------------------------------------------------------------
|
|
169618
169626
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -169648,7 +169656,7 @@ registerLanguage({
|
|
|
169648
169656
|
id: "mdx",
|
|
169649
169657
|
extensions: [".mdx"],
|
|
169650
169658
|
aliases: ["MDX", "mdx"],
|
|
169651
|
-
loader: () => import("./mdx-
|
|
169659
|
+
loader: () => import("./mdx-BYEre6RY.js")
|
|
169652
169660
|
});
|
|
169653
169661
|
/*!-----------------------------------------------------------------------------
|
|
169654
169662
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -169843,7 +169851,7 @@ registerLanguage({
|
|
|
169843
169851
|
extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
|
|
169844
169852
|
aliases: ["Python", "py"],
|
|
169845
169853
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
169846
|
-
loader: () => import("./python-
|
|
169854
|
+
loader: () => import("./python-CD3qV_bY.js")
|
|
169847
169855
|
});
|
|
169848
169856
|
/*!-----------------------------------------------------------------------------
|
|
169849
169857
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -169880,7 +169888,7 @@ registerLanguage({
|
|
|
169880
169888
|
extensions: [".cshtml"],
|
|
169881
169889
|
aliases: ["Razor", "razor"],
|
|
169882
169890
|
mimetypes: ["text/x-cshtml"],
|
|
169883
|
-
loader: () => import("./razor-
|
|
169891
|
+
loader: () => import("./razor-D8ENpy-u.js")
|
|
169884
169892
|
});
|
|
169885
169893
|
/*!-----------------------------------------------------------------------------
|
|
169886
169894
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -170132,7 +170140,7 @@ registerLanguage({
|
|
|
170132
170140
|
extensions: [".ts", ".tsx", ".cts", ".mts"],
|
|
170133
170141
|
aliases: ["TypeScript", "ts", "typescript"],
|
|
170134
170142
|
mimetypes: ["text/typescript"],
|
|
170135
|
-
loader: () => import("./typescript-
|
|
170143
|
+
loader: () => import("./typescript-tJCgNZ1e.js")
|
|
170136
170144
|
});
|
|
170137
170145
|
/*!-----------------------------------------------------------------------------
|
|
170138
170146
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -170200,7 +170208,7 @@ registerLanguage({
|
|
|
170200
170208
|
firstLine: "(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",
|
|
170201
170209
|
aliases: ["XML", "xml"],
|
|
170202
170210
|
mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
|
|
170203
|
-
loader: () => import("./xml-
|
|
170211
|
+
loader: () => import("./xml-AVaaG15y.js")
|
|
170204
170212
|
});
|
|
170205
170213
|
/*!-----------------------------------------------------------------------------
|
|
170206
170214
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -170213,7 +170221,7 @@ registerLanguage({
|
|
|
170213
170221
|
extensions: [".yaml", ".yml"],
|
|
170214
170222
|
aliases: ["YAML", "yaml", "YML", "yml"],
|
|
170215
170223
|
mimetypes: ["application/x-yaml", "text/x-yaml"],
|
|
170216
|
-
loader: () => import("./yaml-
|
|
170224
|
+
loader: () => import("./yaml-DqUbJ_oC.js")
|
|
170217
170225
|
});
|
|
170218
170226
|
/*!-----------------------------------------------------------------------------
|
|
170219
170227
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -170316,7 +170324,7 @@ var LanguageServiceDefaultsImpl$3 = class {
|
|
|
170316
170324
|
);
|
|
170317
170325
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
170318
170326
|
function getMode$3() {
|
|
170319
|
-
return import("./cssMode-
|
|
170327
|
+
return import("./cssMode-CBAl5X0f.js");
|
|
170320
170328
|
}
|
|
170321
170329
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
170322
170330
|
getMode$3().then((W) => W.setupMode(lessDefaults));
|
|
@@ -170422,7 +170430,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
170422
170430
|
registerHTMLLanguageService
|
|
170423
170431
|
};
|
|
170424
170432
|
function getMode$2() {
|
|
170425
|
-
return import("./htmlMode-
|
|
170433
|
+
return import("./htmlMode-Dg7zregt.js");
|
|
170426
170434
|
}
|
|
170427
170435
|
function registerHTMLLanguageService(W, C = optionsDefault, Q = getConfigurationDefault(W)) {
|
|
170428
170436
|
const Z = new LanguageServiceDefaultsImpl$2(W, C, Q);
|
|
@@ -170499,7 +170507,7 @@ var LanguageServiceDefaultsImpl$1 = class {
|
|
|
170499
170507
|
), getWorker = () => getMode$1().then((W) => W.getWorker());
|
|
170500
170508
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults, getWorker };
|
|
170501
170509
|
function getMode$1() {
|
|
170502
|
-
return import("./jsonMode-
|
|
170510
|
+
return import("./jsonMode-3C5MnbK8.js");
|
|
170503
170511
|
}
|
|
170504
170512
|
monaco_editor_core_exports$1.languages.register({
|
|
170505
170513
|
id: "json",
|
|
@@ -170663,7 +170671,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
170663
170671
|
getJavaScriptWorker
|
|
170664
170672
|
};
|
|
170665
170673
|
function getMode() {
|
|
170666
|
-
return import("./tsMode-
|
|
170674
|
+
return import("./tsMode-d7v-Rz4D.js");
|
|
170667
170675
|
}
|
|
170668
170676
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => getMode().then((W) => W.setupTypeScript(typescriptDefaults)));
|
|
170669
170677
|
monaco_editor_core_exports.languages.onLanguage("javascript", () => getMode().then((W) => W.setupJavaScript(javascriptDefaults)));
|
|
@@ -210809,7 +210817,7 @@ const draggable$1 = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umdExpo
|
|
|
210809
210817
|
type: Q.mode === "multiple" ? "checkbox" : "radio",
|
|
210810
210818
|
selectedRowKeys: ce.value,
|
|
210811
210819
|
onSelect(Se, ye) {
|
|
210812
|
-
Q.mode == "multiple" ? pe(ye, Se) : (ce.value = [Se[Q.keyName
|
|
210820
|
+
Q.mode == "multiple" ? pe(ye, Se) : (ce.value = [Se[Q.keyName]], te("row-change", [Se]));
|
|
210813
210821
|
},
|
|
210814
210822
|
onSelectAll(Se, ye, Qe) {
|
|
210815
210823
|
if (Se && (ue.value = ue.value.concat(Qe)), !Se) {
|
|
@@ -210972,7 +210980,7 @@ const draggable$1 = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umdExpo
|
|
|
210972
210980
|
], 64);
|
|
210973
210981
|
};
|
|
210974
210982
|
}
|
|
210975
|
-
}), CTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
210983
|
+
}), CTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-015a8b90"]]), index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
210976
210984
|
__proto__: null,
|
|
210977
210985
|
default: CTable
|
|
210978
210986
|
}, Symbol.toStringTag, { value: "Module" })), _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
@@ -211037,7 +211045,7 @@ const draggable$1 = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umdExpo
|
|
|
211037
211045
|
}, {
|
|
211038
211046
|
immediate: !0
|
|
211039
211047
|
});
|
|
211040
|
-
const X = /* @__PURE__ */ Object.assign({ "/src/App.vue": () => import("./App-
|
|
211048
|
+
const X = /* @__PURE__ */ Object.assign({ "/src/App.vue": () => import("./App-BEFMYq5r.js"), "/src/components/HelloWorld.vue": () => import("./HelloWorld-B5mcy50p.js"), "/src/components/cModal/index.vue": () => Promise.resolve().then(() => index$7), "/src/components/form-widget/widget/childForm.vue": () => import("./childForm-DFR6PPDu.js"), "/src/components/form-widget/widget/collapsePanel.vue": () => Promise.resolve().then(() => collapsePanel), "/src/components/form-widget/widget/tableSelect.vue": () => Promise.resolve().then(() => tableSelect), "/src/components/form-widget/widget/tableSelectDemo.vue": () => import("./tableSelectDemo-ZzK9Fgee.js"), "/src/components/form-widget/widget/tableSelectDemo2.vue": () => import("./tableSelectDemo2-Dnv2PT0a.js"), "/src/components/generate/Demo.vue": () => import("./Demo-DoP4d86z.js"), "/src/components/generate/GenerateForm.vue": () => import("./GenerateForm-BCacmLJO.js"), "/src/components/generate/GenerateReport.vue": () => import("./GenerateReport-UcztFjIb.js"), "/src/components/icon/SvgIcon.vue": () => Promise.resolve().then(() => SvgIcon$1), "/src/components/monaco/monacoEditor.vue": () => Promise.resolve().then(() => monacoEditor$1), "/src/components/table/ExportModal.vue": () => Promise.resolve().then(() => ExportModal$1), "/src/components/table/index.vue": () => Promise.resolve().then(() => index$5), "/src/components/vfd/index.vue": () => import("./index-Bu-16yaz.js"), "/src/components/wonderform/FView.vue": () => import("./FView-BKAMwSXT.js"), "/src/components/wonderform/config/ReportIndex.vue": () => Promise.resolve().then(() => ReportIndex), "/src/components/wonderform/config/index.vue": () => Promise.resolve().then(() => index$8), "/src/components/wonderform/config/modules/Col.vue": () => import("./Col-DAvaHA8z.js"), "/src/components/wonderform/config/modules/Collapse.vue": () => import("./Collapse-Dg0afpyv.js"), "/src/components/wonderform/config/modules/DataSource.vue": () => Promise.resolve().then(() => DataSource$2), "/src/components/wonderform/config/modules/FX.vue": () => import("./FX-DfyARilm.js"), "/src/components/wonderform/config/modules/Form.vue": () => Promise.resolve().then(() => Form), "/src/components/wonderform/config/modules/FormSetting.vue": () => Promise.resolve().then(() => FormSetting$1), "/src/components/wonderform/config/modules/FormSettingIndex.vue": () => Promise.resolve().then(() => FormSettingIndex), "/src/components/wonderform/config/modules/Grid.vue": () => Promise.resolve().then(() => Grid), "/src/components/wonderform/config/modules/Input-删除.vue": () => import("./Input-删除-DC4zzq88.js"), "/src/components/wonderform/config/modules/Label-删除.vue": () => import("./Label-删除-B6jXNg4e.js"), "/src/components/wonderform/config/modules/Paragraph.vue": () => Promise.resolve().then(() => Paragraph), "/src/components/wonderform/config/modules/Properties.vue": () => Promise.resolve().then(() => Properties), "/src/components/wonderform/config/modules/ReportProperties.vue": () => Promise.resolve().then(() => ReportProperties), "/src/components/wonderform/config/modules/Table.vue": () => Promise.resolve().then(() => Table$1), "/src/components/wonderform/config/modules/TableBtnModal.vue": () => import("./TableBtnModal-BiU24FxT.js"), "/src/components/wonderform/config/modules/TableColumn.vue": () => Promise.resolve().then(() => TableColumn$1), "/src/components/wonderform/config/modules/Tabs.vue": () => Promise.resolve().then(() => Tabs), "/src/components/wonderform/config/modules/TypeScript.vue": () => Promise.resolve().then(() => TypeScript$1), "/src/components/wonderform/design/Form.vue": () => import("./Form-CsKlmwSd.js"), "/src/components/wonderform/design/index.vue": () => Promise.resolve().then(() => index$9), "/src/components/wonderform/design/modules/FormCol.vue": () => Promise.resolve().then(() => FormCol$1), "/src/components/wonderform/design/modules/FormCollapse.vue": () => Promise.resolve().then(() => FormCollapse$1), "/src/components/wonderform/design/modules/FormGrid.vue": () => Promise.resolve().then(() => FormGrid$1), "/src/components/wonderform/design/modules/FormGridCopy.vue": () => import("./FormGridCopy-BSATKJrq.js"), "/src/components/wonderform/design/modules/FormInput.vue": () => Promise.resolve().then(() => FormInput$1), "/src/components/wonderform/design/modules/FormParagraph.vue": () => Promise.resolve().then(() => FormParagraph$1), "/src/components/wonderform/design/modules/FormReport.vue": () => Promise.resolve().then(() => FormReport$1), "/src/components/wonderform/design/modules/FormTable.vue": () => Promise.resolve().then(() => FormTable$1), "/src/components/wonderform/design/modules/FormTabs.vue": () => Promise.resolve().then(() => FormTabs$1), "/src/components/wonderform/design/modules/FormVue.vue": () => Promise.resolve().then(() => FormVue$1), "/src/components/wonderform/dsource/index.vue": () => Promise.resolve().then(() => index$4), "/src/components/wonderform/dsource/modules/SqlModule.vue": () => import("./SqlModule-CBbFuZgA.js"), "/src/components/wonderform/header/Header.vue": () => Promise.resolve().then(() => Header), "/src/components/wonderform/header/modules/Code.vue": () => Promise.resolve().then(() => Code$1), "/src/components/wonderform/index.vue": () => Promise.resolve().then(() => index$3), "/src/components/wonderform/tool/index.vue": () => Promise.resolve().then(() => index$c), "/src/components/wonderreport/Demo.vue": () => import("./Demo-dzSXIWpK.js"), "/src/components/wonderreport/RView.vue": () => import("./RView-BZOq0KsF.js"), "/src/components/wonderreport/ReportModule.vue": () => Promise.resolve().then(() => ReportModule$1), "/src/components/wonderreport/header/index.vue": () => Promise.resolve().then(() => index$2), "/src/components/wonderreport/index.vue": () => Promise.resolve().then(() => index$1), "/src/views/formTest.vue": () => import("./formTest-XxJbWvyR.js"), "/src/views/sys/login/Login.vue": () => import("./Login-CslPa4ft.js"), "/src/views/test/testIndex.vue": () => import("./testIndex-DNJuqMdR.js"), "/src/views/workbench/index.vue": () => import("./index-BNin1nk1.js") }), ee = useSlots(), te = computed(() => {
|
|
211041
211049
|
if (Q.filePath) {
|
|
211042
211050
|
let ue = `/src/${Q.filePath}.vue`;
|
|
211043
211051
|
return Q.filePath ? Object.keys(X).includes(ue) : !1;
|
|
@@ -227846,7 +227854,7 @@ const _hoisted_1$6 = { class: "flex-div" }, _hoisted_2$3 = ["title"], _hoisted_3
|
|
|
227846
227854
|
props: {
|
|
227847
227855
|
id: {
|
|
227848
227856
|
type: String,
|
|
227849
|
-
default: "
|
|
227857
|
+
default: "177"
|
|
227850
227858
|
}
|
|
227851
227859
|
},
|
|
227852
227860
|
setup(W) {
|
|
@@ -227993,7 +228001,7 @@ const _hoisted_1$6 = { class: "flex-div" }, _hoisted_2$3 = ["title"], _hoisted_3
|
|
|
227993
228001
|
}, 8, ["spinning"]);
|
|
227994
228002
|
};
|
|
227995
228003
|
}
|
|
227996
|
-
}), FormImage = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
228004
|
+
}), FormImage = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-84168c84"]]), index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
227997
228005
|
__proto__: null,
|
|
227998
228006
|
default: FormImage
|
|
227999
228007
|
}, Symbol.toStringTag, { value: "Module" })), _withScopeId = (W) => (pushScopeId("data-v-72efc594"), W = W(), popScopeId(), W), _hoisted_1$3 = {
|