form-imagining 0.0.92-beta18 → 0.0.92-beta19
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/dist/App-CAAZO9S9.js +32 -0
- package/dist/App-CUdwEKRG.js +32 -0
- package/dist/Area-BpNoVE8E.js +4 -0
- package/dist/Area-DBjSP3Y9.js +4 -0
- package/dist/Bar-C6ooL3FF.js +4 -0
- package/dist/Bar-CgLCDAHr.js +4 -0
- package/dist/ChartsArea-BFQJi84w.js +4 -0
- package/dist/ChartsArea-DDTvy400.js +4 -0
- package/dist/ChartsBar-CJ0X1KjC.js +4 -0
- package/dist/ChartsBar-DFTuG0LA.js +4 -0
- package/dist/ChartsPie-Cldf9FOv.js +4 -0
- package/dist/ChartsPie-Dj9JDrHi.js +4 -0
- package/dist/CheckBoxModel-CsTIi-xF.js +4 -0
- package/dist/CheckBoxModel-Dhvxmjpa.js +4 -0
- package/dist/Col-B_1G-Fil.js +4 -0
- package/dist/Col-xmXliqvU.js +4 -0
- package/dist/Collapse-BtD0WERD.js +4 -0
- package/dist/Collapse-CLKYiX4O.js +4 -0
- package/dist/{CommonText copy-CGxS2Qi7.js → CommonText copy-B2yj3G5b.js } +32 -32
- package/dist/CommonText copy-CRSyaL-1.js +189 -0
- package/dist/{Demo copy-Bux2O9AZ.js → Demo copy-CubdSIKo.js } +2 -2
- package/dist/{Demo-BzRVEJLn.js → Demo-BjeNq-DU.js} +21 -21
- package/dist/Demo-CmCJanEO.js +201 -0
- package/dist/{Demo-DVx3PIWg.js → Demo-D90lFuzo.js} +2 -2
- package/dist/Demo-DXm0EgtZ.js +72 -0
- package/dist/FView-B1lErBMF.js +4 -0
- package/dist/FView-DeTq-wJ3.js +4 -0
- package/dist/FX-DA_XCVlw.js +4 -0
- package/dist/FX-oFZuEtIR.js +4 -0
- package/dist/{Form-CE0VVIWD.js → Form-CsKlmwSd.js} +4 -4
- package/dist/{FormGridCopy-DEDMj3pk.js → FormGridCopy-C3Kukdxg.js} +36 -36
- package/dist/FormGridCopy-DN03FhE6.js +168 -0
- package/dist/{FormImagining-CuYGo7WU.js → FormImagining-BFd1dEJh.js} +1 -1
- package/dist/FormImagining-fy-ynI5-.js +9 -0
- package/dist/GenerateForm-BfQ4sBX4.js +4 -0
- package/dist/GenerateForm-DAwOJq-w.js +4 -0
- package/dist/GenerateReport-D-hnCMW7.js +4 -0
- package/dist/GenerateReport-DPBmcnAP.js +4 -0
- package/dist/{HelloWorld-h_Vl21wq.js → HelloWorld-B5h85HIU.js} +1 -1
- package/dist/HelloWorld-BaByWBAi.js +9 -0
- package/dist/Input-/345/210/240/351/231/{244-CW4crSu2.js → 244-BeE76j1B.js} +3 -3
- package/dist/Input-/345/210/240/351/231/244-DioOpwpw.js +87 -0
- package/dist/Label-/345/210/240/351/231/{244-CegZH5xZ.js → 244-BOUf-F9T.js} +5 -5
- package/dist/Label-/345/210/240/351/231/244-BozFgr0e.js +92 -0
- package/dist/LabelModel-C-Bbgyys.js +4 -0
- package/dist/LabelModel-D7-yXtBm.js +4 -0
- package/dist/{Login-SUqc9wWH.js → Login-DoEIHZ_m.js} +1 -1
- package/dist/Login-nK2_PTJH.js +9 -0
- package/dist/Pie-BU-qVEku.js +4 -0
- package/dist/Pie-Dk7uSF-M.js +4 -0
- package/dist/RView-AcFtF1kf.js +4 -0
- package/dist/RView-CRKNRRl9.js +4 -0
- package/dist/SqlModule-CnByP1k6.js +4 -0
- package/dist/SqlModule-GljcU_W2.js +4 -0
- package/dist/{SvgIconCopy-DtAYuQdF.js → SvgIconCopy-BFGR3ehL.js} +7 -7
- package/dist/SvgIconCopy-Bqa1HlQo.js +39 -0
- package/dist/TableBtnModal-BQit-SGu.js +4 -0
- package/dist/TableBtnModal-DdNht6Vl.js +4 -0
- package/dist/{TextModel-D4eIZfmj.js → TextModel-BxWU9Gq8.js} +1 -1
- package/dist/TextModel-CJ1aPc_4.js +9 -0
- package/dist/childForm-BkMXEK88.js +4 -0
- package/dist/childForm-gHGrBViT.js +4 -0
- package/dist/{cssMode-B_ZiewAH.js → cssMode-BWD8UR-7.js} +1 -1
- package/dist/cssMode-CkDPbB5M.js +1577 -0
- package/dist/form-imagining.js +9 -9
- package/dist/form-imagining.umd.cjs +251 -253
- package/dist/formTest-DfoY5NBn.js +19 -0
- package/dist/formTest-Dj0PZZ0E.js +19 -0
- package/dist/{freemarker2-BoVD1dnM.js → freemarker2-8TtD-XF5.js} +1 -1
- package/dist/freemarker2-B3T8IPQ1.js +995 -0
- package/dist/{handlebars-ifuhb0Lb.js → handlebars-C_BaW8Rn.js} +1 -1
- package/dist/handlebars-D6qKT-AB.js +425 -0
- package/dist/{html-DZYB8t03.js → html-C2G2dsUq.js} +1 -1
- package/dist/html-Ck1Wx24K.js +314 -0
- package/dist/{htmlMode-DOFueWmP.js → htmlMode-C9heZ-wD.js} +1 -1
- package/dist/htmlMode-DpQWRO56.js +1587 -0
- package/dist/index - /345/211/257/346/234/{254-CIbO8ZcU.js" → 254-5IgttBw9.js" } +38 -38
- package/dist/index - /345/211/257/346/234/254-Cz6y82wV.js" +531 -0
- package/dist/{index-DUBZV_5t.js → index-BJZgJsIz.js} +8047 -6120
- package/dist/index-C0BVVkDi.js +302291 -0
- package/dist/{index-DbGjikbV.js → index-CAd1Adx9.js} +4 -4
- package/dist/index-CeBR6sKj.js +36 -0
- package/dist/index-Cg3usEM6.js +3323 -0
- package/dist/index-CqmwavVi.js +3323 -0
- package/dist/index-DbbQdNO4.js +11 -0
- package/dist/index-cYrkAxdg.js +11 -0
- package/dist/{javascript-BtLKWUmq.js → javascript-BRI3Zb_9.js} +1 -1
- package/dist/javascript-C4Y-AWKe.js +76 -0
- package/dist/json/scope_type.json +6 -6
- package/dist/{jsonMode-CQYbYfxz.js → jsonMode-8xn8SfZQ.js} +1 -1
- package/dist/jsonMode-CPAKXxg0.js +2002 -0
- package/dist/{liquid-CHJI3hXR.js → liquid-DWxQbQ4c.js} +1 -1
- package/dist/liquid-ogK4Qu_y.js +246 -0
- package/dist/{mdx-JvfMqEkP.js → mdx-6wJfcYzW.js} +1 -1
- package/dist/mdx-BJJH_1Vj.js +171 -0
- package/dist/{python-CrRChc1F.js → python-74lxbGw1.js} +1 -1
- package/dist/python-c1fDNvEm.js +307 -0
- package/dist/{razor-D71nSgUR.js → razor-BrOfoM9E.js} +1 -1
- package/dist/razor-Dlgmhv8W.js +556 -0
- package/dist/setting.json +3 -3
- package/dist/style.css +1 -1
- package/dist/{tableSelectDemo-BI2sz7Dx.js → tableSelectDemo-BvSq3eH4.js} +15 -15
- package/dist/tableSelectDemo-DYDNQA05.js +134 -0
- package/dist/{tableSelectDemo2-C5pw53a8.js → tableSelectDemo2-Bcb8OnpR.js} +6 -6
- package/dist/tableSelectDemo2-Do2Wq46R.js +108 -0
- package/dist/{tsMode-Bt_ny7qs.js → tsMode-8dtB1J5W.js} +7 -7
- package/dist/tsMode-BHGGICf3.js +895 -0
- package/dist/{typescript-DQAW9Yxy.js → typescript-D0qjUcRs.js} +1 -1
- package/dist/typescript-_V4Eojcy.js +349 -0
- package/dist/{xml-Cj-NbBn6.js → xml-CCaCZz6y.js} +1 -1
- package/dist/xml-DdjA8Nsq.js +101 -0
- package/dist/{yaml-DbhGFxhP.js → yaml-2FS6Qljr.js} +1 -1
- package/dist/yaml-CyIWhPlg.js +212 -0
- package/package.json +68 -68
- package/dist/App-BIQh0-lC.js +0 -30
- package/dist/Area-BdxioIhN.js +0 -4
- package/dist/Bar-BQrPuceK.js +0 -4
- package/dist/ChartsArea-BG2Ttoq1.js +0 -4
- package/dist/ChartsBar-D3JI5yi3.js +0 -4
- package/dist/ChartsPie-COlwXlj3.js +0 -4
- package/dist/CheckBoxModel-DTnVGL4L.js +0 -4
- package/dist/Col-b5d3FpfE.js +0 -4
- package/dist/Collapse-CM9cRW7P.js +0 -4
- package/dist/FView-Bcnwet9-.js +0 -4
- package/dist/FX-BKsKbcWT.js +0 -4
- package/dist/GenerateForm-Wmoqhefi.js +0 -4
- package/dist/GenerateReport-DbSQDTq2.js +0 -4
- package/dist/LabelModel-BI6Zw0iH.js +0 -4
- package/dist/Pie-DYxKGS38.js +0 -4
- package/dist/RView-P7QVQHik.js +0 -4
- package/dist/SqlModule-D_4pePg2.js +0 -4
- package/dist/TableBtnModal-BwxBxHSJ.js +0 -4
- package/dist/childForm-Bo_eI2ZK.js +0 -4
- package/dist/formTest-InTCs7JJ.js +0 -19
- package/dist/index-BXkrSJvd.js +0 -11
- package/dist/index-DTzMRyWT.js +0 -3658
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as G, ref as s, reactive as K, resolveComponent as r, openBlock as n, createElementBlock as l, createVNode as c, withCtx as d, createTextVNode as p, unref as a, createBlock as y, createCommentVNode as L, isRef as P, Fragment as g, toDisplayString as f, withModifiers as Q } from "vue";
|
|
2
|
+
import { aJ as X, ah as z, ag as h, am as O, a4 as Y, ar as Z, _ as ee } from "./index-C0BVVkDi.js";
|
|
3
3
|
const te = {
|
|
4
4
|
ref: "formRef",
|
|
5
5
|
class: "cici-form-css",
|
|
@@ -7,11 +7,11 @@ const te = {
|
|
|
7
7
|
}, ae = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "required-text"
|
|
10
|
-
}, oe = { key: 1 }, ne = ["onClick"], ie = /* @__PURE__ */
|
|
10
|
+
}, oe = { key: 1 }, ne = ["onClick"], ie = /* @__PURE__ */ G({
|
|
11
11
|
__name: "Demo",
|
|
12
12
|
setup(de) {
|
|
13
13
|
X();
|
|
14
|
-
let u =
|
|
14
|
+
let u = s([]), _ = s(), w = s([]), B = s({}), V = s(!1), q = s(!1), m = K({
|
|
15
15
|
formId: "",
|
|
16
16
|
tableName: "",
|
|
17
17
|
title: "文件",
|
|
@@ -34,7 +34,7 @@ const te = {
|
|
|
34
34
|
series: [{ name: "产权", type: "bar", dataIndex: "cq_count" }, { name: "抵押", type: "bar", dataIndex: "dy_count", unit: "个" }, { name: "预告", type: "line", dataIndex: "yg_count" }]
|
|
35
35
|
};
|
|
36
36
|
_.value = { total: 0, current: 1, pageSize: 5, showSizeChanger: !1, showTotal: (o) => `共 ${o} 条数据` }, w.value = [{ key: "column-617ff7f2-a54f-1979c0fd2a8-fd70-700057f84a62", title: "year", dataIndex: "year", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-1cf72339-f874-1979c0fd2a8-b988-60f9b58ff66a", title: "month", dataIndex: "month", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-84b63a70-2238-1979c0fd2a8-29a5-68340db892fa", title: "cq_count", dataIndex: "cq_count", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-f8aa1b10-fe0d-1979c0fd2a8-8167-9c69e75fdf15", title: "dy_count", dataIndex: "dy_count", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-cf6692ef-5ce7-1979c0fd2a8-4531-cb617052dd15", title: "yg_count", dataIndex: "yg_count", width: "auto", options: { hidden: !1 }, rules: [] }, { id: "action", key: "action", title: "操作", dataIndex: "action", width: "auto", fixed: "right", align: "left", options: { hidden: !1 }, rules: [] }], m.formId = "1935623887264063490", m.title = "刘鹭测试";
|
|
37
|
-
let b =
|
|
37
|
+
let b = s([]), k = {
|
|
38
38
|
viewData: B,
|
|
39
39
|
dataSource: u,
|
|
40
40
|
reportInfo: m,
|
|
@@ -46,7 +46,7 @@ const te = {
|
|
|
46
46
|
function M() {
|
|
47
47
|
_.value.current = 1, O(k);
|
|
48
48
|
}
|
|
49
|
-
let E =
|
|
49
|
+
let E = s([]);
|
|
50
50
|
E.value = w.value;
|
|
51
51
|
function R(o) {
|
|
52
52
|
E.value = o;
|
|
@@ -56,7 +56,7 @@ const te = {
|
|
|
56
56
|
k.sortField = x, k.sortOrder = I, _.value.current = D.current, O(k);
|
|
57
57
|
}
|
|
58
58
|
function $(o) {
|
|
59
|
-
let i =
|
|
59
|
+
let i = s(o);
|
|
60
60
|
if (i.value.length == 0) {
|
|
61
61
|
Y.warning("请选择要导出的列");
|
|
62
62
|
return;
|
|
@@ -64,7 +64,7 @@ const te = {
|
|
|
64
64
|
Z(i, B, m, q);
|
|
65
65
|
}
|
|
66
66
|
return (o, i) => {
|
|
67
|
-
const C =
|
|
67
|
+
const C = r("a-col"), D = r("a-button"), x = r("a-form-item"), I = r("a-row"), F = r("a-form"), H = r("c-echarts-bar"), T = r("a-tag"), J = r("a-divider"), U = r("a-space"), j = r("c-table");
|
|
68
68
|
return n(), l("div", te, [
|
|
69
69
|
c(F, {
|
|
70
70
|
"label-col": { style: { width: "120px" } },
|
|
@@ -101,7 +101,7 @@ const te = {
|
|
|
101
101
|
class: "btn-icon-content"
|
|
102
102
|
}, {
|
|
103
103
|
default: d(() => [...i[3] || (i[3] = [
|
|
104
|
-
|
|
104
|
+
p(" 查询 ", -1)
|
|
105
105
|
])]),
|
|
106
106
|
_: 1
|
|
107
107
|
})
|
|
@@ -122,7 +122,7 @@ const te = {
|
|
|
122
122
|
options: a(A),
|
|
123
123
|
data: a(u)
|
|
124
124
|
}, null, 8, ["options", "data"])) : L("", !0),
|
|
125
|
-
c(
|
|
125
|
+
c(j, {
|
|
126
126
|
columns: a(w),
|
|
127
127
|
"data-source": a(u),
|
|
128
128
|
onColumnsChange: R,
|
|
@@ -138,7 +138,7 @@ const te = {
|
|
|
138
138
|
headerCell: d(({ title: e, column: t }) => {
|
|
139
139
|
var v;
|
|
140
140
|
return [
|
|
141
|
-
(v = t.rules) != null && v.find((N) => N.required) ? (n(), l("span", ae,
|
|
141
|
+
(v = t.rules) != null && v.find((N) => N.required) ? (n(), l("span", ae, f(e), 1)) : (n(), l("span", oe, f(e), 1))
|
|
142
142
|
];
|
|
143
143
|
}),
|
|
144
144
|
bodyCell: d(({ column: e, text: t, record: v, index: N }) => {
|
|
@@ -151,37 +151,37 @@ const te = {
|
|
|
151
151
|
color: (S = a(z)(e.options.tagList, t)) == null ? void 0 : S.color[0]
|
|
152
152
|
}, {
|
|
153
153
|
default: d(() => [
|
|
154
|
-
f(
|
|
154
|
+
p(f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 1)
|
|
155
155
|
]),
|
|
156
156
|
_: 2
|
|
157
157
|
}, 1032, ["color"])) : (n(), y(T, { key: 1 }, {
|
|
158
158
|
default: d(() => [
|
|
159
|
-
f(
|
|
159
|
+
p(f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 1)
|
|
160
160
|
]),
|
|
161
161
|
_: 2
|
|
162
162
|
}, 1024))
|
|
163
163
|
], 64)) : (n(), y(T, { key: 1 }, {
|
|
164
164
|
default: d(() => [
|
|
165
|
-
f(
|
|
165
|
+
p(f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 1)
|
|
166
166
|
]),
|
|
167
167
|
_: 2
|
|
168
168
|
}, 1024))
|
|
169
169
|
], 64)) : e.options.displayType == "href" ? (n(), l("a", {
|
|
170
170
|
key: 1,
|
|
171
|
-
onClick: Q((
|
|
172
|
-
},
|
|
171
|
+
onClick: Q((re) => o.excuteHrefFun(e.options.hrefFun, v), ["stop"])
|
|
172
|
+
}, f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 9, ne)) : (n(), l(g, { key: 2 }, [
|
|
173
173
|
e.dict ? (n(), l(g, { key: 0 }, [
|
|
174
|
-
f(
|
|
174
|
+
p(f(a(h)(e.dict, t)), 1)
|
|
175
175
|
], 64)) : e.treeDict ? (n(), l(g, { key: 1 }, [
|
|
176
|
-
f(
|
|
176
|
+
p(f(o.getLabelByTreeDictCode(e.treeDict, t)), 1)
|
|
177
177
|
], 64)) : L("", !0)
|
|
178
178
|
], 64)),
|
|
179
|
-
e.key === "action" ? (n(), y(
|
|
179
|
+
e.key === "action" ? (n(), y(U, {
|
|
180
180
|
key: 3,
|
|
181
181
|
size: 0
|
|
182
182
|
}, {
|
|
183
183
|
split: d(() => [
|
|
184
|
-
c(
|
|
184
|
+
c(J, { type: "vertical" })
|
|
185
185
|
]),
|
|
186
186
|
_: 1
|
|
187
187
|
})) : L("", !0)
|
|
@@ -195,7 +195,7 @@ const te = {
|
|
|
195
195
|
], 512);
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
|
-
}), ce = /* @__PURE__ */ ee(ie, [["__scopeId", "data-v-
|
|
198
|
+
}), ce = /* @__PURE__ */ ee(ie, [["__scopeId", "data-v-14a1711c"]]);
|
|
199
199
|
export {
|
|
200
200
|
ce as default
|
|
201
201
|
};
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { defineComponent as G, ref as s, reactive as K, resolveComponent as r, openBlock as n, createElementBlock as l, createVNode as c, withCtx as d, createTextVNode as p, unref as a, createBlock as y, createCommentVNode as L, isRef as P, Fragment as g, toDisplayString as f, withModifiers as Q } from "vue";
|
|
2
|
+
import { aJ as X, ah as z, ag as h, am as O, a4 as Y, ar as Z, _ as ee } from "./index-BJZgJsIz.js";
|
|
3
|
+
const te = {
|
|
4
|
+
ref: "formRef",
|
|
5
|
+
class: "cici-form-css",
|
|
6
|
+
style: { padding: "10px" }
|
|
7
|
+
}, ae = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "required-text"
|
|
10
|
+
}, oe = { key: 1 }, ne = ["onClick"], ie = /* @__PURE__ */ G({
|
|
11
|
+
__name: "Demo",
|
|
12
|
+
setup(de) {
|
|
13
|
+
X();
|
|
14
|
+
let u = s([]), _ = s(), w = s([]), B = s({}), V = s(!1), q = s(!1), m = K({
|
|
15
|
+
formId: "",
|
|
16
|
+
tableName: "",
|
|
17
|
+
title: "文件",
|
|
18
|
+
keyCol: "",
|
|
19
|
+
searchInfo: []
|
|
20
|
+
}), A = {
|
|
21
|
+
title: {
|
|
22
|
+
text: "本年度不动产登记情况",
|
|
23
|
+
width: "800",
|
|
24
|
+
height: "400"
|
|
25
|
+
},
|
|
26
|
+
xAxis: [
|
|
27
|
+
{
|
|
28
|
+
type: "category",
|
|
29
|
+
dataIndex: "month",
|
|
30
|
+
pointerType: "shadow"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
yAxis: [{ name: "抵押", type: "value", min: "1", interval: 100, unit: "个" }],
|
|
34
|
+
series: [{ name: "产权", type: "bar", dataIndex: "cq_count" }, { name: "抵押", type: "bar", dataIndex: "dy_count", unit: "个" }, { name: "预告", type: "line", dataIndex: "yg_count" }]
|
|
35
|
+
};
|
|
36
|
+
_.value = { total: 0, current: 1, pageSize: 5, showSizeChanger: !1, showTotal: (o) => `共 ${o} 条数据` }, w.value = [{ key: "column-617ff7f2-a54f-1979c0fd2a8-fd70-700057f84a62", title: "year", dataIndex: "year", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-1cf72339-f874-1979c0fd2a8-b988-60f9b58ff66a", title: "month", dataIndex: "month", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-84b63a70-2238-1979c0fd2a8-29a5-68340db892fa", title: "cq_count", dataIndex: "cq_count", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-f8aa1b10-fe0d-1979c0fd2a8-8167-9c69e75fdf15", title: "dy_count", dataIndex: "dy_count", width: "auto", options: { hidden: !1 }, rules: [] }, { key: "column-cf6692ef-5ce7-1979c0fd2a8-4531-cb617052dd15", title: "yg_count", dataIndex: "yg_count", width: "auto", options: { hidden: !1 }, rules: [] }, { id: "action", key: "action", title: "操作", dataIndex: "action", width: "auto", fixed: "right", align: "left", options: { hidden: !1 }, rules: [] }], m.formId = "1935623887264063490", m.title = "刘鹭测试";
|
|
37
|
+
let b = s([]), k = {
|
|
38
|
+
viewData: B,
|
|
39
|
+
dataSource: u,
|
|
40
|
+
reportInfo: m,
|
|
41
|
+
paginations: _,
|
|
42
|
+
loading: V,
|
|
43
|
+
sortField: "",
|
|
44
|
+
sortOrder: ""
|
|
45
|
+
};
|
|
46
|
+
function M() {
|
|
47
|
+
_.value.current = 1, O(k);
|
|
48
|
+
}
|
|
49
|
+
let E = s([]);
|
|
50
|
+
E.value = w.value;
|
|
51
|
+
function R(o) {
|
|
52
|
+
E.value = o;
|
|
53
|
+
}
|
|
54
|
+
function W(o, i) {
|
|
55
|
+
const { sorter: C, pagination: D } = o, { field: x, order: I } = C;
|
|
56
|
+
k.sortField = x, k.sortOrder = I, _.value.current = D.current, O(k);
|
|
57
|
+
}
|
|
58
|
+
function $(o) {
|
|
59
|
+
let i = s(o);
|
|
60
|
+
if (i.value.length == 0) {
|
|
61
|
+
Y.warning("请选择要导出的列");
|
|
62
|
+
return;
|
|
63
|
+
} else
|
|
64
|
+
Z(i, B, m, q);
|
|
65
|
+
}
|
|
66
|
+
return (o, i) => {
|
|
67
|
+
const C = r("a-col"), D = r("a-button"), x = r("a-form-item"), I = r("a-row"), F = r("a-form"), H = r("c-echarts-bar"), T = r("a-tag"), J = r("a-divider"), U = r("a-space"), j = r("c-table");
|
|
68
|
+
return n(), l("div", te, [
|
|
69
|
+
c(F, {
|
|
70
|
+
"label-col": { style: { width: "120px" } },
|
|
71
|
+
labelWrap: !0
|
|
72
|
+
}, {
|
|
73
|
+
default: d(() => [
|
|
74
|
+
c(F, {
|
|
75
|
+
id: "wonder-form-css",
|
|
76
|
+
"label-col": { style: { width: "120px" } },
|
|
77
|
+
labelWrap: !0
|
|
78
|
+
}, {
|
|
79
|
+
default: d(() => [
|
|
80
|
+
c(I, {
|
|
81
|
+
class: "wonderform-row-css",
|
|
82
|
+
style: { padding: "0px 0px 0px 0px" },
|
|
83
|
+
gutter: [8, 0],
|
|
84
|
+
tyle: "flex"
|
|
85
|
+
}, {
|
|
86
|
+
default: d(() => [
|
|
87
|
+
c(C, {
|
|
88
|
+
span: 12,
|
|
89
|
+
offset: 0
|
|
90
|
+
}),
|
|
91
|
+
c(C, {
|
|
92
|
+
span: 12,
|
|
93
|
+
offset: 0
|
|
94
|
+
}, {
|
|
95
|
+
default: d(() => [
|
|
96
|
+
c(x, { style: { "text-align": "left", "padding-left": "5px" } }, {
|
|
97
|
+
default: d(() => [
|
|
98
|
+
c(D, {
|
|
99
|
+
type: "primary",
|
|
100
|
+
onClick: i[0] || (i[0] = (e) => M()),
|
|
101
|
+
class: "btn-icon-content"
|
|
102
|
+
}, {
|
|
103
|
+
default: d(() => [...i[3] || (i[3] = [
|
|
104
|
+
p(" 查询 ", -1)
|
|
105
|
+
])]),
|
|
106
|
+
_: 1
|
|
107
|
+
})
|
|
108
|
+
]),
|
|
109
|
+
_: 1
|
|
110
|
+
})
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
})
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
})
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
}),
|
|
120
|
+
a(u) && a(u).length > 0 ? (n(), y(H, {
|
|
121
|
+
key: 0,
|
|
122
|
+
options: a(A),
|
|
123
|
+
data: a(u)
|
|
124
|
+
}, null, 8, ["options", "data"])) : L("", !0),
|
|
125
|
+
c(j, {
|
|
126
|
+
columns: a(w),
|
|
127
|
+
"data-source": a(u),
|
|
128
|
+
onColumnsChange: R,
|
|
129
|
+
loading: a(V),
|
|
130
|
+
onExport: $,
|
|
131
|
+
eLoading: a(q),
|
|
132
|
+
value: a(b),
|
|
133
|
+
"onUpdate:value": i[1] || (i[1] = (e) => P(b) ? b.value = e : b = e),
|
|
134
|
+
scroll: { x: "max-content" },
|
|
135
|
+
pagination: a(_),
|
|
136
|
+
onChange: i[2] || (i[2] = (e) => W(e))
|
|
137
|
+
}, {
|
|
138
|
+
headerCell: d(({ title: e, column: t }) => {
|
|
139
|
+
var v;
|
|
140
|
+
return [
|
|
141
|
+
(v = t.rules) != null && v.find((N) => N.required) ? (n(), l("span", ae, f(e), 1)) : (n(), l("span", oe, f(e), 1))
|
|
142
|
+
];
|
|
143
|
+
}),
|
|
144
|
+
bodyCell: d(({ column: e, text: t, record: v, index: N }) => {
|
|
145
|
+
var S;
|
|
146
|
+
return [
|
|
147
|
+
e.options.displayType == "tag" ? (n(), l(g, { key: 0 }, [
|
|
148
|
+
e.options.tagList.length ? (n(), l(g, { key: 0 }, [
|
|
149
|
+
a(z)(e.options.tagList, t) ? (n(), y(T, {
|
|
150
|
+
key: 0,
|
|
151
|
+
color: (S = a(z)(e.options.tagList, t)) == null ? void 0 : S.color[0]
|
|
152
|
+
}, {
|
|
153
|
+
default: d(() => [
|
|
154
|
+
p(f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 1)
|
|
155
|
+
]),
|
|
156
|
+
_: 2
|
|
157
|
+
}, 1032, ["color"])) : (n(), y(T, { key: 1 }, {
|
|
158
|
+
default: d(() => [
|
|
159
|
+
p(f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 1)
|
|
160
|
+
]),
|
|
161
|
+
_: 2
|
|
162
|
+
}, 1024))
|
|
163
|
+
], 64)) : (n(), y(T, { key: 1 }, {
|
|
164
|
+
default: d(() => [
|
|
165
|
+
p(f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 1)
|
|
166
|
+
]),
|
|
167
|
+
_: 2
|
|
168
|
+
}, 1024))
|
|
169
|
+
], 64)) : e.options.displayType == "href" ? (n(), l("a", {
|
|
170
|
+
key: 1,
|
|
171
|
+
onClick: Q((re) => o.excuteHrefFun(e.options.hrefFun, v), ["stop"])
|
|
172
|
+
}, f(e.dict ? a(h)(e.dict, t) : e.treeDict ? o.getLabelByTreeDictCode(e.treeDict, t) : t), 9, ne)) : (n(), l(g, { key: 2 }, [
|
|
173
|
+
e.dict ? (n(), l(g, { key: 0 }, [
|
|
174
|
+
p(f(a(h)(e.dict, t)), 1)
|
|
175
|
+
], 64)) : e.treeDict ? (n(), l(g, { key: 1 }, [
|
|
176
|
+
p(f(o.getLabelByTreeDictCode(e.treeDict, t)), 1)
|
|
177
|
+
], 64)) : L("", !0)
|
|
178
|
+
], 64)),
|
|
179
|
+
e.key === "action" ? (n(), y(U, {
|
|
180
|
+
key: 3,
|
|
181
|
+
size: 0
|
|
182
|
+
}, {
|
|
183
|
+
split: d(() => [
|
|
184
|
+
c(J, { type: "vertical" })
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
})) : L("", !0)
|
|
188
|
+
];
|
|
189
|
+
}),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["columns", "data-source", "loading", "eLoading", "value", "pagination"])
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
})
|
|
195
|
+
], 512);
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
}), ce = /* @__PURE__ */ ee(ie, [["__scopeId", "data-v-14a1711c"]]);
|
|
199
|
+
export {
|
|
200
|
+
ce as default
|
|
201
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, ref, onBeforeUpdate,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, ref, onBeforeUpdate, openBlock, createBlock, unref } from "vue";
|
|
2
|
+
import { aF as useFormStore, ae as generateReportHtml, a8 as defHttp } from "./index-BJZgJsIz.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "Demo",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { defineComponent, ref, onBeforeUpdate, openBlock, createBlock, unref } from "vue";
|
|
2
|
+
import { aF as useFormStore, ae as generateReportHtml, a8 as defHttp } from "./index-C0BVVkDi.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "Demo",
|
|
5
|
+
props: {
|
|
6
|
+
data: {
|
|
7
|
+
type: Object,
|
|
8
|
+
default: []
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const formStore = useFormStore();
|
|
13
|
+
let list = ref(formStore.formData.config.eventScript);
|
|
14
|
+
const { eventScript, baseScript, ...restConfig } = formStore.formData.config;
|
|
15
|
+
let vue3Script = ref({
|
|
16
|
+
importScript: "",
|
|
17
|
+
//import导入
|
|
18
|
+
variableScript: "",
|
|
19
|
+
//变量
|
|
20
|
+
contentScript: ""
|
|
21
|
+
//ts内容
|
|
22
|
+
});
|
|
23
|
+
const generateData = generateReportHtml(formStore.formData.list, restConfig, vue3Script), columns = JSON.parse(generateData.columns), searchInfo = generateData.searchData;
|
|
24
|
+
onBeforeUpdate(() => {
|
|
25
|
+
});
|
|
26
|
+
const generateVue3 = defineComponent({
|
|
27
|
+
template: generateData.html,
|
|
28
|
+
props: {},
|
|
29
|
+
setup() {
|
|
30
|
+
let viewData = ref({});
|
|
31
|
+
const events = {};
|
|
32
|
+
return generateTs(), {
|
|
33
|
+
// formData,
|
|
34
|
+
// formRef,
|
|
35
|
+
search,
|
|
36
|
+
searchInfo,
|
|
37
|
+
// defineExpose,
|
|
38
|
+
// paginations,
|
|
39
|
+
// dataSource,
|
|
40
|
+
// datalist,
|
|
41
|
+
columns,
|
|
42
|
+
viewData,
|
|
43
|
+
// initTable,
|
|
44
|
+
...events,
|
|
45
|
+
defHttp,
|
|
46
|
+
onChange
|
|
47
|
+
};
|
|
48
|
+
function search() {
|
|
49
|
+
}
|
|
50
|
+
function onChange(e) {
|
|
51
|
+
}
|
|
52
|
+
function generateTs() {
|
|
53
|
+
for (let e = 0; e < list.value.length; e++) {
|
|
54
|
+
const t = list.value[e];
|
|
55
|
+
events[t.name] = newFunction(t);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function newFunction(_data) {
|
|
59
|
+
return _data.param != "" ? (_params) => {
|
|
60
|
+
eval(_data.func);
|
|
61
|
+
} : () => {
|
|
62
|
+
eval(_data.func);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
return (e, t) => (openBlock(), createBlock(unref(generateVue3)));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
_sfc_main as default
|
|
72
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, resolveComponent as o,
|
|
1
|
+
import { defineComponent as d, resolveComponent as o, openBlock as l, createBlock as n, withCtx as c, createCommentVNode as u } from "vue";
|
|
2
2
|
const D = /* @__PURE__ */ d({
|
|
3
3
|
__name: "Form",
|
|
4
4
|
props: {
|
|
@@ -10,16 +10,16 @@ const D = /* @__PURE__ */ d({
|
|
|
10
10
|
setup(e) {
|
|
11
11
|
return (i, t) => {
|
|
12
12
|
const m = o("a-input"), r = o("a-textarea"), f = o("a-form-item");
|
|
13
|
-
return
|
|
13
|
+
return l(), n(f, {
|
|
14
14
|
label: e.formData.name
|
|
15
15
|
}, {
|
|
16
16
|
default: c(() => [
|
|
17
|
-
e.formData.type == "input" ? (
|
|
17
|
+
e.formData.type == "input" ? (l(), n(m, {
|
|
18
18
|
key: 0,
|
|
19
19
|
value: e.formData.defaultValue,
|
|
20
20
|
"onUpdate:value": t[0] || (t[0] = (a) => e.formData.defaultValue = a)
|
|
21
21
|
}, null, 8, ["value"])) : u("", !0),
|
|
22
|
-
e.formData.type == "textarea" ? (
|
|
22
|
+
e.formData.type == "textarea" ? (l(), n(r, {
|
|
23
23
|
key: 1,
|
|
24
24
|
value: e.formData.defaultValue,
|
|
25
25
|
"onUpdate:value": t[1] || (t[1] = (a) => e.formData.defaultValue = a),
|
|
@@ -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 r, createElementVNode as W, createVNode as u, unref as f, createCommentVNode as x, normalizeStyle as C, withCtx as g, Fragment as I, renderList as w, createBlock as b, normalizeClass as D } from "vue";
|
|
2
|
+
import { aF as j, x as A, V as K, y as P, s as R, w as S, ak as N, G as q, _ as H } from "./index-BJZgJsIz.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: {
|
|
@@ -30,36 +30,36 @@ const Q = { class: "move" }, T = {
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["childConfig", "index"],
|
|
33
|
-
setup(e, { emit:
|
|
34
|
-
const p =
|
|
35
|
-
|
|
33
|
+
setup(e, { emit: O }) {
|
|
34
|
+
const p = j(), { formData: _ } = p, a = e, i = J("-1");
|
|
35
|
+
L(
|
|
36
36
|
() => a.activeIndex,
|
|
37
37
|
(t, n) => {
|
|
38
38
|
i.value = t;
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
|
-
const m =
|
|
42
|
-
function
|
|
43
|
-
i.value = n, m("childConfig", t), m("index", i.value),
|
|
41
|
+
const m = O;
|
|
42
|
+
function k(t, n, l) {
|
|
43
|
+
i.value = n, m("childConfig", t), m("index", i.value), l.stopPropagation(), l.preventDefault();
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function $() {
|
|
46
46
|
i.value = "-1", console.log("开始拖拽");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function F(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
|
-
let
|
|
55
|
-
|
|
54
|
+
let l = a.data.columns.findIndex((v) => v.key == t.key);
|
|
55
|
+
l > -1 && (n.key = N(), n.id = N(), a.data.columns.splice(l + 1, 0, n));
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
let n = a.data.columns.findIndex((
|
|
58
|
+
function E(t) {
|
|
59
|
+
let n = a.data.columns.findIndex((l) => l.key == t.key);
|
|
60
60
|
n > -1 && a.data.columns.splice(n, 1);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function M() {
|
|
63
63
|
if (a.data.columns.length > 0)
|
|
64
64
|
q.confirm({
|
|
65
65
|
title: "确定要删除该栅格布局吗?",
|
|
@@ -77,15 +77,15 @@ const Q = { class: "move" }, T = {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
return (t, n) => {
|
|
80
|
-
const
|
|
80
|
+
const l = h("a-col"), v = h("a-row"), G = h("a-form");
|
|
81
81
|
return o(), r("div", null, [
|
|
82
|
-
|
|
82
|
+
W("div", Q, [
|
|
83
83
|
e.activeIndex == e.index ? (o(), r("div", T, [
|
|
84
84
|
u(f(A), { style: { padding: "6px" } })
|
|
85
85
|
])) : x("", !0)
|
|
86
86
|
]),
|
|
87
|
-
u(
|
|
88
|
-
style:
|
|
87
|
+
u(G, {
|
|
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(p).formData.config.labelWidth + "px" } },
|
|
90
90
|
labelWrap: !0
|
|
91
91
|
}, {
|
|
@@ -93,26 +93,26 @@ const Q = { class: "move" }, T = {
|
|
|
93
93
|
u(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), r(
|
|
99
|
+
(o(!0), r(I, null, w(e.data.columns, (d, c) => (o(), b(l, {
|
|
100
100
|
class: D(["widget-col-item", { active: i.value == "col-" + e.index + "-" + c }]),
|
|
101
|
-
span:
|
|
102
|
-
offset:
|
|
103
|
-
onMousedown: (s) =>
|
|
101
|
+
span: d.options.span,
|
|
102
|
+
offset: d.options.offset,
|
|
103
|
+
onMousedown: (s) => k(d, "col-" + e.index + "-" + c, s)
|
|
104
104
|
}, {
|
|
105
105
|
default: g(() => [
|
|
106
106
|
u(f(K), {
|
|
107
107
|
class: "widget-col-list",
|
|
108
108
|
style: { "min-height": "50px" },
|
|
109
109
|
"ghost-class": "ghost",
|
|
110
|
-
list:
|
|
110
|
+
list: d.list,
|
|
111
111
|
"force-fallback": !0,
|
|
112
112
|
"chosen-class": "chosenClass2",
|
|
113
113
|
"drag-class": "dragClass1",
|
|
114
|
-
onStart:
|
|
115
|
-
onEnd: (s) =>
|
|
114
|
+
onStart: $,
|
|
115
|
+
onEnd: (s) => F(s, c),
|
|
116
116
|
group: "itxst",
|
|
117
117
|
sort: !1,
|
|
118
118
|
animation: "300",
|
|
@@ -120,13 +120,13 @@ const Q = { class: "move" }, T = {
|
|
|
120
120
|
itemKey: ""
|
|
121
121
|
}, {
|
|
122
122
|
default: g(() => [
|
|
123
|
-
(o(!0), r(
|
|
123
|
+
(o(!0), r(I, null, w(d.list, (s, y) => (o(), r("div", {
|
|
124
124
|
class: D(["widget-view", { active: i.value == e.index + "-" + c + "-" + y }]),
|
|
125
|
-
onMousedown: (
|
|
125
|
+
onMousedown: (B) => k(s, e.index + "-" + c + "-" + y, B)
|
|
126
126
|
}, [
|
|
127
127
|
u(P, {
|
|
128
128
|
data: s,
|
|
129
|
-
list:
|
|
129
|
+
list: d.list,
|
|
130
130
|
activeIndex: i.value,
|
|
131
131
|
index: e.index + "-" + c + "-" + y
|
|
132
132
|
}, null, 8, ["data", "list", "activeIndex", "index"])
|
|
@@ -137,11 +137,11 @@ const Q = { class: "move" }, T = {
|
|
|
137
137
|
e.activeIndex === "col-" + e.index + "-" + c ? (o(), r("div", X, [
|
|
138
138
|
u(f(R), {
|
|
139
139
|
style: { padding: "3px 5px" },
|
|
140
|
-
onClick: (s) =>
|
|
140
|
+
onClick: (s) => V(d)
|
|
141
141
|
}, null, 8, ["onClick"]),
|
|
142
142
|
e.data.columns.length !== 1 ? (o(), b(f(S), {
|
|
143
143
|
key: 0,
|
|
144
|
-
onClick: (s) =>
|
|
144
|
+
onClick: (s) => E(d)
|
|
145
145
|
}, null, 8, ["onClick"])) : x("", !0)
|
|
146
146
|
])) : x("", !0)
|
|
147
147
|
]),
|
|
@@ -150,7 +150,7 @@ const Q = { class: "move" }, T = {
|
|
|
150
150
|
e.activeIndex === e.index ? (o(), r("div", Y, [
|
|
151
151
|
u(f(S), {
|
|
152
152
|
style: { padding: "3px 5px", color: "#fff" },
|
|
153
|
-
onClick: n[0] || (n[0] = (
|
|
153
|
+
onClick: n[0] || (n[0] = (d) => M())
|
|
154
154
|
})
|
|
155
155
|
])) : x("", !0)
|
|
156
156
|
]),
|
|
@@ -162,7 +162,7 @@ const Q = { class: "move" }, T = {
|
|
|
162
162
|
]);
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
}), ne = /* @__PURE__ */ H(Z, [["__scopeId", "data-v-
|
|
165
|
+
}), ne = /* @__PURE__ */ H(Z, [["__scopeId", "data-v-e3b465b8"]]);
|
|
166
166
|
export {
|
|
167
167
|
ne as default
|
|
168
168
|
};
|