form-imagining 0.0.88 → 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.
- package/README.md +46 -0
- package/dist/{App-DCe93QuA.js → App-Cru3EpxY.js} +7 -7
- package/dist/Col-BxoERGvA.js +4 -0
- package/dist/Collapse-BJPAiudO.js +4 -0
- package/dist/{Demo-QuNC6Jez.js → Demo-Dd4KITBl.js} +1 -1
- package/dist/FX-B_ZnFGKn.js +4 -0
- package/dist/{FormGridCopy-CbppH22T.js → FormGridCopy-COa2RxuA.js} +22 -22
- package/dist/GenerateForm-oMBW1f0f.js +4 -0
- package/dist/GenerateReport-BrOqOHrw.js +4 -0
- package/dist/{HelloWorld-CFTXUkpf.js → HelloWorld-CzsR_iip.js} +1 -1
- package/dist/Input-/345/210/240/351/231/{244-DSllL8JF.js → 244-C46K2HDQ.js} +3 -3
- package/dist/Label-/345/210/240/351/231/{244-OFdTT4YL.js → 244-CCvi3haS.js} +3 -3
- package/dist/{Login-rxagNMBu.js → Login-BDPZMHno.js} +1 -1
- package/dist/ReportModule-BWuDqfic.js +4 -0
- package/dist/SqlModule-B_fjLWBE.js +4 -0
- package/dist/TableBtnModal-B06Pnb8W.js +4 -0
- package/dist/childForm-fF5X5R_U.js +4 -0
- package/dist/{cssMode-jUhNxLRZ.js → cssMode-BsLC2cZT.js} +1 -1
- package/dist/form-imagining.js +1 -1
- package/dist/form-imagining.umd.cjs +265 -192
- package/dist/{formTest-BjbW-CM5.js → formTest-CfE6b9Xo.js} +1 -1
- package/dist/{freemarker2-BhC_iakC.js → freemarker2-BcS_OgAT.js} +1 -1
- package/dist/{handlebars-thczl_a1.js → handlebars-BctqNcrV.js} +1 -1
- package/dist/{html-CvSpNyRH.js → html-C8jQ8cT7.js} +1 -1
- package/dist/{htmlMode-CTNp75QK.js → htmlMode-CWeJZf3H.js} +19 -19
- package/dist/{index-DmcEaq8X.js → index-DFwlRs_Q.js} +9448 -7342
- package/dist/{index-DL00eDdU.js → index-DnNw_VOk.js} +1 -1
- package/dist/{index-CPHAkCmw.js → index-DtFn13W_.js} +1 -1
- package/dist/{javascript-B6IG0G7V.js → javascript-CT9gYXDa.js} +1 -1
- package/dist/{jsonMode-C31f9yzX.js → jsonMode-D_Bfm6Mt.js} +1 -1
- package/dist/{liquid-BoPwLItU.js → liquid-DJptkA_H.js} +1 -1
- package/dist/{mdx-VkaOrED-.js → mdx-D0tnM7H6.js} +1 -1
- package/dist/{python-BwMQqCOu.js → python-C6qXY_q2.js} +1 -1
- package/dist/{razor-M09uOIoB.js → razor-BhZnB2dd.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tableSelectDemo-BkSF3sTU.js → tableSelectDemo-BwgSR63e.js} +1 -1
- package/dist/{tableSelectDemo2-Bht4XNZO.js → tableSelectDemo2-D6nXhO4o.js} +1 -1
- package/dist/{tsMode-CsDKYcQS.js → tsMode-BUt0abuw.js} +1 -1
- package/dist/{typescript-DAF0VgiQ.js → typescript-BkRV04ys.js} +1 -1
- package/dist/{xml-CG-hsSGd.js → xml-CB3UwgV7.js} +1 -1
- package/dist/{yaml-DlcJzB7n.js → yaml-DRs23ZAj.js} +1 -1
- package/package.json +2 -2
- package/dist/Ceshi-C9SWDGiA.js +0 -192
- package/dist/Ceshi2-C4AnrfSl.js +0 -9
- package/dist/Col-BJ8CjxvD.js +0 -4
- package/dist/Collapse-1mV-fxMB.js +0 -4
- package/dist/FX-B1a7ByE3.js +0 -4
- package/dist/GenerateForm-sZ14nQ32.js +0 -4
- package/dist/GenerateReport-R0CcN7sn.js +0 -4
- package/dist/ReportModule-cMyTxzTP.js +0 -4
- package/dist/SqlModule-8QR2_duo.js +0 -4
- package/dist/TableBtnModal-DJLIy8rO.js +0 -4
- package/dist/childForm-COSuw1jC.js +0 -4
- package/dist/monacoeditorwork/css.worker.bundle.js +0 -52773
- package/dist/monacoeditorwork/editor.worker.bundle.js +0 -12830
- package/dist/monacoeditorwork/html.worker.bundle.js +0 -28973
- package/dist/monacoeditorwork/json.worker.bundle.js +0 -20631
- 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,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as o, onMounted as r, resolveComponent as t, openBlock as n, createBlock as a, unref as c, withCtx as
|
|
2
|
-
import { l as
|
|
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-DFwlRs_Q.js";
|
|
3
3
|
const g = /* @__PURE__ */ o({
|
|
4
4
|
__name: "App",
|
|
5
|
-
setup(
|
|
5
|
+
setup(i) {
|
|
6
6
|
return r(() => {
|
|
7
|
-
}), (
|
|
7
|
+
}), (m, s) => {
|
|
8
8
|
const e = t("a-config-provider");
|
|
9
9
|
return n(), a(e, {
|
|
10
|
-
locale: c(
|
|
10
|
+
locale: c(_),
|
|
11
11
|
theme: { token: { fontSize: 13, borderRadius: 5, colorPrimary: "#1890ff" } }
|
|
12
12
|
}, {
|
|
13
|
-
default:
|
|
14
|
-
|
|
13
|
+
default: p(() => [
|
|
14
|
+
l(f)
|
|
15
15
|
]),
|
|
16
16
|
_: 1
|
|
17
17
|
}, 8, ["locale"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onBeforeUpdate, openBlock, createBlock, unref } from "vue";
|
|
2
|
-
import {
|
|
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: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
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__ */
|
|
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 =
|
|
35
|
-
|
|
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
|
|
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
|
|
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
|
|
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"),
|
|
80
|
+
const d = h("a-col"), v = h("a-row"), B = h("a-form");
|
|
81
81
|
return o(), u("div", null, [
|
|
82
|
-
|
|
82
|
+
W("div", Q, [
|
|
83
83
|
e.activeIndex == e.index ? (o(), u("div", T, [
|
|
84
|
-
r(f(
|
|
84
|
+
r(f(q), { style: { padding: "6px" } })
|
|
85
85
|
])) : x("", !0)
|
|
86
86
|
]),
|
|
87
|
-
r(
|
|
88
|
-
style:
|
|
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:
|
|
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(
|
|
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(
|
|
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) =>
|
|
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(
|
|
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: (
|
|
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) =>
|
|
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) =>
|
|
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__ */
|
|
165
|
+
}), te = /* @__PURE__ */ H(Z, [["__scopeId", "data-v-b6a6a4fd"]]);
|
|
166
166
|
export {
|
|
167
167
|
te as default
|
|
168
168
|
};
|
|
@@ -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 {
|
|
3
|
-
const
|
|
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
|
-
|
|
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 {
|
|
3
|
-
const
|
|
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
|
-
|
|
91
|
+
L as default
|
|
92
92
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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)
|
package/dist/form-imagining.js
CHANGED