form-imagining 0.0.8 → 0.0.9
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 +13 -10
- package/dist/{cssMode-0bcb1554.js → cssMode-258e5ba7.js} +1 -1
- package/dist/form-imagining.js +1 -1
- package/dist/form-imagining.umd.cjs +4 -4
- package/dist/{freemarker2-4d8e8e55.js → freemarker2-12493398.js} +1 -1
- package/dist/{handlebars-c43672f7.js → handlebars-def84c12.js} +1 -1
- package/dist/{html-c6099a2e.js → html-280a7ed3.js} +1 -1
- package/dist/{htmlMode-31c10440.js → htmlMode-b76e0bdc.js} +1 -1
- package/dist/{index-a3197e12.js → index-4404fc7a.js} +557 -550
- package/dist/{javascript-ac2b4ae2.js → javascript-3df96c77.js} +2 -2
- package/dist/{jsonMode-36333022.js → jsonMode-09c5cef8.js} +1 -1
- package/dist/{liquid-b5021331.js → liquid-c70595aa.js} +1 -1
- package/dist/{mdx-bbae5f86.js → mdx-1a6f1fd5.js} +1 -1
- package/dist/{python-fc373d9f.js → python-3b635c55.js} +1 -1
- package/dist/{razor-1e9d135a.js → razor-eb9ede61.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tsMode-ea3b05db.js → tsMode-57e6691d.js} +1 -1
- package/dist/{typescript-b2ef5e0f.js → typescript-a7a35ee2.js} +1 -1
- package/dist/{xml-579a5775.js → xml-8871547f.js} +1 -1
- package/dist/{yaml-c31c56b7.js → yaml-bba498d2.js} +1 -1
- package/package.json +1 -1
|
@@ -4383,7 +4383,7 @@ SaveOutlined.inheritAttrs = !1;
|
|
|
4383
4383
|
const SaveOutlined$1 = SaveOutlined, _hoisted_1$e = { style: { "text-align": "left" } }, _hoisted_2$a = { class: "move" }, _hoisted_3$8 = {
|
|
4384
4384
|
key: 0,
|
|
4385
4385
|
class: "widget-view-drag"
|
|
4386
|
-
}, _hoisted_4$6 = { class: "item-model" }, _hoisted_5$
|
|
4386
|
+
}, _hoisted_4$6 = { class: "item-model" }, _hoisted_5$6 = {
|
|
4387
4387
|
key: 12,
|
|
4388
4388
|
class: "item-action"
|
|
4389
4389
|
}, _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
@@ -4561,7 +4561,7 @@ const SaveOutlined$1 = SaveOutlined, _hoisted_1$e = { style: { "text-align": "le
|
|
|
4561
4561
|
_: 1
|
|
4562
4562
|
}, 8, ["label"])) : createCommentVNode("", !0),
|
|
4563
4563
|
createElementVNode("div", _hoisted_4$6, toDisplayString(K.data.model), 1),
|
|
4564
|
-
K.activeIndex === K.index ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
4564
|
+
K.activeIndex === K.index ? (openBlock(), createElementBlock("div", _hoisted_5$6, [
|
|
4565
4565
|
createVNode(unref(CopyOutlined$1), { style: { padding: "3px 5px" } }),
|
|
4566
4566
|
createVNode(unref(DeleteOutlined$1), {
|
|
4567
4567
|
onClick: Z[8] || (Z[8] = (le) => U(K.data))
|
|
@@ -4570,477 +4570,7 @@ const SaveOutlined$1 = SaveOutlined, _hoisted_1$e = { style: { "text-align": "le
|
|
|
4570
4570
|
]);
|
|
4571
4571
|
};
|
|
4572
4572
|
}
|
|
4573
|
-
}), FormInput_vue_vue_type_style_index_0_scoped_a1672db9_lang = "", FormInput = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-a1672db9"]])
|
|
4574
|
-
key: 0,
|
|
4575
|
-
class: "widget-view-drag"
|
|
4576
|
-
}, _hoisted_3$7 = ["onMousedown"], _hoisted_4$5 = {
|
|
4577
|
-
key: 0,
|
|
4578
|
-
class: "item-action"
|
|
4579
|
-
}, _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
4580
|
-
__name: "FormGrid",
|
|
4581
|
-
props: {
|
|
4582
|
-
data: {
|
|
4583
|
-
type: Object,
|
|
4584
|
-
default: null
|
|
4585
|
-
},
|
|
4586
|
-
activeIndex: {
|
|
4587
|
-
type: String,
|
|
4588
|
-
default: ""
|
|
4589
|
-
},
|
|
4590
|
-
index: {
|
|
4591
|
-
type: String,
|
|
4592
|
-
default: ""
|
|
4593
|
-
}
|
|
4594
|
-
},
|
|
4595
|
-
emits: ["childConfig", "index"],
|
|
4596
|
-
setup(K, { emit: C }) {
|
|
4597
|
-
const W = K, H = useFormStore(), { formData: U } = H, G = ref("-1");
|
|
4598
|
-
watch(
|
|
4599
|
-
() => W.activeIndex,
|
|
4600
|
-
(ie, ne) => {
|
|
4601
|
-
G.value = ie;
|
|
4602
|
-
}
|
|
4603
|
-
);
|
|
4604
|
-
function Z(ie, ne, oe) {
|
|
4605
|
-
G.value = ne, C("childConfig", ie), C("index", G.value), oe.stopPropagation(), oe.preventDefault();
|
|
4606
|
-
}
|
|
4607
|
-
function Q() {
|
|
4608
|
-
debugger;
|
|
4609
|
-
G.value = "-1", console.log("开始拖拽");
|
|
4610
|
-
}
|
|
4611
|
-
function X(ie, ne) {
|
|
4612
|
-
debugger;
|
|
4613
|
-
ie.to.className == "widget-col-list" ? G.value = W.index + "-" + ne + "-" + ie.newIndex : G.value = ie.newIndex, C("index", G.value);
|
|
4614
|
-
}
|
|
4615
|
-
function ee(ie) {
|
|
4616
|
-
const ne = JSON.parse(JSON.stringify(ie)), oe = Number.parseInt(W.index);
|
|
4617
|
-
U.list[oe].columns.push(ne);
|
|
4618
|
-
}
|
|
4619
|
-
function te(ie) {
|
|
4620
|
-
}
|
|
4621
|
-
return (ie, ne) => {
|
|
4622
|
-
const oe = resolveComponent("a-col"), re = resolveComponent("a-row"), se = resolveComponent("a-form");
|
|
4623
|
-
return openBlock(), createElementBlock("div", null, [
|
|
4624
|
-
createElementVNode("div", _hoisted_1$d, [
|
|
4625
|
-
K.activeIndex == K.index ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
4626
|
-
createVNode(unref(DragOutlined$1), { style: { padding: "6px" } })
|
|
4627
|
-
])) : createCommentVNode("", !0)
|
|
4628
|
-
]),
|
|
4629
|
-
createVNode(se, {
|
|
4630
|
-
"label-col": { style: { width: "100px" } },
|
|
4631
|
-
labelWrap: !0
|
|
4632
|
-
}, {
|
|
4633
|
-
default: withCtx(() => [
|
|
4634
|
-
createVNode(re, {
|
|
4635
|
-
gutter: [K.data.options.gutter, 8],
|
|
4636
|
-
tyle: "flex",
|
|
4637
|
-
style: normalizeStyle({ marginLeft: -K.data.options.gutter / 2 + "px", marginRight: -K.data.options.gutter / 2 + "px" })
|
|
4638
|
-
}, {
|
|
4639
|
-
default: withCtx(() => [
|
|
4640
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(K.data.columns, (ae, ce) => (openBlock(), createBlock(oe, {
|
|
4641
|
-
class: normalizeClass(["widget-col-item", { active: G.value == "col" + ce }]),
|
|
4642
|
-
span: ae.options.span,
|
|
4643
|
-
offset: ae.options.offset,
|
|
4644
|
-
onMousedown: (le) => Z(ae, "col" + ce, le)
|
|
4645
|
-
}, {
|
|
4646
|
-
default: withCtx(() => [
|
|
4647
|
-
createVNode(unref(VueDraggableNext), {
|
|
4648
|
-
class: "widget-col-list",
|
|
4649
|
-
style: { "min-height": "50px" },
|
|
4650
|
-
"ghost-class": "ghost",
|
|
4651
|
-
list: ae.list,
|
|
4652
|
-
"force-fallback": !0,
|
|
4653
|
-
"chosen-class": "chosenClass2",
|
|
4654
|
-
"drag-class": "dragClass1",
|
|
4655
|
-
onStart: Q,
|
|
4656
|
-
onEnd: (le) => X(le, ce),
|
|
4657
|
-
group: "itxst",
|
|
4658
|
-
sort: !1,
|
|
4659
|
-
animation: "300",
|
|
4660
|
-
handle: ".move",
|
|
4661
|
-
itemKey: ""
|
|
4662
|
-
}, {
|
|
4663
|
-
default: withCtx(() => [
|
|
4664
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(ae.list, (le, de) => (openBlock(), createElementBlock("div", {
|
|
4665
|
-
class: normalizeClass(["widget-view", { active: G.value == K.index + "-" + ce + "-" + de }]),
|
|
4666
|
-
onMousedown: (ue) => Z(le, K.index + "-" + ce + "-" + de, ue)
|
|
4667
|
-
}, [
|
|
4668
|
-
createVNode(FormInput, {
|
|
4669
|
-
data: le,
|
|
4670
|
-
activeIndex: G.value,
|
|
4671
|
-
index: K.index + "-" + ce + "-" + de
|
|
4672
|
-
}, null, 8, ["data", "activeIndex", "index"])
|
|
4673
|
-
], 42, _hoisted_3$7))), 256))
|
|
4674
|
-
]),
|
|
4675
|
-
_: 2
|
|
4676
|
-
}, 1032, ["list", "onEnd"]),
|
|
4677
|
-
K.activeIndex === "col" + ce ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
4678
|
-
createVNode(unref(CopyOutlined$1), {
|
|
4679
|
-
style: { padding: "3px 5px" },
|
|
4680
|
-
onClick: (le) => ee(ae)
|
|
4681
|
-
}, null, 8, ["onClick"]),
|
|
4682
|
-
createVNode(unref(DeleteOutlined$1), {
|
|
4683
|
-
onClick: ne[0] || (ne[0] = (le) => (K.data, void 0))
|
|
4684
|
-
})
|
|
4685
|
-
])) : createCommentVNode("", !0)
|
|
4686
|
-
]),
|
|
4687
|
-
_: 2
|
|
4688
|
-
}, 1032, ["span", "class", "offset", "onMousedown"]))), 256))
|
|
4689
|
-
]),
|
|
4690
|
-
_: 1
|
|
4691
|
-
}, 8, ["gutter", "style"])
|
|
4692
|
-
]),
|
|
4693
|
-
_: 1
|
|
4694
|
-
})
|
|
4695
|
-
]);
|
|
4696
|
-
};
|
|
4697
|
-
}
|
|
4698
|
-
}), FormGrid_vue_vue_type_style_index_0_scoped_236360af_lang = "", FormGrid = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-236360af"]]), _hoisted_1$c = { id: "table-css" }, _hoisted_2$8 = { style: { "text-align": "left", "padding-left": "50px" } }, _hoisted_3$6 = ["onClick"], _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
4699
|
-
__name: "FormTable",
|
|
4700
|
-
props: {
|
|
4701
|
-
data: {
|
|
4702
|
-
type: Object,
|
|
4703
|
-
default: null
|
|
4704
|
-
},
|
|
4705
|
-
activeIndex: {
|
|
4706
|
-
type: String,
|
|
4707
|
-
default: ""
|
|
4708
|
-
},
|
|
4709
|
-
index: {
|
|
4710
|
-
type: Number,
|
|
4711
|
-
default: ""
|
|
4712
|
-
}
|
|
4713
|
-
},
|
|
4714
|
-
setup(K) {
|
|
4715
|
-
const C = K, W = useFormStore(), { formData: H } = storeToRefs(W);
|
|
4716
|
-
let U = ref(null), G = ref(!1);
|
|
4717
|
-
function Z(te) {
|
|
4718
|
-
U.value != null && (U.value.className = ""), U.value = te, G.value = !0, te.className = "tableClass";
|
|
4719
|
-
}
|
|
4720
|
-
let Q = 0;
|
|
4721
|
-
function X() {
|
|
4722
|
-
H.value.list[C.index].tableColumns.push({
|
|
4723
|
-
title: "自定义列" + Q,
|
|
4724
|
-
dataIndex: "code"
|
|
4725
|
-
}), Q++;
|
|
4726
|
-
}
|
|
4727
|
-
function ee() {
|
|
4728
|
-
U.value.children == null && Reflect.set(U.value, "children", []), U.value.children.push({
|
|
4729
|
-
title: "自定义列" + Q,
|
|
4730
|
-
dataIndex: "code",
|
|
4731
|
-
key: "code"
|
|
4732
|
-
}), Q++;
|
|
4733
|
-
}
|
|
4734
|
-
return (te, ie) => {
|
|
4735
|
-
const ne = resolveComponent("a-input"), oe = resolveComponent("a-table");
|
|
4736
|
-
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
4737
|
-
createElementVNode("div", _hoisted_2$8, [
|
|
4738
|
-
createElementVNode("a", { onClick: X }, "添加列"),
|
|
4739
|
-
createTextVNode(" "),
|
|
4740
|
-
unref(G) ? (openBlock(), createElementBlock("a", {
|
|
4741
|
-
key: 0,
|
|
4742
|
-
onClick: ee
|
|
4743
|
-
}, "分组『" + toDisplayString(unref(U).title) + "』添加列", 1)) : createCommentVNode("", !0)
|
|
4744
|
-
]),
|
|
4745
|
-
createVNode(oe, {
|
|
4746
|
-
columns: unref(H).list[K.index].tableColumns,
|
|
4747
|
-
bordered: "",
|
|
4748
|
-
size: "middle",
|
|
4749
|
-
scroll: { y: 240 }
|
|
4750
|
-
}, {
|
|
4751
|
-
headerCell: withCtx(({ column: re }) => [
|
|
4752
|
-
createElementVNode("div", {
|
|
4753
|
-
onClick: (se) => Z(re)
|
|
4754
|
-
}, [
|
|
4755
|
-
createVNode(ne, {
|
|
4756
|
-
value: re.title,
|
|
4757
|
-
"onUpdate:value": (se) => re.title = se
|
|
4758
|
-
}, null, 8, ["value", "onUpdate:value"])
|
|
4759
|
-
], 8, _hoisted_3$6)
|
|
4760
|
-
]),
|
|
4761
|
-
_: 1
|
|
4762
|
-
}, 8, ["columns"])
|
|
4763
|
-
]);
|
|
4764
|
-
};
|
|
4765
|
-
}
|
|
4766
|
-
}), FormTable_vue_vue_type_style_index_0_scoped_4208a59b_lang = "", FormTable = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-4208a59b"]]), _hoisted_1$b = { id: "report-css" }, _hoisted_2$7 = { class: "report-table-css" }, _hoisted_3$5 = ["onClick"], _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
4767
|
-
__name: "FormReport",
|
|
4768
|
-
props: {
|
|
4769
|
-
data: {
|
|
4770
|
-
type: Object,
|
|
4771
|
-
default: null
|
|
4772
|
-
},
|
|
4773
|
-
activeIndex: {
|
|
4774
|
-
type: String,
|
|
4775
|
-
default: ""
|
|
4776
|
-
},
|
|
4777
|
-
index: {
|
|
4778
|
-
type: Number,
|
|
4779
|
-
default: ""
|
|
4780
|
-
}
|
|
4781
|
-
},
|
|
4782
|
-
setup(K) {
|
|
4783
|
-
const C = useFormStore(), { formData: W } = storeToRefs(C);
|
|
4784
|
-
let H = ref(null), U = ref(!1);
|
|
4785
|
-
function G(X, ee) {
|
|
4786
|
-
H.value != null && (H.value.className = ""), H.value = X, U.value = !0;
|
|
4787
|
-
}
|
|
4788
|
-
function Z() {
|
|
4789
|
-
}
|
|
4790
|
-
function Q() {
|
|
4791
|
-
H.value.columns.push({
|
|
4792
|
-
type: "td",
|
|
4793
|
-
options: {
|
|
4794
|
-
customClass: "",
|
|
4795
|
-
colspan: 1,
|
|
4796
|
-
rowspan: 1,
|
|
4797
|
-
align: "left",
|
|
4798
|
-
valign: "top",
|
|
4799
|
-
width: "",
|
|
4800
|
-
height: ""
|
|
4801
|
-
},
|
|
4802
|
-
list: [],
|
|
4803
|
-
key: "fuzps6zb",
|
|
4804
|
-
rules: []
|
|
4805
|
-
});
|
|
4806
|
-
}
|
|
4807
|
-
return (X, ee) => (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
4808
|
-
createElementVNode("div", { style: { "text-align": "left", "padding-left": "50px" } }, [
|
|
4809
|
-
createElementVNode("a", { onClick: Z }, "添加行"),
|
|
4810
|
-
createTextVNode(" "),
|
|
4811
|
-
createElementVNode("a", { onClick: Q }, "添加列")
|
|
4812
|
-
]),
|
|
4813
|
-
createElementVNode("table", _hoisted_2$7, [
|
|
4814
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(W).list[K.index].rows, (te, ie) => (openBlock(), createElementBlock("tr", null, [
|
|
4815
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(te.columns, (ne, oe) => (openBlock(), createElementBlock("td", {
|
|
4816
|
-
class: "report-table-item",
|
|
4817
|
-
onClick: (re) => G(te)
|
|
4818
|
-
}, " fdfd ", 8, _hoisted_3$5))), 256))
|
|
4819
|
-
]))), 256))
|
|
4820
|
-
])
|
|
4821
|
-
]));
|
|
4822
|
-
}
|
|
4823
|
-
}), FormReport_vue_vue_type_style_index_0_scoped_9eb302b9_lang = "", FormReport = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-9eb302b9"]]), _hoisted_1$a = { class: "" }, _hoisted_2$6 = ["onMousedown"], _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
4824
|
-
__name: "index",
|
|
4825
|
-
emits: ["controlConfig"],
|
|
4826
|
-
setup(K, { emit: C }) {
|
|
4827
|
-
const W = useFormStore();
|
|
4828
|
-
let { formData: H } = storeToRefs(W);
|
|
4829
|
-
const U = { style: { width: "100px" } }, G = ref("-1");
|
|
4830
|
-
function Z(ne, oe, re) {
|
|
4831
|
-
C("controlConfig", ne), G.value = oe, re.stopPropagation(), re.preventDefault();
|
|
4832
|
-
}
|
|
4833
|
-
function Q(ne) {
|
|
4834
|
-
C("controlConfig", ne);
|
|
4835
|
-
}
|
|
4836
|
-
function X(ne) {
|
|
4837
|
-
G.value = ne;
|
|
4838
|
-
}
|
|
4839
|
-
function ee() {
|
|
4840
|
-
G.value = "-1", console.log("开始拖拽");
|
|
4841
|
-
}
|
|
4842
|
-
function te(ne) {
|
|
4843
|
-
ne.to.className == "widget-col-list" ? G.value = "base" + ne.newIndex : G.value = ne.newIndex;
|
|
4844
|
-
}
|
|
4845
|
-
function ie(ne) {
|
|
4846
|
-
}
|
|
4847
|
-
return (ne, oe) => {
|
|
4848
|
-
const re = resolveComponent("a-form");
|
|
4849
|
-
return openBlock(), createBlock(re, {
|
|
4850
|
-
class: "form-container",
|
|
4851
|
-
"label-col": U
|
|
4852
|
-
}, {
|
|
4853
|
-
default: withCtx(() => [
|
|
4854
|
-
createVNode(unref(VueDraggableNext), {
|
|
4855
|
-
class: normalizeClass(unref(H).list.length > 0 ? "widget-form-list" : "widgt-empty"),
|
|
4856
|
-
list: unref(H).list,
|
|
4857
|
-
"ghost-class": "ghost",
|
|
4858
|
-
handle: ".move",
|
|
4859
|
-
"force-fallback": !0,
|
|
4860
|
-
"chosen-class": "chosenClass1",
|
|
4861
|
-
"drag-class": "dragClass1",
|
|
4862
|
-
animation: "300",
|
|
4863
|
-
onStart: ee,
|
|
4864
|
-
onEnd: te,
|
|
4865
|
-
group: "itxst",
|
|
4866
|
-
"fallback-class": !0,
|
|
4867
|
-
"fallback-on-body": !0,
|
|
4868
|
-
"touch-start-threshold": 50,
|
|
4869
|
-
"fallback-tolerance": 50,
|
|
4870
|
-
move: ie,
|
|
4871
|
-
itemKey: ""
|
|
4872
|
-
}, {
|
|
4873
|
-
default: withCtx(() => [
|
|
4874
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(H).list, (se, ae) => (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
4875
|
-
createElementVNode("div", {
|
|
4876
|
-
class: normalizeClass(["widget-col widget-view", { active: G.value == ae.toString() }]),
|
|
4877
|
-
onMousedown: (ce) => Z(se, ae.toString(), ce)
|
|
4878
|
-
}, [
|
|
4879
|
-
se.type == "grid" ? (openBlock(), createBlock(FormGrid, {
|
|
4880
|
-
key: 0,
|
|
4881
|
-
data: se,
|
|
4882
|
-
activeIndex: G.value,
|
|
4883
|
-
onChildConfig: Q,
|
|
4884
|
-
onIndex: X,
|
|
4885
|
-
index: ae.toString()
|
|
4886
|
-
}, null, 8, ["data", "activeIndex", "index"])) : se.type == "table" ? (openBlock(), createBlock(FormTable, {
|
|
4887
|
-
key: 1,
|
|
4888
|
-
data: se,
|
|
4889
|
-
activeIndex: G.value,
|
|
4890
|
-
index: ae
|
|
4891
|
-
}, null, 8, ["data", "activeIndex", "index"])) : se.type == "report" ? (openBlock(), createBlock(FormReport, {
|
|
4892
|
-
key: 2,
|
|
4893
|
-
data: se,
|
|
4894
|
-
activeIndex: G.value,
|
|
4895
|
-
index: ae
|
|
4896
|
-
}, null, 8, ["data", "activeIndex", "index"])) : (openBlock(), createBlock(FormInput, {
|
|
4897
|
-
key: 3,
|
|
4898
|
-
data: se,
|
|
4899
|
-
activeIndex: G.value,
|
|
4900
|
-
index: ae.toString()
|
|
4901
|
-
}, null, 8, ["data", "activeIndex", "index"]))
|
|
4902
|
-
], 42, _hoisted_2$6)
|
|
4903
|
-
]))), 256))
|
|
4904
|
-
]),
|
|
4905
|
-
_: 1
|
|
4906
|
-
}, 8, ["class", "list"])
|
|
4907
|
-
]),
|
|
4908
|
-
_: 1
|
|
4909
|
-
});
|
|
4910
|
-
};
|
|
4911
|
-
}
|
|
4912
|
-
}), index_vue_vue_type_style_index_0_scoped_aa78c39f_lang = "", FormDesign = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-aa78c39f"]]), _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
4913
|
-
__name: "Grid",
|
|
4914
|
-
props: {
|
|
4915
|
-
configData: {
|
|
4916
|
-
type: Object,
|
|
4917
|
-
default: {}
|
|
4918
|
-
}
|
|
4919
|
-
},
|
|
4920
|
-
setup(K) {
|
|
4921
|
-
return (C, W) => {
|
|
4922
|
-
const H = resolveComponent("a-input"), U = resolveComponent("a-form-item"), G = resolveComponent("a-input-number"), Z = resolveComponent("a-form");
|
|
4923
|
-
return openBlock(), createBlock(Z, {
|
|
4924
|
-
layout: "vertical",
|
|
4925
|
-
model: K.configData,
|
|
4926
|
-
autocomplete: "off"
|
|
4927
|
-
}, {
|
|
4928
|
-
default: withCtx(() => [
|
|
4929
|
-
createVNode(U, {
|
|
4930
|
-
label: "字段标识",
|
|
4931
|
-
rules: [{ required: !0 }]
|
|
4932
|
-
}, {
|
|
4933
|
-
default: withCtx(() => [
|
|
4934
|
-
createVNode(H, {
|
|
4935
|
-
value: K.configData.model,
|
|
4936
|
-
"onUpdate:value": W[0] || (W[0] = (Q) => K.configData.model = Q)
|
|
4937
|
-
}, null, 8, ["value"])
|
|
4938
|
-
]),
|
|
4939
|
-
_: 1
|
|
4940
|
-
}),
|
|
4941
|
-
createVNode(U, { label: "栅格间距" }, {
|
|
4942
|
-
default: withCtx(() => [
|
|
4943
|
-
createVNode(G, {
|
|
4944
|
-
value: K.configData.options.gutter,
|
|
4945
|
-
"onUpdate:value": W[1] || (W[1] = (Q) => K.configData.options.gutter = Q),
|
|
4946
|
-
min: 1,
|
|
4947
|
-
max: 30,
|
|
4948
|
-
style: { width: "100%" }
|
|
4949
|
-
}, null, 8, ["value"])
|
|
4950
|
-
]),
|
|
4951
|
-
_: 1
|
|
4952
|
-
})
|
|
4953
|
-
]),
|
|
4954
|
-
_: 1
|
|
4955
|
-
}, 8, ["model"]);
|
|
4956
|
-
};
|
|
4957
|
-
}
|
|
4958
|
-
}), _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
4959
|
-
__name: "Col",
|
|
4960
|
-
props: {
|
|
4961
|
-
configData: {
|
|
4962
|
-
type: Object,
|
|
4963
|
-
default: {}
|
|
4964
|
-
}
|
|
4965
|
-
},
|
|
4966
|
-
setup(K) {
|
|
4967
|
-
return (C, W) => {
|
|
4968
|
-
const H = resolveComponent("a-input-number"), U = resolveComponent("a-form-item"), G = resolveComponent("a-form");
|
|
4969
|
-
return openBlock(), createBlock(G, {
|
|
4970
|
-
layout: "vertical",
|
|
4971
|
-
model: K.configData,
|
|
4972
|
-
autocomplete: "off"
|
|
4973
|
-
}, {
|
|
4974
|
-
default: withCtx(() => [
|
|
4975
|
-
createVNode(U, { label: "栅格占据的列数" }, {
|
|
4976
|
-
default: withCtx(() => [
|
|
4977
|
-
createVNode(H, {
|
|
4978
|
-
value: K.configData.options.span,
|
|
4979
|
-
"onUpdate:value": W[0] || (W[0] = (Z) => K.configData.options.span = Z),
|
|
4980
|
-
min: 4,
|
|
4981
|
-
max: 24,
|
|
4982
|
-
style: { width: "100%" }
|
|
4983
|
-
}, null, 8, ["value"])
|
|
4984
|
-
]),
|
|
4985
|
-
_: 1
|
|
4986
|
-
}),
|
|
4987
|
-
createVNode(U, { label: "栅格左侧的间隔格数" }, {
|
|
4988
|
-
default: withCtx(() => [
|
|
4989
|
-
createVNode(H, {
|
|
4990
|
-
value: K.configData.options.offset,
|
|
4991
|
-
"onUpdate:value": W[1] || (W[1] = (Z) => K.configData.options.offset = Z),
|
|
4992
|
-
min: 0,
|
|
4993
|
-
max: 10,
|
|
4994
|
-
style: { width: "100%" }
|
|
4995
|
-
}, null, 8, ["value"])
|
|
4996
|
-
]),
|
|
4997
|
-
_: 1
|
|
4998
|
-
})
|
|
4999
|
-
]),
|
|
5000
|
-
_: 1
|
|
5001
|
-
}, 8, ["model"]);
|
|
5002
|
-
};
|
|
5003
|
-
}
|
|
5004
|
-
}), useDataStore = defineStore({
|
|
5005
|
-
id: "dataStore",
|
|
5006
|
-
state: () => ({
|
|
5007
|
-
selectList: [],
|
|
5008
|
-
updateList: [],
|
|
5009
|
-
delList: [],
|
|
5010
|
-
selectTables: []
|
|
5011
|
-
}),
|
|
5012
|
-
getters: {
|
|
5013
|
-
getSelectData(K) {
|
|
5014
|
-
return K.selectList;
|
|
5015
|
-
},
|
|
5016
|
-
getSelectTables(K) {
|
|
5017
|
-
return K.selectTables;
|
|
5018
|
-
},
|
|
5019
|
-
getUpdateData(K) {
|
|
5020
|
-
return K.updateList;
|
|
5021
|
-
}
|
|
5022
|
-
},
|
|
5023
|
-
actions: {
|
|
5024
|
-
addSelectData(K) {
|
|
5025
|
-
this.selectList.push(...K);
|
|
5026
|
-
},
|
|
5027
|
-
setSelectData(K) {
|
|
5028
|
-
this.selectList = K;
|
|
5029
|
-
},
|
|
5030
|
-
setUpdateData(K) {
|
|
5031
|
-
this.updateList = K;
|
|
5032
|
-
},
|
|
5033
|
-
addUpdateData(K) {
|
|
5034
|
-
this.updateList.push(...K);
|
|
5035
|
-
},
|
|
5036
|
-
addSelectTable(K) {
|
|
5037
|
-
this.selectTables.push(K);
|
|
5038
|
-
},
|
|
5039
|
-
setSelectTables(K) {
|
|
5040
|
-
this.selectTables = K;
|
|
5041
|
-
}
|
|
5042
|
-
}
|
|
5043
|
-
});
|
|
4573
|
+
}), FormInput_vue_vue_type_style_index_0_scoped_a1672db9_lang = "", FormInput = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-a1672db9"]]);
|
|
5044
4574
|
function _typeof$1(K) {
|
|
5045
4575
|
"@babel/helpers - typeof";
|
|
5046
4576
|
return _typeof$1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(C) {
|
|
@@ -9989,7 +9519,505 @@ Modal.destroyAll = function() {
|
|
|
9989
9519
|
Modal.install = function(K) {
|
|
9990
9520
|
return K.component(Modal.name, Modal), K;
|
|
9991
9521
|
};
|
|
9992
|
-
const _hoisted_1$
|
|
9522
|
+
const _hoisted_1$d = { class: "move" }, _hoisted_2$9 = {
|
|
9523
|
+
key: 0,
|
|
9524
|
+
class: "widget-view-drag"
|
|
9525
|
+
}, _hoisted_3$7 = ["onMousedown"], _hoisted_4$5 = {
|
|
9526
|
+
key: 0,
|
|
9527
|
+
class: "item-action"
|
|
9528
|
+
}, _hoisted_5$5 = {
|
|
9529
|
+
key: 0,
|
|
9530
|
+
class: "item-action"
|
|
9531
|
+
}, _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
9532
|
+
__name: "FormGrid",
|
|
9533
|
+
props: {
|
|
9534
|
+
data: {
|
|
9535
|
+
type: Object,
|
|
9536
|
+
default: null
|
|
9537
|
+
},
|
|
9538
|
+
activeIndex: {
|
|
9539
|
+
type: String,
|
|
9540
|
+
default: ""
|
|
9541
|
+
},
|
|
9542
|
+
index: {
|
|
9543
|
+
type: String,
|
|
9544
|
+
default: ""
|
|
9545
|
+
}
|
|
9546
|
+
},
|
|
9547
|
+
emits: ["childConfig", "index"],
|
|
9548
|
+
setup(K, { emit: C }) {
|
|
9549
|
+
const W = K, H = useFormStore(), { formData: U } = H, G = ref("-1");
|
|
9550
|
+
watch(
|
|
9551
|
+
() => W.activeIndex,
|
|
9552
|
+
(ne, oe) => {
|
|
9553
|
+
G.value = ne;
|
|
9554
|
+
}
|
|
9555
|
+
);
|
|
9556
|
+
function Z(ne, oe, re) {
|
|
9557
|
+
G.value = oe, C("childConfig", ne), C("index", G.value), re.stopPropagation(), re.preventDefault();
|
|
9558
|
+
}
|
|
9559
|
+
function Q() {
|
|
9560
|
+
debugger;
|
|
9561
|
+
G.value = "-1", console.log("开始拖拽");
|
|
9562
|
+
}
|
|
9563
|
+
function X(ne, oe) {
|
|
9564
|
+
debugger;
|
|
9565
|
+
ne.to.className == "widget-col-list" ? G.value = W.index + "-" + oe + "-" + ne.newIndex : G.value = ne.newIndex, C("index", G.value);
|
|
9566
|
+
}
|
|
9567
|
+
function ee(ne) {
|
|
9568
|
+
const oe = JSON.parse(JSON.stringify(ne)), re = Number.parseInt(W.index);
|
|
9569
|
+
U.list[re].columns.push(oe);
|
|
9570
|
+
}
|
|
9571
|
+
function te(ne) {
|
|
9572
|
+
let oe = W.data.columns.indexOf(ne);
|
|
9573
|
+
W.data.columns.splice(oe, 1);
|
|
9574
|
+
}
|
|
9575
|
+
function ie() {
|
|
9576
|
+
if (W.data.columns.length > 0)
|
|
9577
|
+
Modal.confirm({
|
|
9578
|
+
title: "确定要删除该栅格布局吗?",
|
|
9579
|
+
content: "如果该布局存在表单,将会一并删除",
|
|
9580
|
+
onOk() {
|
|
9581
|
+
const ne = U.list.indexOf(W.data);
|
|
9582
|
+
U.list.splice(ne, 1);
|
|
9583
|
+
},
|
|
9584
|
+
onCancel() {
|
|
9585
|
+
}
|
|
9586
|
+
});
|
|
9587
|
+
else {
|
|
9588
|
+
const ne = U.list.indexOf(W.data);
|
|
9589
|
+
U.list.splice(ne, 1);
|
|
9590
|
+
}
|
|
9591
|
+
}
|
|
9592
|
+
return (ne, oe) => {
|
|
9593
|
+
const re = resolveComponent("a-col"), se = resolveComponent("a-row"), ae = resolveComponent("a-form");
|
|
9594
|
+
return openBlock(), createElementBlock("div", null, [
|
|
9595
|
+
createElementVNode("div", _hoisted_1$d, [
|
|
9596
|
+
K.activeIndex == K.index ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
9597
|
+
createVNode(unref(DragOutlined$1), { style: { padding: "6px" } })
|
|
9598
|
+
])) : createCommentVNode("", !0)
|
|
9599
|
+
]),
|
|
9600
|
+
createVNode(ae, {
|
|
9601
|
+
"label-col": { style: { width: "100px" } },
|
|
9602
|
+
labelWrap: !0
|
|
9603
|
+
}, {
|
|
9604
|
+
default: withCtx(() => [
|
|
9605
|
+
createVNode(se, {
|
|
9606
|
+
gutter: [K.data.options.gutter, 8],
|
|
9607
|
+
tyle: "flex",
|
|
9608
|
+
style: normalizeStyle({ marginLeft: -K.data.options.gutter / 2 + "px", marginRight: -K.data.options.gutter / 2 + "px" })
|
|
9609
|
+
}, {
|
|
9610
|
+
default: withCtx(() => [
|
|
9611
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(K.data.columns, (ce, le) => (openBlock(), createBlock(re, {
|
|
9612
|
+
class: normalizeClass(["widget-col-item", { active: G.value == "col" + le }]),
|
|
9613
|
+
span: ce.options.span,
|
|
9614
|
+
offset: ce.options.offset,
|
|
9615
|
+
onMousedown: (de) => Z(ce, "col" + le, de)
|
|
9616
|
+
}, {
|
|
9617
|
+
default: withCtx(() => [
|
|
9618
|
+
createVNode(unref(VueDraggableNext), {
|
|
9619
|
+
class: "widget-col-list",
|
|
9620
|
+
style: { "min-height": "50px" },
|
|
9621
|
+
"ghost-class": "ghost",
|
|
9622
|
+
list: ce.list,
|
|
9623
|
+
"force-fallback": !0,
|
|
9624
|
+
"chosen-class": "chosenClass2",
|
|
9625
|
+
"drag-class": "dragClass1",
|
|
9626
|
+
onStart: Q,
|
|
9627
|
+
onEnd: (de) => X(de, le),
|
|
9628
|
+
group: "itxst",
|
|
9629
|
+
sort: !1,
|
|
9630
|
+
animation: "300",
|
|
9631
|
+
handle: ".move",
|
|
9632
|
+
itemKey: ""
|
|
9633
|
+
}, {
|
|
9634
|
+
default: withCtx(() => [
|
|
9635
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(ce.list, (de, ue) => (openBlock(), createElementBlock("div", {
|
|
9636
|
+
class: normalizeClass(["widget-view", { active: G.value == K.index + "-" + le + "-" + ue }]),
|
|
9637
|
+
onMousedown: (he) => Z(de, K.index + "-" + le + "-" + ue, he)
|
|
9638
|
+
}, [
|
|
9639
|
+
createVNode(FormInput, {
|
|
9640
|
+
data: de,
|
|
9641
|
+
activeIndex: G.value,
|
|
9642
|
+
index: K.index + "-" + le + "-" + ue
|
|
9643
|
+
}, null, 8, ["data", "activeIndex", "index"])
|
|
9644
|
+
], 42, _hoisted_3$7))), 256))
|
|
9645
|
+
]),
|
|
9646
|
+
_: 2
|
|
9647
|
+
}, 1032, ["list", "onEnd"]),
|
|
9648
|
+
K.activeIndex === "col" + le ? (openBlock(), createElementBlock("div", _hoisted_4$5, [
|
|
9649
|
+
createVNode(unref(CopyOutlined$1), {
|
|
9650
|
+
style: { padding: "3px 5px" },
|
|
9651
|
+
onClick: (de) => ee(ce)
|
|
9652
|
+
}, null, 8, ["onClick"]),
|
|
9653
|
+
createVNode(unref(DeleteOutlined$1), {
|
|
9654
|
+
onClick: (de) => te(ce)
|
|
9655
|
+
}, null, 8, ["onClick"])
|
|
9656
|
+
])) : createCommentVNode("", !0)
|
|
9657
|
+
]),
|
|
9658
|
+
_: 2
|
|
9659
|
+
}, 1032, ["span", "class", "offset", "onMousedown"]))), 256)),
|
|
9660
|
+
K.activeIndex === K.index ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
|
|
9661
|
+
createVNode(unref(DeleteOutlined$1), {
|
|
9662
|
+
style: { padding: "3px 5px", color: "#fff" },
|
|
9663
|
+
onClick: oe[0] || (oe[0] = (ce) => ie())
|
|
9664
|
+
})
|
|
9665
|
+
])) : createCommentVNode("", !0)
|
|
9666
|
+
]),
|
|
9667
|
+
_: 1
|
|
9668
|
+
}, 8, ["gutter", "style"])
|
|
9669
|
+
]),
|
|
9670
|
+
_: 1
|
|
9671
|
+
})
|
|
9672
|
+
]);
|
|
9673
|
+
};
|
|
9674
|
+
}
|
|
9675
|
+
}), FormGrid_vue_vue_type_style_index_0_scoped_7e7b2094_lang = "", FormGrid = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-7e7b2094"]]), _hoisted_1$c = { id: "table-css" }, _hoisted_2$8 = { style: { "text-align": "left", "padding-left": "50px" } }, _hoisted_3$6 = ["onClick"], _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
9676
|
+
__name: "FormTable",
|
|
9677
|
+
props: {
|
|
9678
|
+
data: {
|
|
9679
|
+
type: Object,
|
|
9680
|
+
default: null
|
|
9681
|
+
},
|
|
9682
|
+
activeIndex: {
|
|
9683
|
+
type: String,
|
|
9684
|
+
default: ""
|
|
9685
|
+
},
|
|
9686
|
+
index: {
|
|
9687
|
+
type: Number,
|
|
9688
|
+
default: ""
|
|
9689
|
+
}
|
|
9690
|
+
},
|
|
9691
|
+
setup(K) {
|
|
9692
|
+
const C = K, W = useFormStore(), { formData: H } = storeToRefs(W);
|
|
9693
|
+
let U = ref(null), G = ref(!1);
|
|
9694
|
+
function Z(te) {
|
|
9695
|
+
U.value != null && (U.value.className = ""), U.value = te, G.value = !0, te.className = "tableClass";
|
|
9696
|
+
}
|
|
9697
|
+
let Q = 0;
|
|
9698
|
+
function X() {
|
|
9699
|
+
H.value.list[C.index].tableColumns.push({
|
|
9700
|
+
title: "自定义列" + Q,
|
|
9701
|
+
dataIndex: "code"
|
|
9702
|
+
}), Q++;
|
|
9703
|
+
}
|
|
9704
|
+
function ee() {
|
|
9705
|
+
U.value.children == null && Reflect.set(U.value, "children", []), U.value.children.push({
|
|
9706
|
+
title: "自定义列" + Q,
|
|
9707
|
+
dataIndex: "code",
|
|
9708
|
+
key: "code"
|
|
9709
|
+
}), Q++;
|
|
9710
|
+
}
|
|
9711
|
+
return (te, ie) => {
|
|
9712
|
+
const ne = resolveComponent("a-input"), oe = resolveComponent("a-table");
|
|
9713
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
9714
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
9715
|
+
createElementVNode("a", { onClick: X }, "添加列"),
|
|
9716
|
+
createTextVNode(" "),
|
|
9717
|
+
unref(G) ? (openBlock(), createElementBlock("a", {
|
|
9718
|
+
key: 0,
|
|
9719
|
+
onClick: ee
|
|
9720
|
+
}, "分组『" + toDisplayString(unref(U).title) + "』添加列", 1)) : createCommentVNode("", !0)
|
|
9721
|
+
]),
|
|
9722
|
+
createVNode(oe, {
|
|
9723
|
+
columns: unref(H).list[K.index].tableColumns,
|
|
9724
|
+
bordered: "",
|
|
9725
|
+
size: "middle",
|
|
9726
|
+
scroll: { y: 240 }
|
|
9727
|
+
}, {
|
|
9728
|
+
headerCell: withCtx(({ column: re }) => [
|
|
9729
|
+
createElementVNode("div", {
|
|
9730
|
+
onClick: (se) => Z(re)
|
|
9731
|
+
}, [
|
|
9732
|
+
createVNode(ne, {
|
|
9733
|
+
value: re.title,
|
|
9734
|
+
"onUpdate:value": (se) => re.title = se
|
|
9735
|
+
}, null, 8, ["value", "onUpdate:value"])
|
|
9736
|
+
], 8, _hoisted_3$6)
|
|
9737
|
+
]),
|
|
9738
|
+
_: 1
|
|
9739
|
+
}, 8, ["columns"])
|
|
9740
|
+
]);
|
|
9741
|
+
};
|
|
9742
|
+
}
|
|
9743
|
+
}), FormTable_vue_vue_type_style_index_0_scoped_4208a59b_lang = "", FormTable = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-4208a59b"]]), _hoisted_1$b = { id: "report-css" }, _hoisted_2$7 = { class: "report-table-css" }, _hoisted_3$5 = ["onClick"], _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
9744
|
+
__name: "FormReport",
|
|
9745
|
+
props: {
|
|
9746
|
+
data: {
|
|
9747
|
+
type: Object,
|
|
9748
|
+
default: null
|
|
9749
|
+
},
|
|
9750
|
+
activeIndex: {
|
|
9751
|
+
type: String,
|
|
9752
|
+
default: ""
|
|
9753
|
+
},
|
|
9754
|
+
index: {
|
|
9755
|
+
type: Number,
|
|
9756
|
+
default: ""
|
|
9757
|
+
}
|
|
9758
|
+
},
|
|
9759
|
+
setup(K) {
|
|
9760
|
+
const C = useFormStore(), { formData: W } = storeToRefs(C);
|
|
9761
|
+
let H = ref(null), U = ref(!1);
|
|
9762
|
+
function G(X, ee) {
|
|
9763
|
+
H.value != null && (H.value.className = ""), H.value = X, U.value = !0;
|
|
9764
|
+
}
|
|
9765
|
+
function Z() {
|
|
9766
|
+
}
|
|
9767
|
+
function Q() {
|
|
9768
|
+
H.value.columns.push({
|
|
9769
|
+
type: "td",
|
|
9770
|
+
options: {
|
|
9771
|
+
customClass: "",
|
|
9772
|
+
colspan: 1,
|
|
9773
|
+
rowspan: 1,
|
|
9774
|
+
align: "left",
|
|
9775
|
+
valign: "top",
|
|
9776
|
+
width: "",
|
|
9777
|
+
height: ""
|
|
9778
|
+
},
|
|
9779
|
+
list: [],
|
|
9780
|
+
key: "fuzps6zb",
|
|
9781
|
+
rules: []
|
|
9782
|
+
});
|
|
9783
|
+
}
|
|
9784
|
+
return (X, ee) => (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
9785
|
+
createElementVNode("div", { style: { "text-align": "left", "padding-left": "50px" } }, [
|
|
9786
|
+
createElementVNode("a", { onClick: Z }, "添加行"),
|
|
9787
|
+
createTextVNode(" "),
|
|
9788
|
+
createElementVNode("a", { onClick: Q }, "添加列")
|
|
9789
|
+
]),
|
|
9790
|
+
createElementVNode("table", _hoisted_2$7, [
|
|
9791
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(W).list[K.index].rows, (te, ie) => (openBlock(), createElementBlock("tr", null, [
|
|
9792
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(te.columns, (ne, oe) => (openBlock(), createElementBlock("td", {
|
|
9793
|
+
class: "report-table-item",
|
|
9794
|
+
onClick: (re) => G(te)
|
|
9795
|
+
}, " fdfd ", 8, _hoisted_3$5))), 256))
|
|
9796
|
+
]))), 256))
|
|
9797
|
+
])
|
|
9798
|
+
]));
|
|
9799
|
+
}
|
|
9800
|
+
}), FormReport_vue_vue_type_style_index_0_scoped_9eb302b9_lang = "", FormReport = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-9eb302b9"]]), _hoisted_1$a = { class: "" }, _hoisted_2$6 = ["onMousedown"], _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
9801
|
+
__name: "index",
|
|
9802
|
+
emits: ["controlConfig"],
|
|
9803
|
+
setup(K, { emit: C }) {
|
|
9804
|
+
const W = useFormStore();
|
|
9805
|
+
let { formData: H } = storeToRefs(W);
|
|
9806
|
+
const U = { style: { width: "100px" } }, G = ref("-1");
|
|
9807
|
+
function Z(ne, oe, re) {
|
|
9808
|
+
C("controlConfig", ne), G.value = oe, re.stopPropagation(), re.preventDefault();
|
|
9809
|
+
}
|
|
9810
|
+
function Q(ne) {
|
|
9811
|
+
C("controlConfig", ne);
|
|
9812
|
+
}
|
|
9813
|
+
function X(ne) {
|
|
9814
|
+
G.value = ne;
|
|
9815
|
+
}
|
|
9816
|
+
function ee() {
|
|
9817
|
+
G.value = "-1", console.log("开始拖拽");
|
|
9818
|
+
}
|
|
9819
|
+
function te(ne) {
|
|
9820
|
+
ne.to.className == "widget-col-list" ? G.value = "base" + ne.newIndex : G.value = ne.newIndex;
|
|
9821
|
+
}
|
|
9822
|
+
function ie(ne) {
|
|
9823
|
+
}
|
|
9824
|
+
return (ne, oe) => {
|
|
9825
|
+
const re = resolveComponent("a-form");
|
|
9826
|
+
return openBlock(), createBlock(re, {
|
|
9827
|
+
class: "form-container",
|
|
9828
|
+
"label-col": U
|
|
9829
|
+
}, {
|
|
9830
|
+
default: withCtx(() => [
|
|
9831
|
+
createVNode(unref(VueDraggableNext), {
|
|
9832
|
+
class: normalizeClass(unref(H).list.length > 0 ? "widget-form-list" : "widgt-empty"),
|
|
9833
|
+
list: unref(H).list,
|
|
9834
|
+
"ghost-class": "ghost",
|
|
9835
|
+
handle: ".move",
|
|
9836
|
+
"force-fallback": !0,
|
|
9837
|
+
"chosen-class": "chosenClass1",
|
|
9838
|
+
"drag-class": "dragClass1",
|
|
9839
|
+
animation: "300",
|
|
9840
|
+
onStart: ee,
|
|
9841
|
+
onEnd: te,
|
|
9842
|
+
group: "itxst",
|
|
9843
|
+
"fallback-class": !0,
|
|
9844
|
+
"fallback-on-body": !0,
|
|
9845
|
+
"touch-start-threshold": 50,
|
|
9846
|
+
"fallback-tolerance": 50,
|
|
9847
|
+
move: ie,
|
|
9848
|
+
itemKey: ""
|
|
9849
|
+
}, {
|
|
9850
|
+
default: withCtx(() => [
|
|
9851
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(H).list, (se, ae) => (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
9852
|
+
createElementVNode("div", {
|
|
9853
|
+
class: normalizeClass(["widget-col widget-view", { active: G.value == ae.toString() }]),
|
|
9854
|
+
onMousedown: (ce) => Z(se, ae.toString(), ce)
|
|
9855
|
+
}, [
|
|
9856
|
+
se.type == "grid" ? (openBlock(), createBlock(FormGrid, {
|
|
9857
|
+
key: 0,
|
|
9858
|
+
data: se,
|
|
9859
|
+
activeIndex: G.value,
|
|
9860
|
+
onChildConfig: Q,
|
|
9861
|
+
onIndex: X,
|
|
9862
|
+
index: ae.toString()
|
|
9863
|
+
}, null, 8, ["data", "activeIndex", "index"])) : se.type == "table" ? (openBlock(), createBlock(FormTable, {
|
|
9864
|
+
key: 1,
|
|
9865
|
+
data: se,
|
|
9866
|
+
activeIndex: G.value,
|
|
9867
|
+
index: ae
|
|
9868
|
+
}, null, 8, ["data", "activeIndex", "index"])) : se.type == "report" ? (openBlock(), createBlock(FormReport, {
|
|
9869
|
+
key: 2,
|
|
9870
|
+
data: se,
|
|
9871
|
+
activeIndex: G.value,
|
|
9872
|
+
index: ae
|
|
9873
|
+
}, null, 8, ["data", "activeIndex", "index"])) : (openBlock(), createBlock(FormInput, {
|
|
9874
|
+
key: 3,
|
|
9875
|
+
data: se,
|
|
9876
|
+
activeIndex: G.value,
|
|
9877
|
+
index: ae.toString()
|
|
9878
|
+
}, null, 8, ["data", "activeIndex", "index"]))
|
|
9879
|
+
], 42, _hoisted_2$6)
|
|
9880
|
+
]))), 256))
|
|
9881
|
+
]),
|
|
9882
|
+
_: 1
|
|
9883
|
+
}, 8, ["class", "list"])
|
|
9884
|
+
]),
|
|
9885
|
+
_: 1
|
|
9886
|
+
});
|
|
9887
|
+
};
|
|
9888
|
+
}
|
|
9889
|
+
}), index_vue_vue_type_style_index_0_scoped_aa78c39f_lang = "", FormDesign = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-aa78c39f"]]), _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
9890
|
+
__name: "Grid",
|
|
9891
|
+
props: {
|
|
9892
|
+
configData: {
|
|
9893
|
+
type: Object,
|
|
9894
|
+
default: {}
|
|
9895
|
+
}
|
|
9896
|
+
},
|
|
9897
|
+
setup(K) {
|
|
9898
|
+
return (C, W) => {
|
|
9899
|
+
const H = resolveComponent("a-input"), U = resolveComponent("a-form-item"), G = resolveComponent("a-input-number"), Z = resolveComponent("a-form");
|
|
9900
|
+
return openBlock(), createBlock(Z, {
|
|
9901
|
+
layout: "vertical",
|
|
9902
|
+
model: K.configData,
|
|
9903
|
+
autocomplete: "off"
|
|
9904
|
+
}, {
|
|
9905
|
+
default: withCtx(() => [
|
|
9906
|
+
createVNode(U, {
|
|
9907
|
+
label: "字段标识",
|
|
9908
|
+
rules: [{ required: !0 }]
|
|
9909
|
+
}, {
|
|
9910
|
+
default: withCtx(() => [
|
|
9911
|
+
createVNode(H, {
|
|
9912
|
+
value: K.configData.model,
|
|
9913
|
+
"onUpdate:value": W[0] || (W[0] = (Q) => K.configData.model = Q)
|
|
9914
|
+
}, null, 8, ["value"])
|
|
9915
|
+
]),
|
|
9916
|
+
_: 1
|
|
9917
|
+
}),
|
|
9918
|
+
createVNode(U, { label: "栅格间距" }, {
|
|
9919
|
+
default: withCtx(() => [
|
|
9920
|
+
createVNode(G, {
|
|
9921
|
+
value: K.configData.options.gutter,
|
|
9922
|
+
"onUpdate:value": W[1] || (W[1] = (Q) => K.configData.options.gutter = Q),
|
|
9923
|
+
min: 1,
|
|
9924
|
+
max: 30,
|
|
9925
|
+
style: { width: "100%" }
|
|
9926
|
+
}, null, 8, ["value"])
|
|
9927
|
+
]),
|
|
9928
|
+
_: 1
|
|
9929
|
+
})
|
|
9930
|
+
]),
|
|
9931
|
+
_: 1
|
|
9932
|
+
}, 8, ["model"]);
|
|
9933
|
+
};
|
|
9934
|
+
}
|
|
9935
|
+
}), _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
9936
|
+
__name: "Col",
|
|
9937
|
+
props: {
|
|
9938
|
+
configData: {
|
|
9939
|
+
type: Object,
|
|
9940
|
+
default: {}
|
|
9941
|
+
}
|
|
9942
|
+
},
|
|
9943
|
+
setup(K) {
|
|
9944
|
+
return (C, W) => {
|
|
9945
|
+
const H = resolveComponent("a-input-number"), U = resolveComponent("a-form-item"), G = resolveComponent("a-form");
|
|
9946
|
+
return openBlock(), createBlock(G, {
|
|
9947
|
+
layout: "vertical",
|
|
9948
|
+
model: K.configData,
|
|
9949
|
+
autocomplete: "off"
|
|
9950
|
+
}, {
|
|
9951
|
+
default: withCtx(() => [
|
|
9952
|
+
createVNode(U, { label: "栅格占据的列数" }, {
|
|
9953
|
+
default: withCtx(() => [
|
|
9954
|
+
createVNode(H, {
|
|
9955
|
+
value: K.configData.options.span,
|
|
9956
|
+
"onUpdate:value": W[0] || (W[0] = (Z) => K.configData.options.span = Z),
|
|
9957
|
+
min: 4,
|
|
9958
|
+
max: 24,
|
|
9959
|
+
style: { width: "100%" }
|
|
9960
|
+
}, null, 8, ["value"])
|
|
9961
|
+
]),
|
|
9962
|
+
_: 1
|
|
9963
|
+
}),
|
|
9964
|
+
createVNode(U, { label: "栅格左侧的间隔格数" }, {
|
|
9965
|
+
default: withCtx(() => [
|
|
9966
|
+
createVNode(H, {
|
|
9967
|
+
value: K.configData.options.offset,
|
|
9968
|
+
"onUpdate:value": W[1] || (W[1] = (Z) => K.configData.options.offset = Z),
|
|
9969
|
+
min: 0,
|
|
9970
|
+
max: 10,
|
|
9971
|
+
style: { width: "100%" }
|
|
9972
|
+
}, null, 8, ["value"])
|
|
9973
|
+
]),
|
|
9974
|
+
_: 1
|
|
9975
|
+
})
|
|
9976
|
+
]),
|
|
9977
|
+
_: 1
|
|
9978
|
+
}, 8, ["model"]);
|
|
9979
|
+
};
|
|
9980
|
+
}
|
|
9981
|
+
}), useDataStore = defineStore({
|
|
9982
|
+
id: "dataStore",
|
|
9983
|
+
state: () => ({
|
|
9984
|
+
selectList: [],
|
|
9985
|
+
updateList: [],
|
|
9986
|
+
delList: [],
|
|
9987
|
+
selectTables: []
|
|
9988
|
+
}),
|
|
9989
|
+
getters: {
|
|
9990
|
+
getSelectData(K) {
|
|
9991
|
+
return K.selectList;
|
|
9992
|
+
},
|
|
9993
|
+
getSelectTables(K) {
|
|
9994
|
+
return K.selectTables;
|
|
9995
|
+
},
|
|
9996
|
+
getUpdateData(K) {
|
|
9997
|
+
return K.updateList;
|
|
9998
|
+
}
|
|
9999
|
+
},
|
|
10000
|
+
actions: {
|
|
10001
|
+
addSelectData(K) {
|
|
10002
|
+
this.selectList.push(...K);
|
|
10003
|
+
},
|
|
10004
|
+
setSelectData(K) {
|
|
10005
|
+
this.selectList = K;
|
|
10006
|
+
},
|
|
10007
|
+
setUpdateData(K) {
|
|
10008
|
+
this.updateList = K;
|
|
10009
|
+
},
|
|
10010
|
+
addUpdateData(K) {
|
|
10011
|
+
this.updateList.push(...K);
|
|
10012
|
+
},
|
|
10013
|
+
addSelectTable(K) {
|
|
10014
|
+
this.selectTables.push(K);
|
|
10015
|
+
},
|
|
10016
|
+
setSelectTables(K) {
|
|
10017
|
+
this.selectTables = K;
|
|
10018
|
+
}
|
|
10019
|
+
}
|
|
10020
|
+
}), _hoisted_1$9 = { class: "table-column-setting" }, _hoisted_2$5 = { class: "left" }, _hoisted_3$4 = { class: "left-content" }, _hoisted_4$4 = { class: "treeItem" }, _hoisted_5$4 = { class: "title" }, _hoisted_6$4 = { class: "right" }, _hoisted_7$3 = { class: "right-content" }, _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
9993
10021
|
__name: "TableColumn",
|
|
9994
10022
|
props: {
|
|
9995
10023
|
tableColumns: {
|
|
@@ -83016,37 +83044,37 @@ registerLanguage({
|
|
|
83016
83044
|
id: "freemarker2",
|
|
83017
83045
|
extensions: [".ftl", ".ftlh", ".ftlx"],
|
|
83018
83046
|
aliases: ["FreeMarker2", "Apache FreeMarker2"],
|
|
83019
|
-
loader: () => import("./freemarker2-
|
|
83047
|
+
loader: () => import("./freemarker2-12493398.js").then((K) => K.TagAutoInterpolationDollar)
|
|
83020
83048
|
});
|
|
83021
83049
|
registerLanguage({
|
|
83022
83050
|
id: "freemarker2.tag-angle.interpolation-dollar",
|
|
83023
83051
|
aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
|
|
83024
|
-
loader: () => import("./freemarker2-
|
|
83052
|
+
loader: () => import("./freemarker2-12493398.js").then((K) => K.TagAngleInterpolationDollar)
|
|
83025
83053
|
});
|
|
83026
83054
|
registerLanguage({
|
|
83027
83055
|
id: "freemarker2.tag-bracket.interpolation-dollar",
|
|
83028
83056
|
aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
|
|
83029
|
-
loader: () => import("./freemarker2-
|
|
83057
|
+
loader: () => import("./freemarker2-12493398.js").then((K) => K.TagBracketInterpolationDollar)
|
|
83030
83058
|
});
|
|
83031
83059
|
registerLanguage({
|
|
83032
83060
|
id: "freemarker2.tag-angle.interpolation-bracket",
|
|
83033
83061
|
aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
|
|
83034
|
-
loader: () => import("./freemarker2-
|
|
83062
|
+
loader: () => import("./freemarker2-12493398.js").then((K) => K.TagAngleInterpolationBracket)
|
|
83035
83063
|
});
|
|
83036
83064
|
registerLanguage({
|
|
83037
83065
|
id: "freemarker2.tag-bracket.interpolation-bracket",
|
|
83038
83066
|
aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
|
|
83039
|
-
loader: () => import("./freemarker2-
|
|
83067
|
+
loader: () => import("./freemarker2-12493398.js").then((K) => K.TagBracketInterpolationBracket)
|
|
83040
83068
|
});
|
|
83041
83069
|
registerLanguage({
|
|
83042
83070
|
id: "freemarker2.tag-auto.interpolation-dollar",
|
|
83043
83071
|
aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
|
|
83044
|
-
loader: () => import("./freemarker2-
|
|
83072
|
+
loader: () => import("./freemarker2-12493398.js").then((K) => K.TagAutoInterpolationDollar)
|
|
83045
83073
|
});
|
|
83046
83074
|
registerLanguage({
|
|
83047
83075
|
id: "freemarker2.tag-auto.interpolation-bracket",
|
|
83048
83076
|
aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
|
|
83049
|
-
loader: () => import("./freemarker2-
|
|
83077
|
+
loader: () => import("./freemarker2-12493398.js").then((K) => K.TagAutoInterpolationBracket)
|
|
83050
83078
|
});
|
|
83051
83079
|
/*!-----------------------------------------------------------------------------
|
|
83052
83080
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -83084,7 +83112,7 @@ registerLanguage({
|
|
|
83084
83112
|
extensions: [".handlebars", ".hbs"],
|
|
83085
83113
|
aliases: ["Handlebars", "handlebars", "hbs"],
|
|
83086
83114
|
mimetypes: ["text/x-handlebars-template"],
|
|
83087
|
-
loader: () => import("./handlebars-
|
|
83115
|
+
loader: () => import("./handlebars-def84c12.js")
|
|
83088
83116
|
});
|
|
83089
83117
|
/*!-----------------------------------------------------------------------------
|
|
83090
83118
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -83109,7 +83137,7 @@ registerLanguage({
|
|
|
83109
83137
|
extensions: [".html", ".htm", ".shtml", ".xhtml", ".mdoc", ".jsp", ".asp", ".aspx", ".jshtm"],
|
|
83110
83138
|
aliases: ["HTML", "htm", "html", "xhtml"],
|
|
83111
83139
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
83112
|
-
loader: () => import("./html-
|
|
83140
|
+
loader: () => import("./html-280a7ed3.js")
|
|
83113
83141
|
});
|
|
83114
83142
|
/*!-----------------------------------------------------------------------------
|
|
83115
83143
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -83150,7 +83178,7 @@ registerLanguage({
|
|
|
83150
83178
|
filenames: ["jakefile"],
|
|
83151
83179
|
aliases: ["JavaScript", "javascript", "js"],
|
|
83152
83180
|
mimetypes: ["text/javascript"],
|
|
83153
|
-
loader: () => import("./javascript-
|
|
83181
|
+
loader: () => import("./javascript-3df96c77.js")
|
|
83154
83182
|
});
|
|
83155
83183
|
/*!-----------------------------------------------------------------------------
|
|
83156
83184
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -83225,7 +83253,7 @@ registerLanguage({
|
|
|
83225
83253
|
extensions: [".liquid", ".html.liquid"],
|
|
83226
83254
|
aliases: ["Liquid", "liquid"],
|
|
83227
83255
|
mimetypes: ["application/liquid"],
|
|
83228
|
-
loader: () => import("./liquid-
|
|
83256
|
+
loader: () => import("./liquid-c70595aa.js")
|
|
83229
83257
|
});
|
|
83230
83258
|
/*!-----------------------------------------------------------------------------
|
|
83231
83259
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -83261,7 +83289,7 @@ registerLanguage({
|
|
|
83261
83289
|
id: "mdx",
|
|
83262
83290
|
extensions: [".mdx"],
|
|
83263
83291
|
aliases: ["MDX", "mdx"],
|
|
83264
|
-
loader: () => import("./mdx-
|
|
83292
|
+
loader: () => import("./mdx-1a6f1fd5.js")
|
|
83265
83293
|
});
|
|
83266
83294
|
/*!-----------------------------------------------------------------------------
|
|
83267
83295
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -83456,7 +83484,7 @@ registerLanguage({
|
|
|
83456
83484
|
extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
|
|
83457
83485
|
aliases: ["Python", "py"],
|
|
83458
83486
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
83459
|
-
loader: () => import("./python-
|
|
83487
|
+
loader: () => import("./python-3b635c55.js")
|
|
83460
83488
|
});
|
|
83461
83489
|
/*!-----------------------------------------------------------------------------
|
|
83462
83490
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -83493,7 +83521,7 @@ registerLanguage({
|
|
|
83493
83521
|
extensions: [".cshtml"],
|
|
83494
83522
|
aliases: ["Razor", "razor"],
|
|
83495
83523
|
mimetypes: ["text/x-cshtml"],
|
|
83496
|
-
loader: () => import("./razor-
|
|
83524
|
+
loader: () => import("./razor-eb9ede61.js")
|
|
83497
83525
|
});
|
|
83498
83526
|
/*!-----------------------------------------------------------------------------
|
|
83499
83527
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -83745,7 +83773,7 @@ registerLanguage({
|
|
|
83745
83773
|
extensions: [".ts", ".tsx", ".cts", ".mts"],
|
|
83746
83774
|
aliases: ["TypeScript", "ts", "typescript"],
|
|
83747
83775
|
mimetypes: ["text/typescript"],
|
|
83748
|
-
loader: () => import("./typescript-
|
|
83776
|
+
loader: () => import("./typescript-a7a35ee2.js")
|
|
83749
83777
|
});
|
|
83750
83778
|
/*!-----------------------------------------------------------------------------
|
|
83751
83779
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -83801,7 +83829,7 @@ registerLanguage({
|
|
|
83801
83829
|
firstLine: "(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",
|
|
83802
83830
|
aliases: ["XML", "xml"],
|
|
83803
83831
|
mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
|
|
83804
|
-
loader: () => import("./xml-
|
|
83832
|
+
loader: () => import("./xml-8871547f.js")
|
|
83805
83833
|
});
|
|
83806
83834
|
/*!-----------------------------------------------------------------------------
|
|
83807
83835
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -83814,7 +83842,7 @@ registerLanguage({
|
|
|
83814
83842
|
extensions: [".yaml", ".yml"],
|
|
83815
83843
|
aliases: ["YAML", "yaml", "YML", "yml"],
|
|
83816
83844
|
mimetypes: ["application/x-yaml", "text/x-yaml"],
|
|
83817
|
-
loader: () => import("./yaml-
|
|
83845
|
+
loader: () => import("./yaml-bba498d2.js")
|
|
83818
83846
|
});
|
|
83819
83847
|
/*!-----------------------------------------------------------------------------
|
|
83820
83848
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -83909,7 +83937,7 @@ var LanguageServiceDefaultsImpl$3 = class {
|
|
|
83909
83937
|
}, cssDefaults = new LanguageServiceDefaultsImpl$3("css", optionsDefault$1, modeConfigurationDefault$2), scssDefaults = new LanguageServiceDefaultsImpl$3("scss", optionsDefault$1, modeConfigurationDefault$2), lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, modeConfigurationDefault$2);
|
|
83910
83938
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
83911
83939
|
function getMode$3() {
|
|
83912
|
-
return import("./cssMode-
|
|
83940
|
+
return import("./cssMode-258e5ba7.js");
|
|
83913
83941
|
}
|
|
83914
83942
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
83915
83943
|
getMode$3().then((K) => K.setupMode(lessDefaults));
|
|
@@ -84004,7 +84032,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
84004
84032
|
registerHTMLLanguageService
|
|
84005
84033
|
};
|
|
84006
84034
|
function getMode$2() {
|
|
84007
|
-
return import("./htmlMode-
|
|
84035
|
+
return import("./htmlMode-b76e0bdc.js");
|
|
84008
84036
|
}
|
|
84009
84037
|
function registerHTMLLanguageService(K, C = optionsDefault, W = getConfigurationDefault(K)) {
|
|
84010
84038
|
const H = new LanguageServiceDefaultsImpl$2(K, C, W);
|
|
@@ -84081,7 +84109,7 @@ var LanguageServiceDefaultsImpl$1 = class {
|
|
|
84081
84109
|
}, jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault, modeConfigurationDefault$1);
|
|
84082
84110
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
84083
84111
|
function getMode$1() {
|
|
84084
|
-
return import("./jsonMode-
|
|
84112
|
+
return import("./jsonMode-09c5cef8.js");
|
|
84085
84113
|
}
|
|
84086
84114
|
monaco_editor_core_exports$1.languages.register({
|
|
84087
84115
|
id: "json",
|
|
@@ -84244,7 +84272,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
84244
84272
|
getJavaScriptWorker
|
|
84245
84273
|
};
|
|
84246
84274
|
function getMode() {
|
|
84247
|
-
return import("./tsMode-
|
|
84275
|
+
return import("./tsMode-57e6691d.js");
|
|
84248
84276
|
}
|
|
84249
84277
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => getMode().then((K) => K.setupTypeScript(typescriptDefaults)));
|
|
84250
84278
|
monaco_editor_core_exports.languages.onLanguage("javascript", () => getMode().then((K) => K.setupJavaScript(javascriptDefaults)));
|
|
@@ -117779,7 +117807,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
117779
117807
|
};
|
|
117780
117808
|
}
|
|
117781
117809
|
}), headerProperties = [
|
|
117782
|
-
{ title:
|
|
117810
|
+
// { title: '标题', bind: 'name', type: 'input', placeholder: '' },
|
|
117783
117811
|
{ title: "样式", bind: "classname", type: "dic", placeholder: "", code: "class" }
|
|
117784
117812
|
// { title: '大小', bind: 'font', type: 'inputnumber', placeholder: '' },
|
|
117785
117813
|
// { title: '颜色', bind: 'color', type: 'input', placeholder: '' }
|
|
@@ -117812,11 +117840,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
117812
117840
|
{ title: "数据字典", bind: "dic", type: "dicall", placeholder: "" }
|
|
117813
117841
|
// { title: '样式扩展', bind: 'cssextended', type: 'textarea', placeholder: '' },
|
|
117814
117842
|
], baseProperties = [
|
|
117815
|
-
|
|
117843
|
+
{ title: "绑定查询", bind: "model", type: "dataselect", placeholder: "", required: !0 },
|
|
117844
|
+
//tags[允许输入]/multiple[多选]
|
|
117845
|
+
{ title: "绑定更新", bind: "writeField", type: "dataupdate", placeholder: "", required: !0, mode: "tags" },
|
|
117846
|
+
//tags[允许输入]/multiple[多选]
|
|
117816
117847
|
{ title: "默认值", bind: "defaultValue", type: "input", placeholder: "" },
|
|
117817
117848
|
{ title: "宽度", bind: "width", type: "input", placeholder: "" },
|
|
117818
|
-
// { title: '绑定查询', bind: 'model', type: 'data', placeholder: '', required: true },//tags[允许输入]/multiple[多选]
|
|
117819
|
-
// { title: '绑定更新', bind: 'writeField', type: 'data', placeholder: '', required: true, mode: "tags" },//tags[允许输入]/multiple[多选]
|
|
117820
117849
|
{ title: "校验", bind: "guize", type: "guize", placeholder: "", mode: "pro" },
|
|
117821
117850
|
//simple为简单模式pro为全模式
|
|
117822
117851
|
{ title: "其它扩展", bind: "extended", type: "textarea", placeholder: "", rows: 3 }
|
|
@@ -117863,7 +117892,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
117863
117892
|
{ code: "title-css3", value: "标题3" }
|
|
117864
117893
|
]
|
|
117865
117894
|
}
|
|
117866
|
-
], getDictItemsByCode = (K) => dicts.filter((C) => C.code == K)[0].options, getRuleList = () => [{ value: "string", label: "字符串" }, { value: "email", label: "邮箱地址" }], _hoisted_1$5 = { key: 6 }, _hoisted_2$1 = { key: 7 }, _hoisted_3$1 = /* @__PURE__ */ createElementVNode("br", null, null, -1), _hoisted_4$1 = { key: 8 }, _hoisted_5$1 = { key:
|
|
117895
|
+
], getDictItemsByCode = (K) => dicts.filter((C) => C.code == K)[0].options, getRuleList = () => [{ value: "string", label: "字符串" }, { value: "email", label: "邮箱地址" }], _hoisted_1$5 = { key: 6 }, _hoisted_2$1 = { key: 7 }, _hoisted_3$1 = /* @__PURE__ */ createElementVNode("br", null, null, -1), _hoisted_4$1 = { key: 8 }, _hoisted_5$1 = { key: 12 }, _hoisted_6$1 = /* @__PURE__ */ createElementVNode("span", { style: { color: "#1890ff" } }, "必填", -1), _hoisted_7 = /* @__PURE__ */ createElementVNode("br", null, null, -1), _hoisted_8 = /* @__PURE__ */ createElementVNode("br", null, null, -1), _hoisted_9 = { key: 0 }, _hoisted_10 = /* @__PURE__ */ createElementVNode("br", null, null, -1), _hoisted_11 = /* @__PURE__ */ createElementVNode("br", null, null, -1), _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
117867
117896
|
__name: "Properties",
|
|
117868
117897
|
props: {
|
|
117869
117898
|
configData: {
|
|
@@ -117939,7 +117968,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
117939
117968
|
C.configData.options[ae].label = se.value;
|
|
117940
117969
|
}
|
|
117941
117970
|
return (se, ae) => {
|
|
117942
|
-
const ce = resolveComponent("a-input"), le = resolveComponent("a-form-item"), de = resolveComponent("a-
|
|
117971
|
+
const ce = resolveComponent("a-input"), le = resolveComponent("a-form-item"), de = resolveComponent("a-textarea"), ue = resolveComponent("a-input-number"), he = resolveComponent("a-radio-button"), fe = resolveComponent("a-radio-group"), ge = resolveComponent("a-switch"), me = resolveComponent("a-select"), pe = resolveComponent("a-radio"), ve = resolveComponent("a-checkbox"), we = resolveComponent("a-checkbox-group"), be = resolveComponent("a-select-option"), Ee = resolveComponent("a-form");
|
|
117943
117972
|
return openBlock(), createBlock(Ee, {
|
|
117944
117973
|
layout: "vertical",
|
|
117945
117974
|
autocomplete: "off"
|
|
@@ -117954,35 +117983,6 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
117954
117983
|
]),
|
|
117955
117984
|
_: 1
|
|
117956
117985
|
}),
|
|
117957
|
-
createVNode(le, {
|
|
117958
|
-
label: "绑定查询",
|
|
117959
|
-
rules: [{ required: !0 }]
|
|
117960
|
-
}, {
|
|
117961
|
-
default: withCtx(() => [
|
|
117962
|
-
createVNode(de, {
|
|
117963
|
-
"show-search": "",
|
|
117964
|
-
value: K.configData.model,
|
|
117965
|
-
"onUpdate:value": ae[1] || (ae[1] = (ye) => K.configData.model = ye),
|
|
117966
|
-
options: unref(H).getSelectData,
|
|
117967
|
-
onChange: U
|
|
117968
|
-
}, null, 8, ["value", "options"])
|
|
117969
|
-
]),
|
|
117970
|
-
_: 1
|
|
117971
|
-
}),
|
|
117972
|
-
createVNode(le, {
|
|
117973
|
-
label: "绑定更新",
|
|
117974
|
-
rules: [{ required: !0 }]
|
|
117975
|
-
}, {
|
|
117976
|
-
default: withCtx(() => [
|
|
117977
|
-
createVNode(de, {
|
|
117978
|
-
value: K.configData.writeField,
|
|
117979
|
-
"onUpdate:value": ae[2] || (ae[2] = (ye) => K.configData.writeField = ye),
|
|
117980
|
-
options: unref(H).getUpdateData,
|
|
117981
|
-
mode: "tags"
|
|
117982
|
-
}, null, 8, ["value", "options"])
|
|
117983
|
-
]),
|
|
117984
|
-
_: 1
|
|
117985
|
-
}),
|
|
117986
117986
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(Z), (ye, De) => (openBlock(), createBlock(le, {
|
|
117987
117987
|
label: ye.title,
|
|
117988
117988
|
rules: [{ required: ye.required }]
|
|
@@ -117992,25 +117992,25 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
117992
117992
|
key: 0,
|
|
117993
117993
|
value: K.configData[ye.bind],
|
|
117994
117994
|
"onUpdate:value": (Le) => K.configData[ye.bind] = Le
|
|
117995
|
-
}, null, 8, ["value", "onUpdate:value"])) : ye.type == "textarea" ? (openBlock(), createBlock(
|
|
117995
|
+
}, null, 8, ["value", "onUpdate:value"])) : ye.type == "textarea" ? (openBlock(), createBlock(de, {
|
|
117996
117996
|
key: 1,
|
|
117997
117997
|
value: K.configData[ye.bind],
|
|
117998
117998
|
"onUpdate:value": (Le) => K.configData[ye.bind] = Le,
|
|
117999
117999
|
placeholder: "",
|
|
118000
118000
|
rows: ye.rows
|
|
118001
|
-
}, null, 8, ["value", "onUpdate:value", "rows"])) : ye.type == "inputnumber" ? (openBlock(), createBlock(
|
|
118001
|
+
}, null, 8, ["value", "onUpdate:value", "rows"])) : ye.type == "inputnumber" ? (openBlock(), createBlock(ue, {
|
|
118002
118002
|
key: 2,
|
|
118003
118003
|
value: K.configData[ye.bind],
|
|
118004
118004
|
"onUpdate:value": (Le) => K.configData[ye.bind] = Le,
|
|
118005
118005
|
min: 12,
|
|
118006
118006
|
max: 80
|
|
118007
|
-
}, null, 8, ["value", "onUpdate:value"])) : ye.type == "radiogroup" ? (openBlock(), createBlock(
|
|
118007
|
+
}, null, 8, ["value", "onUpdate:value"])) : ye.type == "radiogroup" ? (openBlock(), createBlock(fe, {
|
|
118008
118008
|
key: 3,
|
|
118009
118009
|
value: K.configData.align,
|
|
118010
|
-
"onUpdate:value": ae[
|
|
118010
|
+
"onUpdate:value": ae[1] || (ae[1] = (Le) => K.configData.align = Le)
|
|
118011
118011
|
}, {
|
|
118012
118012
|
default: withCtx(() => [
|
|
118013
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(ye.children, (Le, Oe) => (openBlock(), createBlock(
|
|
118013
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(ye.children, (Le, Oe) => (openBlock(), createBlock(he, {
|
|
118014
118014
|
value: Le.value
|
|
118015
118015
|
}, {
|
|
118016
118016
|
default: withCtx(() => [
|
|
@@ -118020,16 +118020,16 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
118020
118020
|
}, 1032, ["value"]))), 256))
|
|
118021
118021
|
]),
|
|
118022
118022
|
_: 2
|
|
118023
|
-
}, 1032, ["value"])) : ye.type == "switch" ? (openBlock(), createBlock(
|
|
118023
|
+
}, 1032, ["value"])) : ye.type == "switch" ? (openBlock(), createBlock(ge, {
|
|
118024
118024
|
key: 4,
|
|
118025
118025
|
checked: K.configData[ye.bind],
|
|
118026
118026
|
"onUpdate:checked": (Le) => K.configData[ye.bind] = Le
|
|
118027
|
-
}, null, 8, ["checked", "onUpdate:checked"])) : ye.type == "select" ? (openBlock(), createBlock(
|
|
118027
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : ye.type == "select" ? (openBlock(), createBlock(me, {
|
|
118028
118028
|
key: 5,
|
|
118029
118029
|
checked: K.configData[ye.bind],
|
|
118030
118030
|
"onUpdate:checked": (Le) => K.configData[ye.bind] = Le
|
|
118031
118031
|
}, null, 8, ["checked", "onUpdate:checked"])) : ye.type == "radio" ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
118032
|
-
createVNode(
|
|
118032
|
+
createVNode(fe, {
|
|
118033
118033
|
value: K.configData[ye.bind],
|
|
118034
118034
|
"onUpdate:value": (Le) => K.configData[ye.bind] = Le
|
|
118035
118035
|
}, {
|
|
@@ -118091,7 +118091,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
118091
118091
|
}, 1032, ["value", "onUpdate:value"]),
|
|
118092
118092
|
createElementVNode("a", { onClick: oe }, "添加选项")
|
|
118093
118093
|
])) : ye.type == "dicall" ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
118094
|
-
createVNode(
|
|
118094
|
+
createVNode(me, {
|
|
118095
118095
|
value: K.configData[ye.bind],
|
|
118096
118096
|
"onUpdate:value": (Le) => K.configData[ye.bind] = Le,
|
|
118097
118097
|
onChange: ee
|
|
@@ -118113,7 +118113,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
118113
118113
|
label: "默认值"
|
|
118114
118114
|
}, {
|
|
118115
118115
|
default: withCtx(() => [
|
|
118116
|
-
createVNode(
|
|
118116
|
+
createVNode(me, {
|
|
118117
118117
|
checked: K.configData[ye.bind],
|
|
118118
118118
|
"onUpdate:checked": (Le) => K.configData[ye.bind] = Le
|
|
118119
118119
|
}, {
|
|
@@ -118132,7 +118132,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
118132
118132
|
]),
|
|
118133
118133
|
_: 2
|
|
118134
118134
|
}, 1024)) : createCommentVNode("", !0)
|
|
118135
|
-
])) : ye.type == "dic" ? (openBlock(), createBlock(
|
|
118135
|
+
])) : ye.type == "dic" ? (openBlock(), createBlock(me, {
|
|
118136
118136
|
key: 9,
|
|
118137
118137
|
value: K.configData[ye.bind],
|
|
118138
118138
|
"onUpdate:value": (Le) => K.configData[ye.bind] = Le
|
|
@@ -118148,16 +118148,23 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
118148
118148
|
}, 1032, ["value"]))), 256))
|
|
118149
118149
|
]),
|
|
118150
118150
|
_: 2
|
|
118151
|
-
}, 1032, ["value", "onUpdate:value"])) : ye.type == "
|
|
118151
|
+
}, 1032, ["value", "onUpdate:value"])) : ye.type == "dataselect" ? (openBlock(), createBlock(me, {
|
|
118152
118152
|
key: 10,
|
|
118153
118153
|
mode: ye.mode,
|
|
118154
118154
|
value: K.configData[ye.bind],
|
|
118155
118155
|
"onUpdate:value": (Le) => K.configData[ye.bind] = Le,
|
|
118156
|
-
options: unref(H).getSelectData
|
|
118156
|
+
options: unref(H).getSelectData,
|
|
118157
|
+
onChange: U
|
|
118158
|
+
}, null, 8, ["mode", "value", "onUpdate:value", "options"])) : ye.type == "dataupdate" ? (openBlock(), createBlock(me, {
|
|
118159
|
+
key: 11,
|
|
118160
|
+
mode: ye.mode,
|
|
118161
|
+
value: K.configData[ye.bind],
|
|
118162
|
+
"onUpdate:value": (Le) => K.configData[ye.bind] = Le,
|
|
118163
|
+
options: unref(H).getUpdateData
|
|
118157
118164
|
}, null, 8, ["mode", "value", "onUpdate:value", "options"])) : ye.type == "guize" ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
118158
118165
|
createVNode(ve, {
|
|
118159
118166
|
checked: K.configData.required,
|
|
118160
|
-
"onUpdate:checked": ae[
|
|
118167
|
+
"onUpdate:checked": ae[2] || (ae[2] = (Le) => K.configData.required = Le)
|
|
118161
118168
|
}, {
|
|
118162
118169
|
default: withCtx(() => [
|
|
118163
118170
|
_hoisted_6$1
|
|
@@ -118171,11 +118178,11 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
118171
118178
|
ye.mode == "pro" ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
118172
118179
|
createVNode(ve, {
|
|
118173
118180
|
checked: K.configData.dataTypeCheck,
|
|
118174
|
-
"onUpdate:checked": ae[
|
|
118181
|
+
"onUpdate:checked": ae[3] || (ae[3] = (Le) => K.configData.dataTypeCheck = Le)
|
|
118175
118182
|
}, null, 8, ["checked"]),
|
|
118176
|
-
createVNode(
|
|
118183
|
+
createVNode(me, {
|
|
118177
118184
|
value: K.configData.dataType,
|
|
118178
|
-
"onUpdate:value": ae[
|
|
118185
|
+
"onUpdate:value": ae[4] || (ae[4] = (Le) => K.configData.dataType = Le),
|
|
118179
118186
|
onChange: te,
|
|
118180
118187
|
options: unref(W),
|
|
118181
118188
|
style: { width: "80%", "margin-left": "8px" },
|
|
@@ -118187,7 +118194,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
118187
118194
|
K.configData.dataTypeCheck ? (openBlock(), createBlock(ce, {
|
|
118188
118195
|
key: 0,
|
|
118189
118196
|
value: K.configData.dataTypeMessage,
|
|
118190
|
-
"onUpdate:value": ae[
|
|
118197
|
+
"onUpdate:value": ae[5] || (ae[5] = (Le) => K.configData.dataTypeMessage = Le),
|
|
118191
118198
|
placeholder: "自定义错误提示",
|
|
118192
118199
|
style: { width: "80%", "margin-left": "24px" }
|
|
118193
118200
|
}, null, 8, ["value"])) : createCommentVNode("", !0)
|
|
@@ -121855,7 +121862,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
121855
121862
|
props: {
|
|
121856
121863
|
id: {
|
|
121857
121864
|
type: Number,
|
|
121858
|
-
default:
|
|
121865
|
+
default: 1
|
|
121859
121866
|
}
|
|
121860
121867
|
},
|
|
121861
121868
|
setup(K) {
|
|
@@ -121953,7 +121960,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
121953
121960
|
});
|
|
121954
121961
|
};
|
|
121955
121962
|
}
|
|
121956
|
-
}),
|
|
121963
|
+
}), index_vue_vue_type_style_index_0_scoped_4e65ba7b_lang = "", CImaginForm = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-4e65ba7b"]]), _sfc_main = /* @__PURE__ */ defineComponent({
|
|
121957
121964
|
__name: "FormPublic",
|
|
121958
121965
|
props: {
|
|
121959
121966
|
data: {
|