form-imagining 0.0.16 → 0.0.17

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 (54) hide show
  1. package/dist/{App-8900108f.js → App-1be93acb.js} +6 -3
  2. package/dist/Code-06a9cea9.js +5 -0
  3. package/dist/Col-22974103.js +5 -0
  4. package/dist/{Demo-ac3b6109.js → Demo-53a684b5.js} +1 -1
  5. package/dist/{Demo-e0785cfe.js → Demo-aaef59a2.js} +1 -1
  6. package/dist/{Form-59f52285.js → Form-ed85cde7.js} +1 -1
  7. package/dist/FormPublic-2481a670.js +5 -0
  8. package/dist/GenerateForm-5d1ea38d.js +5 -0
  9. package/dist/Grid-a78eb23e.js +5 -0
  10. package/dist/Input-/345/210/240/351/231/{244-cff695ee.js → 244-322fab0e.js} +1 -1
  11. package/dist/Label-/345/210/240/351/231/{244-766f6e1d.js → 244-a5bc11f7.js} +1 -1
  12. package/dist/{Login-c58963fa.js → Login-eff987d4.js} +1 -1
  13. package/dist/{Preview0925-3f8762c4.js → Preview0925-d7b73fb0.js} +1 -1
  14. package/dist/{PreviewDemo-21042bca.js → PreviewDemo-0ecac520.js} +2 -2
  15. package/dist/{PreviewDemo.vue_vue_type_script_setup_true_lang-d4b6db45.js → PreviewDemo.vue_vue_type_script_setup_true_lang-9f93ee93.js} +1 -1
  16. package/dist/{PreviewDemo2-83472484.js → PreviewDemo2-5f21ca5c.js} +2 -2
  17. package/dist/{PreviewDemo2.vue_vue_type_script_setup_true_lang-6f6ffbab.js → PreviewDemo2.vue_vue_type_script_setup_true_lang-54fa6577.js} +1 -1
  18. package/dist/{PreviewDemo3-02c1d1d5.js → PreviewDemo3-f89df219.js} +3 -3
  19. package/dist/SqlModule-57cd6ef9.js +5 -0
  20. package/dist/Table-ee0a9f99.js +5 -0
  21. package/dist/{cTable-f926a9e1.js → cTable-9a648c25.js} +1 -1
  22. package/dist/childForm-117bd377.js +5 -0
  23. package/dist/{cssMode-67268d0f.js → cssMode-f65e56dc.js} +1 -1
  24. package/dist/form-imagining.js +1 -1
  25. package/dist/form-imagining.umd.cjs +621 -303
  26. package/dist/{freemarker2-ca4f7657.js → freemarker2-55b3e0de.js} +1 -1
  27. package/dist/{handlebars-34cf23da.js → handlebars-dcb394df.js} +1 -1
  28. package/dist/{html-d580c652.js → html-516dd342.js} +1 -1
  29. package/dist/{htmlMode-8e07efa1.js → htmlMode-230b8835.js} +1 -1
  30. package/dist/{index-cd16fa8f.js → index-4282fff0.js} +1 -1
  31. package/dist/{index-8ec1f145.js → index-fcf40126.js} +65310 -46541
  32. package/dist/{javascript-80042dd1.js → javascript-8ef3ff10.js} +2 -2
  33. package/dist/{jsonMode-f7cce1fa.js → jsonMode-541f6063.js} +1 -1
  34. package/dist/{liquid-25b2a344.js → liquid-480c20a1.js} +1 -1
  35. package/dist/{mdx-f83b5b30.js → mdx-c6fdfbf4.js} +1 -1
  36. package/dist/{modalDemo-57ae81f4.js → modalDemo-6d508dff.js} +1 -1
  37. package/dist/{python-5382a4c3.js → python-a4041209.js} +1 -1
  38. package/dist/{razor-234ea655.js → razor-d1ca6284.js} +1 -1
  39. package/dist/style.css +1 -1
  40. package/dist/{tableSelectDemo-fdeea123.js → tableSelectDemo-2f5bbdca.js} +43 -43
  41. package/dist/{tableSelectDemo2-72697acb.js → tableSelectDemo2-6f8dcaf3.js} +34 -34
  42. package/dist/{tsMode-d587a279.js → tsMode-520d5a63.js} +1 -1
  43. package/dist/{typescript-32333669.js → typescript-8a46669a.js} +1 -1
  44. package/dist/{xml-37ab715f.js → xml-5f608c48.js} +1 -1
  45. package/dist/{yaml-a1bfc0e1.js → yaml-b8390428.js} +1 -1
  46. package/package.json +12 -12
  47. package/dist/Code-33eb170c.js +0 -5
  48. package/dist/Col-52a470cc.js +0 -5
  49. package/dist/FormPublic-e63cbff5.js +0 -5
  50. package/dist/GenerateForm-bc4f6fe7.js +0 -5
  51. package/dist/Grid-80928e3f.js +0 -5
  52. package/dist/SqlModule-86b3a68d.js +0 -5
  53. package/dist/Table-6e92c015.js +0 -5
  54. package/dist/childForm-cecede18.js +0 -5
@@ -1,35 +1,35 @@
1
- import { defineComponent as K, computed as p, ref as _, resolveComponent as n, openBlock as m, createElementBlock as f, createElementVNode as y, createVNode as l, withCtx as c, unref as v, isRef as T, createTextVNode as B, createCommentVNode as E } from "vue";
2
- import { c as L, a as R } from "./index-8ec1f145.js";
3
- import { t as z } from "./tableSelectOptions-97e674c2.js";
4
- const M = { class: "table-select-form" }, O = { class: "table-select-tool" }, P = { key: 0 }, U = ["onClick"], j = /* @__PURE__ */ K({
1
+ import { defineComponent as T, computed as p, ref as m, resolveComponent as n, openBlock as _, createElementBlock as f, createElementVNode as y, createVNode as l, withCtx as c, unref as v, isRef as B, createTextVNode as E, createCommentVNode as L } from "vue";
2
+ import { c as R, a as z } from "./index-fcf40126.js";
3
+ import { t as M } from "./tableSelectOptions-97e674c2.js";
4
+ const O = { class: "table-select-form" }, P = { class: "table-select-tool" }, U = { key: 0 }, j = ["onClick"], q = /* @__PURE__ */ T({
5
5
  __name: "tableSelectDemo",
6
6
  props: {
7
- ...z
7
+ ...M
8
8
  },
9
9
  emits: ["update:value", "rowChange"],
10
- setup(g, { emit: r }) {
11
- const d = g;
10
+ setup(g, { emit: k }) {
11
+ const r = g;
12
12
  let s = p({
13
13
  get() {
14
- return d.value;
14
+ return r.value;
15
15
  },
16
16
  set(t) {
17
- r("update:value", t);
17
+ d("update:value", t);
18
18
  }
19
19
  });
20
- const k = p(() => ({
21
- type: d.mode === "multiple" ? "checkbox" : "radio",
20
+ const d = k, C = p(() => ({
21
+ type: r.mode === "multiple" ? "checkbox" : "radio",
22
22
  selectedRowKeys: s.value,
23
23
  onChange: (t, e) => {
24
- s.value = t, r("rowChange", e);
24
+ s.value = t, d("rowChange", e);
25
25
  }
26
26
  }));
27
- let i = _({
27
+ let i = m({
28
28
  total: 0,
29
29
  current: 1,
30
30
  pageSize: 1
31
- }), a = _("");
32
- const C = [
31
+ }), a = m("");
32
+ const b = [
33
33
  {
34
34
  key: "1",
35
35
  name: "胡彦斌",
@@ -42,7 +42,7 @@ const M = { class: "table-select-form" }, O = { class: "table-select-tool" }, P
42
42
  age: 42,
43
43
  address: "西湖区湖底公园1号"
44
44
  }
45
- ], b = [
45
+ ], h = [
46
46
  {
47
47
  title: "姓名",
48
48
  dataIndex: "name",
@@ -64,18 +64,18 @@ const M = { class: "table-select-form" }, O = { class: "table-select-tool" }, P
64
64
  key: "action"
65
65
  }
66
66
  ];
67
- function h() {
67
+ function x() {
68
68
  }
69
- function x(t, e) {
69
+ function w(t, e) {
70
70
  i.value = t, e();
71
71
  }
72
- function w(t) {
72
+ function S(t) {
73
73
  }
74
- function S() {
74
+ function V() {
75
75
  s.value = [];
76
76
  }
77
- function V(t) {
78
- let e = L({
77
+ function I(t) {
78
+ let e = R({
79
79
  onOk: (u) => {
80
80
  e.setConfirmLoading(!0), setTimeout(() => {
81
81
  e.setConfirmLoading(!1), e.destroy();
@@ -84,25 +84,25 @@ const M = { class: "table-select-form" }, O = { class: "table-select-tool" }, P
84
84
  });
85
85
  }
86
86
  return (t, e) => {
87
- const u = n("a-input-search"), I = n("a-button"), N = n("a-space"), D = n("a-table");
88
- return m(), f("div", M, [
89
- y("div", O, [
90
- l(N, null, {
87
+ const u = n("a-input-search"), N = n("a-button"), D = n("a-space"), K = n("a-table");
88
+ return _(), f("div", O, [
89
+ y("div", P, [
90
+ l(D, null, {
91
91
  default: c(() => [
92
92
  l(u, {
93
93
  ref: "input",
94
94
  value: v(a),
95
- "onUpdate:value": e[0] || (e[0] = (o) => T(a) ? a.value = o : a = o),
95
+ "onUpdate:value": e[0] || (e[0] = (o) => B(a) ? a.value = o : a = o),
96
96
  placeholder: "请输入",
97
97
  style: { width: "200px" },
98
- onSearch: w
98
+ onSearch: S
99
99
  }, null, 8, ["value"]),
100
- l(I, {
100
+ l(N, {
101
101
  type: "primary",
102
- onClick: S
102
+ onClick: V
103
103
  }, {
104
104
  default: c(() => [
105
- B("重置")
105
+ E("重置")
106
106
  ]),
107
107
  _: 1
108
108
  })
@@ -110,21 +110,21 @@ const M = { class: "table-select-form" }, O = { class: "table-select-tool" }, P
110
110
  _: 1
111
111
  })
112
112
  ]),
113
- l(D, {
114
- columns: b,
115
- "data-source": C,
113
+ l(K, {
114
+ columns: h,
115
+ "data-source": b,
116
116
  pagination: v(i),
117
- "row-selection": k.value,
117
+ "row-selection": C.value,
118
118
  rowKey: t.keyName,
119
- onChange: e[1] || (e[1] = (o) => x(o, h)),
119
+ onChange: e[1] || (e[1] = (o) => w(o, x)),
120
120
  bordered: ""
121
121
  }, {
122
- bodyCell: c(({ column: o, record: q }) => [
123
- o.key == "action" ? (m(), f("span", P, [
122
+ bodyCell: c(({ column: o, record: A }) => [
123
+ o.key == "action" ? (_(), f("span", U, [
124
124
  y("a", {
125
- onClick: (A) => V()
126
- }, "测试", 8, U)
127
- ])) : E("", !0)
125
+ onClick: (F) => I()
126
+ }, "测试", 8, j)
127
+ ])) : L("", !0)
128
128
  ]),
129
129
  _: 1
130
130
  }, 8, ["pagination", "row-selection", "rowKey"])
@@ -132,7 +132,7 @@ const M = { class: "table-select-form" }, O = { class: "table-select-tool" }, P
132
132
  };
133
133
  }
134
134
  });
135
- const J = /* @__PURE__ */ R(j, [["__scopeId", "data-v-7ee731c7"]]);
135
+ const Q = /* @__PURE__ */ z(q, [["__scopeId", "data-v-7ee731c7"]]);
136
136
  export {
137
- J as default
137
+ Q as default
138
138
  };
@@ -1,34 +1,34 @@
1
- import { defineComponent as C, computed as u, ref as p, resolveComponent as n, openBlock as S, createElementBlock as V, createElementVNode as N, createVNode as l, withCtx as i, unref as m, isRef as I, createTextVNode as K } from "vue";
2
- import { t as B } from "./tableSelectOptions-97e674c2.js";
3
- const D = { class: "table-select-form" }, E = { class: "table-select-tool" }, z = /* @__PURE__ */ C({
1
+ import { defineComponent as S, computed as u, ref as i, resolveComponent as n, openBlock as V, createElementBlock as N, createElementVNode as I, createVNode as l, withCtx as p, unref as m, isRef as K, createTextVNode as B } from "vue";
2
+ import { t as D } from "./tableSelectOptions-97e674c2.js";
3
+ const E = { class: "table-select-form" }, R = { class: "table-select-tool" }, P = /* @__PURE__ */ S({
4
4
  __name: "tableSelectDemo2",
5
5
  props: {
6
- ...B
6
+ ...D
7
7
  },
8
8
  emits: ["update:value", "rowChange"],
9
- setup(_, { emit: s }) {
10
- const r = _;
11
- let c = u({
9
+ setup(_, { emit: g }) {
10
+ const s = _;
11
+ let r = u({
12
12
  get() {
13
- return r.value;
13
+ return s.value;
14
14
  },
15
15
  set(t) {
16
- s("update:value", t);
16
+ c("update:value", t);
17
17
  }
18
18
  });
19
- const g = u(() => ({
20
- type: r.mode === "multiple" ? "checkbox" : "radio",
21
- selectedRowKeys: c.value,
19
+ const c = g, f = u(() => ({
20
+ type: s.mode === "multiple" ? "checkbox" : "radio",
21
+ selectedRowKeys: r.value,
22
22
  onChange: (t, e) => {
23
- c.value = t, s("rowChange", e);
23
+ r.value = t, c("rowChange", e);
24
24
  }
25
25
  }));
26
- let a = p(""), d = p({
26
+ let a = i(""), d = i({
27
27
  total: 0,
28
28
  current: 1,
29
29
  pageSize: 1
30
30
  });
31
- const f = [
31
+ const y = [
32
32
  {
33
33
  key: "1",
34
34
  name2: "胡彦斌",
@@ -47,7 +47,7 @@ const D = { class: "table-select-form" }, E = { class: "table-select-tool" }, z
47
47
  age2: 4,
48
48
  address2: "西湖区湖底公园1号"
49
49
  }
50
- ], y = [
50
+ ], v = [
51
51
  {
52
52
  title: "姓名2",
53
53
  dataIndex: "name2",
@@ -64,27 +64,27 @@ const D = { class: "table-select-form" }, E = { class: "table-select-tool" }, z
64
64
  key: "address2"
65
65
  }
66
66
  ];
67
- function v() {
67
+ function b() {
68
68
  }
69
- function b(t, e) {
69
+ function h(t, e) {
70
70
  d.value = t, e();
71
71
  }
72
72
  return (t, e) => {
73
- const h = n("a-input-search"), k = n("a-button"), w = n("a-space"), x = n("a-table");
74
- return S(), V("div", D, [
75
- N("div", E, [
76
- l(w, null, {
77
- default: i(() => [
78
- l(h, {
73
+ const k = n("a-input-search"), w = n("a-button"), x = n("a-space"), C = n("a-table");
74
+ return V(), N("div", E, [
75
+ I("div", R, [
76
+ l(x, null, {
77
+ default: p(() => [
78
+ l(k, {
79
79
  ref: "input",
80
80
  value: m(a),
81
- "onUpdate:value": e[0] || (e[0] = (o) => I(a) ? a.value = o : a = o),
81
+ "onUpdate:value": e[0] || (e[0] = (o) => K(a) ? a.value = o : a = o),
82
82
  placeholder: "请输入",
83
83
  style: { width: "200px" }
84
84
  }, null, 8, ["value"]),
85
- l(k, { type: "primary" }, {
86
- default: i(() => [
87
- K("重置")
85
+ l(w, { type: "primary" }, {
86
+ default: p(() => [
87
+ B("重置")
88
88
  ]),
89
89
  _: 1
90
90
  })
@@ -92,13 +92,13 @@ const D = { class: "table-select-form" }, E = { class: "table-select-tool" }, z
92
92
  _: 1
93
93
  })
94
94
  ]),
95
- l(x, {
96
- columns: y,
97
- "data-source": f,
95
+ l(C, {
96
+ columns: v,
97
+ "data-source": y,
98
98
  pagination: m(d),
99
- "row-selection": g.value,
99
+ "row-selection": f.value,
100
100
  rowKey: t.keyName,
101
- onChange: e[1] || (e[1] = (o) => b(o, v)),
101
+ onChange: e[1] || (e[1] = (o) => h(o, b)),
102
102
  bordered: ""
103
103
  }, null, 8, ["pagination", "row-selection", "rowKey"])
104
104
  ]);
@@ -106,5 +106,5 @@ const D = { class: "table-select-form" }, E = { class: "table-select-tool" }, z
106
106
  }
107
107
  });
108
108
  export {
109
- z as default
109
+ P as default
110
110
  };
@@ -1,7 +1,7 @@
1
1
  var M = Object.defineProperty;
2
2
  var R = (e, t, r) => t in e ? M(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var _ = (e, t, r) => (R(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { w as K, t as E } from "./index-8ec1f145.js";
4
+ import { w as K, t as E } from "./index-fcf40126.js";
5
5
  import "vue";
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- import { t as a } from "./index-8ec1f145.js";
1
+ import { t as a } from "./index-fcf40126.js";
2
2
  import "vue";
3
3
  /*!-----------------------------------------------------------------------------
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- import { t as m } from "./index-8ec1f145.js";
1
+ import { t as m } from "./index-fcf40126.js";
2
2
  import "vue";
3
3
  /*!-----------------------------------------------------------------------------
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- import { t as i } from "./index-8ec1f145.js";
1
+ import { t as i } from "./index-fcf40126.js";
2
2
  import "vue";
3
3
  /*!-----------------------------------------------------------------------------
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "form-imagining",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "type": "module",
5
5
  "license": "ISC",
6
6
  "main": "./dist/form-imagining.umd.cjs",
@@ -33,23 +33,23 @@
33
33
  "preview": "vite preview"
34
34
  },
35
35
  "dependencies": {
36
- "ant-design-vue": "3.2.20",
37
- "axios": "^1.2.1",
36
+ "ant-design-vue": "4.0.7",
37
+ "axios": "^1.6.2",
38
38
  "monaco-editor": "^0.44.0",
39
- "pinia": "^2.1.6",
39
+ "pinia": "^2.1.7",
40
40
  "vite-plugin-monaco-editor": "^1.1.0",
41
- "vue": "^3.3.4",
41
+ "vue": "^3.3.8",
42
42
  "vue-draggable-next": "^2.2.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@ant-design/icons-vue": "^6.1.0",
46
- "@types/node": "^20.8.4",
47
- "@vitejs/plugin-vue": "^4.4.0",
48
- "fast-glob": "^3.2.12",
45
+ "@ant-design/icons-vue": "^7.0.1",
46
+ "@types/node": "^20.9.0",
47
+ "@vitejs/plugin-vue": "^4.4.1",
48
+ "fast-glob": "^3.3.2",
49
49
  "less": "^4.2.0",
50
- "typescript": "^5.0.2",
51
- "vite": "^4.4.11",
50
+ "typescript": "^5.2.2",
51
+ "vite": "^4.5.0",
52
52
  "vite-plugin-svg-icons": "^2.0.1",
53
- "vue-tsc": "^1.8.5"
53
+ "vue-tsc": "^1.8.22"
54
54
  }
55
55
  }
@@ -1,5 +0,0 @@
1
- import { r as a } from "./index-8ec1f145.js";
2
- import "vue";
3
- export {
4
- a as default
5
- };
@@ -1,5 +0,0 @@
1
- import { h as m } from "./index-8ec1f145.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { d as m } from "./index-8ec1f145.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { e as m } from "./index-8ec1f145.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { j as m } from "./index-8ec1f145.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { l as m } from "./index-8ec1f145.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { k as m } from "./index-8ec1f145.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { _ as m } from "./index-8ec1f145.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };