sun-form-v3 1.0.109 → 1.0.111
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{index-TMY_iT1q.js → index-7D4cXSE3.js} +89 -89
- package/dist/{index-ClLoOagm.js → index-Bo6zmGb6.js} +1 -1
- package/dist/{index-Bhrln_aP.js → index-CfMcrNr6.js} +165 -165
- package/dist/{index-1mhHvaqm.js → index-CuSra5OV.js} +100 -100
- package/dist/index-D2SkyZSC.js +246 -0
- package/dist/index-KDhC5Ui8.js +127 -0
- package/dist/{index-CbNGZTlq.js → index-jtbWVpP5.js} +26053 -25996
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +135 -135
- package/package.json +5 -2
- package/dist/index-SUiZvJlC.js +0 -127
- package/dist/index-hoaNwJl5.js +0 -246
@@ -1,6 +1,6 @@
|
|
1
|
-
import { computed as
|
2
|
-
import { _ as E, c as H } from "./index-
|
3
|
-
const
|
1
|
+
import { computed as z, ref as x, resolveComponent as p, openBlock as k, createElementBlock as U, Fragment as O, createVNode as e, withCtx as l, createTextVNode as V, unref as u, isRef as J, createElementVNode as m } from "vue";
|
2
|
+
import { _ as E, c as H } from "./index-jtbWVpP5.js";
|
3
|
+
const h = { class: "h-full flex flex-col" }, B = { class: "flex-1 overflow-hidden" }, T = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
|
4
4
|
__name: "dataConfig",
|
5
5
|
props: {
|
6
6
|
modelValue: [Object, null],
|
@@ -9,68 +9,68 @@ const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(
|
|
9
9
|
}
|
10
10
|
},
|
11
11
|
emits: ["update:modelValue"],
|
12
|
-
setup(
|
13
|
-
let
|
14
|
-
const
|
15
|
-
let t =
|
16
|
-
const
|
17
|
-
|
18
|
-
},
|
19
|
-
|
12
|
+
setup(w, { emit: a }) {
|
13
|
+
let g = w;
|
14
|
+
const f = z(() => g.widget.props);
|
15
|
+
let t = x(!1);
|
16
|
+
const s = x([]), r = (C) => {
|
17
|
+
s.value.splice(C, 1);
|
18
|
+
}, v = () => {
|
19
|
+
s.value.push({
|
20
20
|
title: null,
|
21
21
|
value: null,
|
22
22
|
key: null,
|
23
23
|
unit: null
|
24
24
|
});
|
25
|
-
},
|
26
|
-
|
27
|
-
},
|
25
|
+
}, y = () => {
|
26
|
+
f.value.data && (s.value = JSON.parse(JSON.stringify(f.value.data))), t.value = !0;
|
27
|
+
}, d = () => {
|
28
28
|
t.value = !1;
|
29
|
-
},
|
30
|
-
|
29
|
+
}, N = () => {
|
30
|
+
f.value.data = JSON.parse(JSON.stringify(s.value)), t.value = !1;
|
31
31
|
};
|
32
|
-
return (
|
33
|
-
const
|
34
|
-
return
|
35
|
-
e(
|
32
|
+
return (C, n) => {
|
33
|
+
const c = p("el-button"), b = p("el-input"), _ = p("vxe-column"), j = p("vxe-table"), S = p("vxe-modal");
|
34
|
+
return k(), U(O, null, [
|
35
|
+
e(c, {
|
36
36
|
plain: "",
|
37
37
|
icon: "Setting",
|
38
|
-
onClick:
|
39
|
-
type:
|
38
|
+
onClick: y,
|
39
|
+
type: f.value.data.length ? "primary" : ""
|
40
40
|
}, {
|
41
|
-
default: l(() => [
|
41
|
+
default: l(() => n[1] || (n[1] = [
|
42
42
|
V(" 数据配置 ")
|
43
|
-
]),
|
43
|
+
])),
|
44
44
|
_: 1
|
45
45
|
}, 8, ["type"]),
|
46
|
-
e(
|
46
|
+
e(S, {
|
47
47
|
transfer: "",
|
48
|
-
modelValue:
|
49
|
-
"onUpdate:modelValue":
|
48
|
+
modelValue: u(t),
|
49
|
+
"onUpdate:modelValue": n[0] || (n[0] = (o) => J(t) ? t.value = o : t = o),
|
50
50
|
width: "830px",
|
51
51
|
height: "700px",
|
52
52
|
"show-footer": "",
|
53
|
-
onClose:
|
53
|
+
onClose: d
|
54
54
|
}, {
|
55
|
-
title: l(() => [
|
56
|
-
|
57
|
-
]),
|
55
|
+
title: l(() => n[2] || (n[2] = [
|
56
|
+
m("span", null, "数据配置", -1)
|
57
|
+
])),
|
58
58
|
default: l(() => [
|
59
|
-
m("div",
|
60
|
-
e(
|
59
|
+
m("div", h, [
|
60
|
+
e(c, {
|
61
61
|
type: "primary",
|
62
62
|
class: "w-16 mb-2",
|
63
|
-
onClick:
|
63
|
+
onClick: v
|
64
64
|
}, {
|
65
|
-
default: l(() => [
|
65
|
+
default: l(() => n[3] || (n[3] = [
|
66
66
|
V("新增")
|
67
|
-
]),
|
67
|
+
])),
|
68
68
|
_: 1
|
69
69
|
}),
|
70
|
-
m("div",
|
71
|
-
e(
|
70
|
+
m("div", B, [
|
71
|
+
e(j, {
|
72
72
|
ref: "mainTable",
|
73
|
-
data:
|
73
|
+
data: s.value,
|
74
74
|
height: "auto",
|
75
75
|
"row-config": { isCurrent: !0, isHover: !0 },
|
76
76
|
size: "mini",
|
@@ -89,7 +89,7 @@ const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(
|
|
89
89
|
m("div", null, [
|
90
90
|
e(b, {
|
91
91
|
modelValue: o.title,
|
92
|
-
"onUpdate:modelValue": (
|
92
|
+
"onUpdate:modelValue": (i) => o.title = i
|
93
93
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
94
94
|
])
|
95
95
|
]),
|
@@ -103,7 +103,7 @@ const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(
|
|
103
103
|
m("div", null, [
|
104
104
|
e(b, {
|
105
105
|
modelValue: o.value,
|
106
|
-
"onUpdate:modelValue": (
|
106
|
+
"onUpdate:modelValue": (i) => o.value = i
|
107
107
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
108
108
|
])
|
109
109
|
]),
|
@@ -117,7 +117,7 @@ const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(
|
|
117
117
|
m("div", null, [
|
118
118
|
e(b, {
|
119
119
|
modelValue: o.unit,
|
120
|
-
"onUpdate:modelValue": (
|
120
|
+
"onUpdate:modelValue": (i) => o.unit = i
|
121
121
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
122
122
|
])
|
123
123
|
]),
|
@@ -131,7 +131,7 @@ const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(
|
|
131
131
|
m("div", null, [
|
132
132
|
e(b, {
|
133
133
|
modelValue: o.key,
|
134
|
-
"onUpdate:modelValue": (
|
134
|
+
"onUpdate:modelValue": (i) => o.key = i
|
135
135
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
136
136
|
])
|
137
137
|
]),
|
@@ -142,16 +142,16 @@ const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(
|
|
142
142
|
width: "60",
|
143
143
|
align: "center"
|
144
144
|
}, {
|
145
|
-
default: l(({ row: o, rowIndex:
|
146
|
-
e(
|
145
|
+
default: l(({ row: o, rowIndex: i }) => [
|
146
|
+
e(c, {
|
147
147
|
link: "",
|
148
148
|
type: "primary",
|
149
149
|
size: "small",
|
150
|
-
onClick: (
|
150
|
+
onClick: (F) => r(i)
|
151
151
|
}, {
|
152
|
-
default: l(() => [
|
152
|
+
default: l(() => n[4] || (n[4] = [
|
153
153
|
V("删除")
|
154
|
-
]),
|
154
|
+
])),
|
155
155
|
_: 2
|
156
156
|
}, 1032, ["onClick"])
|
157
157
|
]),
|
@@ -164,25 +164,25 @@ const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(
|
|
164
164
|
])
|
165
165
|
]),
|
166
166
|
footer: l(() => [
|
167
|
-
e(
|
167
|
+
e(c, {
|
168
168
|
icon: "Close",
|
169
169
|
size: "small",
|
170
|
-
onClick:
|
170
|
+
onClick: d
|
171
171
|
}, {
|
172
|
-
default: l(() => [
|
172
|
+
default: l(() => n[5] || (n[5] = [
|
173
173
|
V("关闭")
|
174
|
-
]),
|
174
|
+
])),
|
175
175
|
_: 1
|
176
176
|
}),
|
177
|
-
e(
|
177
|
+
e(c, {
|
178
178
|
icon: "Check",
|
179
179
|
type: "primary",
|
180
180
|
size: "small",
|
181
|
-
onClick:
|
181
|
+
onClick: N
|
182
182
|
}, {
|
183
|
-
default: l(() => [
|
183
|
+
default: l(() => n[6] || (n[6] = [
|
184
184
|
V("确认")
|
185
|
-
]),
|
185
|
+
])),
|
186
186
|
_: 1
|
187
187
|
})
|
188
188
|
]),
|
@@ -191,7 +191,7 @@ const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(
|
|
191
191
|
], 64);
|
192
192
|
};
|
193
193
|
}
|
194
|
-
}),
|
194
|
+
}), D = /* @__PURE__ */ E(T, [["__scopeId", "data-v-657a5bea"]]), R = /* @__PURE__ */ Object.assign({ name: "config-statistic" }, {
|
195
195
|
__name: "index",
|
196
196
|
props: {
|
197
197
|
designer: {
|
@@ -203,71 +203,71 @@ const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(
|
|
203
203
|
default: {}
|
204
204
|
}
|
205
205
|
},
|
206
|
-
setup(
|
207
|
-
let a =
|
208
|
-
const
|
209
|
-
return (
|
210
|
-
const
|
211
|
-
return
|
212
|
-
e(
|
206
|
+
setup(w) {
|
207
|
+
let a = w;
|
208
|
+
const g = x(H);
|
209
|
+
return (f, t) => {
|
210
|
+
const s = p("el-color-picker"), r = p("common-label-container"), v = p("el-input"), y = p("el-input-number");
|
211
|
+
return k(), U(O, null, [
|
212
|
+
e(r, { label: "背景颜色" }, {
|
213
213
|
default: l(() => [
|
214
|
-
e(
|
215
|
-
modelValue:
|
216
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
214
|
+
e(s, {
|
215
|
+
modelValue: u(a).widget.props.color,
|
216
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => u(a).widget.props.color = d),
|
217
217
|
"show-alpha": "",
|
218
|
-
predefine:
|
218
|
+
predefine: g.value
|
219
219
|
}, null, 8, ["modelValue", "predefine"])
|
220
220
|
]),
|
221
221
|
_: 1
|
222
222
|
}),
|
223
|
-
e(
|
223
|
+
e(r, { label: "字体颜色" }, {
|
224
224
|
default: l(() => [
|
225
|
-
e(
|
226
|
-
modelValue:
|
227
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
225
|
+
e(s, {
|
226
|
+
modelValue: u(a).widget.props.fontColor,
|
227
|
+
"onUpdate:modelValue": t[1] || (t[1] = (d) => u(a).widget.props.fontColor = d),
|
228
228
|
"show-alpha": "",
|
229
|
-
predefine:
|
229
|
+
predefine: g.value
|
230
230
|
}, null, 8, ["modelValue", "predefine"])
|
231
231
|
]),
|
232
232
|
_: 1
|
233
233
|
}),
|
234
|
-
e(
|
234
|
+
e(r, { label: "统计标题" }, {
|
235
235
|
default: l(() => [
|
236
|
-
e(
|
237
|
-
modelValue:
|
238
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
236
|
+
e(v, {
|
237
|
+
modelValue: u(a).widget.props.title,
|
238
|
+
"onUpdate:modelValue": t[2] || (t[2] = (d) => u(a).widget.props.title = d),
|
239
239
|
placeholder: "填写统计标题"
|
240
240
|
}, null, 8, ["modelValue"])
|
241
241
|
]),
|
242
242
|
_: 1
|
243
243
|
}),
|
244
|
-
e(
|
244
|
+
e(r, { label: "单位" }, {
|
245
245
|
default: l(() => [
|
246
|
-
e(
|
247
|
-
modelValue:
|
248
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
246
|
+
e(v, {
|
247
|
+
modelValue: u(a).widget.props.unit,
|
248
|
+
"onUpdate:modelValue": t[3] || (t[3] = (d) => u(a).widget.props.unit = d),
|
249
249
|
placeholder: "填写统计单位"
|
250
250
|
}, null, 8, ["modelValue"])
|
251
251
|
]),
|
252
252
|
_: 1
|
253
253
|
}),
|
254
|
-
e(
|
254
|
+
e(r, { label: "子项拆分" }, {
|
255
255
|
default: l(() => [
|
256
|
-
e(
|
256
|
+
e(y, {
|
257
257
|
class: "w-full",
|
258
258
|
placeholder: "子项拆分几个",
|
259
|
-
modelValue:
|
260
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
259
|
+
modelValue: u(a).widget.props.split,
|
260
|
+
"onUpdate:modelValue": t[4] || (t[4] = (d) => u(a).widget.props.split = d),
|
261
261
|
min: 1,
|
262
262
|
"controls-position": "right"
|
263
263
|
}, null, 8, ["modelValue"])
|
264
264
|
]),
|
265
265
|
_: 1
|
266
266
|
}),
|
267
|
-
e(
|
267
|
+
e(r, { label: "子项数据" }, {
|
268
268
|
default: l(() => [
|
269
|
-
e(
|
270
|
-
widget:
|
269
|
+
e(D, {
|
270
|
+
widget: u(a).widget
|
271
271
|
}, null, 8, ["widget"])
|
272
272
|
]),
|
273
273
|
_: 1
|
@@ -277,5 +277,5 @@ const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(
|
|
277
277
|
}
|
278
278
|
});
|
279
279
|
export {
|
280
|
-
|
280
|
+
R as default
|
281
281
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as g, resolveComponent as u, openBlock as b, createElementBlock as V, Fragment as w, createVNode as e, withCtx as n, unref as a } from "vue";
|
2
|
-
import { c } from "./index-
|
2
|
+
import { c } from "./index-jtbWVpP5.js";
|
3
3
|
const k = /* @__PURE__ */ Object.assign({ name: "config-text" }, {
|
4
4
|
__name: "index",
|
5
5
|
props: {
|