form-imagining 0.0.87-2 → 0.0.87-2-sz
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 +10 -0
- package/dist/{App-CgJghtz0.js → App-DHDnO4pB.js} +1 -1
- package/dist/Col-CENgaBWP.js +4 -0
- package/dist/Collapse-CXiI-huV.js +4 -0
- package/dist/{Demo-B66N3W7J.js → Demo-BhIe_KPj.js} +1 -1
- package/dist/FX-CXlZ4Tbb.js +4 -0
- package/dist/{FormGridCopy-B4ndgErS.js → FormGridCopy-CFYtZ-XZ.js} +22 -22
- package/dist/GenerateForm-yQV5jFGG.js +4 -0
- package/dist/GenerateReport-CKYXWmwY.js +4 -0
- package/dist/{HelloWorld-Cx8dBSVj.js → HelloWorld-BvaFxQFG.js} +1 -1
- package/dist/Input-/345/210/240/351/231/{244-Cot8p-Jz.js → 244-CRLQUA_P.js} +1 -1
- package/dist/Label-/345/210/240/351/231/{244-Dpewd6E4.js → 244-cL9gO0Nr.js} +3 -3
- package/dist/{Login-zz8KdVVj.js → Login-CZ_A72pi.js} +1 -1
- package/dist/ReportModule-Dw-dmL47.js +4 -0
- package/dist/SqlModule-DHWEfzbX.js +4 -0
- package/dist/TableBtnModal-DgxAUWHl.js +4 -0
- package/dist/childForm-B9mq76mn.js +4 -0
- package/dist/{cssMode-CpJASuAd.js → cssMode-DBgZ3Zqf.js} +1 -1
- package/dist/form-imagining.js +1 -1
- package/dist/form-imagining.umd.cjs +173 -169
- package/dist/{formTest-DnfzHKhM.js → formTest-F8prZPzc.js} +6 -6
- package/dist/{freemarker2-Ce44iD-D.js → freemarker2-Clv2eS2b.js} +1 -1
- package/dist/{handlebars-qua2qtVR.js → handlebars-ClLZGMnN.js} +1 -1
- package/dist/{html-DuYWVcEk.js → html-Bh9Meipx.js} +1 -1
- package/dist/{htmlMode-BjMOZKns.js → htmlMode-DUd9p5vq.js} +19 -19
- package/dist/{index-JA_xbkgs.js → index-B84f_0lp.js} +4907 -4921
- package/dist/{index-B_0wLfRW.js → index-ClS2B5B-.js} +1 -1
- package/dist/{index-Z7O_gHG3.js → index-CxVp6RLV.js} +1 -1
- package/dist/{javascript-DegvRGLK.js → javascript-CFhtAHq2.js} +1 -1
- package/dist/json/gbhy.json +13581 -13581
- package/dist/{jsonMode-Dtb4yl_8.js → jsonMode-DhNZoGQV.js} +1 -1
- package/dist/{liquid-BTWB966Q.js → liquid-Bmkw49XE.js} +1 -1
- package/dist/{mdx-DiOjZ5IO.js → mdx-BXyr2Oyi.js} +1 -1
- package/dist/{python-9zBWvJDd.js → python-CX2by0vG.js} +1 -1
- package/dist/{razor-DhhP5BfC.js → razor-DvQVqrKD.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tableSelectDemo-B-uy8Csy.js → tableSelectDemo-C1b4ZOYG.js} +9 -9
- package/dist/{tableSelectDemo2-s16mX3yo.js → tableSelectDemo2-BCHAOoXd.js} +20 -20
- package/dist/{tsMode-CcglGwWJ.js → tsMode-B-61Wy-u.js} +1 -1
- package/dist/{typescript-Bl_0EXij.js → typescript-Bxxz_oCX.js} +1 -1
- package/dist/{xml-CiR3mqIs.js → xml-DqP-nTCl.js} +1 -1
- package/dist/{yaml-Bjra14TT.js → yaml-A_ATalTW.js} +1 -1
- package/package.json +1 -1
- package/dist/Ceshi-B79os75l.js +0 -192
- package/dist/Ceshi2-B1msUzIO.js +0 -9
- package/dist/Col-BiNpK6sY.js +0 -4
- package/dist/Collapse-DfU45Eqn.js +0 -4
- package/dist/FX-C4X_oay8.js +0 -4
- package/dist/GenerateForm-B0ffFyWN.js +0 -4
- package/dist/GenerateReport-SsSWwbsu.js +0 -4
- package/dist/ReportModule-CR7RTakX.js +0 -4
- package/dist/SqlModule-B7YyDJKh.js +0 -4
- package/dist/TableBtnModal-CkTFUhe_.js +0 -4
- package/dist/childForm-CsGBr28E.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
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
`
|
|
3
3
|
提供基础的前端开发框架、在线表单FormImagining、CImaginForm 表单设计工具、CImaginReport报表设计工具
|
|
4
4
|
##更新日志
|
|
5
|
+
0.0.87-2-sz
|
|
6
|
+
🐞解决表格列配置宽度0生成类型问题
|
|
7
|
+
|
|
8
|
+
0.0.87-1-sz
|
|
9
|
+
同步设计器代码:
|
|
10
|
+
1.表单文本宽度默认值设置
|
|
11
|
+
2.校验规则生成代码问题
|
|
12
|
+
3.多页面使用表格生成问题
|
|
13
|
+
4.guid生成增加时间戳降低重复率
|
|
14
|
+
|
|
5
15
|
0.0.45
|
|
6
16
|
🆕vue文件生成
|
|
7
17
|
0.0.44
|
|
@@ -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 l, createVNode as p } from "vue";
|
|
2
|
-
import { l as m, F as _ } from "./index-
|
|
2
|
+
import { l as m, F as _ } from "./index-B84f_0lp.js";
|
|
3
3
|
const g = /* @__PURE__ */ o({
|
|
4
4
|
__name: "App",
|
|
5
5
|
setup(f) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onBeforeUpdate, openBlock, createBlock, unref } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { u as useFormStore, g as generateReportHtml, p as paginations, d as dataSource, i as initTable, b as defHttp } from "./index-B84f_0lp.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 { u as j, D as q, V as A, o as K, C as P, q as D, s as S, M as R, _ as H } from "./index-B84f_0lp.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,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 {
|
|
2
|
+
import { u as c } from "./index-B84f_0lp.js";
|
|
3
3
|
const x = /* @__PURE__ */ i({
|
|
4
4
|
__name: "Input-删除",
|
|
5
5
|
props: {
|
|
@@ -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 { u as U } from "./index-B84f_0lp.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-B84f_0lp.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