epic-designer-gold 1.0.5 → 1.0.6
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/{attributeView-B2dWB_U2.cjs → attributeView-CEFjPemt.cjs} +1 -1
- package/dist/{attributeView-Cu_tjo9A.js → attributeView-C_rnFDGo.js} +3 -3
- package/dist/{axios-B8aFvCWj.cjs → axios-B5oA4AjJ.cjs} +1 -1
- package/dist/{axios-Bb3STC1u.js → axios-awtfJhsA.js} +1 -1
- package/dist/index-AH-Lj15r.js +107 -0
- package/dist/{index-VblxMq6V.js → index-B0rUZfG_.js} +2 -2
- package/dist/{index-CMbBKMQU.js → index-BEMPXyNN.js} +2 -2
- package/dist/{index-BhcwWM1G.cjs → index-BOUKAGKU.cjs} +1 -1
- package/dist/index-B_BKVTct.cjs +1 -0
- package/dist/{index-Bn8pwpgq.cjs → index-Ba8KVYrQ.cjs} +1 -1
- package/dist/{index-D0kQz_zt.js → index-BfdYrl-Q.js} +1 -1
- package/dist/{index-21c4Pe3i.cjs → index-BnLI5N3M.cjs} +1 -1
- package/dist/index-BpROfyMH.cjs +1 -0
- package/dist/index-BxCrqMkz.cjs +1 -0
- package/dist/{index-DeZ09CHf.cjs → index-CBBK4Aze.cjs} +1 -1
- package/dist/index-CDTcUcwY.cjs +1 -0
- package/dist/{index-CgwN4ucQ.js → index-CFZioB1O.js} +2 -2
- package/dist/{index-BLJT8e0Q.js → index-Ce470l1n.js} +4 -4
- package/dist/{index-CHCOxt3B.js → index-CeVV_SOj.js} +3 -3
- package/dist/{index-DxNdcsD-.js → index-CoCyrWM2.js} +124 -120
- package/dist/{index-CYAKMqdR.cjs → index-Cq5wbnmA.cjs} +1 -1
- package/dist/index-D8olMR4m.cjs +10 -0
- package/dist/index-DENcRmIy.js +47 -0
- package/dist/{index-CqeRfqUw.cjs → index-DK4PrvRF.cjs} +1 -1
- package/dist/{index-Dg7MK40D.js → index-DWxy0GSJ.js} +6 -2
- package/dist/{index-DeFAvWuV.cjs → index-DaJuXp0q.cjs} +1 -1
- package/dist/index-DfRZtELz.js +4 -0
- package/dist/{index-Bybwt7-u.js → index-DpF9E6J8.js} +1 -1
- package/dist/{index-DUMEtCCN.cjs → index-J9twEwWw.cjs} +1 -1
- package/dist/{index-CjIIhZdV.js → index-P13z5c0g.js} +3 -3
- package/dist/{index-CEDIwmNK.js → index-cElDeAm2.js} +2 -2
- package/dist/{index-BULuVnVl.js → index-oMkqg9Zb.js} +194 -186
- package/dist/{index-BV9SE7wG.cjs → index-tR-Y01R8.cjs} +1 -1
- package/dist/{index-Bxi3JLms.cjs → index-vzxiD3pz.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/locale/lang/en-US.d.ts +2 -0
- package/dist/locale/lang/zh-cn.d.ts +2 -0
- package/dist/{outline-DxCKINRN.js → outline-DQ8wgGyH.js} +2 -2
- package/dist/{outline-CK-jNomF.cjs → outline-JJ0IbSzs.cjs} +1 -1
- package/dist/sign-BBoshwS_.cjs +1 -0
- package/dist/{sign-B-FCN_7O.js → sign-Dfqcv4Fg.js} +52 -48
- package/dist/style.css +1 -1
- package/dist/{styleView-CRUqDcCl.cjs → styleView-CZEOSq2l.cjs} +1 -1
- package/dist/{styleView-ClMjCfMk.js → styleView-CajgzMOm.js} +3 -3
- package/dist/tree.vue_vue_type_script_setup_true_lang-B-8wkdQS.js +243 -0
- package/dist/tree.vue_vue_type_script_setup_true_lang-BS6Anq-8.cjs +1 -0
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +4 -4
- package/dist/ui/naiveUi/index.cjs +1 -1
- package/dist/ui/naiveUi/index.js +1 -1
- package/dist/{uploadFile-oB2-NP-v.cjs → uploadFile-BHn9oVA8.cjs} +1 -1
- package/dist/{uploadFile-Bc5Rxk0b.js → uploadFile-D_0_6ghp.js} +1 -1
- package/dist/{uploadImage-CGXm3zNQ.js → uploadImage-4U4YGGfK.js} +1 -1
- package/dist/{uploadImage-CF7fobUP.cjs → uploadImage-B3tV49Mm.cjs} +1 -1
- package/dist/{uploadImage-4tgp3t7X.cjs → uploadImage-C-OyUMFn.cjs} +1 -1
- package/dist/{uploadImage-COCC3pxH.js → uploadImage-Z6Y6KN1R.js} +1 -1
- package/package.json +1 -1
- package/dist/index-B553TaXm.js +0 -44
- package/dist/index-CEvDmc0a.js +0 -104
- package/dist/index-CI3dhGXT.cjs +0 -1
- package/dist/index-Cq6eLpKZ.cjs +0 -1
- package/dist/index-CrV5FaWU.cjs +0 -10
- package/dist/index-DR80h8IU.js +0 -4
- package/dist/index-DddTXMY9.cjs +0 -1
- package/dist/index-DzxQG0o7.cjs +0 -1
- package/dist/sign-Dho4kHTC.cjs +0 -1
- package/dist/tree.vue_vue_type_script_setup_true_lang-B9rWLveX.js +0 -242
- package/dist/tree.vue_vue_type_script_setup_true_lang-DDDqMedP.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as V, reactive as te, defineComponent as ne, openBlock as B, createBlock as
|
|
2
|
-
import { p as U, f as
|
|
3
|
-
import { a as
|
|
1
|
+
import { ref as V, reactive as te, defineComponent as ne, openBlock as B, createBlock as Z, unref as F, mergeProps as he, withCtx as R, renderSlot as L, getCurrentInstance as re, inject as q, watch as $, useAttrs as Ve, provide as z, shallowRef as Ne, computed as H, watchEffect as ce, onUnmounted as Ee, resolveComponent as Me, resolveDynamicComponent as Fe, createVNode as K, createCommentVNode as be, useSlots as Re, createElementBlock as ve, Suspense as Ae, createElementVNode as Q, Fragment as $e, renderList as Ue, nextTick as ae, effectScope as Be, isRef as Te, getCurrentScope as Le, onScopeDispose as ze, onMounted as ge, normalizeClass as Je, toRaw as De } from "vue";
|
|
2
|
+
import { p as U, f as He, d as oe, a as Y, b as Ie, c as Ke, E as ee, e as Se, l as j, g as Ze, h as We } from "./axios-awtfJhsA.js";
|
|
3
|
+
import { a as le, u as ye } from "./index-DWxy0GSJ.js";
|
|
4
4
|
function Ft(e, n) {
|
|
5
5
|
let s = null;
|
|
6
6
|
return (...a) => {
|
|
@@ -9,7 +9,7 @@ function Ft(e, n) {
|
|
|
9
9
|
}, n);
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function xe() {
|
|
13
13
|
const e = V({}), n = V({}), s = V(!1), a = V([]), i = te({});
|
|
14
14
|
function l(d) {
|
|
15
15
|
return e.value[d];
|
|
@@ -22,7 +22,7 @@ function Ie() {
|
|
|
22
22
|
}
|
|
23
23
|
function v(d, D = !1) {
|
|
24
24
|
const A = Object.entries(U.publicMethods).reduce(
|
|
25
|
-
(P, [r,
|
|
25
|
+
(P, [r, N]) => (P[r] = N.handler, P),
|
|
26
26
|
{}
|
|
27
27
|
);
|
|
28
28
|
try {
|
|
@@ -30,7 +30,7 @@ function Ie() {
|
|
|
30
30
|
...A,
|
|
31
31
|
getComponent: l,
|
|
32
32
|
find: l,
|
|
33
|
-
defineExpose:
|
|
33
|
+
defineExpose: x,
|
|
34
34
|
publicMethods: A,
|
|
35
35
|
pluginManager: U
|
|
36
36
|
})();
|
|
@@ -38,7 +38,7 @@ function Ie() {
|
|
|
38
38
|
D && console.error("[epic:自定义函数]异常:", P);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function x(d) {
|
|
42
42
|
d != null && (n.value = d);
|
|
43
43
|
}
|
|
44
44
|
function E(d, ...D) {
|
|
@@ -96,7 +96,7 @@ function Ie() {
|
|
|
96
96
|
s.value = d;
|
|
97
97
|
}
|
|
98
98
|
function u(d) {
|
|
99
|
-
const D =
|
|
99
|
+
const D = He(d, () => !0);
|
|
100
100
|
a.value = D.map((A) => A.id);
|
|
101
101
|
}
|
|
102
102
|
function w(d, D = "default") {
|
|
@@ -106,7 +106,7 @@ function Ie() {
|
|
|
106
106
|
}
|
|
107
107
|
i[D] = d;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function M(d, D = "default") {
|
|
110
110
|
if (i[D]) {
|
|
111
111
|
oe(i[D], d, !1);
|
|
112
112
|
return;
|
|
@@ -120,7 +120,7 @@ function Ie() {
|
|
|
120
120
|
defaultComponentIds: a,
|
|
121
121
|
forms: i,
|
|
122
122
|
addFormData: w,
|
|
123
|
-
setFormData:
|
|
123
|
+
setFormData: M,
|
|
124
124
|
getComponentInstance: l,
|
|
125
125
|
// 简化查询函数, 推荐使用
|
|
126
126
|
find: l,
|
|
@@ -135,10 +135,10 @@ function Ie() {
|
|
|
135
135
|
function Ge() {
|
|
136
136
|
const e = V([]), n = V([]), s = V(null);
|
|
137
137
|
let a = 0;
|
|
138
|
-
function i(v,
|
|
138
|
+
function i(v, x = "插入组件") {
|
|
139
139
|
const E = Date.now();
|
|
140
140
|
a + 150 > E || (a = E, s.value != null && (e.value.push(s.value), n.value.splice(0, n.value.length)), s.value = {
|
|
141
|
-
type:
|
|
141
|
+
type: x,
|
|
142
142
|
componentSchema: JSON.stringify(v)
|
|
143
143
|
}, e.value.length > 60 && e.value.unshift());
|
|
144
144
|
}
|
|
@@ -178,7 +178,7 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
178
178
|
const s = U.getComponent("form-item"), a = e, i = n, l = V(), p = () => {
|
|
179
179
|
i("updateFormItemRef", l.value);
|
|
180
180
|
};
|
|
181
|
-
return (h, v) => a.hasFormItem ? (B(),
|
|
181
|
+
return (h, v) => a.hasFormItem ? (B(), Z(F(s), he({
|
|
182
182
|
key: 0,
|
|
183
183
|
ref_key: "formItemRef",
|
|
184
184
|
ref: l,
|
|
@@ -207,12 +207,12 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
207
207
|
setup(e, { emit: n }) {
|
|
208
208
|
const { proxy: s } = re(), a = e, i = V(null);
|
|
209
209
|
let l = q("formData", te({}));
|
|
210
|
-
const p = q("slots", {}), h = q("pageManager", {}), v = q("disabled", { value: !1 }),
|
|
210
|
+
const p = q("slots", {}), h = q("pageManager", {}), v = q("disabled", { value: !1 }), x = q("ruleFieldPrefix", null), E = q("resetFormData", !1);
|
|
211
211
|
let o = te(Y(a.componentSchema));
|
|
212
212
|
y();
|
|
213
213
|
async function b(t) {
|
|
214
214
|
if (["cascader", "checkbox", "select", "radio"].includes(t.type) && t.componentProps.dynamicId && a.sourceDateUrl) {
|
|
215
|
-
const f = (await
|
|
215
|
+
const f = (await Se({
|
|
216
216
|
// || "http://192.168.28.205:3000/dev-api/data-source
|
|
217
217
|
url: a.sourceDateUrl,
|
|
218
218
|
method: "get",
|
|
@@ -220,17 +220,25 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
220
220
|
id: t.componentProps.dynamicId
|
|
221
221
|
},
|
|
222
222
|
headers: {
|
|
223
|
-
Authorization: "Bearer " +
|
|
223
|
+
Authorization: "Bearer " + le.get("Admin-Token"),
|
|
224
|
+
lang: le.get("saas-locale") || "zh-CN",
|
|
225
|
+
//语言
|
|
226
|
+
zone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
227
|
+
//时区
|
|
224
228
|
}
|
|
225
229
|
})).data.data;
|
|
226
|
-
let O = await
|
|
230
|
+
let O = await Se({
|
|
227
231
|
url: f.url,
|
|
228
232
|
method: f.method,
|
|
229
233
|
data: JSON.parse(f.body),
|
|
230
234
|
params: JSON.parse(f.params),
|
|
231
235
|
headers: {
|
|
232
236
|
...JSON.parse(f.headers),
|
|
233
|
-
Authorization: "Bearer " +
|
|
237
|
+
Authorization: "Bearer " + le.get("Admin-Token"),
|
|
238
|
+
lang: le.get("saas-locale") || "zh-CN",
|
|
239
|
+
//语言
|
|
240
|
+
zone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
241
|
+
//时区
|
|
234
242
|
}
|
|
235
243
|
});
|
|
236
244
|
if (f && (f != null && f.dataPath)) {
|
|
@@ -255,7 +263,7 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
255
263
|
$(
|
|
256
264
|
() => a.componentSchema,
|
|
257
265
|
(t) => {
|
|
258
|
-
|
|
266
|
+
Ie(o, t, ["children"]) || (oe(o, Y(t)), y());
|
|
259
267
|
},
|
|
260
268
|
{
|
|
261
269
|
deep: !0
|
|
@@ -265,14 +273,14 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
265
273
|
h.isDesignMode.value && typeof o.field == "string" && (o.field += "-design-mode");
|
|
266
274
|
}
|
|
267
275
|
(a.resetFormData || E) && (l = {});
|
|
268
|
-
const u = n, w = V(),
|
|
269
|
-
|
|
276
|
+
const u = n, w = V(), M = V(), d = (t) => {
|
|
277
|
+
M.value = t;
|
|
270
278
|
}, D = Ve();
|
|
271
|
-
Object.keys(D).length &&
|
|
272
|
-
const A =
|
|
279
|
+
Object.keys(D).length && z("nodeAttrs", D);
|
|
280
|
+
const A = Ne(null), P = H(() => {
|
|
273
281
|
var t, _;
|
|
274
282
|
return (t = o.componentProps) != null && t.hidden ? !1 : typeof o.show == "boolean" ? o.show : ((_ = o.show) == null ? void 0 : _.call(o, { values: l })) ?? !0;
|
|
275
|
-
}), r =
|
|
283
|
+
}), r = H(() => {
|
|
276
284
|
var f;
|
|
277
285
|
const t = P.value && ((f = o.rules) == null ? void 0 : f.map((O) => ({
|
|
278
286
|
...O,
|
|
@@ -280,7 +288,7 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
280
288
|
// 自定义校验函数
|
|
281
289
|
})));
|
|
282
290
|
let _ = o.field;
|
|
283
|
-
a.ruleField ? _ = a.ruleField :
|
|
291
|
+
a.ruleField ? _ = a.ruleField : x && o.field && (_ = Y(x), _.push(o.field));
|
|
284
292
|
const C = {
|
|
285
293
|
...o,
|
|
286
294
|
rules: t,
|
|
@@ -288,7 +296,7 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
288
296
|
field: _
|
|
289
297
|
};
|
|
290
298
|
return C.children && delete C.children, C;
|
|
291
|
-
}),
|
|
299
|
+
}), N = H(() => {
|
|
292
300
|
var C, f;
|
|
293
301
|
const t = ((C = g.value) == null ? void 0 : C.bindModel) ?? "modelValue", _ = {};
|
|
294
302
|
return o.on && Object.keys(o.on).forEach((O) => {
|
|
@@ -300,8 +308,8 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
300
308
|
bindModel: t,
|
|
301
309
|
..._
|
|
302
310
|
};
|
|
303
|
-
}), g =
|
|
304
|
-
|
|
311
|
+
}), g = H(() => U.getComponentConfingByType(o.type) ?? null);
|
|
312
|
+
ce(() => {
|
|
305
313
|
i.value = a.modelValue ?? l[o.field ?? ""];
|
|
306
314
|
}), $(
|
|
307
315
|
() => i.value,
|
|
@@ -311,20 +319,20 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
311
319
|
), $(
|
|
312
320
|
() => w.value,
|
|
313
321
|
() => {
|
|
314
|
-
|
|
322
|
+
I();
|
|
315
323
|
},
|
|
316
324
|
{ immediate: !0 }
|
|
317
325
|
);
|
|
318
|
-
function
|
|
326
|
+
function I() {
|
|
319
327
|
var _;
|
|
320
328
|
const t = w.value || s;
|
|
321
|
-
o.id && t && (o.input && (t.setValue = S, t.getValue = () => l[o.field] || a.modelValue), t.setAttr = (C, f) => (o.componentProps || (o.componentProps = {}), o.componentProps[C] = f), t.getAttr = (C) => o.componentProps[C], h.addComponentInstance(o.id, t), (_ = g.value) != null && _.defaultSchema.input && o.noFormItem !== !0 &&
|
|
329
|
+
o.id && t && (o.input && (t.setValue = S, t.getValue = () => l[o.field] || a.modelValue), t.setAttr = (C, f) => (o.componentProps || (o.componentProps = {}), o.componentProps[C] = f), t.getAttr = (C) => o.componentProps[C], h.addComponentInstance(o.id, t), (_ = g.value) != null && _.defaultSchema.input && o.noFormItem !== !0 && M.value && h.addComponentInstance(o.id + "formItem", M.value));
|
|
322
330
|
}
|
|
323
331
|
function m() {
|
|
324
332
|
var t;
|
|
325
333
|
o.id && (h.removeComponentInstance(o.id), (t = g.value) != null && t.defaultSchema.input && o.noFormItem !== !0 && h.removeComponentInstance(o.id + "formItem"));
|
|
326
334
|
}
|
|
327
|
-
async function
|
|
335
|
+
async function W() {
|
|
328
336
|
var _, C, f;
|
|
329
337
|
if (o = await b(o), typeof ((_ = o.componentProps) == null ? void 0 : _.defaultValue) < "u") {
|
|
330
338
|
const O = h.isDesignMode.value ? (C = o.componentProps) == null ? void 0 : C.defaultValue : l[o.field] ?? ((f = o.componentProps) == null ? void 0 : f.defaultValue);
|
|
@@ -354,7 +362,7 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
354
362
|
} else
|
|
355
363
|
A.value = t;
|
|
356
364
|
}
|
|
357
|
-
function
|
|
365
|
+
function J(t) {
|
|
358
366
|
Object.prototype.toString.call(t), Object.prototype.toString.call(t) === "[object Array]" ? t.forEach((_) => {
|
|
359
367
|
l[_.value] = _.label;
|
|
360
368
|
}) : l[t.value] = t.label, ee.emit("updateformData" + a.id, l);
|
|
@@ -379,7 +387,7 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
379
387
|
});
|
|
380
388
|
if (_ === G)
|
|
381
389
|
return !1;
|
|
382
|
-
G = _,
|
|
390
|
+
G = _, W();
|
|
383
391
|
},
|
|
384
392
|
{
|
|
385
393
|
immediate: !0,
|
|
@@ -387,28 +395,28 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
387
395
|
}
|
|
388
396
|
), Ee(m), (t, _) => {
|
|
389
397
|
var f;
|
|
390
|
-
const C =
|
|
391
|
-
return A.value && P.value ? (B(),
|
|
398
|
+
const C = Me("ENode");
|
|
399
|
+
return A.value && P.value ? (B(), Z(Qe, {
|
|
392
400
|
key: 0,
|
|
393
401
|
hasFormItem: F(o).noFormItem !== !0 && ((f = g.value) == null ? void 0 : f.defaultSchema.input),
|
|
394
402
|
formItemProps: r.value,
|
|
395
403
|
onUpdateFormItemRef: d
|
|
396
404
|
}, {
|
|
397
405
|
default: R(() => [
|
|
398
|
-
(B(),
|
|
406
|
+
(B(), Z(Fe(A.value), he({
|
|
399
407
|
ref_key: "componentInstance",
|
|
400
408
|
ref: w,
|
|
401
|
-
onVnodeMounted:
|
|
409
|
+
onVnodeMounted: I,
|
|
402
410
|
model: F(l)
|
|
403
|
-
}, { ...
|
|
404
|
-
[
|
|
405
|
-
["onUpdate:" +
|
|
406
|
-
[`onUpdate:${
|
|
407
|
-
"onUpdate:modelValueLabel":
|
|
411
|
+
}, { ...N.value }, {
|
|
412
|
+
[N.value.bindModel]: i.value,
|
|
413
|
+
["onUpdate:" + N.value.bindModel]: _[0] || (_[0] = (O) => i.value = O),
|
|
414
|
+
[`onUpdate:${N.value.bindModel}` || ""]: S,
|
|
415
|
+
"onUpdate:modelValueLabel": J,
|
|
408
416
|
"onUpdate:dynamicId": T
|
|
409
417
|
}), {
|
|
410
418
|
node: R((O) => [
|
|
411
|
-
K(C,
|
|
419
|
+
K(C, he({
|
|
412
420
|
id: a.id
|
|
413
421
|
}, O, {
|
|
414
422
|
sourceDateUrl: a.sourceDateUrl
|
|
@@ -426,7 +434,7 @@ const Qe = /* @__PURE__ */ ne({
|
|
|
426
434
|
}
|
|
427
435
|
});
|
|
428
436
|
function qe() {
|
|
429
|
-
const e = V(!1), n =
|
|
437
|
+
const e = V(!1), n = xe(), s = V({});
|
|
430
438
|
function a() {
|
|
431
439
|
return new Promise((c) => {
|
|
432
440
|
if (e.value)
|
|
@@ -453,32 +461,32 @@ function qe() {
|
|
|
453
461
|
return await l(c, (y) => y.getData());
|
|
454
462
|
}
|
|
455
463
|
function h(c, y = "default", u = void 0) {
|
|
456
|
-
var w,
|
|
464
|
+
var w, M;
|
|
457
465
|
if (u && Object.keys(u).length) {
|
|
458
466
|
let d = function(r) {
|
|
459
|
-
let
|
|
467
|
+
let N = [];
|
|
460
468
|
return r.forEach((g) => {
|
|
461
|
-
g.children && (
|
|
462
|
-
}),
|
|
469
|
+
g.children && (N = [...N, ...d(g.children)]), N.push(g);
|
|
470
|
+
}), N;
|
|
463
471
|
}, A = function(r) {
|
|
464
472
|
var g;
|
|
465
|
-
let
|
|
466
|
-
return Object.keys(r).forEach((
|
|
467
|
-
var
|
|
468
|
-
const m =
|
|
469
|
-
if ((m && (m == null ? void 0 : m.type) === "checkbox" || (m == null ? void 0 : m.type) === "select" && ((
|
|
470
|
-
r[
|
|
471
|
-
else if ((m == null ? void 0 : m.type) === "cascader" && ((C = (_ = m == null ? void 0 : m.componentProps) == null ? void 0 : _.props) != null && C.multiple) && typeof r[
|
|
472
|
-
r[
|
|
473
|
-
else if (((m == null ? void 0 : m.type) === "upload-image" || (m == null ? void 0 : m.type) === "upload-file") && typeof r[
|
|
473
|
+
let N = d((g = u == null ? void 0 : u.schemas[0]) == null ? void 0 : g.children);
|
|
474
|
+
return Object.keys(r).forEach((I) => {
|
|
475
|
+
var J, S, T, G, t, _, C;
|
|
476
|
+
const m = N.find((f) => f.field === I), W = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
477
|
+
if ((m && (m == null ? void 0 : m.type) === "checkbox" || (m == null ? void 0 : m.type) === "select" && ((J = m == null ? void 0 : m.componentProps) != null && J.multiple) || (m == null ? void 0 : m.type) === "cascader" && !((T = (S = m == null ? void 0 : m.componentProps) == null ? void 0 : S.props) != null && T.multiple) || (m == null ? void 0 : m.type) === "date" && W.includes((G = m == null ? void 0 : m.componentProps) == null ? void 0 : G.type)) && typeof r[I] == "string")
|
|
478
|
+
r[I] = (t = r[I]) == null ? void 0 : t.split(",");
|
|
479
|
+
else if ((m == null ? void 0 : m.type) === "cascader" && ((C = (_ = m == null ? void 0 : m.componentProps) == null ? void 0 : _.props) != null && C.multiple) && typeof r[I] == "string")
|
|
480
|
+
r[I].indexOf(";") > -1 ? r[I] = r[I].split(";").map((f) => f.split(",")) : r[I] = r[I].split(","), r[I].indexOf(";") > -1 ? r[I] = r[I].split(";").map((f) => f.split(",")) : r[I] = r[I].split(",");
|
|
481
|
+
else if (((m == null ? void 0 : m.type) === "upload-image" || (m == null ? void 0 : m.type) === "upload-file") && typeof r[I] == "string") {
|
|
474
482
|
let f = [];
|
|
475
483
|
Object.entries(r).forEach(([O, k]) => {
|
|
476
|
-
r[
|
|
477
|
-
}), r[
|
|
484
|
+
r[I] === k && O !== m.field && O.indexOf("@") > -1 && O.indexOf(I) > -1 && (f = O.split("@")[1].split(","));
|
|
485
|
+
}), r[I] = r[I].split(",").map((O, k) => ({
|
|
478
486
|
url: O,
|
|
479
487
|
name: f[k] || O
|
|
480
488
|
}));
|
|
481
|
-
} else (m == null ? void 0 : m.type) === "number" || (m == null ? void 0 : m.type) === "slider" ? r[
|
|
489
|
+
} else (m == null ? void 0 : m.type) === "number" || (m == null ? void 0 : m.type) === "slider" ? r[I] = Number(r[I]) : (m == null ? void 0 : m.type) === "switch" && (r[I] = typeof r[I] == "boolean" ? r[I] : r[I].indexOf("true") > -1);
|
|
482
490
|
}), r;
|
|
483
491
|
}(c);
|
|
484
492
|
n.setFormData(A, y);
|
|
@@ -486,14 +494,14 @@ function qe() {
|
|
|
486
494
|
P == null || P.clearValidate();
|
|
487
495
|
} else {
|
|
488
496
|
n.setFormData(c, y);
|
|
489
|
-
const d = (
|
|
497
|
+
const d = (M = s.value) == null ? void 0 : M[y];
|
|
490
498
|
d == null || d.clearValidate();
|
|
491
499
|
}
|
|
492
500
|
}
|
|
493
501
|
async function v(c = "default") {
|
|
494
502
|
return await l(c, async (y) => (await y.validate(), await y.getData()));
|
|
495
503
|
}
|
|
496
|
-
async function
|
|
504
|
+
async function x(c) {
|
|
497
505
|
await a();
|
|
498
506
|
const y = {};
|
|
499
507
|
for (const u in s.value) {
|
|
@@ -503,14 +511,14 @@ function qe() {
|
|
|
503
511
|
return y;
|
|
504
512
|
}
|
|
505
513
|
async function E() {
|
|
506
|
-
return await
|
|
514
|
+
return await x((c) => c.getData());
|
|
507
515
|
}
|
|
508
516
|
function o(c) {
|
|
509
517
|
for (const y in c)
|
|
510
518
|
h(c[y], y);
|
|
511
519
|
}
|
|
512
520
|
async function b() {
|
|
513
|
-
return await
|
|
521
|
+
return await x(async (c) => (await c.validate(), await c.getData()));
|
|
514
522
|
}
|
|
515
523
|
return {
|
|
516
524
|
ready: e,
|
|
@@ -539,7 +547,7 @@ const Xe = {
|
|
|
539
547
|
},
|
|
540
548
|
emits: ["change", "ready"],
|
|
541
549
|
setup(e, { expose: n, emit: s }) {
|
|
542
|
-
const a = j(() => import("./index-DgcFxYFp.js")), i = s, { ready: l, pageManager: p, forms: h, getData: v, setData:
|
|
550
|
+
const a = j(() => import("./index-DgcFxYFp.js")), i = s, { ready: l, pageManager: p, forms: h, getData: v, setData: x, validate: E, getForms: o, setForms: b, validateAll: c, getFormInstance: y } = qe(), u = e, w = te({
|
|
543
551
|
schemas: []
|
|
544
552
|
});
|
|
545
553
|
$(
|
|
@@ -555,8 +563,8 @@ const Xe = {
|
|
|
555
563
|
() => u.formData,
|
|
556
564
|
(r) => {
|
|
557
565
|
if (r) {
|
|
558
|
-
let
|
|
559
|
-
|
|
566
|
+
let N = d(r);
|
|
567
|
+
x(N);
|
|
560
568
|
}
|
|
561
569
|
},
|
|
562
570
|
{
|
|
@@ -564,19 +572,19 @@ const Xe = {
|
|
|
564
572
|
deep: !0
|
|
565
573
|
}
|
|
566
574
|
);
|
|
567
|
-
function
|
|
568
|
-
let
|
|
575
|
+
function M(r) {
|
|
576
|
+
let N = [];
|
|
569
577
|
return r.forEach((g) => {
|
|
570
|
-
g.children && (
|
|
571
|
-
}),
|
|
578
|
+
g.children && (N = [...N, ...M(g.children)]), N.push(g);
|
|
579
|
+
}), N;
|
|
572
580
|
}
|
|
573
581
|
function d(r) {
|
|
574
|
-
let
|
|
582
|
+
let N = M(u.pageSchema.schemas[0].children);
|
|
575
583
|
return Object.keys(r).forEach((g) => {
|
|
576
|
-
var
|
|
584
|
+
var I, m, W, J, S, T, G;
|
|
577
585
|
if (g.indexOf("@") < 0) {
|
|
578
|
-
const t =
|
|
579
|
-
if ((t && (t == null ? void 0 : t.type) === "checkbox" || (t == null ? void 0 : t.type) === "select" && ((
|
|
586
|
+
const t = N.find((C) => C.field === g), _ = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
587
|
+
if ((t && (t == null ? void 0 : t.type) === "checkbox" || (t == null ? void 0 : t.type) === "select" && ((I = t == null ? void 0 : t.componentProps) != null && I.multiple) || (t == null ? void 0 : t.type) === "cascader" && !((W = (m = t == null ? void 0 : t.componentProps) == null ? void 0 : m.props) != null && W.multiple) || (t == null ? void 0 : t.type) === "date" && _.includes((J = t == null ? void 0 : t.componentProps) == null ? void 0 : J.type)) && typeof r[g] == "string")
|
|
580
588
|
r[g] = (S = r[g]) == null ? void 0 : S.split(",");
|
|
581
589
|
else if ((t == null ? void 0 : t.type) === "cascader" && ((G = (T = t == null ? void 0 : t.componentProps) == null ? void 0 : T.props) != null && G.multiple) && typeof r[g] == "string")
|
|
582
590
|
r[g].indexOf(";") > -1 ? r[g] = r[g].split(";").map((C) => C.split(",")) : r[g] = r[g].split(","), r[g].indexOf(";") > -1 ? r[g] = r[g].split(";").map((C) => C.split(",")) : r[g] = r[g].split(",");
|
|
@@ -600,9 +608,9 @@ const Xe = {
|
|
|
600
608
|
{
|
|
601
609
|
immediate: !0
|
|
602
610
|
}
|
|
603
|
-
),
|
|
611
|
+
), z("slots", Re()), z("pageManager", p), z("forms", h), z("pageSchema", w), z(
|
|
604
612
|
"disabled",
|
|
605
|
-
|
|
613
|
+
H(() => u.disabled)
|
|
606
614
|
);
|
|
607
615
|
const D = re(), A = D == null ? void 0 : D.proxy;
|
|
608
616
|
function P() {
|
|
@@ -616,21 +624,21 @@ const Xe = {
|
|
|
616
624
|
ready: l,
|
|
617
625
|
pageManager: p,
|
|
618
626
|
getData: v,
|
|
619
|
-
setData:
|
|
627
|
+
setData: x,
|
|
620
628
|
validate: E,
|
|
621
629
|
getForms: o,
|
|
622
630
|
setForms: b,
|
|
623
631
|
validateAll: c,
|
|
624
632
|
getFormInstance: y
|
|
625
|
-
}), (r,
|
|
633
|
+
}), (r, N) => F(U).initialized.value ? (B(), Z(Ae, {
|
|
626
634
|
key: 1,
|
|
627
635
|
onResolve: P
|
|
628
636
|
}, {
|
|
629
637
|
default: R(() => [
|
|
630
638
|
Q("div", ke, [
|
|
631
|
-
(B(!0),
|
|
639
|
+
(B(!0), ve($e, null, Ue(w.schemas, (g, I) => (B(), Z(F(Ye), {
|
|
632
640
|
id: u.id,
|
|
633
|
-
key:
|
|
641
|
+
key: I,
|
|
634
642
|
sourceDateUrl: u.sourceDateUrl,
|
|
635
643
|
componentSchema: g
|
|
636
644
|
}, null, 8, ["id", "sourceDateUrl", "componentSchema"]))), 128))
|
|
@@ -642,18 +650,18 @@ const Xe = {
|
|
|
642
650
|
])
|
|
643
651
|
]),
|
|
644
652
|
_: 1
|
|
645
|
-
})) : (B(),
|
|
653
|
+
})) : (B(), ve("div", Xe));
|
|
646
654
|
}
|
|
647
655
|
});
|
|
648
|
-
function
|
|
649
|
-
return Le() ? (
|
|
656
|
+
function we(e) {
|
|
657
|
+
return Le() ? (ze(e), !0) : !1;
|
|
650
658
|
}
|
|
651
659
|
function tt(e) {
|
|
652
660
|
let n = 0, s, a;
|
|
653
661
|
const i = () => {
|
|
654
662
|
n -= 1, a && n <= 0 && (a.stop(), s = void 0, a = void 0);
|
|
655
663
|
};
|
|
656
|
-
return (...l) => (n += 1, a || (a = Be(!0), s = a.run(() => e(...l))),
|
|
664
|
+
return (...l) => (n += 1, a || (a = Be(!0), s = a.run(() => e(...l))), we(i), s);
|
|
657
665
|
}
|
|
658
666
|
function se(e) {
|
|
659
667
|
return typeof e == "function" ? e() : F(e);
|
|
@@ -666,7 +674,7 @@ function lt(e) {
|
|
|
666
674
|
return re();
|
|
667
675
|
}
|
|
668
676
|
function it(e, n = !0, s) {
|
|
669
|
-
lt() ?
|
|
677
|
+
lt() ? ge(e, s) : n ? e() : ae(e);
|
|
670
678
|
}
|
|
671
679
|
function ct(e = !1, n = {}) {
|
|
672
680
|
const {
|
|
@@ -687,7 +695,7 @@ function Rt(e, n, s) {
|
|
|
687
695
|
const a = $(e, (...i) => (ae(() => a()), n(...i)), s);
|
|
688
696
|
return a;
|
|
689
697
|
}
|
|
690
|
-
const
|
|
698
|
+
const ue = nt ? window : void 0;
|
|
691
699
|
function X(e) {
|
|
692
700
|
var n;
|
|
693
701
|
const s = se(e);
|
|
@@ -695,7 +703,7 @@ function X(e) {
|
|
|
695
703
|
}
|
|
696
704
|
function ut(...e) {
|
|
697
705
|
let n, s, a, i;
|
|
698
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([s, a, i] = e, n =
|
|
706
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([s, a, i] = e, n = ue) : [n, s, a, i] = e, !n)
|
|
699
707
|
return rt;
|
|
700
708
|
Array.isArray(s) || (s = [s]), Array.isArray(a) || (a = [a]);
|
|
701
709
|
const l = [], p = () => {
|
|
@@ -711,10 +719,10 @@ function ut(...e) {
|
|
|
711
719
|
);
|
|
712
720
|
},
|
|
713
721
|
{ immediate: !0, flush: "post" }
|
|
714
|
-
),
|
|
722
|
+
), x = () => {
|
|
715
723
|
v(), p();
|
|
716
724
|
};
|
|
717
|
-
return
|
|
725
|
+
return we(x), x;
|
|
718
726
|
}
|
|
719
727
|
function dt(e) {
|
|
720
728
|
return typeof e == "function" ? e : typeof e == "string" ? (n) => n.key === e : Array.isArray(e) ? (n) => e.includes(n.key) : () => !0;
|
|
@@ -723,7 +731,7 @@ function _e(...e) {
|
|
|
723
731
|
let n, s, a = {};
|
|
724
732
|
e.length === 3 ? (n = e[0], s = e[1], a = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (n = !0, s = e[0], a = e[1]) : (n = e[0], s = e[1]) : (n = !0, s = e[0]);
|
|
725
733
|
const {
|
|
726
|
-
target: i =
|
|
734
|
+
target: i = ue,
|
|
727
735
|
eventName: l = "keydown",
|
|
728
736
|
passive: p = !1,
|
|
729
737
|
dedupe: h = !1
|
|
@@ -732,34 +740,34 @@ function _e(...e) {
|
|
|
732
740
|
E.repeat && se(h) || v(E) && s(E);
|
|
733
741
|
}, p);
|
|
734
742
|
}
|
|
735
|
-
function
|
|
743
|
+
function fe(e, n, s = {}) {
|
|
736
744
|
return _e(e, n, { ...s, eventName: "keydown" });
|
|
737
745
|
}
|
|
738
|
-
function
|
|
746
|
+
function pe(e, n, s = {}) {
|
|
739
747
|
return _e(e, n, { ...s, eventName: "keyup" });
|
|
740
748
|
}
|
|
741
749
|
function ft() {
|
|
742
750
|
const e = V(!1), n = re();
|
|
743
|
-
return n &&
|
|
751
|
+
return n && ge(() => {
|
|
744
752
|
e.value = !0;
|
|
745
753
|
}, n), e;
|
|
746
754
|
}
|
|
747
755
|
function pt(e) {
|
|
748
756
|
const n = ft();
|
|
749
|
-
return
|
|
757
|
+
return H(() => (n.value, !!e()));
|
|
750
758
|
}
|
|
751
759
|
function mt(e) {
|
|
752
760
|
return JSON.parse(JSON.stringify(e));
|
|
753
761
|
}
|
|
754
762
|
function ht(e, n, s = {}) {
|
|
755
|
-
const { window: a =
|
|
763
|
+
const { window: a = ue, ...i } = s;
|
|
756
764
|
let l;
|
|
757
765
|
const p = pt(() => a && "ResizeObserver" in a), h = () => {
|
|
758
766
|
l && (l.disconnect(), l = void 0);
|
|
759
|
-
}, v =
|
|
767
|
+
}, v = H(() => {
|
|
760
768
|
const o = se(e);
|
|
761
769
|
return Array.isArray(o) ? o.map((b) => X(b)) : [X(o)];
|
|
762
|
-
}),
|
|
770
|
+
}), x = $(
|
|
763
771
|
v,
|
|
764
772
|
(o) => {
|
|
765
773
|
if (h(), p.value && a) {
|
|
@@ -770,15 +778,15 @@ function ht(e, n, s = {}) {
|
|
|
770
778
|
},
|
|
771
779
|
{ immediate: !0, flush: "post" }
|
|
772
780
|
), E = () => {
|
|
773
|
-
h(),
|
|
781
|
+
h(), x();
|
|
774
782
|
};
|
|
775
|
-
return
|
|
783
|
+
return we(E), {
|
|
776
784
|
isSupported: p,
|
|
777
785
|
stop: E
|
|
778
786
|
};
|
|
779
787
|
}
|
|
780
788
|
function $t(e, n = { width: 0, height: 0 }, s = {}) {
|
|
781
|
-
const { window: a =
|
|
789
|
+
const { window: a = ue, box: i = "content-box" } = s, l = H(() => {
|
|
782
790
|
var o, b;
|
|
783
791
|
return (b = (o = X(e)) == null ? void 0 : o.namespaceURI) == null ? void 0 : b.includes("svg");
|
|
784
792
|
}), p = V(n.width), h = V(n.height), { stop: v } = ht(
|
|
@@ -803,14 +811,14 @@ function $t(e, n = { width: 0, height: 0 }, s = {}) {
|
|
|
803
811
|
const o = X(e);
|
|
804
812
|
o && (p.value = "offsetWidth" in o ? o.offsetWidth : n.width, h.value = "offsetHeight" in o ? o.offsetHeight : n.height);
|
|
805
813
|
});
|
|
806
|
-
const
|
|
814
|
+
const x = $(
|
|
807
815
|
() => X(e),
|
|
808
816
|
(o) => {
|
|
809
817
|
p.value = o ? n.width : 0, h.value = o ? n.height : 0;
|
|
810
818
|
}
|
|
811
819
|
);
|
|
812
820
|
function E() {
|
|
813
|
-
v(),
|
|
821
|
+
v(), x();
|
|
814
822
|
}
|
|
815
823
|
return {
|
|
816
824
|
width: p,
|
|
@@ -823,18 +831,18 @@ function Ut(e, n, s, a = {}) {
|
|
|
823
831
|
const {
|
|
824
832
|
clone: h = !1,
|
|
825
833
|
passive: v = !1,
|
|
826
|
-
eventName:
|
|
834
|
+
eventName: x,
|
|
827
835
|
deep: E = !1,
|
|
828
836
|
defaultValue: o,
|
|
829
837
|
shouldEmit: b
|
|
830
838
|
} = a, c = re(), y = s || (c == null ? void 0 : c.emit) || ((i = c == null ? void 0 : c.$emit) == null ? void 0 : i.bind(c)) || ((p = (l = c == null ? void 0 : c.proxy) == null ? void 0 : l.$emit) == null ? void 0 : p.bind(c == null ? void 0 : c.proxy));
|
|
831
|
-
let u =
|
|
839
|
+
let u = x;
|
|
832
840
|
n || (n = "modelValue"), u = u || `update:${n.toString()}`;
|
|
833
|
-
const w = (D) => h ? typeof h == "function" ? h(D) : mt(D) : D,
|
|
841
|
+
const w = (D) => h ? typeof h == "function" ? h(D) : mt(D) : D, M = () => ot(e[n]) ? w(e[n]) : o, d = (D) => {
|
|
834
842
|
b ? b(D) && y(u, D) : y(u, D);
|
|
835
843
|
};
|
|
836
844
|
if (v) {
|
|
837
|
-
const D =
|
|
845
|
+
const D = M(), A = V(D);
|
|
838
846
|
let P = !1;
|
|
839
847
|
return $(
|
|
840
848
|
() => e[n],
|
|
@@ -849,9 +857,9 @@ function Ut(e, n, s, a = {}) {
|
|
|
849
857
|
{ deep: E }
|
|
850
858
|
), A;
|
|
851
859
|
} else
|
|
852
|
-
return
|
|
860
|
+
return H({
|
|
853
861
|
get() {
|
|
854
|
-
return
|
|
862
|
+
return M();
|
|
855
863
|
},
|
|
856
864
|
set(D) {
|
|
857
865
|
d(D);
|
|
@@ -859,7 +867,7 @@ function Ut(e, n, s, a = {}) {
|
|
|
859
867
|
});
|
|
860
868
|
}
|
|
861
869
|
function Bt() {
|
|
862
|
-
const { isDark: e } =
|
|
870
|
+
const { isDark: e } = de(), n = ct(e);
|
|
863
871
|
return {
|
|
864
872
|
isDark: e,
|
|
865
873
|
toggleDark: n
|
|
@@ -867,7 +875,7 @@ function Bt() {
|
|
|
867
875
|
}
|
|
868
876
|
function vt() {
|
|
869
877
|
const e = V(!1);
|
|
870
|
-
return
|
|
878
|
+
return ge(() => {
|
|
871
879
|
gt(e), yt(e);
|
|
872
880
|
}), $(
|
|
873
881
|
() => e.value,
|
|
@@ -908,36 +916,36 @@ function wt() {
|
|
|
908
916
|
isDark: s
|
|
909
917
|
};
|
|
910
918
|
}
|
|
911
|
-
const
|
|
919
|
+
const de = tt(wt);
|
|
912
920
|
function Dt() {
|
|
913
921
|
const e = V(!1), n = V(!1), s = V(!1);
|
|
914
|
-
return
|
|
922
|
+
return fe(" ", () => {
|
|
915
923
|
e.value = !0;
|
|
916
|
-
}),
|
|
924
|
+
}), pe(" ", () => {
|
|
917
925
|
e.value = !1;
|
|
918
|
-
}),
|
|
926
|
+
}), fe("Shift", (a) => {
|
|
919
927
|
a.preventDefault(), n.value = !0;
|
|
920
|
-
}),
|
|
928
|
+
}), pe("Shift", () => {
|
|
921
929
|
n.value = !1;
|
|
922
|
-
}),
|
|
930
|
+
}), fe("Control", (a) => {
|
|
923
931
|
a.preventDefault(), s.value = !0;
|
|
924
|
-
}),
|
|
932
|
+
}), pe("Control", () => {
|
|
925
933
|
s.value = !1;
|
|
926
934
|
}), { pressSpace: e, pressShift: n, pressCtrl: s };
|
|
927
935
|
}
|
|
928
936
|
function Tt(e) {
|
|
929
|
-
const { pressSpace: n } =
|
|
937
|
+
const { pressSpace: n } = de(), s = new Image(1, 1);
|
|
930
938
|
s.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
|
|
931
939
|
let a = 0, i = 0;
|
|
932
940
|
function l(v) {
|
|
933
|
-
var
|
|
934
|
-
n.value && (a = v.x, i = v.y, (
|
|
941
|
+
var x;
|
|
942
|
+
n.value && (a = v.x, i = v.y, (x = v.dataTransfer) == null || x.setDragImage(document.createElement("div"), 0, 0));
|
|
935
943
|
}
|
|
936
944
|
function p(v) {
|
|
937
945
|
if (v.preventDefault(), !v.x || !v.y || !n.value)
|
|
938
946
|
return;
|
|
939
|
-
const
|
|
940
|
-
a = v.x, i = v.y, e.value && (e.value.scrollTop -= E, e.value.scrollLeft -=
|
|
947
|
+
const x = v.x - a, E = v.y - i;
|
|
948
|
+
a = v.x, i = v.y, e.value && (e.value.scrollTop -= E, e.value.scrollLeft -= x);
|
|
941
949
|
}
|
|
942
950
|
function h() {
|
|
943
951
|
n.value = !1;
|
|
@@ -945,7 +953,7 @@ function Tt(e) {
|
|
|
945
953
|
return { handleElementDragStart: l, handleElementDrag: p, handleElementDragEnd: h };
|
|
946
954
|
}
|
|
947
955
|
function Lt(e) {
|
|
948
|
-
const { pressCtrl: n, canvasScale: s, disabledZoom: a } =
|
|
956
|
+
const { pressCtrl: n, canvasScale: s, disabledZoom: a } = de();
|
|
949
957
|
function i(l) {
|
|
950
958
|
if (!n.value || a.value)
|
|
951
959
|
return;
|
|
@@ -960,7 +968,7 @@ function Lt(e) {
|
|
|
960
968
|
}
|
|
961
969
|
), { handleZoom: i, canvasScale: s };
|
|
962
970
|
}
|
|
963
|
-
function
|
|
971
|
+
function zt(e, n = 16.66) {
|
|
964
972
|
let s;
|
|
965
973
|
function a() {
|
|
966
974
|
i(), s = window.setInterval(e, n);
|
|
@@ -976,7 +984,7 @@ function Jt(e, n = 16.66) {
|
|
|
976
984
|
const St = { class: "min-w-750px rounded" }, Et = { class: "h-full rounded" }, bt = /* @__PURE__ */ ne({
|
|
977
985
|
__name: "index",
|
|
978
986
|
setup(e, { expose: n }) {
|
|
979
|
-
const s = U.getComponent("monacoEditor"), a = U.getComponent("modal"), i = V(null), l = V(!1), p = V(!1), h = V({}), v = q("pageSchema"),
|
|
987
|
+
const s = U.getComponent("monacoEditor"), a = U.getComponent("modal"), i = V(null), l = V(!1), p = V(!1), h = V({}), v = q("pageSchema"), x = V(null), E = V("");
|
|
980
988
|
function o() {
|
|
981
989
|
p.value = !1;
|
|
982
990
|
}
|
|
@@ -984,11 +992,11 @@ const St = { class: "min-w-750px rounded" }, Et = { class: "h-full rounded" }, b
|
|
|
984
992
|
l.value = !1;
|
|
985
993
|
}
|
|
986
994
|
function c() {
|
|
987
|
-
l.value = !0, E.value =
|
|
995
|
+
l.value = !0, E.value = Ze();
|
|
988
996
|
}
|
|
989
997
|
async function y() {
|
|
990
998
|
try {
|
|
991
|
-
let u = await
|
|
999
|
+
let u = await x.value.validateAll();
|
|
992
1000
|
if (!Object.keys(u).length) {
|
|
993
1001
|
alert("请添加表单组件后再尝试!");
|
|
994
1002
|
return;
|
|
@@ -1003,9 +1011,9 @@ const St = { class: "min-w-750px rounded" }, Et = { class: "h-full rounded" }, b
|
|
|
1003
1011
|
}
|
|
1004
1012
|
return n({
|
|
1005
1013
|
handleOpen: c
|
|
1006
|
-
}), (u, w) => (B(),
|
|
1014
|
+
}), (u, w) => (B(), Z(F(a), {
|
|
1007
1015
|
modelValue: l.value,
|
|
1008
|
-
"onUpdate:modelValue": w[1] || (w[1] = (
|
|
1016
|
+
"onUpdate:modelValue": w[1] || (w[1] = (M) => l.value = M),
|
|
1009
1017
|
title: "预览",
|
|
1010
1018
|
class: "w-900px",
|
|
1011
1019
|
width: "900px",
|
|
@@ -1015,15 +1023,15 @@ const St = { class: "min-w-750px rounded" }, Et = { class: "h-full rounded" }, b
|
|
|
1015
1023
|
}, {
|
|
1016
1024
|
default: R(() => [
|
|
1017
1025
|
Q("div", St, [
|
|
1018
|
-
(B(),
|
|
1026
|
+
(B(), Z(F(et), {
|
|
1019
1027
|
key: E.value,
|
|
1020
1028
|
ref_key: "kb",
|
|
1021
|
-
ref:
|
|
1029
|
+
ref: x,
|
|
1022
1030
|
"page-schema": F(v)
|
|
1023
1031
|
}, null, 8, ["page-schema"])),
|
|
1024
1032
|
K(F(a), {
|
|
1025
1033
|
modelValue: p.value,
|
|
1026
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
1034
|
+
"onUpdate:modelValue": w[0] || (w[0] = (M) => p.value = M),
|
|
1027
1035
|
title: "表单数据",
|
|
1028
1036
|
class: "w-860px",
|
|
1029
1037
|
width: "860px",
|
|
@@ -1052,7 +1060,7 @@ const St = { class: "min-w-750px rounded" }, Et = { class: "h-full rounded" }, b
|
|
|
1052
1060
|
}), At = {
|
|
1053
1061
|
key: 0,
|
|
1054
1062
|
class: "epic-loading-box"
|
|
1055
|
-
},
|
|
1063
|
+
}, It = { class: "epic-designer-main" }, xt = { class: "epic-header-container" }, _t = { class: "epic-loading-box" }, Jt = /* @__PURE__ */ ne({
|
|
1056
1064
|
__name: "designer",
|
|
1057
1065
|
props: {
|
|
1058
1066
|
disabledZoom: { type: Boolean, default: !1 },
|
|
@@ -1075,7 +1083,7 @@ const St = { class: "min-w-750px rounded" }, Et = { class: "h-full rounded" }, b
|
|
|
1075
1083
|
"updateSourceData"
|
|
1076
1084
|
],
|
|
1077
1085
|
setup(e, { expose: n, emit: s }) {
|
|
1078
|
-
const { t: a } =
|
|
1086
|
+
const { t: a } = ye(), i = j(() => import("./index-CFZioB1O.js")), l = j(() => import("./index-DENcRmIy.js")), p = j(() => import("./index-B0rUZfG_.js")), h = j(() => import("./index-BfdYrl-Q.js")), v = j(() => import("./index-DgcFxYFp.js")), x = xe(), E = Ge(), o = e;
|
|
1079
1087
|
let b = {
|
|
1080
1088
|
schemas: [
|
|
1081
1089
|
{
|
|
@@ -1122,13 +1130,13 @@ defineExpose({
|
|
|
1122
1130
|
test
|
|
1123
1131
|
})`
|
|
1124
1132
|
};
|
|
1125
|
-
|
|
1133
|
+
ce(() => {
|
|
1126
1134
|
if (o.defaultSchema) {
|
|
1127
1135
|
b = o.defaultSchema;
|
|
1128
1136
|
return;
|
|
1129
1137
|
}
|
|
1130
1138
|
o.source && U.setSourceData(o.source), o.formMode && (b.schemas = U.formSchemas);
|
|
1131
|
-
}),
|
|
1139
|
+
}), x.setDesignMode(), x.setDefaultComponentIds(b.schemas);
|
|
1132
1140
|
const c = s, y = V(null), u = te({
|
|
1133
1141
|
checkedNode: null,
|
|
1134
1142
|
hoverNode: null,
|
|
@@ -1137,21 +1145,21 @@ defineExpose({
|
|
|
1137
1145
|
}), w = te({
|
|
1138
1146
|
schemas: [],
|
|
1139
1147
|
script: b.script
|
|
1140
|
-
}), { disabledZoom:
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
}),
|
|
1148
|
+
}), { disabledZoom: M } = de();
|
|
1149
|
+
ce(() => {
|
|
1150
|
+
M.value = o.disabledZoom;
|
|
1151
|
+
}), ce(() => {
|
|
1144
1152
|
const S = w.script;
|
|
1145
|
-
S && S !== "" &&
|
|
1146
|
-
}),
|
|
1153
|
+
S && S !== "" && x.setMethods(S);
|
|
1154
|
+
}), z("pageSchema", w), z("revoke", E), z("pageManager", x), z(
|
|
1147
1155
|
"designerProps",
|
|
1148
|
-
|
|
1149
|
-
),
|
|
1156
|
+
H(() => o)
|
|
1157
|
+
), z("designer", {
|
|
1150
1158
|
setCheckedNode: D,
|
|
1151
1159
|
setHoverNode: A,
|
|
1152
1160
|
setDisableHover: r,
|
|
1153
|
-
handleToggleDeviceMode:
|
|
1154
|
-
reset:
|
|
1161
|
+
handleToggleDeviceMode: W,
|
|
1162
|
+
reset: I,
|
|
1155
1163
|
state: u
|
|
1156
1164
|
}), ee.on("saveSourceData", (S) => {
|
|
1157
1165
|
c("saveSourceData", S);
|
|
@@ -1164,7 +1172,7 @@ defineExpose({
|
|
|
1164
1172
|
w.schemas = Y(b.schemas), D(w.schemas[0]), E.push(w.schemas, "初始化撤销功能");
|
|
1165
1173
|
}
|
|
1166
1174
|
async function D(S = w.schemas[0]) {
|
|
1167
|
-
u.checkedNode = S, u.matched =
|
|
1175
|
+
u.checkedNode = S, u.matched = We(w.schemas, S.id);
|
|
1168
1176
|
}
|
|
1169
1177
|
async function A(S = null) {
|
|
1170
1178
|
var T;
|
|
@@ -1176,47 +1184,47 @@ defineExpose({
|
|
|
1176
1184
|
}
|
|
1177
1185
|
function P() {
|
|
1178
1186
|
ae(() => {
|
|
1179
|
-
c("ready", { pageManager:
|
|
1187
|
+
c("ready", { pageManager: x });
|
|
1180
1188
|
});
|
|
1181
1189
|
}
|
|
1182
1190
|
async function r(S = !1) {
|
|
1183
1191
|
u.disableHover = S;
|
|
1184
1192
|
}
|
|
1185
|
-
function
|
|
1193
|
+
function N(S) {
|
|
1186
1194
|
oe(w, Y(S));
|
|
1187
1195
|
}
|
|
1188
1196
|
function g() {
|
|
1189
|
-
return
|
|
1197
|
+
return De(w);
|
|
1190
1198
|
}
|
|
1191
|
-
function
|
|
1192
|
-
|
|
1199
|
+
function I() {
|
|
1200
|
+
Ie(w.schemas, b.schemas) && w.script === b.script || (oe(w.schemas, b.schemas), w.script = b.script, D(w.schemas[0]), E.push(w.schemas, "重置操作"), c("reset", w));
|
|
1193
1201
|
}
|
|
1194
1202
|
function m() {
|
|
1195
|
-
c("save",
|
|
1203
|
+
c("save", De(w));
|
|
1196
1204
|
}
|
|
1197
|
-
function
|
|
1205
|
+
function W(S) {
|
|
1198
1206
|
c("toggleDeviceMode", S);
|
|
1199
1207
|
}
|
|
1200
|
-
function
|
|
1208
|
+
function J() {
|
|
1201
1209
|
y.value.handleOpen();
|
|
1202
1210
|
}
|
|
1203
1211
|
return d(), n({
|
|
1204
1212
|
revoke: E,
|
|
1205
|
-
setData:
|
|
1213
|
+
setData: N,
|
|
1206
1214
|
getData: g,
|
|
1207
|
-
reset:
|
|
1208
|
-
preview:
|
|
1209
|
-
}), (S, T) => F(U).initialized.value ? (B(),
|
|
1215
|
+
reset: I,
|
|
1216
|
+
preview: J
|
|
1217
|
+
}), (S, T) => F(U).initialized.value ? (B(), Z(Ae, {
|
|
1210
1218
|
key: 1,
|
|
1211
1219
|
onResolve: P
|
|
1212
1220
|
}, {
|
|
1213
1221
|
default: R(() => [
|
|
1214
|
-
Q("div",
|
|
1215
|
-
Q("div",
|
|
1222
|
+
Q("div", It, [
|
|
1223
|
+
Q("div", xt, [
|
|
1216
1224
|
L(S.$slots, "header", {}, () => [
|
|
1217
|
-
o.hiddenHeader ? be("", !0) : (B(),
|
|
1225
|
+
o.hiddenHeader ? be("", !0) : (B(), Z(F(i), {
|
|
1218
1226
|
key: 0,
|
|
1219
|
-
onPreview:
|
|
1227
|
+
onPreview: J,
|
|
1220
1228
|
onSave: m
|
|
1221
1229
|
}, {
|
|
1222
1230
|
header: R(() => [
|
|
@@ -1242,7 +1250,7 @@ defineExpose({
|
|
|
1242
1250
|
])
|
|
1243
1251
|
]),
|
|
1244
1252
|
Q("div", {
|
|
1245
|
-
class:
|
|
1253
|
+
class: Je(["epic-split-view-container", { "hidden-header": S.hiddenHeader }])
|
|
1246
1254
|
}, [
|
|
1247
1255
|
K(F(l)),
|
|
1248
1256
|
K(F(p)),
|
|
@@ -1260,10 +1268,10 @@ defineExpose({
|
|
|
1260
1268
|
])
|
|
1261
1269
|
]),
|
|
1262
1270
|
_: 3
|
|
1263
|
-
})) : (B(),
|
|
1271
|
+
})) : (B(), ve("div", At));
|
|
1264
1272
|
}
|
|
1265
1273
|
}), Ot = {
|
|
1266
|
-
component: async () => await import("./index-
|
|
1274
|
+
component: async () => await import("./index-DpF9E6J8.js"),
|
|
1267
1275
|
defaultSchema: {
|
|
1268
1276
|
label: "代码编辑器",
|
|
1269
1277
|
type: "monacoEditor",
|
|
@@ -1291,10 +1299,10 @@ defineExpose({
|
|
|
1291
1299
|
]
|
|
1292
1300
|
},
|
|
1293
1301
|
bindModel: "model-value"
|
|
1294
|
-
}, { t:
|
|
1302
|
+
}, { t: me } = ye(), Ct = {
|
|
1295
1303
|
component: async () => await import("./index-DiDIFoTk.js"),
|
|
1296
1304
|
defaultSchema: {
|
|
1297
|
-
label:
|
|
1305
|
+
label: me("page"),
|
|
1298
1306
|
type: "page",
|
|
1299
1307
|
componentProps: {},
|
|
1300
1308
|
children: []
|
|
@@ -1302,35 +1310,35 @@ defineExpose({
|
|
|
1302
1310
|
config: {
|
|
1303
1311
|
attribute: [
|
|
1304
1312
|
{
|
|
1305
|
-
label:
|
|
1313
|
+
label: me("pageName"),
|
|
1306
1314
|
type: "input",
|
|
1307
1315
|
componentProps: {
|
|
1308
|
-
placeholder:
|
|
1316
|
+
placeholder: me("pleaseEnter")
|
|
1309
1317
|
},
|
|
1310
1318
|
field: "componentProps.name"
|
|
1311
1319
|
}
|
|
1312
1320
|
]
|
|
1313
1321
|
}
|
|
1314
|
-
}, { t:
|
|
1322
|
+
}, { t: ie } = ye();
|
|
1315
1323
|
function Pt(e) {
|
|
1316
|
-
e.component("EInputSize", async () => await import("./index-
|
|
1324
|
+
e.component("EInputSize", async () => await import("./index-cElDeAm2.js")), e.component("EColEditor", async () => await import("./index-BEMPXyNN.js")), e.component("EActionEditor", async () => await import("./index-CeVV_SOj.js")), e.component("ERuleEditor", async () => await import("./index-P13z5c0g.js")), e.component("EOptionsEditor", async () => await import("./index-Ce470l1n.js")), e.component("ENode", async () => await import("./index-DfRZtELz.js")), e.component("EDataSource", async () => await import("./index-CoCyrWM2.js")), e.registerActivitybar({
|
|
1317
1325
|
id: "component_view",
|
|
1318
|
-
title:
|
|
1326
|
+
title: ie("component"),
|
|
1319
1327
|
icon: "icon--epic--extension-outline",
|
|
1320
|
-
component: async () => await import("./index-
|
|
1328
|
+
component: async () => await import("./index-AH-Lj15r.js")
|
|
1321
1329
|
}), e.registerActivitybar({
|
|
1322
1330
|
id: "outline_view",
|
|
1323
|
-
title:
|
|
1331
|
+
title: ie("outline"),
|
|
1324
1332
|
icon: "icon--epic--account-tree-outline-rounded",
|
|
1325
|
-
component: async () => await import("./outline-
|
|
1333
|
+
component: async () => await import("./outline-DQ8wgGyH.js")
|
|
1326
1334
|
}), e.registerRightSidebar({
|
|
1327
1335
|
id: "attribute_view",
|
|
1328
|
-
title:
|
|
1329
|
-
component: async () => await import("./attributeView-
|
|
1336
|
+
title: ie("attribute"),
|
|
1337
|
+
component: async () => await import("./attributeView-C_rnFDGo.js")
|
|
1330
1338
|
}), e.registerRightSidebar({
|
|
1331
1339
|
id: "style_view",
|
|
1332
|
-
title:
|
|
1333
|
-
component: async () => await import("./styleView-
|
|
1340
|
+
title: ie("style"),
|
|
1341
|
+
component: async () => await import("./styleView-CajgzMOm.js")
|
|
1334
1342
|
}), [Ot, Ct].forEach((s) => {
|
|
1335
1343
|
e.registerComponent(s);
|
|
1336
1344
|
});
|
|
@@ -1338,7 +1346,7 @@ function Pt(e) {
|
|
|
1338
1346
|
Pt(U);
|
|
1339
1347
|
export {
|
|
1340
1348
|
Ye as _,
|
|
1341
|
-
|
|
1349
|
+
zt as a,
|
|
1342
1350
|
ht as b,
|
|
1343
1351
|
Tt as c,
|
|
1344
1352
|
$t as d,
|
|
@@ -1347,13 +1355,13 @@ export {
|
|
|
1347
1355
|
Ut as g,
|
|
1348
1356
|
Bt as h,
|
|
1349
1357
|
et as i,
|
|
1350
|
-
|
|
1351
|
-
|
|
1358
|
+
Jt as j,
|
|
1359
|
+
xe as k,
|
|
1352
1360
|
Ge as l,
|
|
1353
1361
|
Dt as m,
|
|
1354
1362
|
vt as n,
|
|
1355
1363
|
gt as o,
|
|
1356
1364
|
wt as p,
|
|
1357
|
-
|
|
1365
|
+
de as u,
|
|
1358
1366
|
Rt as w
|
|
1359
1367
|
};
|