epic-designer-gold 0.0.43 → 0.0.44
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-CZCnJzem.js → attributeView-DtpDKBv3.js} +1 -1
- package/dist/{attributeView-B1dGeNqh.cjs → attributeView-NViG1QIW.cjs} +1 -1
- package/dist/{index-DEBUq5pN.cjs → index-B0mkrnRU.cjs} +1 -1
- package/dist/{index-CuTee7Tg.cjs → index-B3SPoHbr.cjs} +1 -1
- package/dist/index-BYMDoYaj.js +4 -0
- package/dist/{index-BAEFJCS6.cjs → index-CEWzIISV.cjs} +1 -1
- package/dist/index-CLpKjuat.cjs +10 -0
- package/dist/{index-CAMBquNl.cjs → index-Cbdo388f.cjs} +1 -1
- package/dist/{index-DI7c5Qs-.js → index-CeB5DFBE.js} +1 -1
- package/dist/{index-B94gFPf3.cjs → index-Cr0fs3qQ.cjs} +1 -1
- package/dist/{index-DrZsGTyO.js → index-CwevnKNM.js} +1 -1
- package/dist/{index-aykMHA5o.js → index-D1mKcGjX.js} +1 -1
- package/dist/{index-Ut_dcMcZ.js → index-DXzERji1.js} +1 -1
- package/dist/{index-DuwrzlDl.js → index-Deui5A5E.js} +1 -1
- package/dist/{index-fy6-gwUQ.cjs → index-DgI4MFJ_.cjs} +1 -1
- package/dist/{index-D0-2aoOb.js → index-QyL4F13K.js} +1 -1
- package/dist/{index-DnjKGXr6.js → index-W-UeQAtk.js} +557 -551
- package/dist/{index-BgE9tuf3.js → index-Xym112zw.js} +1 -1
- package/dist/{index-Cb6-t5Kc.cjs → index-orcBQmhb.cjs} +1 -1
- package/dist/{index-D1woeC4G.cjs → index-zASDVLOl.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/select-BCX_FOhw.js +36 -0
- package/dist/select-Cnp3LxNc.cjs +1 -0
- package/dist/{styleView-Dh_hk7Lc.js → styleView-B-yx1iR4.js} +1 -1
- package/dist/{styleView-Cu6z6iIV.cjs → styleView-BD_oQt7b.cjs} +1 -1
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +1 -1
- package/dist/ui/elementPlus/select/select.d.ts +2 -1
- package/package.json +1 -1
- package/dist/index--Z-KkjaM.cjs +0 -10
- package/dist/index-CNQjMEUG.js +0 -4
- package/dist/select-B8HCbraJ.js +0 -29
- package/dist/select-D6bRz5G2.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { p as
|
|
3
|
-
function
|
|
1
|
+
import { ref as O, reactive as te, defineComponent as ne, openBlock as T, createBlock as K, unref as R, mergeProps as me, withCtx as $, renderSlot as k, getCurrentInstance as le, inject as Y, watch as B, useAttrs as Ve, provide as L, shallowRef as Fe, computed as J, watchEffect as ie, onUnmounted as Ae, resolveComponent as Me, resolveDynamicComponent as Re, createVNode as H, createCommentVNode as Ee, useSlots as $e, createElementBlock as he, Suspense as be, createElementVNode as Z, Fragment as Be, renderList as Ne, nextTick as re, effectScope as Ue, isRef as Te, getCurrentScope as ke, onScopeDispose as Le, onMounted as ve, normalizeClass as ze, toRaw as we } from "vue";
|
|
2
|
+
import { p as U, E as ee, a as Se, b as De, l as j } from "./js.cookie-oHpRFPCO.js";
|
|
3
|
+
function ce(e = 10) {
|
|
4
4
|
const r = "abcdefghijklmnopqrstuvwxyz0123456789";
|
|
5
5
|
let o = "";
|
|
6
6
|
for (let t = 0; t < e; t++) {
|
|
@@ -9,7 +9,7 @@ function ie(e = 10) {
|
|
|
9
9
|
}
|
|
10
10
|
return o;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Je(e) {
|
|
13
13
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
14
14
|
}
|
|
15
15
|
function z(e, r = /* @__PURE__ */ new WeakMap()) {
|
|
@@ -26,14 +26,14 @@ function z(e, r = /* @__PURE__ */ new WeakMap()) {
|
|
|
26
26
|
o[t] = z(e[t], r);
|
|
27
27
|
}), o;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
const [r] =
|
|
29
|
+
function Mt(e) {
|
|
30
|
+
const [r] = Ke([z(e)], (o) => {
|
|
31
31
|
var n, s;
|
|
32
32
|
const t = {
|
|
33
33
|
...o,
|
|
34
|
-
id: `${o.type}_${
|
|
34
|
+
id: `${o.type}_${ce(8)}`
|
|
35
35
|
};
|
|
36
|
-
return (t.field || t.input) && !((s = (n =
|
|
36
|
+
return (t.field || t.input) && !((s = (n = U.getComponentConfingByType(t.type)) == null ? void 0 : n.editConstraints) != null && s.fixedField) && (t.field = t.id), t;
|
|
37
37
|
});
|
|
38
38
|
return r;
|
|
39
39
|
}
|
|
@@ -55,15 +55,15 @@ function xe(e, r, o = [], t = /* @__PURE__ */ new WeakMap()) {
|
|
|
55
55
|
return "[Circular]";
|
|
56
56
|
t.set(s, !0);
|
|
57
57
|
const l = Object.keys(s).sort(), u = {};
|
|
58
|
-
return l.forEach((
|
|
59
|
-
o.includes(
|
|
58
|
+
return l.forEach((p) => {
|
|
59
|
+
o.includes(p) || (u[p] = n(s[p]));
|
|
60
60
|
}), t.delete(s), u;
|
|
61
61
|
} else
|
|
62
62
|
return s;
|
|
63
63
|
};
|
|
64
64
|
return JSON.stringify(n(e)) === JSON.stringify(n(r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function We(e, r) {
|
|
67
67
|
const o = [];
|
|
68
68
|
let t = !1;
|
|
69
69
|
function n(s) {
|
|
@@ -78,7 +78,7 @@ function Je(e, r) {
|
|
|
78
78
|
}
|
|
79
79
|
return e.forEach(n), t || console.error(`没有查询到id为${r}的节点`), o;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Rt(e, r, o) {
|
|
82
82
|
const t = r.split(".");
|
|
83
83
|
let n = e;
|
|
84
84
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -88,7 +88,7 @@ function Mt(e, r, o) {
|
|
|
88
88
|
}
|
|
89
89
|
return n === void 0 ? o : n;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function $t(e, r, o) {
|
|
92
92
|
const t = r.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
|
|
93
93
|
let n = e;
|
|
94
94
|
for (let s = 0; s < t.length - 1; s++) {
|
|
@@ -97,11 +97,11 @@ function Rt(e, r, o) {
|
|
|
97
97
|
}
|
|
98
98
|
return n[t[t.length - 1]] = o, e;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
return
|
|
100
|
+
function Bt(e, r = "default") {
|
|
101
|
+
return He(e, r).map((t) => t.field);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
const o =
|
|
103
|
+
function He(e, r = "default") {
|
|
104
|
+
const o = ae(
|
|
105
105
|
e,
|
|
106
106
|
(n) => {
|
|
107
107
|
var s;
|
|
@@ -109,14 +109,14 @@ function We(e, r = "default") {
|
|
|
109
109
|
},
|
|
110
110
|
!0
|
|
111
111
|
);
|
|
112
|
-
return
|
|
112
|
+
return ae(
|
|
113
113
|
(o == null ? void 0 : o.children) ?? [],
|
|
114
114
|
(n) => !!n.input,
|
|
115
115
|
!1,
|
|
116
116
|
(n) => n.type !== "subform"
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function ae(e, r, o = !1, t) {
|
|
120
120
|
const n = [], s = [...e];
|
|
121
121
|
for (; s.length; ) {
|
|
122
122
|
const l = s.pop();
|
|
@@ -128,7 +128,7 @@ function se(e, r, o = !1, t) {
|
|
|
128
128
|
}
|
|
129
129
|
return o ? !1 : n;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Ke(e, r, o) {
|
|
132
132
|
const t = [...e];
|
|
133
133
|
for (; t.length; ) {
|
|
134
134
|
const n = t.pop();
|
|
@@ -139,8 +139,8 @@ function He(e, r, o) {
|
|
|
139
139
|
}
|
|
140
140
|
return e;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
const o =
|
|
142
|
+
function Nt(e, r) {
|
|
143
|
+
const o = ae(
|
|
144
144
|
e,
|
|
145
145
|
(t) => t.id === r,
|
|
146
146
|
!0
|
|
@@ -149,10 +149,10 @@ function Bt(e, r) {
|
|
|
149
149
|
throw new Error(`没有查询到id为${r}的节点`);
|
|
150
150
|
return o;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Ut(e, r) {
|
|
153
153
|
const o = [{ type: "", children: e }];
|
|
154
154
|
let t = 0, n = null;
|
|
155
|
-
if (
|
|
155
|
+
if (ae(
|
|
156
156
|
o,
|
|
157
157
|
(s) => {
|
|
158
158
|
if (n = s.children ?? null, !n) {
|
|
@@ -205,7 +205,7 @@ function Tt(e) {
|
|
|
205
205
|
size: e.config.size || "middle"
|
|
206
206
|
},
|
|
207
207
|
children: [],
|
|
208
|
-
id: "form_" +
|
|
208
|
+
id: "form_" + ce()
|
|
209
209
|
}
|
|
210
210
|
],
|
|
211
211
|
componentProps: {
|
|
@@ -217,20 +217,20 @@ function Tt(e) {
|
|
|
217
217
|
],
|
|
218
218
|
script: e.script || ""
|
|
219
219
|
};
|
|
220
|
-
return r.schemas[0].children[0].children =
|
|
220
|
+
return r.schemas[0].children[0].children = se(e.list), r;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function se(e, r) {
|
|
223
223
|
return e.map((o) => {
|
|
224
|
-
var
|
|
224
|
+
var p, x, y;
|
|
225
225
|
let t = o.type ?? "";
|
|
226
|
-
const n = o.options ?? {}, s = (a,
|
|
227
|
-
t === a && (t =
|
|
226
|
+
const n = o.options ?? {}, s = (a, A) => {
|
|
227
|
+
t === a && (t = A, n.defaultValue && (n.defaultValue = JSON.parse(n.defaultValue)));
|
|
228
228
|
};
|
|
229
229
|
if (s("uploadImg", "upload-image"), s("uploadFile", "upload-file"), t === "date" && n.range && (n.type = "daterange", delete n.range), (t === "date" || t === "time") && (n.valueFormat = n.format), t === "textarea") {
|
|
230
|
-
const { minRows: a, maxRows:
|
|
231
|
-
n.autoSize = { minRows: a, maxRows:
|
|
230
|
+
const { minRows: a, maxRows: A } = n;
|
|
231
|
+
n.autoSize = { minRows: a, maxRows: A }, delete n.minRows, delete n.maxRows;
|
|
232
232
|
}
|
|
233
|
-
t === "number" && !n.precision && delete n.precision, n.width && (n.style = { width: n.width }, delete n.width), t === "grid" && (t = "row"), r && r.type === "grid" && (t = "col", n.span = o.span, o.key =
|
|
233
|
+
t === "number" && !n.precision && delete n.precision, n.width && (n.style = { width: n.width }, delete n.width), t === "grid" && (t = "row"), r && r.type === "grid" && (t = "col", n.span = o.span, o.key = ce());
|
|
234
234
|
const l = {
|
|
235
235
|
label: o.label,
|
|
236
236
|
type: t,
|
|
@@ -255,10 +255,10 @@ function oe(e, r) {
|
|
|
255
255
|
"color-picker",
|
|
256
256
|
"upload-file",
|
|
257
257
|
"upload-image"
|
|
258
|
-
].includes(t) && (l.input = !0, ((
|
|
258
|
+
].includes(t) && (l.input = !0, ((x = (p = o.rules) == null ? void 0 : p[0]) == null ? void 0 : x.required) === !1 && o.rules.shift(), ((y = o.rules) == null ? void 0 : y.length) > 0 && (l.rules = o.rules)), o.list && (l.children = se(o.list, o)), o.columns && (l.children = se(o.columns, o)), o.trs && (l.children = se(o.trs, o)), o.tds && (l.children = se(o.tds, o)), l;
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function kt(e, r) {
|
|
262
262
|
let o = null;
|
|
263
263
|
return (...t) => {
|
|
264
264
|
o && clearTimeout(o), o = setTimeout(() => {
|
|
@@ -267,108 +267,108 @@ function Ut(e, r) {
|
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
269
|
function Ie() {
|
|
270
|
-
const e =
|
|
270
|
+
const e = O({}), r = O({}), o = O(!1), t = O([]), n = te({});
|
|
271
271
|
function s(h) {
|
|
272
272
|
return e.value[h];
|
|
273
273
|
}
|
|
274
|
-
function l(h,
|
|
275
|
-
e.value[h] =
|
|
274
|
+
function l(h, D) {
|
|
275
|
+
e.value[h] = D;
|
|
276
276
|
}
|
|
277
277
|
function u(h) {
|
|
278
278
|
delete e.value[h];
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
const
|
|
282
|
-
(
|
|
280
|
+
function p(h, D = !1) {
|
|
281
|
+
const b = Object.entries(U.publicMethods).reduce(
|
|
282
|
+
(_, [i, V]) => (_[i] = V.handler, _),
|
|
283
283
|
{}
|
|
284
284
|
);
|
|
285
285
|
try {
|
|
286
286
|
new Function(`const epic = this;${h}`).bind({
|
|
287
|
-
...
|
|
287
|
+
...b,
|
|
288
288
|
getComponent: s,
|
|
289
289
|
find: s,
|
|
290
|
-
defineExpose:
|
|
291
|
-
publicMethods:
|
|
292
|
-
pluginManager:
|
|
290
|
+
defineExpose: x,
|
|
291
|
+
publicMethods: b,
|
|
292
|
+
pluginManager: U
|
|
293
293
|
})();
|
|
294
|
-
} catch (
|
|
295
|
-
|
|
294
|
+
} catch (_) {
|
|
295
|
+
D && console.error("[epic:自定义函数]异常:", _);
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function x(h) {
|
|
299
299
|
h != null && (r.value = h);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function y(h, ...D) {
|
|
302
302
|
if (!h || h.length === 0) {
|
|
303
303
|
console.warn("未提供任何动作");
|
|
304
304
|
return;
|
|
305
305
|
}
|
|
306
|
-
h.forEach((
|
|
307
|
-
const
|
|
308
|
-
switch (
|
|
306
|
+
h.forEach((b) => {
|
|
307
|
+
const _ = b.args ? JSON.parse(b.args) : D;
|
|
308
|
+
switch (b.type) {
|
|
309
309
|
case "public":
|
|
310
|
-
a(
|
|
310
|
+
a(b, _);
|
|
311
311
|
break;
|
|
312
312
|
case "custom":
|
|
313
|
-
|
|
313
|
+
A(b, _);
|
|
314
314
|
break;
|
|
315
315
|
case "component":
|
|
316
|
-
|
|
316
|
+
m(b, _);
|
|
317
317
|
break;
|
|
318
318
|
default:
|
|
319
|
-
console.warn(`未知的动作类型: ${
|
|
319
|
+
console.warn(`未知的动作类型: ${b.type}`);
|
|
320
320
|
break;
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
|
-
function a(h,
|
|
325
|
-
var
|
|
324
|
+
function a(h, D) {
|
|
325
|
+
var b;
|
|
326
326
|
try {
|
|
327
|
-
(
|
|
328
|
-
} catch (
|
|
329
|
-
console.error(`[Epic:公共函数(${h.methodName})]执行异常:`,
|
|
327
|
+
(b = U.publicMethods[h.methodName]) == null || b.handler(...D);
|
|
328
|
+
} catch (_) {
|
|
329
|
+
console.error(`[Epic:公共函数(${h.methodName})]执行异常:`, _);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
function
|
|
333
|
-
var
|
|
332
|
+
function A(h, D) {
|
|
333
|
+
var b, _;
|
|
334
334
|
try {
|
|
335
|
-
(
|
|
335
|
+
(_ = (b = r.value)[h.methodName]) == null || _.call(b, ...D);
|
|
336
336
|
} catch (i) {
|
|
337
337
|
console.error(`[Epic:自定义函数(${h.methodName})]执行异常:`, i);
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
const
|
|
342
|
-
if (!
|
|
340
|
+
function m(h, D) {
|
|
341
|
+
const b = h.componentId != null && s(h.componentId);
|
|
342
|
+
if (!b) {
|
|
343
343
|
console.warn(`[Epic:组件${h.componentId}]未找到`);
|
|
344
344
|
return;
|
|
345
345
|
}
|
|
346
346
|
try {
|
|
347
|
-
|
|
348
|
-
} catch (
|
|
349
|
-
console.error(`[Epic:组件${h.componentId}函数(${h.methodName})]执行异常:`,
|
|
347
|
+
b[h.methodName](...D);
|
|
348
|
+
} catch (_) {
|
|
349
|
+
console.error(`[Epic:组件${h.componentId}函数(${h.methodName})]执行异常:`, _);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
function v(h = !0) {
|
|
353
353
|
o.value = h;
|
|
354
354
|
}
|
|
355
355
|
function d(h) {
|
|
356
|
-
const
|
|
357
|
-
t.value =
|
|
356
|
+
const D = ae(h, () => !0);
|
|
357
|
+
t.value = D.map((b) => b.id);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
if (n[
|
|
361
|
-
const
|
|
362
|
-
G(h,
|
|
359
|
+
function P(h, D = "default") {
|
|
360
|
+
if (n[D]) {
|
|
361
|
+
const b = n[D];
|
|
362
|
+
G(h, b);
|
|
363
363
|
}
|
|
364
|
-
n[
|
|
364
|
+
n[D] = h;
|
|
365
365
|
}
|
|
366
|
-
function M(h,
|
|
367
|
-
if (n[
|
|
368
|
-
G(n[
|
|
366
|
+
function M(h, D = "default") {
|
|
367
|
+
if (n[D]) {
|
|
368
|
+
G(n[D], h, !1);
|
|
369
369
|
return;
|
|
370
370
|
}
|
|
371
|
-
n[
|
|
371
|
+
n[D] = h;
|
|
372
372
|
}
|
|
373
373
|
return {
|
|
374
374
|
componentInstances: e,
|
|
@@ -376,40 +376,40 @@ function Ie() {
|
|
|
376
376
|
isDesignMode: o,
|
|
377
377
|
defaultComponentIds: t,
|
|
378
378
|
forms: n,
|
|
379
|
-
addFormData:
|
|
379
|
+
addFormData: P,
|
|
380
380
|
setFormData: M,
|
|
381
381
|
getComponentInstance: s,
|
|
382
382
|
// 简化查询函数, 推荐使用
|
|
383
383
|
find: s,
|
|
384
384
|
addComponentInstance: l,
|
|
385
385
|
removeComponentInstance: u,
|
|
386
|
-
setMethods:
|
|
387
|
-
doActions:
|
|
386
|
+
setMethods: p,
|
|
387
|
+
doActions: y,
|
|
388
388
|
setDesignMode: v,
|
|
389
389
|
setDefaultComponentIds: d
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
const e =
|
|
392
|
+
function qe() {
|
|
393
|
+
const e = O([]), r = O([]), o = O(null);
|
|
394
394
|
let t = 0;
|
|
395
|
-
function n(
|
|
396
|
-
const
|
|
397
|
-
t + 150 >
|
|
398
|
-
type:
|
|
399
|
-
componentSchema: JSON.stringify(
|
|
395
|
+
function n(p, x = "插入组件") {
|
|
396
|
+
const y = Date.now();
|
|
397
|
+
t + 150 > y || (t = y, o.value != null && (e.value.push(o.value), r.value.splice(0, r.value.length)), o.value = {
|
|
398
|
+
type: x,
|
|
399
|
+
componentSchema: JSON.stringify(p)
|
|
400
400
|
}, e.value.length > 60 && e.value.unshift());
|
|
401
401
|
}
|
|
402
402
|
function s() {
|
|
403
403
|
if (e.value.length === 0)
|
|
404
404
|
return !1;
|
|
405
|
-
const
|
|
406
|
-
return o.value != null && r.value.push(o.value), o.value =
|
|
405
|
+
const p = e.value.pop();
|
|
406
|
+
return o.value != null && r.value.push(o.value), o.value = p, JSON.parse(p.componentSchema);
|
|
407
407
|
}
|
|
408
408
|
function l() {
|
|
409
409
|
if (r.value.length === 0)
|
|
410
410
|
return !1;
|
|
411
|
-
const
|
|
412
|
-
return o.value != null && e.value.push(o.value), o.value =
|
|
411
|
+
const p = r.value.pop();
|
|
412
|
+
return o.value != null && e.value.push(o.value), o.value = p, JSON.parse(p.componentSchema);
|
|
413
413
|
}
|
|
414
414
|
function u() {
|
|
415
415
|
e.value = [], r.value = [], o.value = null;
|
|
@@ -424,7 +424,7 @@ function Ke() {
|
|
|
424
424
|
reset: u
|
|
425
425
|
};
|
|
426
426
|
}
|
|
427
|
-
const
|
|
427
|
+
const Ze = /* @__PURE__ */ ne({
|
|
428
428
|
__name: "dynamicFormItem",
|
|
429
429
|
props: {
|
|
430
430
|
hasFormItem: { type: Boolean },
|
|
@@ -432,10 +432,10 @@ const qe = /* @__PURE__ */ ee({
|
|
|
432
432
|
},
|
|
433
433
|
emits: ["updateFormItemRef"],
|
|
434
434
|
setup(e, { emit: r }) {
|
|
435
|
-
const o =
|
|
435
|
+
const o = U.getComponent("form-item"), t = e, n = r, s = O(), l = () => {
|
|
436
436
|
n("updateFormItemRef", s.value);
|
|
437
437
|
};
|
|
438
|
-
return (u,
|
|
438
|
+
return (u, p) => t.hasFormItem ? (T(), K(R(o), me({
|
|
439
439
|
key: 0,
|
|
440
440
|
ref_key: "formItemRef",
|
|
441
441
|
ref: s,
|
|
@@ -447,7 +447,7 @@ const qe = /* @__PURE__ */ ee({
|
|
|
447
447
|
_: 3
|
|
448
448
|
}, 16, ["onVnodeMounted"])) : k(u.$slots, "default", { key: 1 });
|
|
449
449
|
}
|
|
450
|
-
}),
|
|
450
|
+
}), Ge = /* @__PURE__ */ ne({
|
|
451
451
|
name: "ENode",
|
|
452
452
|
__name: "node",
|
|
453
453
|
props: {
|
|
@@ -462,57 +462,57 @@ const qe = /* @__PURE__ */ ee({
|
|
|
462
462
|
},
|
|
463
463
|
emits: ["update:modelValue", "change", "update:dynamicId"],
|
|
464
464
|
setup(e, { emit: r }) {
|
|
465
|
-
const { proxy: o } =
|
|
466
|
-
let s =
|
|
467
|
-
const l =
|
|
468
|
-
let a =
|
|
465
|
+
const { proxy: o } = le(), t = e, n = O(null);
|
|
466
|
+
let s = Y("formData", te({}));
|
|
467
|
+
const l = Y("slots", {}), u = Y("pageManager", {}), p = Y("disabled", { value: !1 }), x = Y("ruleFieldPrefix", null), y = Y("resetFormData", !1);
|
|
468
|
+
let a = te(z(t.componentSchema));
|
|
469
469
|
v();
|
|
470
|
-
async function
|
|
471
|
-
if (["cascader", "checkbox", "select", "radio"].includes(
|
|
472
|
-
const
|
|
470
|
+
async function A(f) {
|
|
471
|
+
if (["cascader", "checkbox", "select", "radio"].includes(f.type) && f.componentProps.dynamicId && t.sourceDateUrl) {
|
|
472
|
+
const S = (await Se({
|
|
473
473
|
// || "http://192.168.28.205:3000/dev-api/data-source
|
|
474
474
|
url: t.sourceDateUrl,
|
|
475
475
|
method: "get",
|
|
476
476
|
params: {
|
|
477
|
-
id:
|
|
477
|
+
id: f.componentProps.dynamicId
|
|
478
478
|
},
|
|
479
479
|
headers: {
|
|
480
|
-
Authorization: "Bearer " +
|
|
480
|
+
Authorization: "Bearer " + De.get("Admin-Token")
|
|
481
481
|
}
|
|
482
482
|
})).data.data;
|
|
483
|
-
let
|
|
484
|
-
url:
|
|
485
|
-
method:
|
|
486
|
-
data: JSON.parse(
|
|
487
|
-
params: JSON.parse(
|
|
483
|
+
let F = await Se({
|
|
484
|
+
url: S.url,
|
|
485
|
+
method: S.method,
|
|
486
|
+
data: JSON.parse(S.body),
|
|
487
|
+
params: JSON.parse(S.params),
|
|
488
488
|
headers: {
|
|
489
|
-
...JSON.parse(
|
|
490
|
-
Authorization: "Bearer " +
|
|
489
|
+
...JSON.parse(S.headers),
|
|
490
|
+
Authorization: "Bearer " + De.get("Admin-Token")
|
|
491
491
|
}
|
|
492
492
|
});
|
|
493
|
-
if (
|
|
494
|
-
const
|
|
495
|
-
|
|
493
|
+
if (S && (S != null && S.dataPath)) {
|
|
494
|
+
const _e = S.dataPath.split(".").reduce((Oe, Pe) => Oe[Pe], F.data);
|
|
495
|
+
f.componentProps.options = m(_e, S.dataKey, S.dataValue);
|
|
496
496
|
} else
|
|
497
|
-
|
|
498
|
-
return
|
|
497
|
+
f.componentProps.options = m(F.data, S.dataKey, S.dataValue);
|
|
498
|
+
return f;
|
|
499
499
|
}
|
|
500
|
-
return
|
|
500
|
+
return f;
|
|
501
501
|
}
|
|
502
|
-
function
|
|
503
|
-
return
|
|
504
|
-
label:
|
|
505
|
-
value:
|
|
506
|
-
children:
|
|
502
|
+
function m(f, I, C) {
|
|
503
|
+
return f && Object.prototype.toString.call(f) === "[object Array]" ? f.map((S) => S.children && S.children.length ? {
|
|
504
|
+
label: S[I],
|
|
505
|
+
value: S[C] + "",
|
|
506
|
+
children: m(S.children, I, C)
|
|
507
507
|
} : {
|
|
508
|
-
label:
|
|
509
|
-
value:
|
|
508
|
+
label: S[I],
|
|
509
|
+
value: S[C] + ""
|
|
510
510
|
}) : [];
|
|
511
511
|
}
|
|
512
512
|
B(
|
|
513
513
|
() => t.componentSchema,
|
|
514
|
-
(
|
|
515
|
-
xe(a,
|
|
514
|
+
(f) => {
|
|
515
|
+
xe(a, f, ["children"]) || (G(a, z(f)), v());
|
|
516
516
|
},
|
|
517
517
|
{
|
|
518
518
|
deep: !0
|
|
@@ -521,78 +521,78 @@ const qe = /* @__PURE__ */ ee({
|
|
|
521
521
|
function v() {
|
|
522
522
|
u.isDesignMode.value && typeof a.field == "string" && (a.field += "-design-mode");
|
|
523
523
|
}
|
|
524
|
-
(t.resetFormData ||
|
|
525
|
-
const d = r,
|
|
526
|
-
M.value =
|
|
527
|
-
},
|
|
528
|
-
Object.keys(
|
|
529
|
-
const
|
|
530
|
-
var
|
|
531
|
-
return (
|
|
524
|
+
(t.resetFormData || y) && (s = {});
|
|
525
|
+
const d = r, P = O(), M = O(), h = (f) => {
|
|
526
|
+
M.value = f;
|
|
527
|
+
}, D = Ve();
|
|
528
|
+
Object.keys(D).length && L("nodeAttrs", D);
|
|
529
|
+
const b = Fe(null), _ = J(() => {
|
|
530
|
+
var f, I;
|
|
531
|
+
return (f = a.componentProps) != null && f.hidden ? !1 : typeof a.show == "boolean" ? a.show : ((I = a.show) == null ? void 0 : I.call(a, { values: s })) ?? !0;
|
|
532
532
|
}), i = J(() => {
|
|
533
|
-
var
|
|
534
|
-
const
|
|
535
|
-
...
|
|
536
|
-
validator:
|
|
533
|
+
var S;
|
|
534
|
+
const f = _.value && ((S = a.rules) == null ? void 0 : S.map((F) => ({
|
|
535
|
+
...F,
|
|
536
|
+
validator: F.validator && u.funcs.value[F.validator]
|
|
537
537
|
// 自定义校验函数
|
|
538
538
|
})));
|
|
539
|
-
let
|
|
540
|
-
t.ruleField ?
|
|
541
|
-
const
|
|
539
|
+
let I = a.field;
|
|
540
|
+
t.ruleField ? I = t.ruleField : x && a.field && (I = z(x), I.push(a.field));
|
|
541
|
+
const C = {
|
|
542
542
|
...a,
|
|
543
|
-
rules:
|
|
544
|
-
rule:
|
|
545
|
-
field:
|
|
543
|
+
rules: f,
|
|
544
|
+
rule: f,
|
|
545
|
+
field: I
|
|
546
546
|
};
|
|
547
|
-
return
|
|
548
|
-
}),
|
|
549
|
-
var
|
|
550
|
-
const
|
|
551
|
-
return a.on && Object.keys(a.on).forEach((
|
|
552
|
-
|
|
547
|
+
return C.children && delete C.children, C;
|
|
548
|
+
}), V = J(() => {
|
|
549
|
+
var C, S;
|
|
550
|
+
const f = ((C = w.value) == null ? void 0 : C.bindModel) ?? "modelValue", I = {};
|
|
551
|
+
return a.on && Object.keys(a.on).forEach((F) => {
|
|
552
|
+
I[`on${Je(F)}`] = (...ye) => u.doActions(a.on[F], ...ye);
|
|
553
553
|
}), {
|
|
554
554
|
...t,
|
|
555
555
|
...a.componentProps,
|
|
556
|
-
disabled: (
|
|
557
|
-
bindModel:
|
|
558
|
-
...
|
|
556
|
+
disabled: (p == null ? void 0 : p.value) || ((S = a.componentProps) == null ? void 0 : S.disabled),
|
|
557
|
+
bindModel: f,
|
|
558
|
+
...I
|
|
559
559
|
};
|
|
560
|
-
}),
|
|
561
|
-
|
|
560
|
+
}), w = J(() => U.getComponentConfingByType(a.type) ?? null);
|
|
561
|
+
ie(() => {
|
|
562
562
|
n.value = t.modelValue ?? s[a.field ?? ""];
|
|
563
563
|
}), B(
|
|
564
564
|
() => n.value,
|
|
565
565
|
() => {
|
|
566
|
-
n.value !== (t.modelValue ?? s[a.field ?? ""]) &&
|
|
566
|
+
n.value !== (t.modelValue ?? s[a.field ?? ""]) && N(n.value);
|
|
567
567
|
}
|
|
568
568
|
), B(
|
|
569
|
-
() =>
|
|
569
|
+
() => P.value,
|
|
570
570
|
() => {
|
|
571
571
|
c();
|
|
572
572
|
},
|
|
573
573
|
{ immediate: !0 }
|
|
574
574
|
);
|
|
575
575
|
function c() {
|
|
576
|
-
var
|
|
577
|
-
const
|
|
578
|
-
a.id &&
|
|
576
|
+
var I;
|
|
577
|
+
const f = P.value || o;
|
|
578
|
+
a.id && f && (a.input && (f.setValue = N, f.getValue = () => s[a.field] || t.modelValue), f.setAttr = (C, S) => (a.componentProps || (a.componentProps = {}), a.componentProps[C] = S), f.getAttr = (C) => a.componentProps[C], u.addComponentInstance(a.id, f), (I = w.value) != null && I.defaultSchema.input && a.noFormItem !== !0 && M.value && u.addComponentInstance(a.id + "formItem", M.value));
|
|
579
579
|
}
|
|
580
580
|
function g() {
|
|
581
|
-
var
|
|
582
|
-
a.id && (u.removeComponentInstance(a.id), (
|
|
581
|
+
var f;
|
|
582
|
+
a.id && (u.removeComponentInstance(a.id), (f = w.value) != null && f.defaultSchema.input && a.noFormItem !== !0 && u.removeComponentInstance(a.id + "formItem"));
|
|
583
583
|
}
|
|
584
584
|
async function W() {
|
|
585
|
-
var
|
|
586
|
-
if (a = await
|
|
587
|
-
const
|
|
588
|
-
|
|
585
|
+
var I, C, S;
|
|
586
|
+
if (a = await A(a), typeof ((I = a.componentProps) == null ? void 0 : I.defaultValue) < "u") {
|
|
587
|
+
const F = u.isDesignMode.value ? (C = a.componentProps) == null ? void 0 : C.defaultValue : s[a.field] ?? ((S = a.componentProps) == null ? void 0 : S.defaultValue);
|
|
588
|
+
N(z(F));
|
|
589
589
|
}
|
|
590
590
|
if (a.type === "slot") {
|
|
591
|
-
const
|
|
592
|
-
if (!
|
|
593
|
-
|
|
591
|
+
const F = a.slotName;
|
|
592
|
+
if (!F) return;
|
|
593
|
+
b.value = ne({
|
|
594
594
|
setup() {
|
|
595
|
-
return () => k(l,
|
|
595
|
+
return () => k(l, F, {
|
|
596
596
|
componentSchema: a,
|
|
597
597
|
model: s
|
|
598
598
|
});
|
|
@@ -600,159 +600,165 @@ const qe = /* @__PURE__ */ ee({
|
|
|
600
600
|
});
|
|
601
601
|
return;
|
|
602
602
|
}
|
|
603
|
-
const
|
|
604
|
-
if (!
|
|
603
|
+
const f = U.getComponent(a.type);
|
|
604
|
+
if (!f) {
|
|
605
605
|
console.error(`组件${a.type}未注册`);
|
|
606
606
|
return;
|
|
607
607
|
}
|
|
608
|
-
if (typeof
|
|
609
|
-
const
|
|
610
|
-
|
|
608
|
+
if (typeof f == "function") {
|
|
609
|
+
const F = await f();
|
|
610
|
+
b.value = F.default ?? F;
|
|
611
611
|
} else
|
|
612
|
-
|
|
612
|
+
b.value = f;
|
|
613
|
+
}
|
|
614
|
+
function E(f) {
|
|
615
|
+
Object.prototype.toString.call(f), Object.prototype.toString.call(f) === "[object Array]" ? f.forEach((I) => {
|
|
616
|
+
s[I.value] = I.label;
|
|
617
|
+
}) : s[f.value] = f.label, ee.emit("updateformData" + t.id, s);
|
|
613
618
|
}
|
|
614
|
-
function
|
|
615
|
-
d("update:modelValue",
|
|
619
|
+
function N(f) {
|
|
620
|
+
d("update:modelValue", f), d("change", f), a.field && (s[a.field] = f), ee.emit("updateformData" + t.id, s);
|
|
616
621
|
}
|
|
617
|
-
function
|
|
618
|
-
d("update:dynamicId",
|
|
622
|
+
function Q(f) {
|
|
623
|
+
d("update:dynamicId", f);
|
|
619
624
|
}
|
|
620
625
|
let q = null;
|
|
621
626
|
return B(
|
|
622
627
|
() => a,
|
|
623
|
-
async (
|
|
624
|
-
const
|
|
625
|
-
...
|
|
628
|
+
async (f) => {
|
|
629
|
+
const I = JSON.stringify({
|
|
630
|
+
...f,
|
|
626
631
|
children: void 0,
|
|
627
632
|
componentProps: {
|
|
628
|
-
...
|
|
633
|
+
...f.componentProps,
|
|
629
634
|
options: null
|
|
630
635
|
}
|
|
631
636
|
});
|
|
632
|
-
if (
|
|
637
|
+
if (I === q)
|
|
633
638
|
return !1;
|
|
634
|
-
q =
|
|
639
|
+
q = I, W();
|
|
635
640
|
},
|
|
636
641
|
{
|
|
637
642
|
immediate: !0,
|
|
638
643
|
deep: !0
|
|
639
644
|
}
|
|
640
|
-
),
|
|
641
|
-
var
|
|
642
|
-
const
|
|
643
|
-
return
|
|
645
|
+
), Ae(g), (f, I) => {
|
|
646
|
+
var S;
|
|
647
|
+
const C = Me("ENode");
|
|
648
|
+
return b.value && _.value ? (T(), K(Ze, {
|
|
644
649
|
key: 0,
|
|
645
|
-
hasFormItem: R(a).noFormItem !== !0 && ((
|
|
650
|
+
hasFormItem: R(a).noFormItem !== !0 && ((S = w.value) == null ? void 0 : S.defaultSchema.input),
|
|
646
651
|
formItemProps: i.value,
|
|
647
652
|
onUpdateFormItemRef: h
|
|
648
653
|
}, {
|
|
649
654
|
default: $(() => [
|
|
650
|
-
(T(), K(
|
|
655
|
+
(T(), K(Re(b.value), me({
|
|
651
656
|
ref_key: "componentInstance",
|
|
652
|
-
ref:
|
|
657
|
+
ref: P,
|
|
653
658
|
onVnodeMounted: c,
|
|
654
659
|
model: R(s)
|
|
655
|
-
}, { ...
|
|
656
|
-
[
|
|
657
|
-
["onUpdate:" +
|
|
658
|
-
[`onUpdate:${
|
|
659
|
-
"onUpdate:
|
|
660
|
+
}, { ...V.value }, {
|
|
661
|
+
[V.value.bindModel]: n.value,
|
|
662
|
+
["onUpdate:" + V.value.bindModel]: I[0] || (I[0] = (F) => n.value = F),
|
|
663
|
+
[`onUpdate:${V.value.bindModel}` || ""]: N,
|
|
664
|
+
"onUpdate:modelValueLabel": E,
|
|
665
|
+
"onUpdate:dynamicId": Q
|
|
660
666
|
}), {
|
|
661
|
-
node: $((
|
|
662
|
-
H(
|
|
667
|
+
node: $((F) => [
|
|
668
|
+
H(C, me({
|
|
663
669
|
id: t.id
|
|
664
|
-
},
|
|
670
|
+
}, F, {
|
|
665
671
|
sourceDateUrl: t.sourceDateUrl
|
|
666
672
|
}), null, 16, ["id", "sourceDateUrl"])
|
|
667
673
|
]),
|
|
668
674
|
"edit-node": $(() => [
|
|
669
|
-
k(
|
|
675
|
+
k(f.$slots, "edit-node")
|
|
670
676
|
]),
|
|
671
677
|
_: 3
|
|
672
678
|
}, 16, ["model"]))
|
|
673
679
|
]),
|
|
674
680
|
_: 3
|
|
675
|
-
}, 8, ["hasFormItem", "formItemProps"])) :
|
|
681
|
+
}, 8, ["hasFormItem", "formItemProps"])) : Ee("", !0);
|
|
676
682
|
};
|
|
677
683
|
}
|
|
678
684
|
});
|
|
679
|
-
function
|
|
680
|
-
const e =
|
|
685
|
+
function Qe() {
|
|
686
|
+
const e = O(!1), r = Ie(), o = O({});
|
|
681
687
|
function t() {
|
|
682
|
-
return new Promise((
|
|
688
|
+
return new Promise((m) => {
|
|
683
689
|
if (e.value)
|
|
684
|
-
|
|
690
|
+
m();
|
|
685
691
|
else {
|
|
686
692
|
const v = B(e, () => {
|
|
687
|
-
v(),
|
|
693
|
+
v(), m();
|
|
688
694
|
});
|
|
689
695
|
}
|
|
690
696
|
});
|
|
691
697
|
}
|
|
692
|
-
async function n(
|
|
698
|
+
async function n(m = "default") {
|
|
693
699
|
var d;
|
|
694
700
|
await t();
|
|
695
|
-
const v = (d = o.value) == null ? void 0 : d[
|
|
696
|
-
if (!v) throw new Error(`表单 [name=${
|
|
701
|
+
const v = (d = o.value) == null ? void 0 : d[m];
|
|
702
|
+
if (!v) throw new Error(`表单 [name=${m}] 不存在`);
|
|
697
703
|
return v;
|
|
698
704
|
}
|
|
699
|
-
async function s(
|
|
700
|
-
const d = await n(
|
|
705
|
+
async function s(m, v) {
|
|
706
|
+
const d = await n(m);
|
|
701
707
|
return z(await v(d));
|
|
702
708
|
}
|
|
703
|
-
async function l(
|
|
704
|
-
return await s(
|
|
709
|
+
async function l(m = "default") {
|
|
710
|
+
return await s(m, (v) => v.getData());
|
|
705
711
|
}
|
|
706
|
-
function u(
|
|
707
|
-
var
|
|
712
|
+
function u(m, v = "default", d = void 0) {
|
|
713
|
+
var P, M;
|
|
708
714
|
if (d && Object.keys(d).length) {
|
|
709
715
|
let h = function(i) {
|
|
710
|
-
let
|
|
711
|
-
return i.forEach((
|
|
712
|
-
|
|
713
|
-
}),
|
|
714
|
-
},
|
|
715
|
-
var
|
|
716
|
-
let
|
|
716
|
+
let V = [];
|
|
717
|
+
return i.forEach((w) => {
|
|
718
|
+
w.children && (V = [...V, ...h(w.children)]), V.push(w);
|
|
719
|
+
}), V;
|
|
720
|
+
}, b = function(i) {
|
|
721
|
+
var w;
|
|
722
|
+
let V = h((w = d == null ? void 0 : d.schemas[0]) == null ? void 0 : w.children);
|
|
717
723
|
return Object.keys(i).forEach((c) => {
|
|
718
|
-
var
|
|
719
|
-
const g =
|
|
720
|
-
(g && (g == null ? void 0 : g.type) === "checkbox" || (g == null ? void 0 : g.type) === "select" && ((
|
|
721
|
-
url:
|
|
722
|
-
name:
|
|
724
|
+
var E, N, Q, q, f, I, C;
|
|
725
|
+
const g = V.find((S) => S.field === c), W = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
726
|
+
(g && (g == null ? void 0 : g.type) === "checkbox" || (g == null ? void 0 : g.type) === "select" && ((E = g == null ? void 0 : g.componentProps) != null && E.multiple) || (g == null ? void 0 : g.type) === "cascader" && !((Q = (N = g == null ? void 0 : g.componentProps) == null ? void 0 : N.props) != null && Q.multiple) || (g == null ? void 0 : g.type) === "date" && W.includes((q = g == null ? void 0 : g.componentProps) == null ? void 0 : q.type)) && typeof i[c] == "string" ? i[c] = (f = i[c]) == null ? void 0 : f.split(",") : (g == null ? void 0 : g.type) === "cascader" && ((C = (I = g == null ? void 0 : g.componentProps) == null ? void 0 : I.props) != null && C.multiple) && typeof i[c] == "string" ? (i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((S) => S.split(",")) : i[c] = i[c].split(","), i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((S) => S.split(",")) : i[c] = i[c].split(",")) : ((g == null ? void 0 : g.type) === "upload-image" || (g == null ? void 0 : g.type) === "upload-file") && typeof i[c] == "string" ? i[c] = i[c].split(",").map((S) => ({
|
|
727
|
+
url: S,
|
|
728
|
+
name: S
|
|
723
729
|
})) : (g == null ? void 0 : g.type) === "number" || (g == null ? void 0 : g.type) === "slider" ? i[c] = Number(i[c]) : (g == null ? void 0 : g.type) === "switch" && (i[c] = typeof i[c] == "boolean" ? i[c] : i[c].indexOf("true") > -1);
|
|
724
730
|
}), i;
|
|
725
|
-
}(
|
|
726
|
-
r.setFormData(
|
|
727
|
-
const
|
|
728
|
-
|
|
731
|
+
}(m);
|
|
732
|
+
r.setFormData(b, v);
|
|
733
|
+
const _ = (P = o.value) == null ? void 0 : P[v];
|
|
734
|
+
_ == null || _.clearValidate();
|
|
729
735
|
} else {
|
|
730
|
-
r.setFormData(
|
|
736
|
+
r.setFormData(m, v);
|
|
731
737
|
const h = (M = o.value) == null ? void 0 : M[v];
|
|
732
738
|
h == null || h.clearValidate();
|
|
733
739
|
}
|
|
734
740
|
}
|
|
735
|
-
async function
|
|
736
|
-
return await s(
|
|
741
|
+
async function p(m = "default") {
|
|
742
|
+
return await s(m, async (v) => (await v.validate(), await v.getData()));
|
|
737
743
|
}
|
|
738
|
-
async function
|
|
744
|
+
async function x(m) {
|
|
739
745
|
await t();
|
|
740
746
|
const v = {};
|
|
741
747
|
for (const d in o.value) {
|
|
742
|
-
const
|
|
743
|
-
|
|
748
|
+
const P = o.value[d];
|
|
749
|
+
P && (v[d] = z(await m(P)));
|
|
744
750
|
}
|
|
745
751
|
return v;
|
|
746
752
|
}
|
|
747
|
-
async function
|
|
748
|
-
return await
|
|
753
|
+
async function y() {
|
|
754
|
+
return await x((m) => m.getData());
|
|
749
755
|
}
|
|
750
|
-
function a(
|
|
751
|
-
for (const v in
|
|
752
|
-
u(
|
|
756
|
+
function a(m) {
|
|
757
|
+
for (const v in m)
|
|
758
|
+
u(m[v], v);
|
|
753
759
|
}
|
|
754
|
-
async function
|
|
755
|
-
return await
|
|
760
|
+
async function A() {
|
|
761
|
+
return await x(async (m) => (await m.validate(), await m.getData()));
|
|
756
762
|
}
|
|
757
763
|
return {
|
|
758
764
|
ready: e,
|
|
@@ -760,17 +766,17 @@ function Ge() {
|
|
|
760
766
|
forms: o,
|
|
761
767
|
getData: l,
|
|
762
768
|
setData: u,
|
|
763
|
-
validate:
|
|
764
|
-
getForms:
|
|
769
|
+
validate: p,
|
|
770
|
+
getForms: y,
|
|
765
771
|
setForms: a,
|
|
766
|
-
validateAll:
|
|
772
|
+
validateAll: A,
|
|
767
773
|
getFormInstance: n
|
|
768
774
|
};
|
|
769
775
|
}
|
|
770
|
-
const
|
|
776
|
+
const Ye = {
|
|
771
777
|
key: 0,
|
|
772
778
|
class: "epic-loading-box"
|
|
773
|
-
},
|
|
779
|
+
}, Xe = { class: "epic-builder-main" }, je = { class: "epic-loading-box" }, et = /* @__PURE__ */ ne({
|
|
774
780
|
__name: "builder",
|
|
775
781
|
props: {
|
|
776
782
|
pageSchema: {},
|
|
@@ -781,13 +787,13 @@ const Qe = {
|
|
|
781
787
|
},
|
|
782
788
|
emits: ["change", "ready"],
|
|
783
789
|
setup(e, { expose: r, emit: o }) {
|
|
784
|
-
const t =
|
|
790
|
+
const t = j(() => import("./index-DgcFxYFp.js")), n = o, { ready: s, pageManager: l, forms: u, getData: p, setData: x, validate: y, getForms: a, setForms: A, validateAll: m, getFormInstance: v } = Qe(), d = e, P = te({
|
|
785
791
|
schemas: []
|
|
786
792
|
});
|
|
787
793
|
B(
|
|
788
794
|
() => d.pageSchema,
|
|
789
795
|
(i) => {
|
|
790
|
-
G(
|
|
796
|
+
G(P, i);
|
|
791
797
|
},
|
|
792
798
|
{
|
|
793
799
|
immediate: !0,
|
|
@@ -797,8 +803,8 @@ const Qe = {
|
|
|
797
803
|
() => d.formData,
|
|
798
804
|
(i) => {
|
|
799
805
|
if (i) {
|
|
800
|
-
let
|
|
801
|
-
|
|
806
|
+
let V = h(i);
|
|
807
|
+
x(V);
|
|
802
808
|
}
|
|
803
809
|
},
|
|
804
810
|
{
|
|
@@ -807,299 +813,299 @@ const Qe = {
|
|
|
807
813
|
}
|
|
808
814
|
);
|
|
809
815
|
function M(i) {
|
|
810
|
-
let
|
|
811
|
-
return i.forEach((
|
|
812
|
-
|
|
813
|
-
}),
|
|
816
|
+
let V = [];
|
|
817
|
+
return i.forEach((w) => {
|
|
818
|
+
w.children && (V = [...V, ...M(w.children)]), V.push(w);
|
|
819
|
+
}), V;
|
|
814
820
|
}
|
|
815
821
|
function h(i) {
|
|
816
|
-
let
|
|
817
|
-
return Object.keys(i).forEach((
|
|
818
|
-
var W,
|
|
819
|
-
const c =
|
|
820
|
-
(c && (c == null ? void 0 : c.type) === "checkbox" || (c == null ? void 0 : c.type) === "select" && ((W = c == null ? void 0 : c.componentProps) != null && W.multiple) || (c == null ? void 0 : c.type) === "cascader" && !((
|
|
821
|
-
url:
|
|
822
|
-
name:
|
|
823
|
-
})) : (c == null ? void 0 : c.type) === "number" || (c == null ? void 0 : c.type) === "slider" ? i[
|
|
822
|
+
let V = M(d.pageSchema.schemas[0].children);
|
|
823
|
+
return Object.keys(i).forEach((w) => {
|
|
824
|
+
var W, E, N, Q, q, f, I;
|
|
825
|
+
const c = V.find((C) => C.field === w), g = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
826
|
+
(c && (c == null ? void 0 : c.type) === "checkbox" || (c == null ? void 0 : c.type) === "select" && ((W = c == null ? void 0 : c.componentProps) != null && W.multiple) || (c == null ? void 0 : c.type) === "cascader" && !((N = (E = c == null ? void 0 : c.componentProps) == null ? void 0 : E.props) != null && N.multiple) || (c == null ? void 0 : c.type) === "date" && g.includes((Q = c == null ? void 0 : c.componentProps) == null ? void 0 : Q.type)) && typeof i[w] == "string" ? i[w] = (q = i[w]) == null ? void 0 : q.split(",") : (c == null ? void 0 : c.type) === "cascader" && ((I = (f = c == null ? void 0 : c.componentProps) == null ? void 0 : f.props) != null && I.multiple) && typeof i[w] == "string" ? (i[w].indexOf(";") > -1 ? i[w] = i[w].split(";").map((C) => C.split(",")) : i[w] = i[w].split(","), i[w].indexOf(";") > -1 ? i[w] = i[w].split(";").map((C) => C.split(",")) : i[w] = i[w].split(",")) : ((c == null ? void 0 : c.type) === "upload-image" || (c == null ? void 0 : c.type) === "upload-file") && typeof i[w] == "string" ? i[w] = i[w].split(",").map((C) => ({
|
|
827
|
+
url: C,
|
|
828
|
+
name: C
|
|
829
|
+
})) : (c == null ? void 0 : c.type) === "number" || (c == null ? void 0 : c.type) === "slider" ? i[w] = Number(i[w]) : (c == null ? void 0 : c.type) === "switch" && (i[w] = typeof i[w] == "boolean" ? i[w] : i[w].indexOf("true") > -1);
|
|
824
830
|
}), i;
|
|
825
831
|
}
|
|
826
832
|
B(
|
|
827
|
-
() =>
|
|
833
|
+
() => P.script,
|
|
828
834
|
(i) => {
|
|
829
835
|
i && l.setMethods(i, !0);
|
|
830
836
|
},
|
|
831
837
|
{
|
|
832
838
|
immediate: !0
|
|
833
839
|
}
|
|
834
|
-
), L("slots",
|
|
840
|
+
), L("slots", $e()), L("pageManager", l), L("forms", u), L("pageSchema", P), L(
|
|
835
841
|
"disabled",
|
|
836
842
|
J(() => d.disabled)
|
|
837
843
|
);
|
|
838
|
-
const
|
|
839
|
-
function
|
|
840
|
-
|
|
841
|
-
s.value = !0, n("ready", l),
|
|
844
|
+
const D = le(), b = D == null ? void 0 : D.proxy;
|
|
845
|
+
function _() {
|
|
846
|
+
re(() => {
|
|
847
|
+
s.value = !0, n("ready", l), b && l.addComponentInstance("builder", b);
|
|
842
848
|
});
|
|
843
849
|
}
|
|
844
|
-
return
|
|
850
|
+
return ee.on("updateformData" + d.id, (i) => {
|
|
845
851
|
n("change", i);
|
|
846
852
|
}), r({
|
|
847
853
|
ready: s,
|
|
848
854
|
pageManager: l,
|
|
849
|
-
getData:
|
|
850
|
-
setData:
|
|
851
|
-
validate:
|
|
855
|
+
getData: p,
|
|
856
|
+
setData: x,
|
|
857
|
+
validate: y,
|
|
852
858
|
getForms: a,
|
|
853
|
-
setForms:
|
|
854
|
-
validateAll:
|
|
859
|
+
setForms: A,
|
|
860
|
+
validateAll: m,
|
|
855
861
|
getFormInstance: v
|
|
856
|
-
}), (i,
|
|
862
|
+
}), (i, V) => R(U).initialized.value ? (T(), K(be, {
|
|
857
863
|
key: 1,
|
|
858
|
-
onResolve:
|
|
864
|
+
onResolve: _
|
|
859
865
|
}, {
|
|
860
866
|
default: $(() => [
|
|
861
|
-
Z("div",
|
|
862
|
-
(T(!0),
|
|
867
|
+
Z("div", Xe, [
|
|
868
|
+
(T(!0), he(Be, null, Ne(P.schemas, (w, c) => (T(), K(R(Ge), {
|
|
863
869
|
id: d.id,
|
|
864
870
|
key: c,
|
|
865
871
|
sourceDateUrl: d.sourceDateUrl,
|
|
866
|
-
componentSchema:
|
|
872
|
+
componentSchema: w
|
|
867
873
|
}, null, 8, ["id", "sourceDateUrl", "componentSchema"]))), 128))
|
|
868
874
|
])
|
|
869
875
|
]),
|
|
870
876
|
fallback: $(() => [
|
|
871
|
-
Z("div",
|
|
877
|
+
Z("div", je, [
|
|
872
878
|
H(R(t))
|
|
873
879
|
])
|
|
874
880
|
]),
|
|
875
881
|
_: 1
|
|
876
|
-
})) : (T(),
|
|
882
|
+
})) : (T(), he("div", Ye));
|
|
877
883
|
}
|
|
878
884
|
});
|
|
879
|
-
function
|
|
880
|
-
return
|
|
885
|
+
function ge(e) {
|
|
886
|
+
return ke() ? (Le(e), !0) : !1;
|
|
881
887
|
}
|
|
882
|
-
function
|
|
888
|
+
function tt(e) {
|
|
883
889
|
let r = 0, o, t;
|
|
884
890
|
const n = () => {
|
|
885
891
|
r -= 1, t && r <= 0 && (t.stop(), o = void 0, t = void 0);
|
|
886
892
|
};
|
|
887
|
-
return (...s) => (r += 1, t || (t =
|
|
893
|
+
return (...s) => (r += 1, t || (t = Ue(!0), o = t.run(() => e(...s))), ge(n), o);
|
|
888
894
|
}
|
|
889
|
-
function
|
|
895
|
+
function oe(e) {
|
|
890
896
|
return typeof e == "function" ? e() : R(e);
|
|
891
897
|
}
|
|
892
|
-
const
|
|
898
|
+
const nt = typeof window < "u" && typeof document < "u";
|
|
893
899
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
894
|
-
const
|
|
900
|
+
const ot = (e) => typeof e < "u", rt = Object.prototype.toString, st = (e) => rt.call(e) === "[object Object]", at = () => {
|
|
895
901
|
};
|
|
896
|
-
function
|
|
897
|
-
return
|
|
902
|
+
function lt(e) {
|
|
903
|
+
return le();
|
|
898
904
|
}
|
|
899
|
-
function
|
|
900
|
-
|
|
905
|
+
function it(e, r = !0, o) {
|
|
906
|
+
lt() ? ve(e, o) : r ? e() : re(e);
|
|
901
907
|
}
|
|
902
|
-
function
|
|
908
|
+
function ct(e = !1, r = {}) {
|
|
903
909
|
const {
|
|
904
910
|
truthyValue: o = !0,
|
|
905
911
|
falsyValue: t = !1
|
|
906
|
-
} = r, n = Te(e), s =
|
|
912
|
+
} = r, n = Te(e), s = O(e);
|
|
907
913
|
function l(u) {
|
|
908
914
|
if (arguments.length)
|
|
909
915
|
return s.value = u, s.value;
|
|
910
916
|
{
|
|
911
|
-
const
|
|
912
|
-
return s.value = s.value ===
|
|
917
|
+
const p = oe(o);
|
|
918
|
+
return s.value = s.value === p ? oe(t) : p, s.value;
|
|
913
919
|
}
|
|
914
920
|
}
|
|
915
921
|
return n ? l : [s, l];
|
|
916
922
|
}
|
|
917
|
-
function
|
|
918
|
-
const t = B(e, (...n) => (
|
|
923
|
+
function Lt(e, r, o) {
|
|
924
|
+
const t = B(e, (...n) => (re(() => t()), r(...n)), o);
|
|
919
925
|
return t;
|
|
920
926
|
}
|
|
921
|
-
const
|
|
922
|
-
function
|
|
927
|
+
const ue = nt ? window : void 0;
|
|
928
|
+
function X(e) {
|
|
923
929
|
var r;
|
|
924
|
-
const o =
|
|
930
|
+
const o = oe(e);
|
|
925
931
|
return (r = o == null ? void 0 : o.$el) != null ? r : o;
|
|
926
932
|
}
|
|
927
|
-
function
|
|
933
|
+
function ut(...e) {
|
|
928
934
|
let r, o, t, n;
|
|
929
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, t, n] = e, r =
|
|
930
|
-
return
|
|
935
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, t, n] = e, r = ue) : [r, o, t, n] = e, !r)
|
|
936
|
+
return at;
|
|
931
937
|
Array.isArray(o) || (o = [o]), Array.isArray(t) || (t = [t]);
|
|
932
938
|
const s = [], l = () => {
|
|
933
|
-
s.forEach((
|
|
934
|
-
}, u = (
|
|
935
|
-
() => [
|
|
936
|
-
([
|
|
937
|
-
if (l(), !
|
|
939
|
+
s.forEach((y) => y()), s.length = 0;
|
|
940
|
+
}, u = (y, a, A, m) => (y.addEventListener(a, A, m), () => y.removeEventListener(a, A, m)), p = B(
|
|
941
|
+
() => [X(r), oe(n)],
|
|
942
|
+
([y, a]) => {
|
|
943
|
+
if (l(), !y)
|
|
938
944
|
return;
|
|
939
|
-
const
|
|
945
|
+
const A = st(a) ? { ...a } : a;
|
|
940
946
|
s.push(
|
|
941
|
-
...o.flatMap((
|
|
947
|
+
...o.flatMap((m) => t.map((v) => u(y, m, v, A)))
|
|
942
948
|
);
|
|
943
949
|
},
|
|
944
950
|
{ immediate: !0, flush: "post" }
|
|
945
|
-
),
|
|
946
|
-
|
|
951
|
+
), x = () => {
|
|
952
|
+
p(), l();
|
|
947
953
|
};
|
|
948
|
-
return
|
|
954
|
+
return ge(x), x;
|
|
949
955
|
}
|
|
950
|
-
function
|
|
956
|
+
function dt(e) {
|
|
951
957
|
return typeof e == "function" ? e : typeof e == "string" ? (r) => r.key === e : Array.isArray(e) ? (r) => e.includes(r.key) : () => !0;
|
|
952
958
|
}
|
|
953
|
-
function
|
|
959
|
+
function Ce(...e) {
|
|
954
960
|
let r, o, t = {};
|
|
955
961
|
e.length === 3 ? (r = e[0], o = e[1], t = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (r = !0, o = e[0], t = e[1]) : (r = e[0], o = e[1]) : (r = !0, o = e[0]);
|
|
956
962
|
const {
|
|
957
|
-
target: n =
|
|
963
|
+
target: n = ue,
|
|
958
964
|
eventName: s = "keydown",
|
|
959
965
|
passive: l = !1,
|
|
960
966
|
dedupe: u = !1
|
|
961
|
-
} = t,
|
|
962
|
-
return
|
|
963
|
-
|
|
967
|
+
} = t, p = dt(r);
|
|
968
|
+
return ut(n, s, (y) => {
|
|
969
|
+
y.repeat && oe(u) || p(y) && o(y);
|
|
964
970
|
}, l);
|
|
965
971
|
}
|
|
966
|
-
function de(e, r, o = {}) {
|
|
967
|
-
return be(e, r, { ...o, eventName: "keydown" });
|
|
968
|
-
}
|
|
969
972
|
function fe(e, r, o = {}) {
|
|
970
|
-
return
|
|
973
|
+
return Ce(e, r, { ...o, eventName: "keydown" });
|
|
971
974
|
}
|
|
972
|
-
function
|
|
973
|
-
|
|
974
|
-
|
|
975
|
+
function pe(e, r, o = {}) {
|
|
976
|
+
return Ce(e, r, { ...o, eventName: "keyup" });
|
|
977
|
+
}
|
|
978
|
+
function ft() {
|
|
979
|
+
const e = O(!1), r = le();
|
|
980
|
+
return r && ve(() => {
|
|
975
981
|
e.value = !0;
|
|
976
982
|
}, r), e;
|
|
977
983
|
}
|
|
978
|
-
function
|
|
979
|
-
const r =
|
|
984
|
+
function pt(e) {
|
|
985
|
+
const r = ft();
|
|
980
986
|
return J(() => (r.value, !!e()));
|
|
981
987
|
}
|
|
982
|
-
function
|
|
988
|
+
function mt(e) {
|
|
983
989
|
return JSON.parse(JSON.stringify(e));
|
|
984
990
|
}
|
|
985
|
-
function
|
|
986
|
-
const { window: t =
|
|
991
|
+
function ht(e, r, o = {}) {
|
|
992
|
+
const { window: t = ue, ...n } = o;
|
|
987
993
|
let s;
|
|
988
|
-
const l =
|
|
994
|
+
const l = pt(() => t && "ResizeObserver" in t), u = () => {
|
|
989
995
|
s && (s.disconnect(), s = void 0);
|
|
990
|
-
},
|
|
991
|
-
const a =
|
|
992
|
-
return Array.isArray(a) ? a.map((
|
|
993
|
-
}),
|
|
994
|
-
|
|
996
|
+
}, p = J(() => {
|
|
997
|
+
const a = oe(e);
|
|
998
|
+
return Array.isArray(a) ? a.map((A) => X(A)) : [X(a)];
|
|
999
|
+
}), x = B(
|
|
1000
|
+
p,
|
|
995
1001
|
(a) => {
|
|
996
1002
|
if (u(), l.value && t) {
|
|
997
1003
|
s = new ResizeObserver(r);
|
|
998
|
-
for (const
|
|
999
|
-
|
|
1004
|
+
for (const A of a)
|
|
1005
|
+
A && s.observe(A, n);
|
|
1000
1006
|
}
|
|
1001
1007
|
},
|
|
1002
1008
|
{ immediate: !0, flush: "post" }
|
|
1003
|
-
),
|
|
1004
|
-
u(),
|
|
1009
|
+
), y = () => {
|
|
1010
|
+
u(), x();
|
|
1005
1011
|
};
|
|
1006
|
-
return
|
|
1012
|
+
return ge(y), {
|
|
1007
1013
|
isSupported: l,
|
|
1008
|
-
stop:
|
|
1014
|
+
stop: y
|
|
1009
1015
|
};
|
|
1010
1016
|
}
|
|
1011
|
-
function
|
|
1012
|
-
const { window: t =
|
|
1013
|
-
var a,
|
|
1014
|
-
return (
|
|
1015
|
-
}), l =
|
|
1017
|
+
function zt(e, r = { width: 0, height: 0 }, o = {}) {
|
|
1018
|
+
const { window: t = ue, box: n = "content-box" } = o, s = J(() => {
|
|
1019
|
+
var a, A;
|
|
1020
|
+
return (A = (a = X(e)) == null ? void 0 : a.namespaceURI) == null ? void 0 : A.includes("svg");
|
|
1021
|
+
}), l = O(r.width), u = O(r.height), { stop: p } = ht(
|
|
1016
1022
|
e,
|
|
1017
1023
|
([a]) => {
|
|
1018
|
-
const
|
|
1024
|
+
const A = n === "border-box" ? a.borderBoxSize : n === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
|
|
1019
1025
|
if (t && s.value) {
|
|
1020
|
-
const
|
|
1021
|
-
if (
|
|
1022
|
-
const v =
|
|
1026
|
+
const m = X(e);
|
|
1027
|
+
if (m) {
|
|
1028
|
+
const v = m.getBoundingClientRect();
|
|
1023
1029
|
l.value = v.width, u.value = v.height;
|
|
1024
1030
|
}
|
|
1025
|
-
} else if (
|
|
1026
|
-
const
|
|
1027
|
-
l.value =
|
|
1031
|
+
} else if (A) {
|
|
1032
|
+
const m = Array.isArray(A) ? A : [A];
|
|
1033
|
+
l.value = m.reduce((v, { inlineSize: d }) => v + d, 0), u.value = m.reduce((v, { blockSize: d }) => v + d, 0);
|
|
1028
1034
|
} else
|
|
1029
1035
|
l.value = a.contentRect.width, u.value = a.contentRect.height;
|
|
1030
1036
|
},
|
|
1031
1037
|
o
|
|
1032
1038
|
);
|
|
1033
|
-
|
|
1034
|
-
const a =
|
|
1039
|
+
it(() => {
|
|
1040
|
+
const a = X(e);
|
|
1035
1041
|
a && (l.value = "offsetWidth" in a ? a.offsetWidth : r.width, u.value = "offsetHeight" in a ? a.offsetHeight : r.height);
|
|
1036
1042
|
});
|
|
1037
|
-
const
|
|
1038
|
-
() =>
|
|
1043
|
+
const x = B(
|
|
1044
|
+
() => X(e),
|
|
1039
1045
|
(a) => {
|
|
1040
1046
|
l.value = a ? r.width : 0, u.value = a ? r.height : 0;
|
|
1041
1047
|
}
|
|
1042
1048
|
);
|
|
1043
|
-
function
|
|
1044
|
-
|
|
1049
|
+
function y() {
|
|
1050
|
+
p(), x();
|
|
1045
1051
|
}
|
|
1046
1052
|
return {
|
|
1047
1053
|
width: l,
|
|
1048
1054
|
height: u,
|
|
1049
|
-
stop:
|
|
1055
|
+
stop: y
|
|
1050
1056
|
};
|
|
1051
1057
|
}
|
|
1052
|
-
function
|
|
1058
|
+
function Jt(e, r, o, t = {}) {
|
|
1053
1059
|
var n, s, l;
|
|
1054
1060
|
const {
|
|
1055
1061
|
clone: u = !1,
|
|
1056
|
-
passive:
|
|
1057
|
-
eventName:
|
|
1058
|
-
deep:
|
|
1062
|
+
passive: p = !1,
|
|
1063
|
+
eventName: x,
|
|
1064
|
+
deep: y = !1,
|
|
1059
1065
|
defaultValue: a,
|
|
1060
|
-
shouldEmit:
|
|
1061
|
-
} = t,
|
|
1062
|
-
let d =
|
|
1066
|
+
shouldEmit: A
|
|
1067
|
+
} = t, m = le(), v = o || (m == null ? void 0 : m.emit) || ((n = m == null ? void 0 : m.$emit) == null ? void 0 : n.bind(m)) || ((l = (s = m == null ? void 0 : m.proxy) == null ? void 0 : s.$emit) == null ? void 0 : l.bind(m == null ? void 0 : m.proxy));
|
|
1068
|
+
let d = x;
|
|
1063
1069
|
r || (r = "modelValue"), d = d || `update:${r.toString()}`;
|
|
1064
|
-
const
|
|
1065
|
-
|
|
1070
|
+
const P = (D) => u ? typeof u == "function" ? u(D) : mt(D) : D, M = () => ot(e[r]) ? P(e[r]) : a, h = (D) => {
|
|
1071
|
+
A ? A(D) && v(d, D) : v(d, D);
|
|
1066
1072
|
};
|
|
1067
|
-
if (
|
|
1068
|
-
const
|
|
1069
|
-
let
|
|
1073
|
+
if (p) {
|
|
1074
|
+
const D = M(), b = O(D);
|
|
1075
|
+
let _ = !1;
|
|
1070
1076
|
return B(
|
|
1071
1077
|
() => e[r],
|
|
1072
1078
|
(i) => {
|
|
1073
|
-
|
|
1079
|
+
_ || (_ = !0, b.value = P(i), re(() => _ = !1));
|
|
1074
1080
|
}
|
|
1075
1081
|
), B(
|
|
1076
|
-
|
|
1082
|
+
b,
|
|
1077
1083
|
(i) => {
|
|
1078
|
-
!
|
|
1084
|
+
!_ && (i !== e[r] || y) && h(i);
|
|
1079
1085
|
},
|
|
1080
|
-
{ deep:
|
|
1081
|
-
),
|
|
1086
|
+
{ deep: y }
|
|
1087
|
+
), b;
|
|
1082
1088
|
} else
|
|
1083
1089
|
return J({
|
|
1084
1090
|
get() {
|
|
1085
1091
|
return M();
|
|
1086
1092
|
},
|
|
1087
|
-
set(
|
|
1088
|
-
h(
|
|
1093
|
+
set(D) {
|
|
1094
|
+
h(D);
|
|
1089
1095
|
}
|
|
1090
1096
|
});
|
|
1091
1097
|
}
|
|
1092
|
-
function
|
|
1093
|
-
const { isDark: e } =
|
|
1098
|
+
function Wt() {
|
|
1099
|
+
const { isDark: e } = de(), r = ct(e);
|
|
1094
1100
|
return {
|
|
1095
1101
|
isDark: e,
|
|
1096
1102
|
toggleDark: r
|
|
1097
1103
|
};
|
|
1098
1104
|
}
|
|
1099
|
-
function
|
|
1100
|
-
const e =
|
|
1101
|
-
return
|
|
1102
|
-
|
|
1105
|
+
function vt() {
|
|
1106
|
+
const e = O(!1);
|
|
1107
|
+
return ve(() => {
|
|
1108
|
+
gt(e), yt(e);
|
|
1103
1109
|
}), B(
|
|
1104
1110
|
() => e.value,
|
|
1105
1111
|
() => {
|
|
@@ -1109,11 +1115,11 @@ function ht() {
|
|
|
1109
1115
|
isDark: e
|
|
1110
1116
|
};
|
|
1111
1117
|
}
|
|
1112
|
-
function
|
|
1118
|
+
function gt(e) {
|
|
1113
1119
|
var r = document.documentElement;
|
|
1114
1120
|
r && (r.classList.contains("dark") ? e.value = !0 : e.value = !1);
|
|
1115
1121
|
}
|
|
1116
|
-
function
|
|
1122
|
+
function yt(e) {
|
|
1117
1123
|
var r = document.querySelector("html"), o = new MutationObserver(function(t) {
|
|
1118
1124
|
for (var n of t)
|
|
1119
1125
|
if (n.type === "attributes" && n.attributeName === "class") {
|
|
@@ -1124,12 +1130,12 @@ function gt(e) {
|
|
|
1124
1130
|
o.observe(r, {
|
|
1125
1131
|
attributes: !0,
|
|
1126
1132
|
attributeFilter: ["class"]
|
|
1127
|
-
}),
|
|
1133
|
+
}), Ae(() => {
|
|
1128
1134
|
o.disconnect();
|
|
1129
1135
|
});
|
|
1130
1136
|
}
|
|
1131
|
-
function
|
|
1132
|
-
const e =
|
|
1137
|
+
function wt() {
|
|
1138
|
+
const e = O(1), r = O(!1), { isDark: o } = vt(), { pressSpace: t, pressShift: n, pressCtrl: s } = St();
|
|
1133
1139
|
return {
|
|
1134
1140
|
canvasScale: e,
|
|
1135
1141
|
pressSpace: t,
|
|
@@ -1139,44 +1145,44 @@ function yt() {
|
|
|
1139
1145
|
isDark: o
|
|
1140
1146
|
};
|
|
1141
1147
|
}
|
|
1142
|
-
const
|
|
1143
|
-
function
|
|
1144
|
-
const e =
|
|
1145
|
-
return
|
|
1148
|
+
const de = tt(wt);
|
|
1149
|
+
function St() {
|
|
1150
|
+
const e = O(!1), r = O(!1), o = O(!1);
|
|
1151
|
+
return fe(" ", () => {
|
|
1146
1152
|
e.value = !0;
|
|
1147
|
-
}),
|
|
1153
|
+
}), pe(" ", () => {
|
|
1148
1154
|
e.value = !1;
|
|
1149
|
-
}),
|
|
1155
|
+
}), fe("Shift", (t) => {
|
|
1150
1156
|
t.preventDefault(), r.value = !0;
|
|
1151
|
-
}),
|
|
1157
|
+
}), pe("Shift", () => {
|
|
1152
1158
|
r.value = !1;
|
|
1153
|
-
}),
|
|
1159
|
+
}), fe("Control", (t) => {
|
|
1154
1160
|
t.preventDefault(), o.value = !0;
|
|
1155
|
-
}),
|
|
1161
|
+
}), pe("Control", () => {
|
|
1156
1162
|
o.value = !1;
|
|
1157
1163
|
}), { pressSpace: e, pressShift: r, pressCtrl: o };
|
|
1158
1164
|
}
|
|
1159
|
-
function
|
|
1160
|
-
const { pressSpace: r } =
|
|
1165
|
+
function Ht(e) {
|
|
1166
|
+
const { pressSpace: r } = de(), o = new Image(1, 1);
|
|
1161
1167
|
o.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
|
|
1162
1168
|
let t = 0, n = 0;
|
|
1163
|
-
function s(
|
|
1164
|
-
var
|
|
1165
|
-
r.value && (t =
|
|
1169
|
+
function s(p) {
|
|
1170
|
+
var x;
|
|
1171
|
+
r.value && (t = p.x, n = p.y, (x = p.dataTransfer) == null || x.setDragImage(document.createElement("div"), 0, 0));
|
|
1166
1172
|
}
|
|
1167
|
-
function l(
|
|
1168
|
-
if (
|
|
1173
|
+
function l(p) {
|
|
1174
|
+
if (p.preventDefault(), !p.x || !p.y || !r.value)
|
|
1169
1175
|
return;
|
|
1170
|
-
const
|
|
1171
|
-
t =
|
|
1176
|
+
const x = p.x - t, y = p.y - n;
|
|
1177
|
+
t = p.x, n = p.y, e.value && (e.value.scrollTop -= y, e.value.scrollLeft -= x);
|
|
1172
1178
|
}
|
|
1173
1179
|
function u() {
|
|
1174
1180
|
r.value = !1;
|
|
1175
1181
|
}
|
|
1176
1182
|
return { handleElementDragStart: s, handleElementDrag: l, handleElementDragEnd: u };
|
|
1177
1183
|
}
|
|
1178
|
-
function
|
|
1179
|
-
const { pressCtrl: r, canvasScale: o, disabledZoom: t } =
|
|
1184
|
+
function Kt(e) {
|
|
1185
|
+
const { pressCtrl: r, canvasScale: o, disabledZoom: t } = de();
|
|
1180
1186
|
function n(s) {
|
|
1181
1187
|
if (!r.value || t.value)
|
|
1182
1188
|
return;
|
|
@@ -1191,7 +1197,7 @@ function Ht(e) {
|
|
|
1191
1197
|
}
|
|
1192
1198
|
), { handleZoom: n, canvasScale: o };
|
|
1193
1199
|
}
|
|
1194
|
-
function
|
|
1200
|
+
function qt(e, r = 16.66) {
|
|
1195
1201
|
let o;
|
|
1196
1202
|
function t() {
|
|
1197
1203
|
n(), o = window.setInterval(e, r);
|
|
@@ -1204,57 +1210,57 @@ function Kt(e, r = 16.66) {
|
|
|
1204
1210
|
stopTimedQuery: n
|
|
1205
1211
|
};
|
|
1206
1212
|
}
|
|
1207
|
-
const
|
|
1213
|
+
const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, Et = /* @__PURE__ */ ne({
|
|
1208
1214
|
__name: "index",
|
|
1209
1215
|
setup(e, { expose: r }) {
|
|
1210
|
-
const o =
|
|
1216
|
+
const o = U.getComponent("monacoEditor"), t = U.getComponent("modal"), n = O(null), s = O(!1), l = O(!1), u = O({}), p = Y("pageSchema"), x = O(null), y = O("");
|
|
1211
1217
|
function a() {
|
|
1212
1218
|
l.value = !1;
|
|
1213
1219
|
}
|
|
1214
|
-
function
|
|
1220
|
+
function A() {
|
|
1215
1221
|
s.value = !1;
|
|
1216
1222
|
}
|
|
1217
|
-
function
|
|
1218
|
-
s.value = !0,
|
|
1223
|
+
function m() {
|
|
1224
|
+
s.value = !0, y.value = ce();
|
|
1219
1225
|
}
|
|
1220
1226
|
async function v() {
|
|
1221
1227
|
try {
|
|
1222
|
-
let d = await
|
|
1228
|
+
let d = await x.value.validateAll();
|
|
1223
1229
|
if (!Object.keys(d).length) {
|
|
1224
1230
|
alert("请添加表单组件后再尝试!");
|
|
1225
1231
|
return;
|
|
1226
1232
|
}
|
|
1227
|
-
Object.keys(d).length === 1 && (d = d.default), u.value = JSON.stringify(d, null, 2),
|
|
1228
|
-
var
|
|
1229
|
-
(
|
|
1233
|
+
Object.keys(d).length === 1 && (d = d.default), u.value = JSON.stringify(d, null, 2), re(() => {
|
|
1234
|
+
var P;
|
|
1235
|
+
(P = n.value) == null || P.setValue(u.value);
|
|
1230
1236
|
}), l.value = !0;
|
|
1231
1237
|
} catch (d) {
|
|
1232
1238
|
console.error(d);
|
|
1233
1239
|
}
|
|
1234
1240
|
}
|
|
1235
1241
|
return r({
|
|
1236
|
-
handleOpen:
|
|
1237
|
-
}), (d,
|
|
1242
|
+
handleOpen: m
|
|
1243
|
+
}), (d, P) => (T(), K(R(t), {
|
|
1238
1244
|
modelValue: s.value,
|
|
1239
|
-
"onUpdate:modelValue":
|
|
1245
|
+
"onUpdate:modelValue": P[1] || (P[1] = (M) => s.value = M),
|
|
1240
1246
|
title: "预览",
|
|
1241
1247
|
class: "w-900px",
|
|
1242
1248
|
width: "900px",
|
|
1243
|
-
onClose:
|
|
1249
|
+
onClose: A,
|
|
1244
1250
|
onOk: v,
|
|
1245
1251
|
okText: "表单数据"
|
|
1246
1252
|
}, {
|
|
1247
1253
|
default: $(() => [
|
|
1248
|
-
Z("div",
|
|
1249
|
-
(T(), K(R(
|
|
1250
|
-
key:
|
|
1254
|
+
Z("div", Dt, [
|
|
1255
|
+
(T(), K(R(et), {
|
|
1256
|
+
key: y.value,
|
|
1251
1257
|
ref_key: "kb",
|
|
1252
|
-
ref:
|
|
1253
|
-
"page-schema": R(
|
|
1258
|
+
ref: x,
|
|
1259
|
+
"page-schema": R(p)
|
|
1254
1260
|
}, null, 8, ["page-schema"])),
|
|
1255
1261
|
H(R(t), {
|
|
1256
1262
|
modelValue: l.value,
|
|
1257
|
-
"onUpdate:modelValue":
|
|
1263
|
+
"onUpdate:modelValue": P[0] || (P[0] = (M) => l.value = M),
|
|
1258
1264
|
title: "表单数据",
|
|
1259
1265
|
class: "w-860px",
|
|
1260
1266
|
width: "860px",
|
|
@@ -1262,7 +1268,7 @@ const St = { class: "min-w-750px rounded" }, Dt = { class: "h-full rounded" }, A
|
|
|
1262
1268
|
onOk: a
|
|
1263
1269
|
}, {
|
|
1264
1270
|
default: $(() => [
|
|
1265
|
-
Z("div",
|
|
1271
|
+
Z("div", At, [
|
|
1266
1272
|
H(R(o), {
|
|
1267
1273
|
ref_key: "monacoEditorRef",
|
|
1268
1274
|
ref: n,
|
|
@@ -1280,10 +1286,10 @@ const St = { class: "min-w-750px rounded" }, Dt = { class: "h-full rounded" }, A
|
|
|
1280
1286
|
_: 1
|
|
1281
1287
|
}, 8, ["modelValue"]));
|
|
1282
1288
|
}
|
|
1283
|
-
}),
|
|
1289
|
+
}), bt = {
|
|
1284
1290
|
key: 0,
|
|
1285
1291
|
class: "epic-loading-box"
|
|
1286
|
-
}, xt = { class: "epic-designer-main" }, It = { class: "epic-header-container" },
|
|
1292
|
+
}, xt = { class: "epic-designer-main" }, It = { class: "epic-header-container" }, Ct = { class: "epic-loading-box" }, Zt = /* @__PURE__ */ ne({
|
|
1287
1293
|
__name: "designer",
|
|
1288
1294
|
props: {
|
|
1289
1295
|
disabledZoom: { type: Boolean, default: !1 },
|
|
@@ -1306,7 +1312,7 @@ const St = { class: "min-w-750px rounded" }, Dt = { class: "h-full rounded" }, A
|
|
|
1306
1312
|
"updateSourceData"
|
|
1307
1313
|
],
|
|
1308
1314
|
setup(e, { expose: r, emit: o }) {
|
|
1309
|
-
const t =
|
|
1315
|
+
const t = j(() => import("./index-BKDRMrcc.js")), n = j(() => import("./index-XUQ1VGQg.js")), s = j(() => import("./index-D1mKcGjX.js")), l = j(() => import("./index-DNeYX6HK.js")), u = j(() => import("./index-DgcFxYFp.js")), p = Ie(), x = qe(), y = e;
|
|
1310
1316
|
let a = {
|
|
1311
1317
|
schemas: [
|
|
1312
1318
|
{
|
|
@@ -1353,148 +1359,148 @@ defineExpose({
|
|
|
1353
1359
|
test
|
|
1354
1360
|
})`
|
|
1355
1361
|
};
|
|
1356
|
-
|
|
1357
|
-
if (
|
|
1358
|
-
a =
|
|
1362
|
+
ie(() => {
|
|
1363
|
+
if (y.defaultSchema) {
|
|
1364
|
+
a = y.defaultSchema;
|
|
1359
1365
|
return;
|
|
1360
1366
|
}
|
|
1361
|
-
|
|
1362
|
-
}),
|
|
1363
|
-
const
|
|
1367
|
+
y.source && U.setSourceData(y.source), y.formMode && (a.schemas = U.formSchemas);
|
|
1368
|
+
}), p.setDesignMode(), p.setDefaultComponentIds(a.schemas);
|
|
1369
|
+
const A = o, m = O(null), v = te({
|
|
1364
1370
|
checkedNode: null,
|
|
1365
1371
|
hoverNode: null,
|
|
1366
1372
|
disableHover: !1,
|
|
1367
1373
|
matched: []
|
|
1368
|
-
}), d =
|
|
1374
|
+
}), d = te({
|
|
1369
1375
|
schemas: [],
|
|
1370
1376
|
script: a.script
|
|
1371
|
-
}), { disabledZoom:
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
}),
|
|
1375
|
-
const
|
|
1376
|
-
|
|
1377
|
-
}), L("pageSchema", d), L("revoke",
|
|
1377
|
+
}), { disabledZoom: P } = de();
|
|
1378
|
+
ie(() => {
|
|
1379
|
+
P.value = y.disabledZoom;
|
|
1380
|
+
}), ie(() => {
|
|
1381
|
+
const E = d.script;
|
|
1382
|
+
E && E !== "" && p.setMethods(E);
|
|
1383
|
+
}), L("pageSchema", d), L("revoke", x), L("pageManager", p), L(
|
|
1378
1384
|
"designerProps",
|
|
1379
|
-
J(() =>
|
|
1385
|
+
J(() => y)
|
|
1380
1386
|
), L("designer", {
|
|
1381
1387
|
setCheckedNode: h,
|
|
1382
|
-
setHoverNode:
|
|
1383
|
-
setDisableHover:
|
|
1388
|
+
setHoverNode: D,
|
|
1389
|
+
setDisableHover: _,
|
|
1384
1390
|
handleToggleDeviceMode: g,
|
|
1385
|
-
reset:
|
|
1391
|
+
reset: w,
|
|
1386
1392
|
state: v
|
|
1387
|
-
}),
|
|
1388
|
-
|
|
1389
|
-
}),
|
|
1390
|
-
|
|
1391
|
-
}),
|
|
1392
|
-
|
|
1393
|
+
}), ee.on("saveSourceData", (E) => {
|
|
1394
|
+
A("saveSourceData", E);
|
|
1395
|
+
}), ee.on("deleteSourceData", (E) => {
|
|
1396
|
+
A("deleteSourceData", E);
|
|
1397
|
+
}), ee.on("updateSourceData", (E) => {
|
|
1398
|
+
A("updateSourceData", E);
|
|
1393
1399
|
});
|
|
1394
1400
|
function M() {
|
|
1395
|
-
d.schemas = z(a.schemas), h(d.schemas[0]),
|
|
1401
|
+
d.schemas = z(a.schemas), h(d.schemas[0]), x.push(d.schemas, "初始化撤销功能");
|
|
1396
1402
|
}
|
|
1397
|
-
async function h(
|
|
1398
|
-
v.checkedNode =
|
|
1403
|
+
async function h(E = d.schemas[0]) {
|
|
1404
|
+
v.checkedNode = E, v.matched = We(d.schemas, E.id);
|
|
1399
1405
|
}
|
|
1400
|
-
async function
|
|
1401
|
-
var
|
|
1402
|
-
if (!
|
|
1406
|
+
async function D(E = null) {
|
|
1407
|
+
var N;
|
|
1408
|
+
if (!E || v.disableHover)
|
|
1403
1409
|
return v.hoverNode = null, !1;
|
|
1404
|
-
if ((
|
|
1410
|
+
if ((E == null ? void 0 : E.id) === ((N = v.hoverNode) == null ? void 0 : N.id))
|
|
1405
1411
|
return !1;
|
|
1406
|
-
v.hoverNode =
|
|
1412
|
+
v.hoverNode = E;
|
|
1407
1413
|
}
|
|
1408
|
-
function
|
|
1409
|
-
|
|
1410
|
-
|
|
1414
|
+
function b() {
|
|
1415
|
+
re(() => {
|
|
1416
|
+
A("ready", { pageManager: p });
|
|
1411
1417
|
});
|
|
1412
1418
|
}
|
|
1413
|
-
async function
|
|
1414
|
-
v.disableHover =
|
|
1419
|
+
async function _(E = !1) {
|
|
1420
|
+
v.disableHover = E;
|
|
1415
1421
|
}
|
|
1416
|
-
function i(
|
|
1417
|
-
G(d, z(
|
|
1422
|
+
function i(E) {
|
|
1423
|
+
G(d, z(E));
|
|
1418
1424
|
}
|
|
1419
|
-
function
|
|
1420
|
-
return
|
|
1425
|
+
function V() {
|
|
1426
|
+
return we(d);
|
|
1421
1427
|
}
|
|
1422
|
-
function
|
|
1423
|
-
xe(d.schemas, a.schemas) && d.script === a.script || (G(d.schemas, a.schemas), d.script = a.script, h(d.schemas[0]),
|
|
1428
|
+
function w() {
|
|
1429
|
+
xe(d.schemas, a.schemas) && d.script === a.script || (G(d.schemas, a.schemas), d.script = a.script, h(d.schemas[0]), x.push(d.schemas, "重置操作"), A("reset", d));
|
|
1424
1430
|
}
|
|
1425
1431
|
function c() {
|
|
1426
|
-
|
|
1432
|
+
A("save", we(d));
|
|
1427
1433
|
}
|
|
1428
|
-
function g(
|
|
1429
|
-
|
|
1434
|
+
function g(E) {
|
|
1435
|
+
A("toggleDeviceMode", E);
|
|
1430
1436
|
}
|
|
1431
1437
|
function W() {
|
|
1432
|
-
|
|
1438
|
+
m.value.handleOpen();
|
|
1433
1439
|
}
|
|
1434
1440
|
return M(), r({
|
|
1435
|
-
revoke:
|
|
1441
|
+
revoke: x,
|
|
1436
1442
|
setData: i,
|
|
1437
|
-
getData:
|
|
1438
|
-
reset:
|
|
1443
|
+
getData: V,
|
|
1444
|
+
reset: w,
|
|
1439
1445
|
preview: W
|
|
1440
|
-
}), (
|
|
1446
|
+
}), (E, N) => R(U).initialized.value ? (T(), K(be, {
|
|
1441
1447
|
key: 1,
|
|
1442
|
-
onResolve:
|
|
1448
|
+
onResolve: b
|
|
1443
1449
|
}, {
|
|
1444
1450
|
default: $(() => [
|
|
1445
1451
|
Z("div", xt, [
|
|
1446
1452
|
Z("div", It, [
|
|
1447
|
-
k(
|
|
1448
|
-
|
|
1453
|
+
k(E.$slots, "header", {}, () => [
|
|
1454
|
+
y.hiddenHeader ? Ee("", !0) : (T(), K(R(t), {
|
|
1449
1455
|
key: 0,
|
|
1450
1456
|
onPreview: W,
|
|
1451
1457
|
onSave: c
|
|
1452
1458
|
}, {
|
|
1453
1459
|
header: $(() => [
|
|
1454
|
-
k(
|
|
1460
|
+
k(E.$slots, "header-prefix")
|
|
1455
1461
|
]),
|
|
1456
1462
|
prefix: $(() => [
|
|
1457
|
-
k(
|
|
1463
|
+
k(E.$slots, "header-prefix")
|
|
1458
1464
|
]),
|
|
1459
1465
|
title: $(() => [
|
|
1460
|
-
k(
|
|
1466
|
+
k(E.$slots, "header-title")
|
|
1461
1467
|
]),
|
|
1462
1468
|
"right-prefix": $(() => [
|
|
1463
|
-
k(
|
|
1469
|
+
k(E.$slots, "header-right-prefix")
|
|
1464
1470
|
]),
|
|
1465
1471
|
"right-action": $(() => [
|
|
1466
|
-
k(
|
|
1472
|
+
k(E.$slots, "header-right-action")
|
|
1467
1473
|
]),
|
|
1468
1474
|
"right-suffix": $(() => [
|
|
1469
|
-
k(
|
|
1475
|
+
k(E.$slots, "header-right-suffix")
|
|
1470
1476
|
]),
|
|
1471
1477
|
_: 3
|
|
1472
1478
|
}))
|
|
1473
1479
|
])
|
|
1474
1480
|
]),
|
|
1475
1481
|
Z("div", {
|
|
1476
|
-
class:
|
|
1482
|
+
class: ze(["epic-split-view-container", { "hidden-header": E.hiddenHeader }])
|
|
1477
1483
|
}, [
|
|
1478
1484
|
H(R(n)),
|
|
1479
1485
|
H(R(s)),
|
|
1480
1486
|
H(R(l))
|
|
1481
1487
|
], 2),
|
|
1482
|
-
H(
|
|
1488
|
+
H(Et, {
|
|
1483
1489
|
ref_key: "previewRef",
|
|
1484
|
-
ref:
|
|
1490
|
+
ref: m
|
|
1485
1491
|
}, null, 512)
|
|
1486
1492
|
])
|
|
1487
1493
|
]),
|
|
1488
1494
|
fallback: $(() => [
|
|
1489
|
-
Z("div",
|
|
1495
|
+
Z("div", Ct, [
|
|
1490
1496
|
H(R(u))
|
|
1491
1497
|
])
|
|
1492
1498
|
]),
|
|
1493
1499
|
_: 3
|
|
1494
|
-
})) : (T(),
|
|
1500
|
+
})) : (T(), he("div", bt));
|
|
1495
1501
|
}
|
|
1496
|
-
}),
|
|
1497
|
-
component: async () => await import("./index-
|
|
1502
|
+
}), _t = {
|
|
1503
|
+
component: async () => await import("./index-Xym112zw.js"),
|
|
1498
1504
|
defaultSchema: {
|
|
1499
1505
|
label: "代码编辑器",
|
|
1500
1506
|
type: "monacoEditor",
|
|
@@ -1522,7 +1528,7 @@ defineExpose({
|
|
|
1522
1528
|
]
|
|
1523
1529
|
},
|
|
1524
1530
|
bindModel: "model-value"
|
|
1525
|
-
},
|
|
1531
|
+
}, Ot = {
|
|
1526
1532
|
component: async () => await import("./index-DiDIFoTk.js"),
|
|
1527
1533
|
defaultSchema: {
|
|
1528
1534
|
label: "页面",
|
|
@@ -1544,11 +1550,11 @@ defineExpose({
|
|
|
1544
1550
|
}
|
|
1545
1551
|
};
|
|
1546
1552
|
function Pt(e) {
|
|
1547
|
-
e.component("EInputSize", async () => await import("./index-0GtpyUBx.js")), e.component("EColEditor", async () => await import("./index-
|
|
1553
|
+
e.component("EInputSize", async () => await import("./index-0GtpyUBx.js")), e.component("EColEditor", async () => await import("./index-QyL4F13K.js")), e.component("EActionEditor", async () => await import("./index-CeB5DFBE.js")), e.component("ERuleEditor", async () => await import("./index-CwevnKNM.js")), e.component("EOptionsEditor", async () => await import("./index-DXzERji1.js")), e.component("ENode", async () => await import("./index-BYMDoYaj.js")), e.component("EDataSource", async () => await import("./index-0zDuNn0Q.js")), e.registerActivitybar({
|
|
1548
1554
|
id: "component_view",
|
|
1549
1555
|
title: "组件",
|
|
1550
1556
|
icon: "icon--epic--extension-outline",
|
|
1551
|
-
component: async () => await import("./index-
|
|
1557
|
+
component: async () => await import("./index-Deui5A5E.js")
|
|
1552
1558
|
}), e.registerActivitybar({
|
|
1553
1559
|
id: "outline_view",
|
|
1554
1560
|
title: "大纲",
|
|
@@ -1557,51 +1563,51 @@ function Pt(e) {
|
|
|
1557
1563
|
}), e.registerRightSidebar({
|
|
1558
1564
|
id: "attribute_view",
|
|
1559
1565
|
title: "属性",
|
|
1560
|
-
component: async () => await import("./attributeView-
|
|
1566
|
+
component: async () => await import("./attributeView-DtpDKBv3.js")
|
|
1561
1567
|
}), e.registerRightSidebar({
|
|
1562
1568
|
id: "style_view",
|
|
1563
1569
|
title: "样式",
|
|
1564
|
-
component: async () => await import("./styleView-
|
|
1565
|
-
}), [
|
|
1570
|
+
component: async () => await import("./styleView-B-yx1iR4.js")
|
|
1571
|
+
}), [_t, Ot].forEach((o) => {
|
|
1566
1572
|
e.registerComponent(o);
|
|
1567
1573
|
});
|
|
1568
1574
|
}
|
|
1569
|
-
Pt(
|
|
1575
|
+
Pt(U);
|
|
1570
1576
|
export {
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1577
|
+
He as A,
|
|
1578
|
+
ae as B,
|
|
1579
|
+
Ke as C,
|
|
1580
|
+
se as D,
|
|
1581
|
+
Je as E,
|
|
1582
|
+
St as F,
|
|
1583
|
+
vt as G,
|
|
1584
|
+
gt as H,
|
|
1585
|
+
wt as I,
|
|
1586
|
+
Ge as _,
|
|
1587
|
+
qt as a,
|
|
1588
|
+
ht as b,
|
|
1583
1589
|
Tt as c,
|
|
1584
1590
|
G as d,
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1591
|
+
Ht as e,
|
|
1592
|
+
Ut as f,
|
|
1593
|
+
Mt as g,
|
|
1594
|
+
zt as h,
|
|
1595
|
+
Kt as i,
|
|
1596
|
+
kt as j,
|
|
1597
|
+
ce as k,
|
|
1598
|
+
Nt as l,
|
|
1593
1599
|
z as m,
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
+
Jt as n,
|
|
1601
|
+
Rt as o,
|
|
1602
|
+
Wt as p,
|
|
1603
|
+
et as q,
|
|
1604
|
+
Zt as r,
|
|
1605
|
+
$t as s,
|
|
1600
1606
|
Ie as t,
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1607
|
+
de as u,
|
|
1608
|
+
qe as v,
|
|
1609
|
+
Lt as w,
|
|
1604
1610
|
xe as x,
|
|
1605
|
-
|
|
1606
|
-
|
|
1611
|
+
We as y,
|
|
1612
|
+
Bt as z
|
|
1607
1613
|
};
|