form-imagining 0.0.88-9 → 0.0.89

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/README.md +46 -0
  2. package/dist/{App-CYdcBQc5.js → App-Cru3EpxY.js} +1 -1
  3. package/dist/Col-BxoERGvA.js +4 -0
  4. package/dist/Collapse-BJPAiudO.js +4 -0
  5. package/dist/{Demo-BRkc392z.js → Demo-Dd4KITBl.js} +1 -1
  6. package/dist/FX-B_ZnFGKn.js +4 -0
  7. package/dist/{FormGridCopy-83XANKGo.js → FormGridCopy-COa2RxuA.js} +22 -22
  8. package/dist/GenerateForm-oMBW1f0f.js +4 -0
  9. package/dist/GenerateReport-BrOqOHrw.js +4 -0
  10. package/dist/{HelloWorld-DSes2WOf.js → HelloWorld-CzsR_iip.js} +1 -1
  11. package/dist/Input-/345/210/240/351/231/{244-6sVGsbuA.js → 244-C46K2HDQ.js} +3 -3
  12. package/dist/Label-/345/210/240/351/231/{244-CG7lbkD1.js → 244-CCvi3haS.js} +3 -3
  13. package/dist/{Login-BeGeUnGw.js → Login-BDPZMHno.js} +1 -1
  14. package/dist/ReportModule-BWuDqfic.js +4 -0
  15. package/dist/SqlModule-B_fjLWBE.js +4 -0
  16. package/dist/TableBtnModal-B06Pnb8W.js +4 -0
  17. package/dist/childForm-fF5X5R_U.js +4 -0
  18. package/dist/{cssMode-D-cVAKPP.js → cssMode-BsLC2cZT.js} +1 -1
  19. package/dist/form-imagining.js +1 -1
  20. package/dist/form-imagining.umd.cjs +228 -174
  21. package/dist/{formTest-B7hvz9Zt.js → formTest-CfE6b9Xo.js} +1 -1
  22. package/dist/{freemarker2-CP8-ndg4.js → freemarker2-BcS_OgAT.js} +1 -1
  23. package/dist/{handlebars-C0rrCO2k.js → handlebars-BctqNcrV.js} +1 -1
  24. package/dist/{html-C4hXs8Qy.js → html-C8jQ8cT7.js} +1 -1
  25. package/dist/{htmlMode-CCiecJai.js → htmlMode-CWeJZf3H.js} +19 -19
  26. package/dist/{index-iaqC_N6P.js → index-DFwlRs_Q.js} +9357 -7302
  27. package/dist/{index-BAgmNHx3.js → index-DnNw_VOk.js} +1 -1
  28. package/dist/{index-B-EOnIbQ.js → index-DtFn13W_.js} +1 -1
  29. package/dist/{javascript-DdlrTjLh.js → javascript-CT9gYXDa.js} +1 -1
  30. package/dist/{jsonMode-Zj1pMKwv.js → jsonMode-D_Bfm6Mt.js} +1 -1
  31. package/dist/{liquid-Ct4L4rgX.js → liquid-DJptkA_H.js} +1 -1
  32. package/dist/{mdx-C6wWg9Av.js → mdx-D0tnM7H6.js} +1 -1
  33. package/dist/{python-BfmJZs6s.js → python-C6qXY_q2.js} +1 -1
  34. package/dist/{razor-onpO2L8O.js → razor-BhZnB2dd.js} +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/{tableSelectDemo-DKXd-7mn.js → tableSelectDemo-BwgSR63e.js} +1 -1
  37. package/dist/{tableSelectDemo2-Bux8Y5qP.js → tableSelectDemo2-D6nXhO4o.js} +1 -1
  38. package/dist/{tsMode-zW0-V498.js → tsMode-BUt0abuw.js} +1 -1
  39. package/dist/{typescript-crgM1CMc.js → typescript-BkRV04ys.js} +1 -1
  40. package/dist/{xml-BptAxL1W.js → xml-CB3UwgV7.js} +1 -1
  41. package/dist/{yaml-CJ187qdU.js → yaml-DRs23ZAj.js} +1 -1
  42. package/package.json +2 -2
  43. package/dist/Ceshi-g7enR1Uc.js +0 -192
  44. package/dist/Ceshi2-CnTyiWcR.js +0 -9
  45. package/dist/Col-CyOVQMeJ.js +0 -4
  46. package/dist/Collapse-BF1Iy9yO.js +0 -4
  47. package/dist/FX-BFD_Ixcb.js +0 -4
  48. package/dist/GenerateForm-00u7ZNf1.js +0 -4
  49. package/dist/GenerateReport-1kvGmy3C.js +0 -4
  50. package/dist/ReportModule-Dtu08gtt.js +0 -4
  51. package/dist/SqlModule-Bm2pqY7i.js +0 -4
  52. package/dist/TableBtnModal-DoQHYwx3.js +0 -4
  53. package/dist/childForm-Dyn6UjSq.js +0 -4
  54. package/dist/monacoeditorwork/css.worker.bundle.js +0 -52773
  55. package/dist/monacoeditorwork/editor.worker.bundle.js +0 -12830
  56. package/dist/monacoeditorwork/html.worker.bundle.js +0 -28973
  57. package/dist/monacoeditorwork/json.worker.bundle.js +0 -20631
  58. package/dist/monacoeditorwork/ts.worker.bundle.js +0 -255664
package/README.md CHANGED
@@ -1,21 +1,63 @@
1
1
  # Vue 3 + TypeScript + Vite 基础框架
2
2
  `
3
3
  提供基础的前端开发框架、在线表单FormImagining、CImaginForm 表单设计工具、CImaginReport报表设计工具
4
+
4
5
  ##更新日志
6
+
7
+ 0.0.88-30
8
+ `2025-02-10`
9
+ 🐞修复段落组件中的文本组件设置上下边距不生效问题
10
+
11
+ 0.0.88-29
12
+ `2025-02-10`
13
+ 🐞修复段落组件中的文本组件生成代码后打印样式错乱问题
14
+
15
+ 0.0.88-28
16
+ `2025-01-23`
17
+ 💄优化段落组件,支持自定义从左到右布局中子组件宽度
18
+
19
+ 0.0.88-27
20
+ `2025-01-23`
21
+ 🆕段落组件中新增字体大小设置
22
+ 💄优化文本组件字体大小取值
23
+ 优先级:1、文本样式扩展中设置的大小 2、文本组件属性中设置的大小 3、段落组件中设置的大小 4、默认值14px
24
+
25
+ 0.0.88-26
26
+ `2025-01-22`
27
+ 💄优化单选框组在括号勾选模式时支持空白自填选项
28
+
29
+ 0.0.88-16
30
+ `2025-01-20`
31
+ 🆕文本生成目录,支持文本首行缩进
32
+
33
+ 0.0.88-15
34
+ `2025-01-16`
35
+ 🆕新增表格合并行
36
+ 🆕表格列配置新增支持分类字典
37
+
38
+ 0.0.88-11
39
+ `2025-01-15`
40
+ 🆕新增段落布局组件
41
+ 🆕扩展单选框组支持中括号勾选样式
42
+
5
43
  0.0.45
6
44
  🆕vue文件生成
45
+
7
46
  0.0.44
8
47
  `2023-12-2`
9
48
  🆕下拉框组件新增同步更新属性
49
+
10
50
  0.0.21
11
51
  `2023-12-1`
12
52
  🆕新增报表设计组件CImageinReport
13
53
  🆕下拉框增加联动属性配置
54
+
14
55
  0.0.16
15
56
  `2023-11-14`
16
57
  🐞修复表下拉框组件属性,支持修改标题
17
58
  💄栅格组件优化占据的列数,最小为1
18
59
  🆕表单新增 表单文本宽度 属性
60
+
19
61
  0.0.7
20
62
  1. 增加了isList 区别绑定的数据源类型
21
63
  2. 优化样式
@@ -27,18 +69,22 @@
27
69
  1. 栅格组件增加删除
28
70
  2. 日期组件增加 value-format属性
29
71
  3. 代码生成模板增加下拉框、单选按钮、复选框、下拉树等;优化文本域模块;
72
+
30
73
  0.0.12
31
74
  1. 时间、下拉框扩展属性
32
75
  2. 下拉框支持多选
33
76
  3. 下拉级联组件
34
77
  4. 组件优化:input、文本域增加只读;绑定查询时,联动绑定更新;col里面的组件支持复制;
78
+
35
79
  0.0.13
36
80
  1. table组件实现行编辑
37
81
  2. 标题组件-新增内置样式
82
+
38
83
  0.0.14
39
84
  1. 表下拉、tab布局、子页面
40
85
  2. 日期保存 标题样式排列 按钮支持图标选择
41
86
  3. 数据源更换
87
+
42
88
  0.0.15
43
89
  1. tab组件支持栅格布局
44
90
  2. 文本框、文本域增加占位符
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, onMounted as r, resolveComponent as t, openBlock as n, createBlock as a, unref as c, withCtx as p, createVNode as l } from "vue";
2
- import { l as _, R as f } from "./index-iaqC_N6P.js";
2
+ import { l as _, R as f } from "./index-DFwlRs_Q.js";
3
3
  const g = /* @__PURE__ */ o({
4
4
  __name: "App",
5
5
  setup(i) {
@@ -0,0 +1,4 @@
1
+ import { k as f } from "./index-DFwlRs_Q.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { m } from "./index-DFwlRs_Q.js";
2
+ export {
3
+ m as default
4
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, onBeforeUpdate, openBlock, createBlock, unref } from "vue";
2
- import { j as useFormStore, k as generateReportHtml, p as paginations, m as dataSource, n as initTable, q as defHttp } from "./index-iaqC_N6P.js";
2
+ import { b as useFormStore, g as generateReportHtml, p as paginations, d as dataSource, i as initTable, e as defHttp } from "./index-DFwlRs_Q.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "Demo",
5
5
  props: {
@@ -0,0 +1,4 @@
1
+ import { n as f } from "./index-DFwlRs_Q.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,5 +1,5 @@
1
- import { defineComponent as j, ref as z, watch as J, resolveComponent as h, openBlock as o, createElementBlock as u, createElementVNode as L, createVNode as r, unref as f, createCommentVNode as x, normalizeStyle as I, withCtx as g, Fragment as C, renderList as k, createBlock as w, normalizeClass as b } from "vue";
2
- import { j as W, D as A, V as H, E as K, G as P, H as D, I as S, M as R, _ as q } from "./index-iaqC_N6P.js";
1
+ import { defineComponent as z, ref as J, watch as L, resolveComponent as h, openBlock as o, createElementBlock as u, createElementVNode as W, createVNode as r, unref as f, createCommentVNode as x, normalizeStyle as C, withCtx as g, Fragment as I, renderList as k, createBlock as w, normalizeClass as b } from "vue";
2
+ import { b as j, D as q, V as A, q as K, C as P, s as D, v as S, M as R, _ as H } from "./index-DFwlRs_Q.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__ */ j({
12
+ }, Z = /* @__PURE__ */ z({
13
13
  __name: "FormGridCopy",
14
14
  props: {
15
15
  list: {
@@ -31,8 +31,8 @@ const Q = { class: "move" }, T = {
31
31
  },
32
32
  emits: ["childConfig", "index"],
33
33
  setup(e, { emit: N }) {
34
- const O = W(), a = e, i = z("-1");
35
- J(
34
+ const O = j(), a = e, i = J("-1");
35
+ L(
36
36
  () => a.activeIndex,
37
37
  (t, n) => {
38
38
  i.value = t;
@@ -45,17 +45,17 @@ const Q = { class: "move" }, T = {
45
45
  function $() {
46
46
  i.value = "-1", console.log("开始拖拽");
47
47
  }
48
- function E(t, n) {
48
+ function M(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 M(t) {
51
+ function V(t) {
52
52
  const n = JSON.parse(JSON.stringify(t));
53
53
  if (a.data.columns && a.data.columns.length > 0) {
54
54
  let d = a.data.columns.findIndex((v) => v.key == t.key);
55
55
  d > -1 && (n.key = S(), n.id = S(), a.data.columns.splice(d + 1, 0, n));
56
56
  }
57
57
  }
58
- function V(t) {
58
+ function E(t) {
59
59
  let n = a.data.columns.findIndex((d) => d.key == t.key);
60
60
  n > -1 && a.data.columns.splice(n, 1);
61
61
  }
@@ -77,15 +77,15 @@ const Q = { class: "move" }, T = {
77
77
  }
78
78
  }
79
79
  return (t, n) => {
80
- const d = h("a-col"), v = h("a-row"), G = h("a-form");
80
+ const d = h("a-col"), v = h("a-row"), B = h("a-form");
81
81
  return o(), u("div", null, [
82
- L("div", Q, [
82
+ W("div", Q, [
83
83
  e.activeIndex == e.index ? (o(), u("div", T, [
84
- r(f(A), { style: { padding: "6px" } })
84
+ r(f(q), { style: { padding: "6px" } })
85
85
  ])) : x("", !0)
86
86
  ]),
87
- r(G, {
88
- style: I({ padding: `${e.data.top || 0}px ${e.data.right || 0}px ${e.data.bottom || 0}px ${e.data.left || 0}px` }),
87
+ r(B, {
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
89
  "label-col": { style: { width: f(O).formData.config.labelWidth + "px" } },
90
90
  labelWrap: !0
91
91
  }, {
@@ -93,17 +93,17 @@ const Q = { class: "move" }, T = {
93
93
  r(v, {
94
94
  gutter: [e.data.options.gutter, 8],
95
95
  tyle: "flex",
96
- style: I({ marginLeft: -e.data.options.gutter / 2 + "px", marginRight: -e.data.options.gutter / 2 + "px" })
96
+ style: C({ marginLeft: -e.data.options.gutter / 2 + "px", marginRight: -e.data.options.gutter / 2 + "px" })
97
97
  }, {
98
98
  default: g(() => [
99
- (o(!0), u(C, null, k(e.data.columns, (l, c) => (o(), w(d, {
99
+ (o(!0), u(I, null, k(e.data.columns, (l, c) => (o(), w(d, {
100
100
  class: b(["widget-col-item", { active: i.value == "col-" + e.index + "-" + c }]),
101
101
  span: l.options.span,
102
102
  offset: l.options.offset,
103
103
  onMousedown: (s) => p(l, "col-" + e.index + "-" + c, s)
104
104
  }, {
105
105
  default: g(() => [
106
- r(f(H), {
106
+ r(f(A), {
107
107
  class: "widget-col-list",
108
108
  style: { "min-height": "50px" },
109
109
  "ghost-class": "ghost",
@@ -112,7 +112,7 @@ const Q = { class: "move" }, T = {
112
112
  "chosen-class": "chosenClass2",
113
113
  "drag-class": "dragClass1",
114
114
  onStart: $,
115
- onEnd: (s) => E(s, c),
115
+ onEnd: (s) => M(s, c),
116
116
  group: "itxst",
117
117
  sort: !1,
118
118
  animation: "300",
@@ -120,9 +120,9 @@ const Q = { class: "move" }, T = {
120
120
  itemKey: ""
121
121
  }, {
122
122
  default: g(() => [
123
- (o(!0), u(C, null, k(l.list, (s, y) => (o(), u("div", {
123
+ (o(!0), u(I, null, k(l.list, (s, y) => (o(), u("div", {
124
124
  class: b(["widget-view", { active: i.value == e.index + "-" + c + "-" + y }]),
125
- onMousedown: (B) => p(s, e.index + "-" + c + "-" + y, B)
125
+ onMousedown: (G) => p(s, e.index + "-" + c + "-" + y, G)
126
126
  }, [
127
127
  r(K, {
128
128
  data: s,
@@ -137,11 +137,11 @@ const Q = { class: "move" }, T = {
137
137
  e.activeIndex === "col-" + e.index + "-" + c ? (o(), u("div", X, [
138
138
  r(f(P), {
139
139
  style: { padding: "3px 5px" },
140
- onClick: (s) => M(l)
140
+ onClick: (s) => V(l)
141
141
  }, null, 8, ["onClick"]),
142
142
  e.data.columns.length !== 1 ? (o(), w(f(D), {
143
143
  key: 0,
144
- onClick: (s) => V(l)
144
+ onClick: (s) => E(l)
145
145
  }, null, 8, ["onClick"])) : x("", !0)
146
146
  ])) : x("", !0)
147
147
  ]),
@@ -162,7 +162,7 @@ const Q = { class: "move" }, T = {
162
162
  ]);
163
163
  };
164
164
  }
165
- }), te = /* @__PURE__ */ q(Z, [["__scopeId", "data-v-b6a6a4fd"]]);
165
+ }), te = /* @__PURE__ */ H(Z, [["__scopeId", "data-v-b6a6a4fd"]]);
166
166
  export {
167
167
  te as default
168
168
  };
@@ -0,0 +1,4 @@
1
+ import { f } from "./index-DFwlRs_Q.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { h as f } from "./index-DFwlRs_Q.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { _ as e } from "./index-iaqC_N6P.js";
1
+ import { _ as e } from "./index-DFwlRs_Q.js";
2
2
  const r = {};
3
3
  function o(c, t) {
4
4
  return " hello 你好 ";
@@ -1,6 +1,6 @@
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 { j as c } from "./index-iaqC_N6P.js";
3
- const x = /* @__PURE__ */ i({
2
+ import { b as c } from "./index-DFwlRs_Q.js";
3
+ const s = /* @__PURE__ */ i({
4
4
  __name: "Input-删除",
5
5
  props: {
6
6
  configData: {
@@ -83,5 +83,5 @@ const x = /* @__PURE__ */ i({
83
83
  }
84
84
  });
85
85
  export {
86
- x as default
86
+ s as default
87
87
  };
@@ -1,6 +1,6 @@
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 { j as U } from "./index-iaqC_N6P.js";
3
- const F = /* @__PURE__ */ _({
2
+ import { b as U } from "./index-DFwlRs_Q.js";
3
+ const L = /* @__PURE__ */ _({
4
4
  __name: "Label-删除",
5
5
  props: {
6
6
  configData: {
@@ -88,5 +88,5 @@ const F = /* @__PURE__ */ _({
88
88
  }
89
89
  });
90
90
  export {
91
- F as default
91
+ L as default
92
92
  };
@@ -1,4 +1,4 @@
1
- import { _ as r } from "./index-iaqC_N6P.js";
1
+ import { _ as r } from "./index-DFwlRs_Q.js";
2
2
  const c = {};
3
3
  function e(n, t) {
4
4
  return "我是登录页";
@@ -0,0 +1,4 @@
1
+ import { x as f } from "./index-DFwlRs_Q.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { w as f } from "./index-DFwlRs_Q.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { o } from "./index-DFwlRs_Q.js";
2
+ export {
3
+ o as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { a as f } from "./index-DFwlRs_Q.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { L as et } from "./index-iaqC_N6P.js";
1
+ import { y as et } from "./index-DFwlRs_Q.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
@@ -1,4 +1,4 @@
1
- import { Q as r, O as t, P as o, k as m } from "./index-iaqC_N6P.js";
1
+ import { E as r, A as t, B as o, g as m } from "./index-DFwlRs_Q.js";
2
2
  export {
3
3
  r as default,
4
4
  t as generateFormCode,