form-imagining 0.0.92-beta1 → 0.0.92-beta2

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.
Files changed (58) hide show
  1. package/dist/App-DZeeXrAi.js +32 -0
  2. package/dist/Area-BHKEscV-.js +4 -0
  3. package/dist/Bar--Tn_i50U.js +4 -0
  4. package/dist/ChartsArea-0wrqHfos.js +4 -0
  5. package/dist/ChartsBar-De3wqxB9.js +4 -0
  6. package/dist/ChartsPie-M9v47a1y.js +4 -0
  7. package/dist/CheckBoxModel-DL90UDdw.js +4 -0
  8. package/dist/Col-DAuf-D27.js +4 -0
  9. package/dist/Collapse-D1wtVr4J.js +4 -0
  10. package/dist/CommonText copy-CnTaynHd.js +189 -0
  11. package/dist/Demo-B3jXn-Wm.js +201 -0
  12. package/dist/Demo-DCuaQcE7.js +72 -0
  13. package/dist/FView-D5njXTYr.js +4 -0
  14. package/dist/FX-Ds_RTNfB.js +4 -0
  15. package/dist/FormGridCopy-BhNEuN_v.js +168 -0
  16. package/dist/FormImagining-DPQkYBgj.js +9 -0
  17. package/dist/GenerateForm-Bc_gKUhp.js +4 -0
  18. package/dist/GenerateReport-MBi8bZl7.js +4 -0
  19. package/dist/HelloWorld-ozWUgTPI.js +9 -0
  20. package/dist/Input-/345/210/240/351/231/244-BSy1dpR9.js +87 -0
  21. package/dist/Label-/345/210/240/351/231/244-BlmENKyQ.js +92 -0
  22. package/dist/LabelModel-BAM6G3Ie.js +4 -0
  23. package/dist/Login-lb3t6gnq.js +9 -0
  24. package/dist/Pie-Bdwe3wcU.js +4 -0
  25. package/dist/PropertyIndex-DgQ24KcZ.js +4 -0
  26. package/dist/RView-CCm2BHv0.js +4 -0
  27. package/dist/SqlModule-DTW0tMR7.js +4 -0
  28. package/dist/SvgIconCopy-Bmi1qbTC.js +39 -0
  29. package/dist/TableBtnModal-r-13ZsI9.js +4 -0
  30. package/dist/TextModel-aT7LooUr.js +9 -0
  31. package/dist/childForm-BglEql5G.js +4 -0
  32. package/dist/cssMode-SsosamS5.js +1577 -0
  33. package/dist/form-imagining.js +1 -1
  34. package/dist/form-imagining.umd.cjs +3 -3
  35. package/dist/formTest-DdIjfGpu.js +19 -0
  36. package/dist/freemarker2-CcHBBlpf.js +995 -0
  37. package/dist/handlebars-DfcmDcw8.js +425 -0
  38. package/dist/html-CKJuyuep.js +314 -0
  39. package/dist/htmlMode-BWiO4pRY.js +1587 -0
  40. package/dist/index - /345/211/257/346/234/254-UCuyvE6m.js" +531 -0
  41. package/dist/index-B62shk7i.js +11 -0
  42. package/dist/index-BpyIDAPw.js +3323 -0
  43. package/dist/index-Ctpjp4rq.js +36 -0
  44. package/dist/index-wY48_10N.js +300162 -0
  45. package/dist/javascript-CPCjva_r.js +76 -0
  46. package/dist/jsonMode-BlL2u-dx.js +2002 -0
  47. package/dist/liquid-D3Ero-K5.js +246 -0
  48. package/dist/mdx-9y_7F0Bo.js +171 -0
  49. package/dist/python-CZaLu6bh.js +307 -0
  50. package/dist/razor-Bnmmlnh_.js +556 -0
  51. package/dist/style.css +1 -1
  52. package/dist/tableSelectDemo-DsTljq6I.js +134 -0
  53. package/dist/tableSelectDemo2-BaV81cyf.js +108 -0
  54. package/dist/tsMode-BMfmnceI.js +895 -0
  55. package/dist/typescript-BN1BF4_9.js +349 -0
  56. package/dist/xml-CSQLleJF.js +101 -0
  57. package/dist/yaml-DxoitMTx.js +212 -0
  58. package/package.json +1 -1
@@ -0,0 +1,168 @@
1
+ import { defineComponent as z, ref as J, watch as L, resolveComponent as h, openBlock as o, createElementBlock as r, createElementVNode as W, createVNode as u, unref as f, createCommentVNode as x, normalizeStyle as C, withCtx as g, Fragment as I, renderList as w, createBlock as b, normalizeClass as D } from "vue";
2
+ import { aF as j, x as A, V as K, y as P, s as R, w as S, ak as N, G as q, _ as H } from "./index-wY48_10N.js";
3
+ const Q = { class: "move" }, T = {
4
+ key: 0,
5
+ class: "widget-view-drag"
6
+ }, U = ["onMousedown"], X = {
7
+ key: 0,
8
+ class: "item-action"
9
+ }, Y = {
10
+ key: 0,
11
+ class: "item-action"
12
+ }, Z = /* @__PURE__ */ z({
13
+ __name: "FormGridCopy",
14
+ props: {
15
+ list: {
16
+ type: Array,
17
+ default: []
18
+ },
19
+ data: {
20
+ type: Object,
21
+ default: null
22
+ },
23
+ activeIndex: {
24
+ type: String,
25
+ default: ""
26
+ },
27
+ index: {
28
+ type: String,
29
+ default: ""
30
+ }
31
+ },
32
+ emits: ["childConfig", "index"],
33
+ setup(e, { emit: O }) {
34
+ const p = j(), { formData: _ } = p, a = e, i = J("-1");
35
+ L(
36
+ () => a.activeIndex,
37
+ (t, n) => {
38
+ i.value = t;
39
+ }
40
+ );
41
+ const m = O;
42
+ function k(t, n, l) {
43
+ i.value = n, m("childConfig", t), m("index", i.value), l.stopPropagation(), l.preventDefault();
44
+ }
45
+ function $() {
46
+ i.value = "-1", console.log("开始拖拽");
47
+ }
48
+ function F(t, n) {
49
+ t.to.className == "widget-col-list" ? i.value = a.index + "-" + n + "-" + t.newIndex : i.value = t.newIndex, m("index", i.value);
50
+ }
51
+ function V(t) {
52
+ const n = JSON.parse(JSON.stringify(t));
53
+ if (a.data.columns && a.data.columns.length > 0) {
54
+ let l = a.data.columns.findIndex((v) => v.key == t.key);
55
+ l > -1 && (n.key = N(), n.id = N(), a.data.columns.splice(l + 1, 0, n));
56
+ }
57
+ }
58
+ function E(t) {
59
+ let n = a.data.columns.findIndex((l) => l.key == t.key);
60
+ n > -1 && a.data.columns.splice(n, 1);
61
+ }
62
+ function M() {
63
+ if (a.data.columns.length > 0)
64
+ q.confirm({
65
+ title: "确定要删除该栅格布局吗?",
66
+ content: "如果该布局存在表单,将会一并删除",
67
+ onOk() {
68
+ const t = a.list.findIndex((n) => n.id == a.data.id);
69
+ t != -1 && a.list.splice(t, 1);
70
+ },
71
+ onCancel() {
72
+ }
73
+ });
74
+ else {
75
+ const t = a.list.findIndex((n) => n.id == a.data.id);
76
+ t != -1 && a.list.splice(t, 1);
77
+ }
78
+ }
79
+ return (t, n) => {
80
+ const l = h("a-col"), v = h("a-row"), G = h("a-form");
81
+ return o(), r("div", null, [
82
+ W("div", Q, [
83
+ e.activeIndex == e.index ? (o(), r("div", T, [
84
+ u(f(A), { style: { padding: "6px" } })
85
+ ])) : x("", !0)
86
+ ]),
87
+ u(G, {
88
+ style: C({ padding: `${e.data.top || 0}px ${e.data.right || 0}px ${e.data.bottom || 0}px ${e.data.left || 0}px` }),
89
+ "label-col": { style: { width: f(p).formData.config.labelWidth + "px" } },
90
+ labelWrap: !0
91
+ }, {
92
+ default: g(() => [
93
+ u(v, {
94
+ gutter: [e.data.options.gutter, 8],
95
+ tyle: "flex",
96
+ style: C({ marginLeft: -e.data.options.gutter / 2 + "px", marginRight: -e.data.options.gutter / 2 + "px" })
97
+ }, {
98
+ default: g(() => [
99
+ (o(!0), r(I, null, w(e.data.columns, (d, c) => (o(), b(l, {
100
+ class: D(["widget-col-item", { active: i.value == "col-" + e.index + "-" + c }]),
101
+ span: d.options.span,
102
+ offset: d.options.offset,
103
+ onMousedown: (s) => k(d, "col-" + e.index + "-" + c, s)
104
+ }, {
105
+ default: g(() => [
106
+ u(f(K), {
107
+ class: "widget-col-list",
108
+ style: { "min-height": "50px" },
109
+ "ghost-class": "ghost",
110
+ list: d.list,
111
+ "force-fallback": !0,
112
+ "chosen-class": "chosenClass2",
113
+ "drag-class": "dragClass1",
114
+ onStart: $,
115
+ onEnd: (s) => F(s, c),
116
+ group: "itxst",
117
+ sort: !1,
118
+ animation: "300",
119
+ handle: ".move",
120
+ itemKey: ""
121
+ }, {
122
+ default: g(() => [
123
+ (o(!0), r(I, null, w(d.list, (s, y) => (o(), r("div", {
124
+ class: D(["widget-view", { active: i.value == e.index + "-" + c + "-" + y }]),
125
+ onMousedown: (B) => k(s, e.index + "-" + c + "-" + y, B)
126
+ }, [
127
+ u(P, {
128
+ data: s,
129
+ list: d.list,
130
+ activeIndex: i.value,
131
+ index: e.index + "-" + c + "-" + y
132
+ }, null, 8, ["data", "list", "activeIndex", "index"])
133
+ ], 42, U))), 256))
134
+ ]),
135
+ _: 2
136
+ }, 1032, ["list", "onEnd"]),
137
+ e.activeIndex === "col-" + e.index + "-" + c ? (o(), r("div", X, [
138
+ u(f(R), {
139
+ style: { padding: "3px 5px" },
140
+ onClick: (s) => V(d)
141
+ }, null, 8, ["onClick"]),
142
+ e.data.columns.length !== 1 ? (o(), b(f(S), {
143
+ key: 0,
144
+ onClick: (s) => E(d)
145
+ }, null, 8, ["onClick"])) : x("", !0)
146
+ ])) : x("", !0)
147
+ ]),
148
+ _: 2
149
+ }, 1032, ["span", "class", "offset", "onMousedown"]))), 256)),
150
+ e.activeIndex === e.index ? (o(), r("div", Y, [
151
+ u(f(S), {
152
+ style: { padding: "3px 5px", color: "#fff" },
153
+ onClick: n[0] || (n[0] = (d) => M())
154
+ })
155
+ ])) : x("", !0)
156
+ ]),
157
+ _: 1
158
+ }, 8, ["gutter", "style"])
159
+ ]),
160
+ _: 1
161
+ }, 8, ["style", "label-col"])
162
+ ]);
163
+ };
164
+ }
165
+ }), ne = /* @__PURE__ */ H(Z, [["__scopeId", "data-v-e3b465b8"]]);
166
+ export {
167
+ ne as default
168
+ };
@@ -0,0 +1,9 @@
1
+ import { _ as n } from "./index-wY48_10N.js";
2
+ const r = {};
3
+ function c(e, t) {
4
+ return null;
5
+ }
6
+ const o = /* @__PURE__ */ n(r, [["render", c]]);
7
+ export {
8
+ o as default
9
+ };
@@ -0,0 +1,4 @@
1
+ import { Q as f } from "./index-wY48_10N.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { T as f } from "./index-wY48_10N.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,9 @@
1
+ import { _ as e } from "./index-wY48_10N.js";
2
+ const r = {};
3
+ function o(c, t) {
4
+ return " hello 你好 ";
5
+ }
6
+ const n = /* @__PURE__ */ e(r, [["render", o]]);
7
+ export {
8
+ n as default
9
+ };
@@ -0,0 +1,87 @@
1
+ import { defineComponent as i, resolveComponent as f, openBlock as m, createBlock as v, withCtx as u, createVNode as t } from "vue";
2
+ import { aF as c } from "./index-wY48_10N.js";
3
+ const x = /* @__PURE__ */ i({
4
+ __name: "Input-删除",
5
+ props: {
6
+ configData: {
7
+ type: Object,
8
+ default: {}
9
+ }
10
+ },
11
+ setup(e) {
12
+ return c(), (g, a) => {
13
+ const o = f("a-input"), n = f("a-form-item"), d = f("a-textarea"), r = f("a-form");
14
+ return m(), v(r, {
15
+ layout: "vertical",
16
+ model: e.configData,
17
+ autocomplete: "off"
18
+ }, {
19
+ default: u(() => [
20
+ t(n, { label: "标题" }, {
21
+ default: u(() => [
22
+ t(o, {
23
+ value: e.configData.name,
24
+ "onUpdate:value": a[0] || (a[0] = (l) => e.configData.name = l)
25
+ }, null, 8, ["value"])
26
+ ]),
27
+ _: 1
28
+ }),
29
+ t(n, {
30
+ label: "数据绑定",
31
+ rules: [{ required: !0 }]
32
+ }, {
33
+ default: u(() => [
34
+ t(o, {
35
+ value: e.configData.model,
36
+ "onUpdate:value": a[1] || (a[1] = (l) => e.configData.model = l)
37
+ }, null, 8, ["value"])
38
+ ]),
39
+ _: 1
40
+ }),
41
+ t(n, {
42
+ label: "key",
43
+ rules: [{ required: !0 }]
44
+ }, {
45
+ default: u(() => [
46
+ t(o, {
47
+ value: e.configData.key,
48
+ "onUpdate:value": a[2] || (a[2] = (l) => e.configData.key = l)
49
+ }, null, 8, ["value"])
50
+ ]),
51
+ _: 1
52
+ }),
53
+ t(n, {
54
+ label: "默认值",
55
+ rules: [{ required: !0 }]
56
+ }, {
57
+ default: u(() => [
58
+ t(o, {
59
+ value: e.configData.defaultValue,
60
+ "onUpdate:value": a[3] || (a[3] = (l) => e.configData.defaultValue = l)
61
+ }, null, 8, ["value"])
62
+ ]),
63
+ _: 1
64
+ }),
65
+ t(n, {
66
+ label: "扩展",
67
+ rules: [{ required: !0 }]
68
+ }, {
69
+ default: u(() => [
70
+ t(d, {
71
+ value: e.configData.extended,
72
+ "onUpdate:value": a[4] || (a[4] = (l) => e.configData.extended = l),
73
+ placeholder: "",
74
+ rows: 5
75
+ }, null, 8, ["value"])
76
+ ]),
77
+ _: 1
78
+ })
79
+ ]),
80
+ _: 1
81
+ }, 8, ["model"]);
82
+ };
83
+ }
84
+ });
85
+ export {
86
+ x as default
87
+ };
@@ -0,0 +1,92 @@
1
+ import { defineComponent as _, resolveComponent as o, openBlock as n, createBlock as l, withCtx as i, createElementBlock as u, Fragment as d, renderList as r, createVNode as k, createTextVNode as x, toDisplayString as D, createCommentVNode as w } from "vue";
2
+ import { aF as U } from "./index-wY48_10N.js";
3
+ const L = /* @__PURE__ */ _({
4
+ __name: "Label-删除",
5
+ props: {
6
+ configData: {
7
+ type: Object,
8
+ default: {}
9
+ }
10
+ },
11
+ setup(a) {
12
+ U();
13
+ const p = [
14
+ { title: "标题", bind: "name", type: "input", placeholder: "" },
15
+ { title: "key", bind: "key", type: "input", placeholder: "" },
16
+ { title: "是否必填", bind: "required", type: "switch", placeholder: "" },
17
+ { title: "大小", bind: "font", type: "inputnumber", placeholder: "" },
18
+ { title: "颜色", bind: "color", type: "input", placeholder: "" },
19
+ {
20
+ title: "位置",
21
+ bind: "align",
22
+ type: "radiogroup",
23
+ children: [
24
+ { title: "居左", value: "left" },
25
+ { title: "居中", value: "center" },
26
+ { title: "居右", value: "right" }
27
+ ]
28
+ },
29
+ { title: "样式扩展", bind: "cssextended", type: "textarea", placeholder: "" },
30
+ { title: "扩展", bind: "extended", type: "textarea", placeholder: "", rows: "5" }
31
+ ];
32
+ return (C, c) => {
33
+ const f = o("a-input"), b = o("a-textarea"), v = o("a-input-number"), y = o("a-radio-button"), g = o("a-radio-group"), m = o("a-switch"), s = o("a-form-item"), h = o("a-form");
34
+ return n(), l(h, {
35
+ layout: "vertical",
36
+ model: a.configData,
37
+ autocomplete: "off"
38
+ }, {
39
+ default: i(() => [
40
+ (n(), u(d, null, r(p, (e, B) => k(s, {
41
+ label: e.title
42
+ }, {
43
+ default: i(() => [
44
+ e.type == "input" ? (n(), l(f, {
45
+ key: 0,
46
+ value: a.configData[e.bind],
47
+ "onUpdate:value": (t) => a.configData[e.bind] = t
48
+ }, null, 8, ["value", "onUpdate:value"])) : e.type == "textarea" ? (n(), l(b, {
49
+ key: 1,
50
+ value: a.configData[e.bind],
51
+ "onUpdate:value": (t) => a.configData[e.bind] = t,
52
+ placeholder: "",
53
+ rows: e.rows
54
+ }, null, 8, ["value", "onUpdate:value", "rows"])) : e.type == "inputnumber" ? (n(), l(v, {
55
+ key: 2,
56
+ value: a.configData[e.bind],
57
+ "onUpdate:value": (t) => a.configData[e.bind] = t,
58
+ min: 12,
59
+ max: 80
60
+ }, null, 8, ["value", "onUpdate:value"])) : e.type == "radiogroup" ? (n(), l(g, {
61
+ key: 3,
62
+ value: a.configData.align,
63
+ "onUpdate:value": c[0] || (c[0] = (t) => a.configData.align = t)
64
+ }, {
65
+ default: i(() => [
66
+ (n(!0), u(d, null, r(e.children, (t, F) => (n(), l(y, {
67
+ value: t.value
68
+ }, {
69
+ default: i(() => [
70
+ x(D(t.title), 1)
71
+ ]),
72
+ _: 2
73
+ }, 1032, ["value"]))), 256))
74
+ ]),
75
+ _: 2
76
+ }, 1032, ["value"])) : e.type == "switch" ? (n(), l(m, {
77
+ key: 4,
78
+ checked: a.configData[e.bind],
79
+ "onUpdate:checked": (t) => a.configData[e.bind] = t
80
+ }, null, 8, ["checked", "onUpdate:checked"])) : w("", !0)
81
+ ]),
82
+ _: 2
83
+ }, 1032, ["label"])), 64))
84
+ ]),
85
+ _: 1
86
+ }, 8, ["model"]);
87
+ };
88
+ }
89
+ });
90
+ export {
91
+ L as default
92
+ };
@@ -0,0 +1,4 @@
1
+ import { O as f } from "./index-wY48_10N.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,9 @@
1
+ import { _ as r } from "./index-wY48_10N.js";
2
+ const c = {};
3
+ function e(n, t) {
4
+ return "我是登录页";
5
+ }
6
+ const o = /* @__PURE__ */ r(c, [["render", e]]);
7
+ export {
8
+ o as default
9
+ };
@@ -0,0 +1,4 @@
1
+ import { K as f } from "./index-wY48_10N.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { L as f } from "./index-wY48_10N.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { a3 as f } from "./index-wY48_10N.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { a2 as f } from "./index-wY48_10N.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,39 @@
1
+ import { defineComponent as l, computed as n, openBlock as a, createElementBlock as s, mergeProps as u, createElementVNode as o, toDisplayString as d } from "vue";
2
+ import { _ as g } from "./index-wY48_10N.js";
3
+ const m = ["xlink:href"], p = /* @__PURE__ */ l({
4
+ __name: "SvgIconCopy",
5
+ props: {
6
+ name: {
7
+ type: String,
8
+ required: !0
9
+ },
10
+ title: {
11
+ type: String,
12
+ required: !1
13
+ },
14
+ color: {
15
+ type: String,
16
+ default: ""
17
+ },
18
+ width: {
19
+ type: String,
20
+ default: "16px"
21
+ },
22
+ height: {
23
+ type: String,
24
+ default: "16px"
25
+ }
26
+ },
27
+ setup(e) {
28
+ const t = e, r = n(() => `#icon-${t.name}`), i = n(() => t.name ? `svg-icon icon-${t.name}` : "svg-icon");
29
+ return (c, f) => (a(), s("svg", u({ class: i.value }, c.$attrs, {
30
+ style: { color: e.color, width: e.width, height: e.height }
31
+ }), [
32
+ o("title", null, d(e.title), 1),
33
+ o("use", { "xlink:href": r.value }, null, 8, m)
34
+ ], 16));
35
+ }
36
+ }), y = /* @__PURE__ */ g(p, [["__scopeId", "data-v-e64d7365"]]);
37
+ export {
38
+ y as default
39
+ };
@@ -0,0 +1,4 @@
1
+ import { Z as f } from "./index-wY48_10N.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,9 @@
1
+ import { _ as e } from "./index-wY48_10N.js";
2
+ const r = {};
3
+ function t(c, n) {
4
+ return null;
5
+ }
6
+ const o = /* @__PURE__ */ e(r, [["render", t]]);
7
+ export {
8
+ o as default
9
+ };
@@ -0,0 +1,4 @@
1
+ import { P as f } from "./index-wY48_10N.js";
2
+ export {
3
+ f as default
4
+ };