form-imagining 0.0.9 → 0.0.11

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 (46) hide show
  1. package/README.md +3 -2
  2. package/dist/App-342ebe5b.js +19 -0
  3. package/dist/Code-42906fb7.js +5 -0
  4. package/dist/Col-d6d4283b.js +5 -0
  5. package/dist/Demo-78945af6.js +110 -0
  6. package/dist/Demo-7bc657a5.js +45 -0
  7. package/dist/Form-02b8b977.js +5 -0
  8. package/dist/Form-40f53810.js +37 -0
  9. package/dist/FormPublic-0d652297.js +5 -0
  10. package/dist/GenerateForm-e0379bdd.js +5 -0
  11. package/dist/Grid-f1dd1742.js +5 -0
  12. package/dist/Input-/345/210/240/351/231/244-cbdb1971.js +87 -0
  13. package/dist/Label-/345/210/240/351/231/244-fcdc62bb.js +92 -0
  14. package/dist/Login-7d7554b2.js +10 -0
  15. package/dist/Preview0925-28ad4211.js +62 -0
  16. package/dist/PreviewDemo-cf0530e2.js +6 -0
  17. package/dist/PreviewDemo.vue_vue_type_script_setup_true_lang-80d6e20c.js +284 -0
  18. package/dist/PreviewDemo2-c8d773bd.js +6 -0
  19. package/dist/PreviewDemo2.vue_vue_type_script_setup_true_lang-5143e14e.js +88 -0
  20. package/dist/PreviewDemo3-e6dc665a.js +82 -0
  21. package/dist/Properties-6f2d8bbe.js +5 -0
  22. package/dist/SqlModule-0c666aaa.js +5 -0
  23. package/dist/Table-8016c228.js +5 -0
  24. package/dist/cTable-64767ff9.js +5 -0
  25. package/dist/{cssMode-258e5ba7.js → cssMode-774b89e0.js} +1 -1
  26. package/dist/form-imagining.js +1 -1
  27. package/dist/form-imagining.umd.cjs +248 -241
  28. package/dist/{freemarker2-12493398.js → freemarker2-8dfbb9fb.js} +1 -1
  29. package/dist/{handlebars-def84c12.js → handlebars-921ae2a7.js} +1 -1
  30. package/dist/{html-280a7ed3.js → html-91382788.js} +1 -1
  31. package/dist/{htmlMode-b76e0bdc.js → htmlMode-07f09f47.js} +1 -1
  32. package/dist/index-a47aecd5.js +10 -0
  33. package/dist/{index-4404fc7a.js → index-e7099870.js} +46448 -16993
  34. package/dist/{javascript-3df96c77.js → javascript-1e406713.js} +2 -2
  35. package/dist/{jsonMode-09c5cef8.js → jsonMode-e6502f8c.js} +1 -1
  36. package/dist/{liquid-c70595aa.js → liquid-875879f0.js} +1 -1
  37. package/dist/{mdx-1a6f1fd5.js → mdx-8c5e3b99.js} +1 -1
  38. package/dist/modalDemo-fd638bf1.js +53 -0
  39. package/dist/{python-3b635c55.js → python-6ee28edf.js} +1 -1
  40. package/dist/{razor-eb9ede61.js → razor-8499c1c3.js} +1 -1
  41. package/dist/style.css +1 -1
  42. package/dist/{tsMode-57e6691d.js → tsMode-40828325.js} +1 -1
  43. package/dist/{typescript-a7a35ee2.js → typescript-70585b01.js} +1 -1
  44. package/dist/{xml-8871547f.js → xml-15ae0c1c.js} +1 -1
  45. package/dist/{yaml-bba498d2.js → yaml-7da7fa12.js} +1 -1
  46. package/package.json +1 -1
@@ -0,0 +1,284 @@
1
+ import { defineComponent as U, reactive as C, ref as N, onMounted as R, resolveComponent as r, openBlock as O, createElementBlock as P, createVNode as l, withCtx as a, mergeProps as b, unref as o, createTextVNode as u, createElementVNode as c } from "vue";
2
+ import { o as V, v as i, a as _, q as E } from "./index-e7099870.js";
3
+ const F = {
4
+ rules: [{ type: "required", msg: "必须填写此项" }],
5
+ class: "ant-picker-range-custom",
6
+ "write-field": "bdc_djzb.range"
7
+ }, S = {
8
+ rules: [{ type: "required", msg: "必须填写此项" }],
9
+ class: "ant-picker-custom",
10
+ "write-field": "bdc_djzb.time"
11
+ }, L = /* @__PURE__ */ U({
12
+ __name: "PreviewDemo",
13
+ props: {
14
+ disabled: {
15
+ type: Boolean,
16
+ default: !1
17
+ }
18
+ },
19
+ setup(s, { expose: w }) {
20
+ const t = C({
21
+ bdc_djzb: {
22
+ 业务号: "",
23
+ age: 20,
24
+ 受理编号: 2,
25
+ 下拉必填: "",
26
+ 单选必填: "",
27
+ 多选框必填: [],
28
+ time: "",
29
+ range: [],
30
+ textarea: ""
31
+ },
32
+ bdc_ywfw: {
33
+ name: "",
34
+ title: "我是yefw"
35
+ }
36
+ });
37
+ let p = N();
38
+ w({
39
+ onSubmit: y
40
+ }), R(() => {
41
+ console.info("我是预览页面");
42
+ });
43
+ function y() {
44
+ return V(p.value);
45
+ }
46
+ function g() {
47
+ let v = E({
48
+ title: "测试二级",
49
+ width: 300,
50
+ onOk: () => {
51
+ console.log("二级ok"), v.destroy();
52
+ }
53
+ });
54
+ }
55
+ return (v, e) => {
56
+ const z = r("a-input"), n = r("a-form-item"), j = r("a-select-option"), x = r("a-select"), f = r("a-checkbox"), q = r("a-checkbox-group"), m = r("a-radio"), k = r("a-radio-group"), Y = r("a-range-picker"), D = r("a-date-picker"), M = r("a-textarea"), B = r("a-form");
57
+ return O(), P("div", {
58
+ ref_key: "formRef",
59
+ ref: p,
60
+ class: "cici-form-css"
61
+ }, [
62
+ l(B, {
63
+ "label-col": { style: { width: "100px" } },
64
+ labelWrap: !0,
65
+ model: t
66
+ }, {
67
+ default: a(() => [
68
+ l(n, b({
69
+ label: "受理编号",
70
+ required: ""
71
+ }, o(i)["bdc_djzb.id;"]), {
72
+ default: a(() => [
73
+ l(z, {
74
+ value: t.bdc_djzb.受理编号,
75
+ "onUpdate:value": e[0] || (e[0] = (d) => t.bdc_djzb.受理编号 = d),
76
+ rules: [{ type: "required", msg: "必须填写此项" }, { type: "number", msg: "请填写数字" }],
77
+ disabled: s.disabled,
78
+ "write-field": "bdc_djzb.id",
79
+ onBlur: e[1] || (e[1] = (d) => o(_)(d, "blur"))
80
+ }, null, 8, ["value", "disabled"])
81
+ ]),
82
+ _: 1
83
+ }, 16),
84
+ l(n, b({
85
+ label: "下拉必填",
86
+ required: ""
87
+ }, o(i)["bdc_djzb.下拉必填"]), {
88
+ default: a(() => [
89
+ l(x, {
90
+ value: t.bdc_djzb.下拉必填,
91
+ "onUpdate:value": e[2] || (e[2] = (d) => t.bdc_djzb.下拉必填 = d),
92
+ disabled: s.disabled,
93
+ rules: [{ type: "required", msg: "必须填写此项" }],
94
+ "write-field": "bdc_djzb.下拉必填",
95
+ onBlur: e[3] || (e[3] = (d) => o(_)(d, "blur", t.bdc_djzb.下拉必填))
96
+ }, {
97
+ default: a(() => [
98
+ l(j, { value: "lucy" }, {
99
+ default: a(() => [
100
+ u("Lucy")
101
+ ]),
102
+ _: 1
103
+ }),
104
+ l(j, { value: "nancy" }, {
105
+ default: a(() => [
106
+ u("Nancy")
107
+ ]),
108
+ _: 1
109
+ })
110
+ ]),
111
+ _: 1
112
+ }, 8, ["value", "disabled"])
113
+ ]),
114
+ _: 1
115
+ }, 16),
116
+ l(n, b({
117
+ label: "多选框必填",
118
+ required: ""
119
+ }, o(i)["bdc_djzb.多选框必填"]), {
120
+ default: a(() => [
121
+ l(q, {
122
+ value: t.bdc_djzb.多选框必填,
123
+ "onUpdate:value": e[4] || (e[4] = (d) => t.bdc_djzb.多选框必填 = d),
124
+ rules: [{ type: "required", msg: "必须填写此项" }],
125
+ "write-field": "bdc_djzb.多选框必填",
126
+ disabled: s.disabled
127
+ }, {
128
+ default: a(() => [
129
+ l(f, {
130
+ name: "type",
131
+ value: "1"
132
+ }, {
133
+ default: a(() => [
134
+ u("Online")
135
+ ]),
136
+ _: 1
137
+ }),
138
+ l(f, {
139
+ name: "type",
140
+ value: "2"
141
+ }, {
142
+ default: a(() => [
143
+ u("Promotion")
144
+ ]),
145
+ _: 1
146
+ }),
147
+ l(f, {
148
+ name: "type",
149
+ value: "3"
150
+ }, {
151
+ default: a(() => [
152
+ u("Offline")
153
+ ]),
154
+ _: 1
155
+ })
156
+ ]),
157
+ _: 1
158
+ }, 8, ["value", "disabled"])
159
+ ]),
160
+ _: 1
161
+ }, 16),
162
+ l(n, b({
163
+ label: "单选必填",
164
+ required: ""
165
+ }, o(i)["bdc_djzb.单选必填"]), {
166
+ default: a(() => [
167
+ l(k, {
168
+ value: t.bdc_djzb.单选必填,
169
+ "onUpdate:value": e[5] || (e[5] = (d) => t.bdc_djzb.单选必填 = d),
170
+ disabled: s.disabled,
171
+ rules: [{ type: "required", msg: "必须填写此项" }],
172
+ "write-field": "bdc_djzb.单选必填"
173
+ }, {
174
+ default: a(() => [
175
+ l(m, { value: "1" }, {
176
+ default: a(() => [
177
+ u("A")
178
+ ]),
179
+ _: 1
180
+ }),
181
+ l(m, { value: "2" }, {
182
+ default: a(() => [
183
+ u("B")
184
+ ]),
185
+ _: 1
186
+ }),
187
+ l(m, { value: "3" }, {
188
+ default: a(() => [
189
+ u("C")
190
+ ]),
191
+ _: 1
192
+ }),
193
+ l(m, { value: "4" }, {
194
+ default: a(() => [
195
+ u("D")
196
+ ]),
197
+ _: 1
198
+ })
199
+ ]),
200
+ _: 1
201
+ }, 8, ["value", "disabled"])
202
+ ]),
203
+ _: 1
204
+ }, 16),
205
+ l(n, b({
206
+ label: "日期范围",
207
+ required: ""
208
+ }, o(i)["bdc_djzb.range"]), {
209
+ default: a(() => [
210
+ c("div", F, [
211
+ l(Y, {
212
+ value: t.bdc_djzb.range,
213
+ "onUpdate:value": e[6] || (e[6] = (d) => t.bdc_djzb.range = d),
214
+ disabled: s.disabled,
215
+ format: "YYYY-MM-DD",
216
+ "value-format": "YYYY-MM-DD",
217
+ onBlur: e[7] || (e[7] = (d) => o(_)(d, "blur"))
218
+ }, null, 8, ["value", "disabled"])
219
+ ])
220
+ ]),
221
+ _: 1
222
+ }, 16),
223
+ l(n, b({
224
+ label: "日期",
225
+ required: ""
226
+ }, o(i)["bdc_djzb.time"]), {
227
+ default: a(() => [
228
+ c("div", S, [
229
+ l(D, {
230
+ value: t.bdc_djzb.time,
231
+ "onUpdate:value": e[8] || (e[8] = (d) => t.bdc_djzb.time = d),
232
+ disabled: s.disabled,
233
+ format: "YYYY-MM-DD",
234
+ "value-format": "YYYY-MM-DD",
235
+ onBlur: e[9] || (e[9] = (d) => o(_)(d, "blur"))
236
+ }, null, 8, ["value", "disabled"])
237
+ ])
238
+ ]),
239
+ _: 1
240
+ }, 16),
241
+ l(n, b({
242
+ label: "多文本",
243
+ required: ""
244
+ }, o(i)["bdc_djzb.textarea;bdc_djzb.id"]), {
245
+ default: a(() => [
246
+ l(M, {
247
+ value: t.bdc_djzb.textarea,
248
+ "onUpdate:value": e[10] || (e[10] = (d) => t.bdc_djzb.textarea = d),
249
+ disabled: s.disabled,
250
+ placeholder: "请输入多文本",
251
+ "auto-size": { minRows: "2", maxRows: "5" },
252
+ rules: [{ type: "required", msg: "必须填写此项" }],
253
+ "write-field": "bdc_djzb.textarea;bdc_djzb.id",
254
+ onBlur: e[11] || (e[11] = (d) => o(_)(d, "blur"))
255
+ }, null, 8, ["value", "disabled"])
256
+ ]),
257
+ _: 1
258
+ }, 16),
259
+ l(n, b({
260
+ label: "名称",
261
+ required: ""
262
+ }, o(i)["bdc_ywfw.name"]), {
263
+ default: a(() => [
264
+ l(z, {
265
+ value: t.bdc_ywfw.name,
266
+ "onUpdate:value": e[12] || (e[12] = (d) => t.bdc_ywfw.name = d),
267
+ rules: [{ type: "required", msg: "必须填写此项" }],
268
+ "write-field": "bdc_ywfw.name",
269
+ onBlur: e[13] || (e[13] = (d) => o(_)(d, "blur"))
270
+ }, null, 8, ["value"])
271
+ ]),
272
+ _: 1
273
+ }, 16),
274
+ c("a", { onClick: g }, "测试弹窗")
275
+ ]),
276
+ _: 1
277
+ }, 8, ["model"])
278
+ ], 512);
279
+ };
280
+ }
281
+ });
282
+ export {
283
+ L as _
284
+ };
@@ -0,0 +1,6 @@
1
+ import { _ as o } from "./PreviewDemo2.vue_vue_type_script_setup_true_lang-5143e14e.js";
2
+ import "vue";
3
+ import "./index-e7099870.js";
4
+ export {
5
+ o as default
6
+ };
@@ -0,0 +1,88 @@
1
+ import { defineComponent as w, ref as r, reactive as y, onMounted as j, resolveComponent as a, openBlock as z, createElementBlock as g, createVNode as t, withCtx as n, mergeProps as b, unref as d } from "vue";
2
+ import { o as x, v as f, a as p } from "./index-e7099870.js";
3
+ const C = /* @__PURE__ */ w({
4
+ __name: "PreviewDemo2",
5
+ props: {
6
+ disabled: {
7
+ type: Boolean,
8
+ default: !1
9
+ }
10
+ },
11
+ setup(i, { expose: _ }) {
12
+ r([]), r([]);
13
+ const l = y({
14
+ bdc_djzb: {
15
+ 业务号: "",
16
+ age: 20,
17
+ 受理编号: 2
18
+ },
19
+ bdc_ywfw: {
20
+ name: "",
21
+ title: "我是yefw"
22
+ }
23
+ });
24
+ let u = r();
25
+ _({
26
+ onSubmit: c
27
+ }), j(() => {
28
+ console.info("我是预览页面");
29
+ });
30
+ function c() {
31
+ return x(u.value);
32
+ }
33
+ return (B, e) => {
34
+ const m = a("a-input"), s = a("a-form-item"), v = a("a-form");
35
+ return z(), g("div", {
36
+ class: "cici-form-css",
37
+ ref_key: "formRef",
38
+ ref: u
39
+ }, [
40
+ t(v, {
41
+ "label-col": { style: { width: "100px" } },
42
+ labelWrap: !0,
43
+ model: l
44
+ }, {
45
+ default: n(() => [
46
+ t(s, b({
47
+ required: "",
48
+ label: "受理编号"
49
+ }, d(f)["bdc_djzb.受理编号"]), {
50
+ default: n(() => [
51
+ t(m, {
52
+ value: l.bdc_djzb.受理编号,
53
+ "onUpdate:value": e[0] || (e[0] = (o) => l.bdc_djzb.受理编号 = o),
54
+ valueModifiers: { number: !0 },
55
+ disabled: i.disabled,
56
+ "write-field": "bdc_djzb.受理编号",
57
+ rules: [{ type: "required", msg: "必须填写此项" }, { type: "number", msg: "请填写数字" }],
58
+ onBlur: e[1] || (e[1] = (o) => d(p)(o, "blur"))
59
+ }, null, 8, ["value", "disabled"])
60
+ ]),
61
+ _: 1
62
+ }, 16),
63
+ t(s, b({
64
+ required: "",
65
+ label: "名称"
66
+ }, d(f)["bdc_djzb.name"]), {
67
+ default: n(() => [
68
+ t(m, {
69
+ value: l.bdc_ywfw.name,
70
+ "onUpdate:value": e[2] || (e[2] = (o) => l.bdc_ywfw.name = o),
71
+ disabled: i.disabled,
72
+ "write-field": "bdc_djzb.name",
73
+ rules: [{ type: "required", msg: "必须填写此项" }],
74
+ onBlur: e[3] || (e[3] = (o) => d(p)(o, "blur"))
75
+ }, null, 8, ["value", "disabled"])
76
+ ]),
77
+ _: 1
78
+ }, 16)
79
+ ]),
80
+ _: 1
81
+ }, 8, ["model"])
82
+ ], 512);
83
+ };
84
+ }
85
+ });
86
+ export {
87
+ C as _
88
+ };
@@ -0,0 +1,82 @@
1
+ import { defineComponent as k, ref as m, reactive as w, onMounted as C, onBeforeUpdate as D, resolveComponent as l, openBlock as K, createElementBlock as R, createVNode as e, unref as c, isRef as g, withCtx as o, createElementVNode as p } from "vue";
2
+ import { _ as x } from "./PreviewDemo.vue_vue_type_script_setup_true_lang-80d6e20c.js";
3
+ import { _ as B } from "./PreviewDemo2.vue_vue_type_script_setup_true_lang-5143e14e.js";
4
+ import { s as h } from "./index-e7099870.js";
5
+ const E = { class: "cici-form-css" }, z = /* @__PURE__ */ k({
6
+ __name: "PreviewDemo3",
7
+ setup(M) {
8
+ let t = m("1"), n = [], i = !1, a = m(!1);
9
+ w({
10
+ bdc_djzb: {
11
+ 业务号: "",
12
+ age: 20,
13
+ 受理编号: 2
14
+ },
15
+ bdc_ywfw: {
16
+ name: "",
17
+ title: "我是yefw"
18
+ }
19
+ }), C(() => {
20
+ i = !0;
21
+ }), D(() => {
22
+ n = [];
23
+ });
24
+ const f = (s) => {
25
+ s && i && n.push(s);
26
+ };
27
+ function u() {
28
+ h(n);
29
+ }
30
+ function b() {
31
+ a.value = !a.value;
32
+ }
33
+ return (s, r) => {
34
+ const _ = l("a-tab-pane"), v = l("a-tabs"), y = l("a-space");
35
+ return K(), R("div", E, [
36
+ e(v, {
37
+ activeKey: c(t),
38
+ "onUpdate:activeKey": r[0] || (r[0] = (d) => g(t) ? t.value = d : t = d)
39
+ }, {
40
+ default: o(() => [
41
+ e(_, {
42
+ key: "1",
43
+ tab: "测试1"
44
+ }, {
45
+ default: o(() => [
46
+ e(x, {
47
+ ref: f,
48
+ disabled: c(a)
49
+ }, null, 8, ["disabled"])
50
+ ]),
51
+ _: 1
52
+ }),
53
+ e(_, {
54
+ key: "2",
55
+ tab: "测试2",
56
+ forceRender: ""
57
+ }, {
58
+ default: o(() => [
59
+ e(B, {
60
+ ref: f,
61
+ disabled: c(a)
62
+ }, null, 8, ["disabled"])
63
+ ]),
64
+ _: 1
65
+ })
66
+ ]),
67
+ _: 1
68
+ }, 8, ["activeKey"]),
69
+ e(y, null, {
70
+ default: o(() => [
71
+ p("a", { onClick: u }, "保存"),
72
+ p("a", { onClick: b }, "是否允许编辑")
73
+ ]),
74
+ _: 1
75
+ })
76
+ ]);
77
+ };
78
+ }
79
+ });
80
+ export {
81
+ z as default
82
+ };
@@ -0,0 +1,5 @@
1
+ import { h as m } from "./index-e7099870.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { j as m } from "./index-e7099870.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { i } from "./index-e7099870.js";
2
+ import "vue";
3
+ export {
4
+ i as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { c as m } from "./index-e7099870.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -1,7 +1,7 @@
1
1
  var Le = Object.defineProperty;
2
2
  var je = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (je(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Ne } from "./index-4404fc7a.js";
4
+ import { t as Ne } from "./index-e7099870.js";
5
5
  import "vue";
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- import { i as a } from "./index-4404fc7a.js";
1
+ import { x as a } from "./index-e7099870.js";
2
2
  import "vue";
3
3
  export {
4
4
  a as default