form-imagining 0.0.92-beta4 → 0.0.92-beta6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App-DtMf3n_F.js +30 -0
- package/dist/Area-gYvfwS2L.js +4 -0
- package/dist/Bar-ODGClNe0.js +4 -0
- package/dist/ChartsArea-CQwwd2lJ.js +4 -0
- package/dist/ChartsBar-BKMAI52E.js +4 -0
- package/dist/ChartsPie-BBp_ag4Y.js +4 -0
- package/dist/CheckBoxModel-CAtOkaZl.js +4 -0
- package/dist/Col-BjOWCaAV.js +4 -0
- package/dist/Collapse-xi1XYSvh.js +4 -0
- package/dist/{CommonText copy-CKk09DIB.js → CommonText copy-B643btsR.js } +38 -38
- package/dist/{Demo copy-CubdSIKo.js → Demo copy-Bux2O9AZ.js } +2 -2
- package/dist/{Demo-DoJw6Kxw.js → Demo-CimZDSZD.js} +2 -2
- package/dist/{Demo-DkVz30H9.js → Demo-DD_E8Ai0.js} +33 -33
- package/dist/FView-lgPHPdpT.js +4 -0
- package/dist/FX-DITkqQ2E.js +4 -0
- package/dist/{Form-CsKlmwSd.js → Form-CE0VVIWD.js} +4 -4
- package/dist/{FormGridCopy-DD0tZow8.js → FormGridCopy-QMd-e6gZ.js} +36 -36
- package/dist/FormImagining-DMMX4UTU.js +9 -0
- package/dist/GenerateForm-CbTFj_A8.js +4 -0
- package/dist/GenerateReport-DTLeuaUN.js +4 -0
- package/dist/HelloWorld-BfnT0WhV.js +9 -0
- package/dist/Input-/345/210/240/351/231/{244-C6fJ-Tc5.js → 244-B-UBNSP7.js} +3 -3
- package/dist/Label-/345/210/240/351/231/{244-dTqFCfXK.js → 244-hylaZnyv.js} +5 -5
- package/dist/LabelModel-DPw6ImbD.js +4 -0
- package/dist/Login-BdZxDvKs.js +9 -0
- package/dist/Pie-KAdq-zq0.js +4 -0
- package/dist/PropertyIndex-B5sPOPGF.js +4 -0
- package/dist/RView-Dti2PztB.js +4 -0
- package/dist/SqlModule-Bs93rJS9.js +4 -0
- package/dist/{SvgIconCopy-BT7ntjzB.js → SvgIconCopy-CC9UpEw1.js} +7 -7
- package/dist/TableBtnModal-CP8poyU5.js +4 -0
- package/dist/TextModel-BxnsH9j1.js +9 -0
- package/dist/childForm-2suLJZtu.js +4 -0
- package/dist/{cssMode-jo0NhwDf.js → cssMode-BevUSJIs.js} +1 -1
- package/dist/form-imagining.js +9 -9
- package/dist/form-imagining.umd.cjs +294 -295
- package/dist/formTest-DdkaJBmv.js +19 -0
- package/dist/{freemarker2-Fnfdnkfh.js → freemarker2-RntfmZOW.js} +1 -1
- package/dist/{handlebars-Bx4_KQwu.js → handlebars-Cos4lZca.js} +1 -1
- package/dist/{html-CFRm4XEL.js → html-Uag4N1dQ.js} +1 -1
- package/dist/{htmlMode-Dxqn6jaD.js → htmlMode-BhOweWtW.js} +1 -1
- package/dist/index - /345/211/257/346/234/{254-dqPD2ASv.js" → 254-dGB_y2eB.js" } +38 -38
- package/dist/{index-DEvoU-iM.js → index-Bnry2ZnT.js} +5 -5
- package/dist/index-Bu9AKZLX.js +3658 -0
- package/dist/index-DhqC9JWs.js +11 -0
- package/dist/{index-jBZEirwC.js → index-Djxsz7aX.js} +20643 -19235
- package/dist/{javascript-Y02rG_nt.js → javascript-inEC7YCz.js} +1 -1
- package/dist/json/scope_type.json +6 -6
- package/dist/{jsonMode-CFhVzwTy.js → jsonMode-Buplw_74.js} +1 -1
- package/dist/{liquid-DLAO7uHR.js → liquid-CXCXl0KK.js} +1 -1
- package/dist/{mdx-Dyn2_O6a.js → mdx-C8oAZz3N.js} +1 -1
- package/dist/{python-DgxEwzX3.js → python-ISYPt2bG.js} +1 -1
- package/dist/{razor-BewTJaSe.js → razor-BoONAPbT.js} +1 -1
- package/dist/setting.json +3 -3
- package/dist/style.css +1 -1
- package/dist/{tableSelectDemo-DLpvpcEl.js → tableSelectDemo-l99YI8J9.js} +18 -18
- package/dist/{tableSelectDemo2-BFr-yfOb.js → tableSelectDemo2-OfOWLB-I.js} +6 -6
- package/dist/{tsMode-DzFy8JCn.js → tsMode-qM4H6_33.js} +7 -7
- package/dist/{typescript-Dj_oSxOW.js → typescript-CQq3LImM.js} +1 -1
- package/dist/{xml-DkbBETGq.js → xml-DSo44BnU.js} +1 -1
- package/dist/{yaml-ja_epl0n.js → yaml-BocXdDT1.js} +1 -1
- package/package.json +68 -68
- package/dist/App-D9SgyIHg.js +0 -32
- package/dist/Area-DHZeIGT0.js +0 -4
- package/dist/Bar-C94rw-BH.js +0 -4
- package/dist/ChartsArea-ZH5kpRfE.js +0 -4
- package/dist/ChartsBar-CPzCF_2s.js +0 -4
- package/dist/ChartsPie-DUb1fiG9.js +0 -4
- package/dist/CheckBoxModel-N9aBAGoV.js +0 -4
- package/dist/Col-Ksz7IORK.js +0 -4
- package/dist/Collapse-Brm7RGbc.js +0 -4
- package/dist/FView-CZKalnPv.js +0 -4
- package/dist/FX-C6CgdV8T.js +0 -4
- package/dist/FormImagining-CNU7k8Lg.js +0 -9
- package/dist/GenerateForm-Da0KQGvi.js +0 -4
- package/dist/GenerateReport-CrEu_AIM.js +0 -4
- package/dist/HelloWorld-Yv03AZwK.js +0 -9
- package/dist/LabelModel-DfV1K5Mb.js +0 -4
- package/dist/Login-Bqr02U9-.js +0 -9
- package/dist/Pie-HIuDPYoJ.js +0 -4
- package/dist/PropertyIndex-Ceb7ttJb.js +0 -4
- package/dist/RView-J6jBBnLX.js +0 -4
- package/dist/SqlModule-Dn36HdIj.js +0 -4
- package/dist/TableBtnModal-Dyzy6THf.js +0 -4
- package/dist/TextModel-C-tBbutJ.js +0 -9
- package/dist/childForm-DyROPkP7.js +0 -4
- package/dist/formTest-D1OjhM8p.js +0 -19
- package/dist/index-BVXyjg-q.js +0 -11
- package/dist/index-CVgQIdpz.js +0 -3323
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as j, ref as z, watch as J, resolveComponent as h, createElementBlock as r, openBlock as o, createElementVNode as L, createVNode as u, createCommentVNode as x, unref as f, normalizeStyle as I, withCtx as g, Fragment as k, renderList as w, createBlock as b, normalizeClass as D } from "vue";
|
|
2
|
+
import { $ as W, ad as A, ae as K, af as P, ag as R, ah as S, ai as $, aj as q, x as H } from "./index-Djxsz7aX.js";
|
|
3
3
|
const Q = { class: "move" }, T = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "widget-view-drag"
|
|
@@ -9,7 +9,7 @@ const Q = { class: "move" }, T = {
|
|
|
9
9
|
}, Y = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "item-action"
|
|
12
|
-
}, Z = /* @__PURE__ */
|
|
12
|
+
}, Z = /* @__PURE__ */ j({
|
|
13
13
|
__name: "FormGridCopy",
|
|
14
14
|
props: {
|
|
15
15
|
list: {
|
|
@@ -30,36 +30,36 @@ const Q = { class: "move" }, T = {
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["childConfig", "index"],
|
|
33
|
-
setup(e, { emit:
|
|
34
|
-
const p =
|
|
35
|
-
|
|
33
|
+
setup(e, { emit: N }) {
|
|
34
|
+
const p = W(), { formData: _ } = p, a = e, i = z("-1");
|
|
35
|
+
J(
|
|
36
36
|
() => a.activeIndex,
|
|
37
37
|
(t, n) => {
|
|
38
38
|
i.value = t;
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
|
-
const m =
|
|
42
|
-
function
|
|
43
|
-
i.value = n, m("childConfig", t), m("index", i.value),
|
|
41
|
+
const m = N;
|
|
42
|
+
function C(t, n, d) {
|
|
43
|
+
i.value = n, m("childConfig", t), m("index", i.value), d.stopPropagation(), d.preventDefault();
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function O() {
|
|
46
46
|
i.value = "-1", console.log("开始拖拽");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function E(t, n) {
|
|
49
49
|
t.to.className == "widget-col-list" ? i.value = a.index + "-" + n + "-" + t.newIndex : i.value = t.newIndex, m("index", i.value);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function F(t) {
|
|
52
52
|
const n = JSON.parse(JSON.stringify(t));
|
|
53
53
|
if (a.data.columns && a.data.columns.length > 0) {
|
|
54
|
-
let
|
|
55
|
-
|
|
54
|
+
let d = a.data.columns.findIndex((v) => v.key == t.key);
|
|
55
|
+
d > -1 && (n.key = $(), n.id = $(), a.data.columns.splice(d + 1, 0, n));
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
let n = a.data.columns.findIndex((
|
|
58
|
+
function M(t) {
|
|
59
|
+
let n = a.data.columns.findIndex((d) => d.key == t.key);
|
|
60
60
|
n > -1 && a.data.columns.splice(n, 1);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function V() {
|
|
63
63
|
if (a.data.columns.length > 0)
|
|
64
64
|
q.confirm({
|
|
65
65
|
title: "确定要删除该栅格布局吗?",
|
|
@@ -77,15 +77,15 @@ const Q = { class: "move" }, T = {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
return (t, n) => {
|
|
80
|
-
const
|
|
80
|
+
const d = h("a-col"), v = h("a-row"), B = h("a-form");
|
|
81
81
|
return o(), r("div", null, [
|
|
82
|
-
|
|
82
|
+
L("div", Q, [
|
|
83
83
|
e.activeIndex == e.index ? (o(), r("div", T, [
|
|
84
84
|
u(f(A), { style: { padding: "6px" } })
|
|
85
85
|
])) : x("", !0)
|
|
86
86
|
]),
|
|
87
|
-
u(
|
|
88
|
-
style:
|
|
87
|
+
u(B, {
|
|
88
|
+
style: I({ padding: `${e.data.top || 0}px ${e.data.right || 0}px ${e.data.bottom || 0}px ${e.data.left || 0}px` }),
|
|
89
89
|
"label-col": { style: { width: f(p).formData.config.labelWidth + "px" } },
|
|
90
90
|
labelWrap: !0
|
|
91
91
|
}, {
|
|
@@ -93,26 +93,26 @@ const Q = { class: "move" }, T = {
|
|
|
93
93
|
u(v, {
|
|
94
94
|
gutter: [e.data.options.gutter, 8],
|
|
95
95
|
tyle: "flex",
|
|
96
|
-
style:
|
|
96
|
+
style: I({ marginLeft: -e.data.options.gutter / 2 + "px", marginRight: -e.data.options.gutter / 2 + "px" })
|
|
97
97
|
}, {
|
|
98
98
|
default: g(() => [
|
|
99
|
-
(o(!0), r(
|
|
99
|
+
(o(!0), r(k, null, w(e.data.columns, (l, c) => (o(), b(d, {
|
|
100
100
|
class: D(["widget-col-item", { active: i.value == "col-" + e.index + "-" + c }]),
|
|
101
|
-
span:
|
|
102
|
-
offset:
|
|
103
|
-
onMousedown: (s) =>
|
|
101
|
+
span: l.options.span,
|
|
102
|
+
offset: l.options.offset,
|
|
103
|
+
onMousedown: (s) => C(l, "col-" + e.index + "-" + c, s)
|
|
104
104
|
}, {
|
|
105
105
|
default: g(() => [
|
|
106
106
|
u(f(K), {
|
|
107
107
|
class: "widget-col-list",
|
|
108
108
|
style: { "min-height": "50px" },
|
|
109
109
|
"ghost-class": "ghost",
|
|
110
|
-
list:
|
|
110
|
+
list: l.list,
|
|
111
111
|
"force-fallback": !0,
|
|
112
112
|
"chosen-class": "chosenClass2",
|
|
113
113
|
"drag-class": "dragClass1",
|
|
114
|
-
onStart:
|
|
115
|
-
onEnd: (s) =>
|
|
114
|
+
onStart: O,
|
|
115
|
+
onEnd: (s) => E(s, c),
|
|
116
116
|
group: "itxst",
|
|
117
117
|
sort: !1,
|
|
118
118
|
animation: "300",
|
|
@@ -120,13 +120,13 @@ const Q = { class: "move" }, T = {
|
|
|
120
120
|
itemKey: ""
|
|
121
121
|
}, {
|
|
122
122
|
default: g(() => [
|
|
123
|
-
(o(!0), r(
|
|
123
|
+
(o(!0), r(k, null, w(l.list, (s, y) => (o(), r("div", {
|
|
124
124
|
class: D(["widget-view", { active: i.value == e.index + "-" + c + "-" + y }]),
|
|
125
|
-
onMousedown: (
|
|
125
|
+
onMousedown: (G) => C(s, e.index + "-" + c + "-" + y, G)
|
|
126
126
|
}, [
|
|
127
127
|
u(P, {
|
|
128
128
|
data: s,
|
|
129
|
-
list:
|
|
129
|
+
list: l.list,
|
|
130
130
|
activeIndex: i.value,
|
|
131
131
|
index: e.index + "-" + c + "-" + y
|
|
132
132
|
}, null, 8, ["data", "list", "activeIndex", "index"])
|
|
@@ -137,11 +137,11 @@ const Q = { class: "move" }, T = {
|
|
|
137
137
|
e.activeIndex === "col-" + e.index + "-" + c ? (o(), r("div", X, [
|
|
138
138
|
u(f(R), {
|
|
139
139
|
style: { padding: "3px 5px" },
|
|
140
|
-
onClick: (s) =>
|
|
140
|
+
onClick: (s) => F(l)
|
|
141
141
|
}, null, 8, ["onClick"]),
|
|
142
142
|
e.data.columns.length !== 1 ? (o(), b(f(S), {
|
|
143
143
|
key: 0,
|
|
144
|
-
onClick: (s) =>
|
|
144
|
+
onClick: (s) => M(l)
|
|
145
145
|
}, null, 8, ["onClick"])) : x("", !0)
|
|
146
146
|
])) : x("", !0)
|
|
147
147
|
]),
|
|
@@ -150,7 +150,7 @@ const Q = { class: "move" }, T = {
|
|
|
150
150
|
e.activeIndex === e.index ? (o(), r("div", Y, [
|
|
151
151
|
u(f(S), {
|
|
152
152
|
style: { padding: "3px 5px", color: "#fff" },
|
|
153
|
-
onClick: n[0] || (n[0] = (
|
|
153
|
+
onClick: n[0] || (n[0] = (l) => V())
|
|
154
154
|
})
|
|
155
155
|
])) : x("", !0)
|
|
156
156
|
]),
|
|
@@ -162,7 +162,7 @@ const Q = { class: "move" }, T = {
|
|
|
162
162
|
]);
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
}), ne = /* @__PURE__ */ H(Z, [["__scopeId", "data-v-
|
|
165
|
+
}), ne = /* @__PURE__ */ H(Z, [["__scopeId", "data-v-b6a6a4fd"]]);
|
|
166
166
|
export {
|
|
167
167
|
ne as default
|
|
168
168
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as i, resolveComponent as f,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as i, resolveComponent as f, createBlock as m, openBlock as v, withCtx as u, createVNode as t } from "vue";
|
|
2
|
+
import { $ as c } from "./index-Djxsz7aX.js";
|
|
3
3
|
const x = /* @__PURE__ */ i({
|
|
4
4
|
__name: "Input-删除",
|
|
5
5
|
props: {
|
|
@@ -11,7 +11,7 @@ const x = /* @__PURE__ */ i({
|
|
|
11
11
|
setup(e) {
|
|
12
12
|
return c(), (g, a) => {
|
|
13
13
|
const o = f("a-input"), n = f("a-form-item"), d = f("a-textarea"), r = f("a-form");
|
|
14
|
-
return
|
|
14
|
+
return v(), m(r, {
|
|
15
15
|
layout: "vertical",
|
|
16
16
|
model: e.configData,
|
|
17
17
|
autocomplete: "off"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as _, resolveComponent as o,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as _, resolveComponent as o, createBlock as l, openBlock as n, withCtx as i, createElementBlock as u, Fragment as d, renderList as r, createVNode as k, createCommentVNode as x, createTextVNode as D, toDisplayString as w } from "vue";
|
|
2
|
+
import { $ as U } from "./index-Djxsz7aX.js";
|
|
3
3
|
const L = /* @__PURE__ */ _({
|
|
4
4
|
__name: "Label-删除",
|
|
5
5
|
props: {
|
|
@@ -63,11 +63,11 @@ const L = /* @__PURE__ */ _({
|
|
|
63
63
|
"onUpdate:value": c[0] || (c[0] = (t) => a.configData.align = t)
|
|
64
64
|
}, {
|
|
65
65
|
default: i(() => [
|
|
66
|
-
(n(!0), u(d, null, r(e.children, (t,
|
|
66
|
+
(n(!0), u(d, null, r(e.children, (t, N) => (n(), l(y, {
|
|
67
67
|
value: t.value
|
|
68
68
|
}, {
|
|
69
69
|
default: i(() => [
|
|
70
|
-
|
|
70
|
+
D(w(t.title), 1)
|
|
71
71
|
]),
|
|
72
72
|
_: 2
|
|
73
73
|
}, 1032, ["value"]))), 256))
|
|
@@ -77,7 +77,7 @@ const L = /* @__PURE__ */ _({
|
|
|
77
77
|
key: 4,
|
|
78
78
|
checked: a.configData[e.bind],
|
|
79
79
|
"onUpdate:checked": (t) => a.configData[e.bind] = t
|
|
80
|
-
}, null, 8, ["checked", "onUpdate:checked"])) :
|
|
80
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : x("", !0)
|
|
81
81
|
]),
|
|
82
82
|
_: 2
|
|
83
83
|
}, 1032, ["label"])), 64))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as l, computed as n,
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as l, computed as n, createElementBlock as a, openBlock as s, mergeProps as u, createElementVNode as o, toDisplayString as g } from "vue";
|
|
2
|
+
import { x as m } from "./index-Djxsz7aX.js";
|
|
3
|
+
const p = ["xlink:href"], d = /* @__PURE__ */ l({
|
|
4
4
|
__name: "SvgIconCopy",
|
|
5
5
|
props: {
|
|
6
6
|
name: {
|
|
@@ -26,14 +26,14 @@ const m = ["xlink:href"], p = /* @__PURE__ */ l({
|
|
|
26
26
|
},
|
|
27
27
|
setup(e) {
|
|
28
28
|
const t = e, r = n(() => `#icon-${t.name}`), i = n(() => t.name ? `svg-icon icon-${t.name}` : "svg-icon");
|
|
29
|
-
return (c, f) => (
|
|
29
|
+
return (c, f) => (s(), a("svg", u({ class: i.value }, c.$attrs, {
|
|
30
30
|
style: { color: e.color, width: e.width, height: e.height }
|
|
31
31
|
}), [
|
|
32
|
-
o("title", null,
|
|
33
|
-
o("use", { "xlink:href": r.value }, null, 8,
|
|
32
|
+
o("title", null, g(e.title), 1),
|
|
33
|
+
o("use", { "xlink:href": r.value }, null, 8, p)
|
|
34
34
|
], 16));
|
|
35
35
|
}
|
|
36
|
-
}), y = /* @__PURE__ */
|
|
36
|
+
}), y = /* @__PURE__ */ m(d, [["__scopeId", "data-v-03bc9534"]]);
|
|
37
37
|
export {
|
|
38
38
|
y as default
|
|
39
39
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { au as et } from "./index-Djxsz7aX.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
package/dist/form-imagining.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aJ as s, aK as t, aI as o, aw as r, ax as n, a0 as l, aB as d, ay as f, aD as m, aE as i, az as u, aA as I, aG as p, aF as F, aC as g, aH as v } from "./index-Djxsz7aX.js";
|
|
2
2
|
export {
|
|
3
3
|
s as createScopedBus,
|
|
4
4
|
t as default,
|
|
5
5
|
o as eventBus,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
r as generateFormCode,
|
|
7
|
+
n as generateFormHtml,
|
|
8
8
|
l as generateReportHtml,
|
|
9
9
|
d as getFormInfo,
|
|
10
10
|
f as getMultipleRef,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
m as initValidateInfos,
|
|
12
|
+
i as resetValidateInfos,
|
|
13
13
|
u as saveFormData,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
I as saveHandleData,
|
|
15
|
+
p as setInputValue,
|
|
16
|
+
F as setValidateInfos,
|
|
17
|
+
g as updateFormDatas,
|
|
18
18
|
v as validateInfos
|
|
19
19
|
};
|