form-imagining 0.0.18 → 0.0.20

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 (62) hide show
  1. package/dist/App-603e5455.js +25 -0
  2. package/dist/Code-ef12c34b.js +5 -0
  3. package/dist/Col-74cca139.js +5 -0
  4. package/dist/{Demo-66048d92.js → Demo-602f04d8.js} +16 -16
  5. package/dist/Demo-be0d3a37.js +10 -0
  6. package/dist/{Demo-81779321.js → Demo-fdd82548.js} +1 -1
  7. package/dist/{Form-3b37dab0.js → Form-1e372621.js} +1 -1
  8. package/dist/FormPublic-089eac3d.js +5 -0
  9. package/dist/GenerateForm-30d677aa.js +5 -0
  10. package/dist/Grid-68fdd72c.js +5 -0
  11. package/dist/HelloWorld-2cd60613.js +10 -0
  12. package/dist/Input-/345/210/240/351/231/{244-8e48b645.js → 244-e2e34a89.js} +1 -1
  13. package/dist/Label-/345/210/240/351/231/{244-92cc39ed.js → 244-0cb771ab.js} +1 -1
  14. package/dist/{Login-84a5c37f.js → Login-5c75038a.js} +1 -1
  15. package/dist/{Preview0925-09383b48.js → Preview0925-588dfc2c.js} +1 -1
  16. package/dist/{PreviewDemo-aff28c32.js → PreviewDemo-1d0b0f64.js} +2 -2
  17. package/dist/{PreviewDemo.vue_vue_type_script_setup_true_lang-9d1b1e05.js → PreviewDemo.vue_vue_type_script_setup_true_lang-f4e79a3a.js} +1 -1
  18. package/dist/{PreviewDemo2-330c29d4.js → PreviewDemo2-737fda06.js} +2 -2
  19. package/dist/{PreviewDemo2.vue_vue_type_script_setup_true_lang-c4e8cb4a.js → PreviewDemo2.vue_vue_type_script_setup_true_lang-24e1e1ab.js} +1 -1
  20. package/dist/{PreviewDemo3-a8e43f39.js → PreviewDemo3-66f4aa07.js} +3 -3
  21. package/dist/ReportModule-c94639d3.js +6 -0
  22. package/dist/ReportModule.vue_vue_type_script_setup_true_lang-c11b0684.js +105 -0
  23. package/dist/SqlModule-5f0db752.js +5 -0
  24. package/dist/Table-e36c1320.js +5 -0
  25. package/dist/{cTable-80292a3f.js → cTable-a295aa0e.js} +1 -1
  26. package/dist/childForm-d19dd561.js +5 -0
  27. package/dist/{cssMode-dbf55eb9.js → cssMode-8a4c63ba.js} +1 -1
  28. package/dist/form-imagining.js +1 -1
  29. package/dist/form-imagining.umd.cjs +487 -434
  30. package/dist/{freemarker2-1796a3c0.js → freemarker2-e9ba76f1.js} +3 -3
  31. package/dist/{handlebars-c5fa8b22.js → handlebars-d018e927.js} +1 -1
  32. package/dist/{html-0e67575f.js → html-e310a901.js} +1 -1
  33. package/dist/{htmlMode-9bbe5458.js → htmlMode-786de656.js} +1 -1
  34. package/dist/index-2679db46.js +123 -0
  35. package/dist/index-6ef372a0.js +177 -0
  36. package/dist/{index-db3d3dd6.js → index-c9c30439.js} +37115 -35134
  37. package/dist/{index-31088a08.js → index-e4aae2dd.js} +1 -1
  38. package/dist/{javascript-2637dec2.js → javascript-f12bd58c.js} +2 -2
  39. package/dist/{jsonMode-2b76639d.js → jsonMode-75952d51.js} +30 -30
  40. package/dist/{liquid-d7fb1edd.js → liquid-fb05d087.js} +1 -1
  41. package/dist/{mdx-779f31ca.js → mdx-be59e6cc.js} +1 -1
  42. package/dist/{modalDemo-ead6bc3c.js → modalDemo-2753e710.js} +1 -1
  43. package/dist/{python-d7b91bf4.js → python-ad30fefa.js} +1 -1
  44. package/dist/{razor-dd978464.js → razor-d91e2766.js} +1 -1
  45. package/dist/style.css +1 -1
  46. package/dist/{tableSelectDemo-a6e852ec.js → tableSelectDemo-b96742b6.js} +10 -11
  47. package/dist/{tableSelectDemo2-6f8dcaf3.js → tableSelectDemo2-1351b70e.js} +1 -1
  48. package/dist/{tsMode-17f5f076.js → tsMode-2a9d1903.js} +6 -6
  49. package/dist/{typescript-6b0f1250.js → typescript-0c990a02.js} +1 -1
  50. package/dist/{xml-60875fce.js → xml-2c3838bd.js} +1 -1
  51. package/dist/{yaml-7c367aa5.js → yaml-b0a7f3a3.js} +1 -1
  52. package/package.json +3 -2
  53. package/dist/App-d2ace058.js +0 -22
  54. package/dist/Code-cc12eba0.js +0 -5
  55. package/dist/Col-46a13146.js +0 -5
  56. package/dist/FormPublic-07da9cf3.js +0 -5
  57. package/dist/GenerateForm-a6f95666.js +0 -5
  58. package/dist/Grid-9bc5a2f5.js +0 -5
  59. package/dist/SqlModule-f5110478.js +0 -5
  60. package/dist/Table-2fdc291f.js +0 -5
  61. package/dist/childForm-4c5c3df5.js +0 -5
  62. package/dist/tableSelectOptions-97e674c2.js +0 -16
@@ -0,0 +1,25 @@
1
+ import { defineComponent as e, resolveComponent as r, openBlock as t, createBlock as n, unref as p, withCtx as a, createVNode as c } from "vue";
2
+ import m from "./index-2679db46.js";
3
+ import { z as i } from "./index-c9c30439.js";
4
+ import "./index-6ef372a0.js";
5
+ import "./ReportModule.vue_vue_type_script_setup_true_lang-c11b0684.js";
6
+ const g = /* @__PURE__ */ e({
7
+ __name: "App",
8
+ setup(f) {
9
+ return (_, l) => {
10
+ const o = r("a-config-provider");
11
+ return t(), n(o, {
12
+ locale: p(i),
13
+ theme: { token: { fontSize: 13, borderRadius: 6, colorPrimary: "#1890ff" } }
14
+ }, {
15
+ default: a(() => [
16
+ c(m)
17
+ ]),
18
+ _: 1
19
+ }, 8, ["locale"]);
20
+ };
21
+ }
22
+ });
23
+ export {
24
+ g as default
25
+ };
@@ -0,0 +1,5 @@
1
+ import { p as m } from "./index-c9c30439.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { h as m } from "./index-c9c30439.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -1,10 +1,10 @@
1
- import { defineComponent as b, ref as _, reactive as c, onMounted as p, resolveComponent as i, openBlock as v, createElementBlock as g, createVNode as o, withCtx as s, createTextVNode as w } from "vue";
2
- import { m as j, n as m } from "./index-db3d3dd6.js";
3
- const y = { class: "cici-form-css" }, k = /* @__PURE__ */ b({
1
+ import { defineComponent as m, ref as _, reactive as c, onMounted as p, resolveComponent as i, openBlock as v, createElementBlock as g, createVNode as o, withCtx as s, createTextVNode as w } from "vue";
2
+ import { C as j, w as b } from "./index-c9c30439.js";
3
+ const y = { class: "cici-form-css" }, k = /* @__PURE__ */ m({
4
4
  __name: "Demo",
5
5
  setup(z) {
6
6
  j(), _([]), _([]);
7
- const n = c({
7
+ const a = c({
8
8
  bdc_djzb: {
9
9
  业务号: "",
10
10
  age: 20
@@ -17,8 +17,8 @@ const y = { class: "cici-form-css" }, k = /* @__PURE__ */ b({
17
17
  p(() => {
18
18
  console.info("我是预览页面");
19
19
  });
20
- function f(a) {
21
- const e = a.target.value, l = a.target.__vnode.props.rules;
20
+ function f(n) {
21
+ const e = n.target.value, l = n.target.__vnode.props.rules;
22
22
  if (l != null) {
23
23
  const r = l.length;
24
24
  if (r > 0)
@@ -26,17 +26,17 @@ const y = { class: "cici-form-css" }, k = /* @__PURE__ */ b({
26
26
  const d = l[u];
27
27
  if (d.required) {
28
28
  if (e == "") {
29
- m.error(d.message), a.target.focus();
29
+ b.error(d.message), n.target.focus();
30
30
  return;
31
31
  }
32
32
  } else if (!/^[+-]?(0|([1-9]\d*))(\.\d+)?$/g.test(e)) {
33
- m.error(d.message), a.target.focus();
33
+ b.error(d.message), n.target.focus();
34
34
  return;
35
35
  }
36
36
  }
37
37
  }
38
38
  }
39
- return (a, e) => {
39
+ return (n, e) => {
40
40
  const l = i("a-input"), r = i("a-form-item"), u = i("a-button"), d = i("a-form");
41
41
  return v(), g("div", y, [
42
42
  o(d, {
@@ -51,8 +51,8 @@ const y = { class: "cici-form-css" }, k = /* @__PURE__ */ b({
51
51
  default: s(() => [
52
52
  o(l, {
53
53
  status: "error",
54
- value: n.bdc_djzb.业务号,
55
- "onUpdate:value": e[0] || (e[0] = (t) => n.bdc_djzb.业务号 = t),
54
+ value: a.bdc_djzb.业务号,
55
+ "onUpdate:value": e[0] || (e[0] = (t) => a.bdc_djzb.业务号 = t),
56
56
  "write-field": "bdc_djzb.受理编号;bdc_ywfw.slbh",
57
57
  rules: [{ required: !0, message: "必填项" }, { type: "number", message: "请输入数字" }],
58
58
  onBlur: e[1] || (e[1] = (t) => f(t))
@@ -67,8 +67,8 @@ const y = { class: "cici-form-css" }, k = /* @__PURE__ */ b({
67
67
  }, {
68
68
  default: s(() => [
69
69
  o(l, {
70
- value: n.bdc_djzb.业务号,
71
- "onUpdate:value": e[2] || (e[2] = (t) => n.bdc_djzb.业务号 = t),
70
+ value: a.bdc_djzb.业务号,
71
+ "onUpdate:value": e[2] || (e[2] = (t) => a.bdc_djzb.业务号 = t),
72
72
  "write-field": "bdc_djzb.业务号;bdc_ywfw.ywh",
73
73
  onBlur: e[3] || (e[3] = (t) => f(t))
74
74
  }, null, 8, ["value"])
@@ -78,8 +78,8 @@ const y = { class: "cici-form-css" }, k = /* @__PURE__ */ b({
78
78
  o(r, { label: "业务号1" }, {
79
79
  default: s(() => [
80
80
  o(l, {
81
- value: n.bdc_djzb.业务号,
82
- "onUpdate:value": e[4] || (e[4] = (t) => n.bdc_djzb.业务号 = t)
81
+ value: a.bdc_djzb.业务号,
82
+ "onUpdate:value": e[4] || (e[4] = (t) => a.bdc_djzb.业务号 = t)
83
83
  }, null, 8, ["value"])
84
84
  ]),
85
85
  _: 1
@@ -88,7 +88,7 @@ const y = { class: "cici-form-css" }, k = /* @__PURE__ */ b({
88
88
  default: s(() => [
89
89
  o(u, {
90
90
  type: "Default",
91
- onClick: a.onSubmit
91
+ onClick: n.onSubmit
92
92
  }, {
93
93
  default: s(() => [
94
94
  w("保存")
@@ -0,0 +1,10 @@
1
+ import { defineComponent as e } from "vue";
2
+ const _ = /* @__PURE__ */ e({
3
+ __name: "Demo",
4
+ setup(n) {
5
+ return (t, o) => null;
6
+ }
7
+ });
8
+ export {
9
+ _ as default
10
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, ref as t, onMounted as p, resolveComponent as m, openBlock as _, createElementBlock as c, createVNode as i, mergeProps as v, unref as o, withCtx as w } from "vue";
2
- import { g as b, v as g, b as x, o as k } from "./index-db3d3dd6.js";
2
+ import { g as b, v as g, b as x, o as k } from "./index-c9c30439.js";
3
3
  const y = /* @__PURE__ */ d({
4
4
  __name: "Demo",
5
5
  setup(B, { expose: f }) {
@@ -1,4 +1,4 @@
1
- import { i } from "./index-db3d3dd6.js";
1
+ import { i } from "./index-c9c30439.js";
2
2
  import "vue";
3
3
  export {
4
4
  i as default
@@ -0,0 +1,5 @@
1
+ import { d as m } from "./index-c9c30439.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { e as m } from "./index-c9c30439.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { j as m } from "./index-c9c30439.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -0,0 +1,10 @@
1
+ import { _ as r } from "./index-c9c30439.js";
2
+ import "vue";
3
+ const e = {};
4
+ function o(t, c) {
5
+ return " hello 你好 ";
6
+ }
7
+ const s = /* @__PURE__ */ r(e, [["render", o]]);
8
+ export {
9
+ s as default
10
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, resolveComponent as f, openBlock as m, createBlock as v, withCtx as u, createVNode as t } from "vue";
2
- import { u as c } from "./index-db3d3dd6.js";
2
+ import { u as c } from "./index-c9c30439.js";
3
3
  const x = /* @__PURE__ */ i({
4
4
  __name: "Input-删除",
5
5
  props: {
@@ -1,5 +1,5 @@
1
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 { u as U } from "./index-db3d3dd6.js";
2
+ import { u as U } from "./index-c9c30439.js";
3
3
  const L = /* @__PURE__ */ _({
4
4
  __name: "Label-删除",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { a as r } from "./index-db3d3dd6.js";
1
+ import { _ as r } from "./index-c9c30439.js";
2
2
  import "vue";
3
3
  const t = {};
4
4
  function c(e, n) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, openBlock, createBlock, unref } from "vue";
2
- import { u as useFormStore, m as useDataStore, p as generateHtml, g as getData, q as defHttp, a as _export_sfc } from "./index-db3d3dd6.js";
2
+ import { u as useFormStore, C as useDataStore, G as generateHtml, g as getData, l as defHttp, _ as _export_sfc } from "./index-c9c30439.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "Preview0925",
5
5
  setup(__props) {
@@ -1,6 +1,6 @@
1
- import { _ as o } from "./PreviewDemo.vue_vue_type_script_setup_true_lang-9d1b1e05.js";
1
+ import { _ as o } from "./PreviewDemo.vue_vue_type_script_setup_true_lang-f4e79a3a.js";
2
2
  import "vue";
3
- import "./index-db3d3dd6.js";
3
+ import "./index-c9c30439.js";
4
4
  export {
5
5
  o as default
6
6
  };
@@ -1,5 +1,5 @@
1
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 i, unref as o, createTextVNode as u, createElementVNode as c } from "vue";
2
- import { o as V, v as s, b as m, c as E } from "./index-db3d3dd6.js";
2
+ import { o as V, v as s, b as m, c as E } from "./index-c9c30439.js";
3
3
  const F = {
4
4
  rules: [{ type: "required", msg: "必须填写此项" }],
5
5
  class: "ant-picker-range-custom",
@@ -1,6 +1,6 @@
1
- import { _ as o } from "./PreviewDemo2.vue_vue_type_script_setup_true_lang-c4e8cb4a.js";
1
+ import { _ as o } from "./PreviewDemo2.vue_vue_type_script_setup_true_lang-24e1e1ab.js";
2
2
  import "vue";
3
- import "./index-db3d3dd6.js";
3
+ import "./index-c9c30439.js";
4
4
  export {
5
5
  o as default
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, ref as r, reactive as y, onMounted as j, resolveComponent as n, openBlock as z, createElementBlock as g, createVNode as t, withCtx as a, mergeProps as s, unref as d } from "vue";
2
- import { o as x, v as f, b as p } from "./index-db3d3dd6.js";
2
+ import { o as x, v as f, b as p } from "./index-c9c30439.js";
3
3
  const C = /* @__PURE__ */ w({
4
4
  __name: "PreviewDemo2",
5
5
  props: {
@@ -1,7 +1,7 @@
1
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-9d1b1e05.js";
3
- import { _ as B } from "./PreviewDemo2.vue_vue_type_script_setup_true_lang-c4e8cb4a.js";
4
- import { s as h } from "./index-db3d3dd6.js";
2
+ import { _ as x } from "./PreviewDemo.vue_vue_type_script_setup_true_lang-f4e79a3a.js";
3
+ import { _ as B } from "./PreviewDemo2.vue_vue_type_script_setup_true_lang-24e1e1ab.js";
4
+ import { H as h } from "./index-c9c30439.js";
5
5
  const E = { class: "cici-form-css" }, z = /* @__PURE__ */ k({
6
6
  __name: "PreviewDemo3",
7
7
  setup(M) {
@@ -0,0 +1,6 @@
1
+ import { _ as o } from "./ReportModule.vue_vue_type_script_setup_true_lang-c11b0684.js";
2
+ import "vue";
3
+ import "./index-c9c30439.js";
4
+ export {
5
+ o as default
6
+ };
@@ -0,0 +1,105 @@
1
+ import { defineComponent as f, ref as _, resolveComponent as u, openBlock as c, createBlock as b, unref as o, withCtx as n, createVNode as e, createTextVNode as y } from "vue";
2
+ import { y as v } from "./index-c9c30439.js";
3
+ const h = /* @__PURE__ */ f({
4
+ __name: "ReportModule",
5
+ setup(x) {
6
+ let t = _({});
7
+ function p() {
8
+ }
9
+ return (g, l) => {
10
+ const m = u("a-input"), r = u("a-form-item"), d = u("a-select"), s = u("a-button"), i = u("a-form");
11
+ return c(), b(i, {
12
+ model: o(t),
13
+ "label-col": { style: { width: "70px" } },
14
+ layout: "vertical",
15
+ autocomplete: "off",
16
+ onFinish: p
17
+ }, {
18
+ default: n(() => [
19
+ e(r, {
20
+ label: "报表编号",
21
+ name: "code",
22
+ rules: [{ required: !0, message: "报表编号" }]
23
+ }, {
24
+ default: n(() => [
25
+ e(m, {
26
+ value: o(t).code,
27
+ "onUpdate:value": l[0] || (l[0] = (a) => o(t).code = a),
28
+ prefix: "",
29
+ suffix: ""
30
+ }, null, 8, ["value"])
31
+ ]),
32
+ _: 1
33
+ }),
34
+ e(r, {
35
+ label: "报表名称",
36
+ name: "name",
37
+ rules: [{ required: !0, message: "报表名称" }]
38
+ }, {
39
+ default: n(() => [
40
+ e(m, {
41
+ value: o(t).name,
42
+ "onUpdate:value": l[1] || (l[1] = (a) => o(t).name = a),
43
+ prefix: "",
44
+ suffix: ""
45
+ }, null, 8, ["value"])
46
+ ]),
47
+ _: 1
48
+ }),
49
+ e(r, {
50
+ label: "数据源",
51
+ name: "dbType",
52
+ rules: [{ required: !0 }]
53
+ }, {
54
+ default: n(() => [
55
+ e(d, {
56
+ value: o(t).dbType,
57
+ "onUpdate:value": l[2] || (l[2] = (a) => o(t).dbType = a),
58
+ mode: "tags",
59
+ placeholder: "请选择",
60
+ style: { width: "100%" }
61
+ }, null, 8, ["value"])
62
+ ]),
63
+ _: 1
64
+ }),
65
+ e(r, {
66
+ label: "SQL/API",
67
+ name: "content",
68
+ rules: [{ required: !0 }]
69
+ }, {
70
+ default: n(() => [
71
+ e(v, {
72
+ modelValue: o(t).content,
73
+ "onUpdate:modelValue": l[3] || (l[3] = (a) => o(t).content = a),
74
+ theme: "themeGray",
75
+ language: "typescript",
76
+ style: { width: "100%", border: "1px solid #e5e7eb" },
77
+ height: "250px",
78
+ "update:modelValue": "reportData.content"
79
+ }, null, 8, ["modelValue"])
80
+ ]),
81
+ _: 1
82
+ }),
83
+ e(r, { "wrapper-col": { offset: 16, span: 8 } }, {
84
+ default: n(() => [
85
+ e(s, {
86
+ type: "primary",
87
+ "html-type": "submit"
88
+ }, {
89
+ default: n(() => [
90
+ y("解析")
91
+ ]),
92
+ _: 1
93
+ })
94
+ ]),
95
+ _: 1
96
+ })
97
+ ]),
98
+ _: 1
99
+ }, 8, ["model"]);
100
+ };
101
+ }
102
+ });
103
+ export {
104
+ h as _
105
+ };
@@ -0,0 +1,5 @@
1
+ import { B as m } from "./index-c9c30439.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { k as m } from "./index-c9c30439.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -1,4 +1,4 @@
1
- import { f } from "./index-db3d3dd6.js";
1
+ import { f } from "./index-c9c30439.js";
2
2
  import "vue";
3
3
  export {
4
4
  f as default
@@ -0,0 +1,5 @@
1
+ import { a as m } from "./index-c9c30439.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 { t as Ne } from "./index-db3d3dd6.js";
4
+ import { I as Ne } from "./index-c9c30439.js";
5
5
  import "vue";
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- import { x as a } from "./index-db3d3dd6.js";
1
+ import { K as a } from "./index-c9c30439.js";
2
2
  import "vue";
3
3
  export {
4
4
  a as default