epic-designer-gold 1.0.23 → 1.0.25
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-BNUb6_IW.js → attributeView-CFfmxcU9.js} +1 -1
- package/dist/{attributeView-DWt2LmYW.cjs → attributeView-DZE3sT--.cjs} +1 -1
- package/dist/{index-DMK88APm.js → index-BA7FMts9.js} +1 -1
- package/dist/{index-BFvmsqbe.cjs → index-BLihjCNa.cjs} +1 -1
- package/dist/{index-BHOIdcXu.cjs → index-Bhxsxvjz.cjs} +1 -1
- package/dist/index-Btz7ejRx.cjs +10 -0
- package/dist/{index-DiOxIVVT.cjs → index-C6FCo-HH.cjs} +1 -1
- package/dist/{index-gBxflsvp.cjs → index-Cdk7yCxQ.cjs} +1 -1
- package/dist/{index-CiD7TDSJ.js → index-CjOFrMw5.js} +1 -1
- package/dist/{index-BUqQozMa.js → index-CzAoXJXL.js} +1 -1
- package/dist/{index-DOoGneHO.js → index-D0AvdGjo.js} +1 -1
- package/dist/{index-CKwY7AEV.cjs → index-D79BnQLI.cjs} +1 -1
- package/dist/{index-C2a8y8Ga.js → index-D83uXkXA.js} +298 -290
- package/dist/index-DGRQyNXm.js +4 -0
- package/dist/{index-8d-o3NGf.cjs → index-DOZDUgRO.cjs} +1 -1
- package/dist/{index-DOa-ZTwb.js → index-Dk08eIJW.js} +1 -1
- package/dist/{index-BVlZScLX.cjs → index-DzGAy8Ku.cjs} +1 -1
- package/dist/{index-CJwoNKC6.cjs → index-LMTPTgvs.cjs} +1 -1
- package/dist/{index-rjUej4xS.js → index-jj4e1UZY.js} +1 -1
- package/dist/{index-G5QRu6oQ.js → index-y2l3KPim.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{selectPage-CzRf24Dg.js → selectPage-DU5m5Bop.js} +17 -17
- package/dist/selectPage-DoF_EREC.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/{styleView-C8AriP_c.js → styleView-BqdHZS9i.js} +1 -1
- package/dist/{styleView-BCUpAdf3.cjs → styleView-BymvZDlS.cjs} +1 -1
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-CqmFt57U.js +0 -4
- package/dist/index-XixK3NVo.cjs +0 -10
- package/dist/selectPage-DPd8j93L.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { p as z, f as Qe, d as
|
|
1
|
+
import { ref as V, reactive as ae, defineComponent as ie, openBlock as H, createBlock as q, unref as R, mergeProps as be, withCtx as T, renderSlot as K, getCurrentInstance as fe, inject as oe, watch as B, useAttrs as Re, provide as Z, shallowRef as Ue, computed as W, watchEffect as he, onUnmounted as $e, resolveComponent as Te, resolveDynamicComponent as Be, createVNode as Y, createCommentVNode as Ne, useSlots as Le, createElementBlock as Ee, Suspense as Pe, createElementVNode as k, Fragment as Je, renderList as ze, nextTick as de, effectScope as He, isRef as Ke, getCurrentScope as Ze, onScopeDispose as We, onMounted as Ae, normalizeClass as Ge, toRaw as Ie } from "vue";
|
|
2
|
+
import { p as z, f as Qe, d as ce, a as G, b as Fe, c as Ye, E as j, l as le, g as qe, e as Xe } from "./pluginManager-BCnrHPYv.js";
|
|
3
3
|
import { a as pe, u as Oe } from "./index-B1s67XDZ.js";
|
|
4
4
|
import { a as _e } from "./axios-CXDYiOMX.js";
|
|
5
5
|
function Lt(e, n) {
|
|
6
|
-
let
|
|
7
|
-
return (...
|
|
8
|
-
|
|
9
|
-
e(...
|
|
6
|
+
let r = null;
|
|
7
|
+
return (...s) => {
|
|
8
|
+
r && clearTimeout(r), r = setTimeout(() => {
|
|
9
|
+
e(...s);
|
|
10
10
|
}, n);
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
const e =
|
|
13
|
+
function Ve() {
|
|
14
|
+
const e = V({}), n = V({}), r = V(!1), s = V([]), c = ae({});
|
|
15
15
|
function a(p) {
|
|
16
16
|
return e.value[p];
|
|
17
17
|
}
|
|
@@ -21,9 +21,9 @@ function Pe() {
|
|
|
21
21
|
function g(p) {
|
|
22
22
|
delete e.value[p];
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function m(p, D = !1) {
|
|
25
25
|
const I = Object.entries(z.publicMethods).reduce(
|
|
26
|
-
(C, [
|
|
26
|
+
(C, [h, U]) => (C[h] = U.handler, C),
|
|
27
27
|
{}
|
|
28
28
|
);
|
|
29
29
|
try {
|
|
@@ -77,8 +77,8 @@ function Pe() {
|
|
|
77
77
|
var I, C;
|
|
78
78
|
try {
|
|
79
79
|
(C = (I = n.value)[p.methodName]) == null || C.call(I, ...D);
|
|
80
|
-
} catch (
|
|
81
|
-
console.error(`[Epic:自定义函数(${p.methodName})]执行异常:`,
|
|
80
|
+
} catch (h) {
|
|
81
|
+
console.error(`[Epic:自定义函数(${p.methodName})]执行异常:`, h);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
function d(p, D) {
|
|
@@ -94,22 +94,22 @@ function Pe() {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
function S(p = !0) {
|
|
97
|
-
|
|
97
|
+
r.value = p;
|
|
98
98
|
}
|
|
99
99
|
function y(p) {
|
|
100
100
|
const D = Qe(p, () => !0);
|
|
101
|
-
|
|
101
|
+
s.value = D.map((I) => I.id);
|
|
102
102
|
}
|
|
103
103
|
function E(p, D = "default") {
|
|
104
104
|
if (c[D]) {
|
|
105
105
|
const I = c[D];
|
|
106
|
-
|
|
106
|
+
ce(p, I);
|
|
107
107
|
}
|
|
108
108
|
c[D] = p;
|
|
109
109
|
}
|
|
110
110
|
function M(p, D = "default") {
|
|
111
111
|
if (c[D]) {
|
|
112
|
-
|
|
112
|
+
ce(c[D], p, !1);
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
115
|
c[D] = p;
|
|
@@ -117,8 +117,8 @@ function Pe() {
|
|
|
117
117
|
return {
|
|
118
118
|
componentInstances: e,
|
|
119
119
|
funcs: n,
|
|
120
|
-
isDesignMode:
|
|
121
|
-
defaultComponentIds:
|
|
120
|
+
isDesignMode: r,
|
|
121
|
+
defaultComponentIds: s,
|
|
122
122
|
forms: c,
|
|
123
123
|
addFormData: E,
|
|
124
124
|
setFormData: M,
|
|
@@ -127,48 +127,48 @@ function Pe() {
|
|
|
127
127
|
find: a,
|
|
128
128
|
addComponentInstance: w,
|
|
129
129
|
removeComponentInstance: g,
|
|
130
|
-
setMethods:
|
|
130
|
+
setMethods: m,
|
|
131
131
|
doActions: O,
|
|
132
132
|
setDesignMode: S,
|
|
133
133
|
setDefaultComponentIds: y
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
function ke() {
|
|
137
|
-
const e =
|
|
138
|
-
let
|
|
139
|
-
function c(
|
|
137
|
+
const e = V([]), n = V([]), r = V(null);
|
|
138
|
+
let s = 0;
|
|
139
|
+
function c(m, N = "插入组件") {
|
|
140
140
|
const O = Date.now();
|
|
141
|
-
|
|
141
|
+
s + 150 > O || (s = O, r.value != null && (e.value.push(r.value), n.value.splice(0, n.value.length)), r.value = {
|
|
142
142
|
type: N,
|
|
143
|
-
componentSchema: JSON.stringify(
|
|
143
|
+
componentSchema: JSON.stringify(m)
|
|
144
144
|
}, e.value.length > 60 && e.value.unshift());
|
|
145
145
|
}
|
|
146
146
|
function a() {
|
|
147
147
|
if (e.value.length === 0)
|
|
148
148
|
return !1;
|
|
149
|
-
const
|
|
150
|
-
return
|
|
149
|
+
const m = e.value.pop();
|
|
150
|
+
return r.value != null && n.value.push(r.value), r.value = m, JSON.parse(m.componentSchema);
|
|
151
151
|
}
|
|
152
152
|
function w() {
|
|
153
153
|
if (n.value.length === 0)
|
|
154
154
|
return !1;
|
|
155
|
-
const
|
|
156
|
-
return
|
|
155
|
+
const m = n.value.pop();
|
|
156
|
+
return r.value != null && e.value.push(r.value), r.value = m, JSON.parse(m.componentSchema);
|
|
157
157
|
}
|
|
158
158
|
function g() {
|
|
159
|
-
e.value = [], n.value = [],
|
|
159
|
+
e.value = [], n.value = [], r.value = null;
|
|
160
160
|
}
|
|
161
161
|
return {
|
|
162
162
|
recordList: e,
|
|
163
163
|
undoList: n,
|
|
164
|
-
currentRecord:
|
|
164
|
+
currentRecord: r,
|
|
165
165
|
push: c,
|
|
166
166
|
undo: a,
|
|
167
167
|
redo: w,
|
|
168
168
|
reset: g
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
|
-
const je = /* @__PURE__ */
|
|
171
|
+
const je = /* @__PURE__ */ ie({
|
|
172
172
|
__name: "dynamicFormItem",
|
|
173
173
|
props: {
|
|
174
174
|
hasFormItem: { type: Boolean },
|
|
@@ -176,22 +176,22 @@ const je = /* @__PURE__ */ le({
|
|
|
176
176
|
},
|
|
177
177
|
emits: ["updateFormItemRef"],
|
|
178
178
|
setup(e, { emit: n }) {
|
|
179
|
-
const
|
|
179
|
+
const r = z.getComponent("form-item"), s = e, c = n, a = V(), w = () => {
|
|
180
180
|
c("updateFormItemRef", a.value);
|
|
181
181
|
};
|
|
182
|
-
return (g,
|
|
182
|
+
return (g, m) => s.hasFormItem ? (H(), q(R(r), be({
|
|
183
183
|
key: 0,
|
|
184
184
|
ref_key: "formItemRef",
|
|
185
185
|
ref: a,
|
|
186
186
|
onVnodeMounted: w
|
|
187
|
-
},
|
|
187
|
+
}, s.formItemProps), {
|
|
188
188
|
default: T(() => [
|
|
189
189
|
K(g.$slots, "default")
|
|
190
190
|
]),
|
|
191
191
|
_: 3
|
|
192
192
|
}, 16, ["onVnodeMounted"])) : K(g.$slots, "default", { key: 1 });
|
|
193
193
|
}
|
|
194
|
-
}), et = /* @__PURE__ */
|
|
194
|
+
}), et = /* @__PURE__ */ ie({
|
|
195
195
|
name: "ENode",
|
|
196
196
|
__name: "node",
|
|
197
197
|
props: {
|
|
@@ -206,16 +206,16 @@ const je = /* @__PURE__ */ le({
|
|
|
206
206
|
},
|
|
207
207
|
emits: ["update:modelValue", "change", "update:dynamicId"],
|
|
208
208
|
setup(e, { emit: n }) {
|
|
209
|
-
const { proxy:
|
|
210
|
-
let a =
|
|
211
|
-
const w =
|
|
212
|
-
let t =
|
|
209
|
+
const { proxy: r } = fe(), s = e, c = V(null);
|
|
210
|
+
let a = oe("formData", ae({}));
|
|
211
|
+
const w = oe("slots", {}), g = oe("pageManager", {}), m = oe("disabled", { value: !1 }), N = oe("ruleFieldPrefix", null), O = oe("resetFormData", !1);
|
|
212
|
+
let t = ae(G(s.componentSchema));
|
|
213
213
|
S();
|
|
214
214
|
async function x(o) {
|
|
215
|
-
if (["cascader", "checkbox", "select", "radio"].includes(o.type) && o.componentProps.dynamicId &&
|
|
215
|
+
if (["cascader", "checkbox", "select", "radio"].includes(o.type) && o.componentProps.dynamicId && s.sourceDateUrl) {
|
|
216
216
|
const u = (await _e({
|
|
217
217
|
// || "http://192.168.28.205:3000/dev-api/data-source
|
|
218
|
-
url:
|
|
218
|
+
url: s.sourceDateUrl,
|
|
219
219
|
method: "get",
|
|
220
220
|
params: {
|
|
221
221
|
id: o.componentProps.dynamicId
|
|
@@ -243,8 +243,8 @@ const je = /* @__PURE__ */ le({
|
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
245
|
if (u && (u != null && u.dataPath)) {
|
|
246
|
-
const
|
|
247
|
-
o.componentProps.options = d(
|
|
246
|
+
const Q = u.dataPath.split(".").reduce((te, re) => te[re], _.data);
|
|
247
|
+
o.componentProps.options = d(Q, u.dataKey, u.dataValue);
|
|
248
248
|
} else
|
|
249
249
|
o.componentProps.options = d(_.data, u.dataKey, u.dataValue);
|
|
250
250
|
return o;
|
|
@@ -262,9 +262,9 @@ const je = /* @__PURE__ */ le({
|
|
|
262
262
|
}) : [];
|
|
263
263
|
}
|
|
264
264
|
B(
|
|
265
|
-
() =>
|
|
265
|
+
() => s.componentSchema,
|
|
266
266
|
(o) => {
|
|
267
|
-
|
|
267
|
+
Fe(t, o, ["children"]) || (ce(t, G(o)), S());
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
270
|
deep: !0
|
|
@@ -273,15 +273,15 @@ const je = /* @__PURE__ */ le({
|
|
|
273
273
|
function S() {
|
|
274
274
|
g.isDesignMode.value && typeof t.field == "string" && (t.field += "-design-mode");
|
|
275
275
|
}
|
|
276
|
-
(
|
|
277
|
-
const y = n, E =
|
|
276
|
+
(s.resetFormData || O) && (a = {});
|
|
277
|
+
const y = n, E = V(), M = V(), p = (o) => {
|
|
278
278
|
M.value = o;
|
|
279
279
|
}, D = Re();
|
|
280
280
|
Object.keys(D).length && Z("nodeAttrs", D);
|
|
281
281
|
const I = Ue(null), C = W(() => {
|
|
282
282
|
var o, l;
|
|
283
283
|
return (o = t.componentProps) != null && o.hidden ? !1 : typeof t.show == "boolean" ? t.show : ((l = t.show) == null ? void 0 : l.call(t, { values: a })) ?? !0;
|
|
284
|
-
}),
|
|
284
|
+
}), h = W(() => {
|
|
285
285
|
var u;
|
|
286
286
|
const o = C.value && ((u = t.rules) == null ? void 0 : u.map((_) => ({
|
|
287
287
|
..._,
|
|
@@ -289,7 +289,7 @@ const je = /* @__PURE__ */ le({
|
|
|
289
289
|
// 自定义校验函数
|
|
290
290
|
})));
|
|
291
291
|
let l = t.field;
|
|
292
|
-
|
|
292
|
+
s.ruleField ? l = s.ruleField : N && t.field && (l = G(N), l.push(t.field));
|
|
293
293
|
const $ = {
|
|
294
294
|
...t,
|
|
295
295
|
rules: o,
|
|
@@ -298,29 +298,37 @@ const je = /* @__PURE__ */ le({
|
|
|
298
298
|
};
|
|
299
299
|
return $.children && delete $.children, $;
|
|
300
300
|
}), U = W(() => {
|
|
301
|
-
var $, u, _;
|
|
301
|
+
var $, u, _, J, Q;
|
|
302
302
|
const o = (($ = L.value) == null ? void 0 : $.bindModel) ?? "modelValue", l = {};
|
|
303
|
-
return t.on && Object.keys(t.on).forEach((
|
|
304
|
-
l[`on${Ye(
|
|
303
|
+
return t.on && Object.keys(t.on).forEach((te) => {
|
|
304
|
+
l[`on${Ye(te)}`] = (...re) => g.doActions(t.on[te], ...re);
|
|
305
305
|
}), t.type === "selectpage" && (t.componentProps.defaultData = {
|
|
306
306
|
value: a[t.field],
|
|
307
307
|
label: a[a[t.field]]
|
|
308
|
+
}), console.log("%c [ ]-309", "font-size:13px; background:pink; color:#bf2c9f;", {
|
|
309
|
+
...s,
|
|
310
|
+
...t.componentProps,
|
|
311
|
+
sourceDateUrl: s.sourceDateUrl,
|
|
312
|
+
// 为了避免禁用对超链接输入框点击的影响
|
|
313
|
+
disabled: s.componentSchema.type === "input" && s.componentSchema.componentProps && ((u = s.componentSchema.componentProps) != null && u.isLink) ? !1 : (m == null ? void 0 : m.value) || ((_ = t.componentProps) == null ? void 0 : _.disabled),
|
|
314
|
+
bindModel: o,
|
|
315
|
+
...l
|
|
308
316
|
}), {
|
|
309
|
-
...
|
|
317
|
+
...s,
|
|
310
318
|
...t.componentProps,
|
|
311
|
-
sourceDateUrl:
|
|
319
|
+
sourceDateUrl: s.sourceDateUrl,
|
|
312
320
|
// 为了避免禁用对超链接输入框点击的影响
|
|
313
|
-
disabled:
|
|
321
|
+
disabled: s.componentSchema.type === "input" && s.componentSchema.componentProps && ((J = s.componentSchema.componentProps) != null && J.isLink) ? !1 : (m == null ? void 0 : m.value) || ((Q = t.componentProps) == null ? void 0 : Q.disabled),
|
|
314
322
|
bindModel: o,
|
|
315
323
|
...l
|
|
316
324
|
};
|
|
317
325
|
}), L = W(() => z.getComponentConfingByType(t.type) ?? null);
|
|
318
326
|
he(() => {
|
|
319
|
-
c.value =
|
|
327
|
+
c.value = s.modelValue ?? a[t.field ?? ""];
|
|
320
328
|
}), B(
|
|
321
329
|
() => c.value,
|
|
322
330
|
() => {
|
|
323
|
-
c.value !== (
|
|
331
|
+
c.value !== (s.modelValue ?? a[t.field ?? ""]) && i(c.value);
|
|
324
332
|
}
|
|
325
333
|
), B(
|
|
326
334
|
() => E.value,
|
|
@@ -331,8 +339,8 @@ const je = /* @__PURE__ */ le({
|
|
|
331
339
|
);
|
|
332
340
|
function A() {
|
|
333
341
|
var l;
|
|
334
|
-
const o = E.value ||
|
|
335
|
-
t.id && o && ((t.input || t.type === "table" && t.field || t.type === "card" && t.field && t.multiple) && (o.setValue = i, o.getValue = () => a[t.field] ||
|
|
342
|
+
const o = E.value || r;
|
|
343
|
+
t.id && o && ((t.input || t.type === "table" && t.field || t.type === "card" && t.field && t.multiple) && (o.setValue = i, o.getValue = () => a[t.field] || s.modelValue), o.setAttr = ($, u) => (t.componentProps || (t.componentProps = {}), t.componentProps[$] = u), o.getAttr = ($) => t.componentProps[$], g.addComponentInstance(t.id, o), (l = L.value) != null && l.defaultSchema.input && t.noFormItem !== !0 && M.value && g.addComponentInstance(t.id + "formItem", M.value));
|
|
336
344
|
}
|
|
337
345
|
function v() {
|
|
338
346
|
var o;
|
|
@@ -347,7 +355,7 @@ const je = /* @__PURE__ */ le({
|
|
|
347
355
|
if (t.type === "slot") {
|
|
348
356
|
const _ = t.slotName;
|
|
349
357
|
if (!_) return;
|
|
350
|
-
I.value =
|
|
358
|
+
I.value = ie({
|
|
351
359
|
setup() {
|
|
352
360
|
return () => K(w, _, {
|
|
353
361
|
componentSchema: t,
|
|
@@ -371,15 +379,15 @@ const je = /* @__PURE__ */ le({
|
|
|
371
379
|
function f(o) {
|
|
372
380
|
console.log("%c [ v ]-462", "font-size:13px; background:pink; color:#bf2c9f;", o), Object.prototype.toString.call(o) === "[object Array]" ? o.forEach((l) => {
|
|
373
381
|
a[l.value] = l.label;
|
|
374
|
-
}) : a[o.value] = o.label,
|
|
382
|
+
}) : a[o.value] = o.label, s.id ? j.emit("updateformData" + s.id, a) : j.emit("updateformData", a);
|
|
375
383
|
}
|
|
376
384
|
function i(o) {
|
|
377
|
-
y("update:modelValue", o), y("change", o), t.field && (a[t.field] = o),
|
|
385
|
+
y("update:modelValue", o), y("change", o), t.field && (a[t.field] = o), s.id ? j.emit("updateformData" + s.id, a) : j.emit("updateformData", a);
|
|
378
386
|
}
|
|
379
|
-
function
|
|
387
|
+
function P(o) {
|
|
380
388
|
y("update:dynamicId", o);
|
|
381
389
|
}
|
|
382
|
-
let
|
|
390
|
+
let F = null;
|
|
383
391
|
return B(
|
|
384
392
|
() => t,
|
|
385
393
|
async (o) => {
|
|
@@ -391,9 +399,9 @@ const je = /* @__PURE__ */ le({
|
|
|
391
399
|
options: null
|
|
392
400
|
}
|
|
393
401
|
});
|
|
394
|
-
if (l ===
|
|
402
|
+
if (l === F)
|
|
395
403
|
return !1;
|
|
396
|
-
|
|
404
|
+
F = l, ee();
|
|
397
405
|
},
|
|
398
406
|
{
|
|
399
407
|
immediate: !0,
|
|
@@ -402,14 +410,14 @@ const je = /* @__PURE__ */ le({
|
|
|
402
410
|
), $e(v), (o, l) => {
|
|
403
411
|
var u;
|
|
404
412
|
const $ = Te("ENode");
|
|
405
|
-
return I.value && C.value ? (H(),
|
|
413
|
+
return I.value && C.value ? (H(), q(je, {
|
|
406
414
|
key: 0,
|
|
407
415
|
hasFormItem: R(t).noFormItem !== !0 && ((u = L.value) == null ? void 0 : u.defaultSchema.input),
|
|
408
|
-
formItemProps:
|
|
416
|
+
formItemProps: h.value,
|
|
409
417
|
onUpdateFormItemRef: p
|
|
410
418
|
}, {
|
|
411
419
|
default: T(() => [
|
|
412
|
-
(H(),
|
|
420
|
+
(H(), q(Be(I.value), be({
|
|
413
421
|
ref_key: "componentInstance",
|
|
414
422
|
ref: E,
|
|
415
423
|
onVnodeMounted: A,
|
|
@@ -419,13 +427,13 @@ const je = /* @__PURE__ */ le({
|
|
|
419
427
|
["onUpdate:" + U.value.bindModel]: l[0] || (l[0] = (_) => c.value = _),
|
|
420
428
|
[`onUpdate:${U.value.bindModel}` || ""]: i,
|
|
421
429
|
"onUpdate:modelValueLabel": f,
|
|
422
|
-
"onUpdate:dynamicId":
|
|
430
|
+
"onUpdate:dynamicId": P
|
|
423
431
|
}), {
|
|
424
432
|
node: T((_) => [
|
|
425
|
-
|
|
426
|
-
id:
|
|
433
|
+
Y($, be({
|
|
434
|
+
id: s.id
|
|
427
435
|
}, _, {
|
|
428
|
-
sourceDateUrl:
|
|
436
|
+
sourceDateUrl: s.sourceDateUrl
|
|
429
437
|
}), null, 16, ["id", "sourceDateUrl"])
|
|
430
438
|
]),
|
|
431
439
|
"edit-node": T(() => [
|
|
@@ -440,8 +448,8 @@ const je = /* @__PURE__ */ le({
|
|
|
440
448
|
}
|
|
441
449
|
});
|
|
442
450
|
function tt() {
|
|
443
|
-
const e =
|
|
444
|
-
function
|
|
451
|
+
const e = V(!1), n = Ve(), r = V({});
|
|
452
|
+
function s() {
|
|
445
453
|
return new Promise((d) => {
|
|
446
454
|
if (e.value)
|
|
447
455
|
d();
|
|
@@ -454,8 +462,8 @@ function tt() {
|
|
|
454
462
|
}
|
|
455
463
|
async function c(d = "default") {
|
|
456
464
|
var y;
|
|
457
|
-
await
|
|
458
|
-
const S = (y =
|
|
465
|
+
await s();
|
|
466
|
+
const S = (y = r.value) == null ? void 0 : y[d];
|
|
459
467
|
if (!S) throw new Error(`表单 [name=${d}] 不存在`);
|
|
460
468
|
return S;
|
|
461
469
|
}
|
|
@@ -469,49 +477,49 @@ function tt() {
|
|
|
469
477
|
function g(d, S = "default", y = void 0) {
|
|
470
478
|
var E, M;
|
|
471
479
|
if (y && Object.keys(y).length) {
|
|
472
|
-
let p = function(
|
|
480
|
+
let p = function(h) {
|
|
473
481
|
let U = [];
|
|
474
|
-
return
|
|
482
|
+
return h.forEach((L) => {
|
|
475
483
|
L.children && (U = [...U, ...p(L.children)]), U.push(L);
|
|
476
484
|
}), U;
|
|
477
|
-
}, I = function(
|
|
485
|
+
}, I = function(h) {
|
|
478
486
|
var L;
|
|
479
487
|
let U = p((L = y == null ? void 0 : y.schemas[0]) == null ? void 0 : L.children);
|
|
480
|
-
return Object.keys(
|
|
481
|
-
var f, i,
|
|
488
|
+
return Object.keys(h).forEach((A) => {
|
|
489
|
+
var f, i, P, F, o, l, $;
|
|
482
490
|
const v = U.find((u) => u.field === A), ee = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
483
|
-
if ((v && (v == null ? void 0 : v.type) === "checkbox" || (v == null ? void 0 : v.type) === "select" && ((f = v == null ? void 0 : v.componentProps) != null && f.multiple) || (v == null ? void 0 : v.type) === "cascader" && !((
|
|
484
|
-
|
|
485
|
-
else if ((v == null ? void 0 : v.type) === "cascader" && (($ = (l = v == null ? void 0 : v.componentProps) == null ? void 0 : l.props) != null && $.multiple) && typeof
|
|
486
|
-
|
|
487
|
-
else if (((v == null ? void 0 : v.type) === "upload-image" || (v == null ? void 0 : v.type) === "upload-file") && typeof
|
|
491
|
+
if ((v && (v == null ? void 0 : v.type) === "checkbox" || (v == null ? void 0 : v.type) === "select" && ((f = v == null ? void 0 : v.componentProps) != null && f.multiple) || (v == null ? void 0 : v.type) === "cascader" && !((P = (i = v == null ? void 0 : v.componentProps) == null ? void 0 : i.props) != null && P.multiple) || (v == null ? void 0 : v.type) === "date" && ee.includes((F = v == null ? void 0 : v.componentProps) == null ? void 0 : F.type)) && typeof h[A] == "string")
|
|
492
|
+
h[A] = (o = h[A]) == null ? void 0 : o.split(",");
|
|
493
|
+
else if ((v == null ? void 0 : v.type) === "cascader" && (($ = (l = v == null ? void 0 : v.componentProps) == null ? void 0 : l.props) != null && $.multiple) && typeof h[A] == "string")
|
|
494
|
+
h[A].indexOf(";") === -1 && h[A].indexOf(";") === -1 ? h[A][h[A]] : h[A].indexOf(";") > -1 ? h[A] = h[A].split(";").map((u) => u.split(",")) : h[A].indexOf(";") === -1 ? h[A] = h[A].split(",") : h[A].indexOf(";") > -1 ? h[A] = h[A].split(";").map((u) => u.split(",")) : h[A].indexOf(";") === -1 && (h[A] = h[A].split(","));
|
|
495
|
+
else if (((v == null ? void 0 : v.type) === "upload-image" || (v == null ? void 0 : v.type) === "upload-file") && typeof h[A] == "string") {
|
|
488
496
|
let u = [];
|
|
489
|
-
Object.entries(
|
|
490
|
-
|
|
491
|
-
}),
|
|
497
|
+
Object.entries(h).forEach(([_, J]) => {
|
|
498
|
+
h[A] === J && _ !== v.field && _.indexOf("@") > -1 && _.indexOf(A) > -1 && (u = _.split("@")[1].split(","));
|
|
499
|
+
}), h[A] = h[A].split(",").map((_, J) => ({
|
|
492
500
|
url: _,
|
|
493
501
|
name: u[J] || _
|
|
494
502
|
}));
|
|
495
|
-
} else (v == null ? void 0 : v.type) === "number" || (v == null ? void 0 : v.type) === "slider" ?
|
|
496
|
-
}),
|
|
503
|
+
} else (v == null ? void 0 : v.type) === "number" || (v == null ? void 0 : v.type) === "slider" ? h[A] = Number(h[A]) : (v == null ? void 0 : v.type) === "switch" && (h[A] = typeof h[A] == "boolean" ? h[A] : h[A].indexOf("true") > -1);
|
|
504
|
+
}), h;
|
|
497
505
|
}(d);
|
|
498
506
|
n.setFormData(I, S);
|
|
499
|
-
const C = (E =
|
|
507
|
+
const C = (E = r.value) == null ? void 0 : E[S];
|
|
500
508
|
C == null || C.clearValidate();
|
|
501
509
|
} else {
|
|
502
510
|
n.setFormData(d, S);
|
|
503
|
-
const p = (M =
|
|
511
|
+
const p = (M = r.value) == null ? void 0 : M[S];
|
|
504
512
|
p == null || p.clearValidate();
|
|
505
513
|
}
|
|
506
514
|
}
|
|
507
|
-
async function
|
|
515
|
+
async function m(d = "default") {
|
|
508
516
|
return await a(d, async (S) => (await S.validate(), await S.getData()));
|
|
509
517
|
}
|
|
510
518
|
async function N(d) {
|
|
511
|
-
await
|
|
519
|
+
await s();
|
|
512
520
|
const S = {};
|
|
513
|
-
for (const y in
|
|
514
|
-
const E =
|
|
521
|
+
for (const y in r.value) {
|
|
522
|
+
const E = r.value[y];
|
|
515
523
|
E && (S[y] = G(await d(E)));
|
|
516
524
|
}
|
|
517
525
|
return S;
|
|
@@ -529,10 +537,10 @@ function tt() {
|
|
|
529
537
|
return {
|
|
530
538
|
ready: e,
|
|
531
539
|
pageManager: n,
|
|
532
|
-
forms:
|
|
540
|
+
forms: r,
|
|
533
541
|
getData: w,
|
|
534
542
|
setData: g,
|
|
535
|
-
validate:
|
|
543
|
+
validate: m,
|
|
536
544
|
getForms: O,
|
|
537
545
|
setForms: t,
|
|
538
546
|
validateAll: x,
|
|
@@ -542,7 +550,7 @@ function tt() {
|
|
|
542
550
|
const nt = {
|
|
543
551
|
key: 0,
|
|
544
552
|
class: "epic-loading-box"
|
|
545
|
-
}, ot = { class: "epic-builder-main" }, st = { class: "epic-loading-box" }, rt = /* @__PURE__ */
|
|
553
|
+
}, ot = { class: "epic-builder-main" }, st = { class: "epic-loading-box" }, rt = /* @__PURE__ */ ie({
|
|
546
554
|
__name: "builder",
|
|
547
555
|
props: {
|
|
548
556
|
pageSchema: {},
|
|
@@ -552,14 +560,14 @@ const nt = {
|
|
|
552
560
|
id: {}
|
|
553
561
|
},
|
|
554
562
|
emits: ["change", "ready"],
|
|
555
|
-
setup(e, { expose: n, emit:
|
|
556
|
-
const
|
|
563
|
+
setup(e, { expose: n, emit: r }) {
|
|
564
|
+
const s = le(() => import("./index-DgcFxYFp.js")), c = r, a = V([]), w = V({}), { ready: g, pageManager: m, forms: N, getData: O, setData: t, validate: x, getForms: d, setForms: S, validateAll: y, getFormInstance: E } = tt(), M = e, p = ae({
|
|
557
565
|
schemas: []
|
|
558
566
|
});
|
|
559
567
|
B(
|
|
560
568
|
() => M.pageSchema,
|
|
561
569
|
(f) => {
|
|
562
|
-
|
|
570
|
+
ce(p, f);
|
|
563
571
|
},
|
|
564
572
|
{
|
|
565
573
|
immediate: !0,
|
|
@@ -580,82 +588,82 @@ const nt = {
|
|
|
580
588
|
);
|
|
581
589
|
function D(f) {
|
|
582
590
|
let i = [];
|
|
583
|
-
return f.forEach((
|
|
584
|
-
|
|
591
|
+
return f.forEach((P) => {
|
|
592
|
+
P.children && (i = [...i, ...D(P.children)]), i.push(P);
|
|
585
593
|
}), i;
|
|
586
594
|
}
|
|
587
595
|
function I(f, i) {
|
|
588
|
-
function
|
|
596
|
+
function P(o) {
|
|
589
597
|
return JSON.parse(JSON.stringify(o));
|
|
590
598
|
}
|
|
591
|
-
function
|
|
599
|
+
function F(o, l) {
|
|
592
600
|
if (o.type === "card" && o.multiple && o.field && Array.isArray(l[o.field]))
|
|
593
601
|
return l[o.field].map((u) => {
|
|
594
602
|
var J;
|
|
595
|
-
const _ =
|
|
596
|
-
return _.children = (J = _.children) == null ? void 0 : J.map((
|
|
603
|
+
const _ = P({ ...o, multiple: !0 });
|
|
604
|
+
return _.children = (J = _.children) == null ? void 0 : J.map((Q) => F(Q, u)).flat(), _;
|
|
597
605
|
});
|
|
598
|
-
const $ =
|
|
599
|
-
return Array.isArray($.children) && ($.children = $.children.map((u) =>
|
|
606
|
+
const $ = P(o);
|
|
607
|
+
return Array.isArray($.children) && ($.children = $.children.map((u) => F(u, l)).flat()), $;
|
|
600
608
|
}
|
|
601
|
-
return f.map((o) =>
|
|
609
|
+
return f.map((o) => F(o, i)).flat();
|
|
602
610
|
}
|
|
603
|
-
function C(f, i = "",
|
|
604
|
-
const
|
|
605
|
-
return i || (
|
|
611
|
+
function C(f, i = "", P = { root: 0 }) {
|
|
612
|
+
const F = i || "root";
|
|
613
|
+
return i || (P.root = 0), P[F] === void 0 && (P[F] = 0), f.map((o) => {
|
|
606
614
|
o.field && (o.oldField = JSON.parse(JSON.stringify(o.field)));
|
|
607
615
|
const l = { ...o };
|
|
608
616
|
if (o.type === "card") {
|
|
609
617
|
const $ = o.field || "";
|
|
610
|
-
o.multiple ? (l.field = i ? `${i}.${$}[${F
|
|
618
|
+
o.multiple ? (l.field = i ? `${i}.${$}[${P[F]}]` : `${$}[${P[F]}]`, P[F]++) : o.field && i && (l.field = `${i}.${$}`);
|
|
611
619
|
const u = l.field || i;
|
|
612
|
-
|
|
620
|
+
P[u] = 0;
|
|
613
621
|
} else o.field && i && (l.field = `${i}.${o.field}`);
|
|
614
|
-
return o.children && (l.children = C(o.children, l.field || i,
|
|
622
|
+
return o.children && (l.children = C(o.children, l.field || i, P)), l;
|
|
615
623
|
});
|
|
616
624
|
}
|
|
617
|
-
function
|
|
618
|
-
const o =
|
|
619
|
-
return
|
|
625
|
+
function h(f, i, P = "", F = {}) {
|
|
626
|
+
const o = P || "root";
|
|
627
|
+
return F[o] === void 0 && (F[o] = 0), f.forEach((l) => {
|
|
620
628
|
const $ = l.field || "";
|
|
621
|
-
let u =
|
|
622
|
-
l.type === "card" && l.multiple ? (typeof i[u][`${
|
|
623
|
-
i[`${u}[${
|
|
624
|
-
}) : i[`${u}[${
|
|
629
|
+
let u = P ? `${P}.${$}` : `${$}`;
|
|
630
|
+
l.type === "card" && l.multiple ? (typeof i[u][`${F[o]}`] == "object" ? Object.keys(i[u][`${F[o]}`]).forEach((_) => {
|
|
631
|
+
i[`${u}[${F[o]}].${_}`] = i[u][`${F[o]}`][_];
|
|
632
|
+
}) : i[`${u}[${F[o]}]`] = i[u][`${F[o]}`], l.children && (l.children = h(
|
|
625
633
|
l.children,
|
|
626
634
|
i,
|
|
627
|
-
`${u}[${
|
|
628
|
-
|
|
629
|
-
)),
|
|
630
|
-
}),
|
|
635
|
+
`${u}[${F[o]}]` || P,
|
|
636
|
+
F
|
|
637
|
+
)), F[o]++) : l.children && (l.children = h(l.children, i, P, F));
|
|
638
|
+
}), F[o] = 0, i;
|
|
631
639
|
}
|
|
632
|
-
function U(f, i,
|
|
633
|
-
let
|
|
640
|
+
function U(f, i, P) {
|
|
641
|
+
let F = h(G(f), G(i));
|
|
634
642
|
return {
|
|
635
643
|
obj: C(f),
|
|
636
|
-
dataObj:
|
|
644
|
+
dataObj: F
|
|
637
645
|
};
|
|
638
646
|
}
|
|
639
647
|
function L(f) {
|
|
640
648
|
let i = D(M.pageSchema.schemas[0].children);
|
|
641
649
|
a.value = i.filter((l) => l.type === "card" && l.multiple);
|
|
642
|
-
const
|
|
643
|
-
let { obj:
|
|
644
|
-
return f = o, M.pageSchema.schemas[0].children =
|
|
645
|
-
var $, u, _, J,
|
|
650
|
+
const P = I(M.pageSchema.schemas[0].children, f);
|
|
651
|
+
let { obj: F, dataObj: o } = U(P, f, a.value);
|
|
652
|
+
return f = o, M.pageSchema.schemas[0].children = F, Object.keys(f).forEach((l) => {
|
|
653
|
+
var $, u, _, J, Q, te, re;
|
|
646
654
|
if (l.indexOf("@") < 0) {
|
|
647
655
|
const b = i.find((X) => X.field === l), Me = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
648
656
|
if ((b && (b == null ? void 0 : b.type) === "checkbox" || (b == null ? void 0 : b.type) === "select" && (($ = b == null ? void 0 : b.componentProps) != null && $.multiple) || (b == null ? void 0 : b.type) === "cascader" && !((_ = (u = b == null ? void 0 : b.componentProps) == null ? void 0 : u.props) != null && _.multiple) || (b == null ? void 0 : b.type) === "date" && Me.includes((J = b == null ? void 0 : b.componentProps) == null ? void 0 : J.type)) && typeof f[l] == "string")
|
|
649
|
-
f[l] = (
|
|
650
|
-
else if ((b == null ? void 0 : b.type) === "cascader" && ((
|
|
657
|
+
f[l] = (Q = f[l]) == null ? void 0 : Q.split(",");
|
|
658
|
+
else if ((b == null ? void 0 : b.type) === "cascader" && ((re = (te = b == null ? void 0 : b.componentProps) == null ? void 0 : te.props) != null && re.multiple) && typeof f[l] == "string")
|
|
651
659
|
f[l].indexOf(";") > -1 ? f[l] = f[l].split(";").map((X) => X.split(",")) : f[l] = f[l].split(","), f[l].indexOf(";") > -1 ? f[l] = f[l].split(";").map((X) => X.split(",")) : f[l] = f[l].split(",");
|
|
652
660
|
else if (((b == null ? void 0 : b.type) === "upload-image" || (b == null ? void 0 : b.type) === "upload-file") && typeof f[l] == "string") {
|
|
653
661
|
let X = [];
|
|
654
|
-
Object.entries(f).forEach(([
|
|
655
|
-
f[l] === ye &&
|
|
656
|
-
}), f[l] = f[l].split(",").map((
|
|
657
|
-
url:
|
|
658
|
-
name: X[ye] ||
|
|
662
|
+
Object.entries(f).forEach(([ne, ye]) => {
|
|
663
|
+
f[l] === ye && ne !== b.field && ne.indexOf("@") > -1 && ne.indexOf(l) > -1 && (X = ne.split("@")[1].split(","));
|
|
664
|
+
}), f[l] = f[l].split(",").map((ne, ye) => ({
|
|
665
|
+
url: ne,
|
|
666
|
+
name: X[ye] || ne
|
|
659
667
|
}));
|
|
660
668
|
} else (b == null ? void 0 : b.type) === "number" || (b == null ? void 0 : b.type) === "slider" ? f[l] = Number(f[l]) : (b == null ? void 0 : b.type) === "switch" && (f[l] = typeof f[l] == "boolean" ? f[l] : f[l].indexOf("true") > -1);
|
|
661
669
|
}
|
|
@@ -664,26 +672,26 @@ const nt = {
|
|
|
664
672
|
B(
|
|
665
673
|
() => p.script,
|
|
666
674
|
(f) => {
|
|
667
|
-
f &&
|
|
675
|
+
f && m.setMethods(f, !0);
|
|
668
676
|
},
|
|
669
677
|
{
|
|
670
678
|
immediate: !0
|
|
671
679
|
}
|
|
672
|
-
), Z("slots", Le()), Z("pageManager",
|
|
680
|
+
), Z("slots", Le()), Z("pageManager", m), Z("forms", N), Z("pageSchema", p), Z(
|
|
673
681
|
"disabled",
|
|
674
682
|
W(() => M.disabled)
|
|
675
683
|
);
|
|
676
|
-
const A =
|
|
684
|
+
const A = fe(), v = A == null ? void 0 : A.proxy;
|
|
677
685
|
function ee() {
|
|
678
|
-
|
|
679
|
-
g.value = !0, c("ready",
|
|
686
|
+
de(() => {
|
|
687
|
+
g.value = !0, c("ready", m), v && m.addComponentInstance("builder", v);
|
|
680
688
|
});
|
|
681
689
|
}
|
|
682
690
|
return j.on("updateformData" + (M.id ? M.id : ""), (f) => {
|
|
683
691
|
c("change", f);
|
|
684
692
|
}), n({
|
|
685
693
|
ready: g,
|
|
686
|
-
pageManager:
|
|
694
|
+
pageManager: m,
|
|
687
695
|
getData: O,
|
|
688
696
|
setData: t,
|
|
689
697
|
validate: x,
|
|
@@ -691,23 +699,23 @@ const nt = {
|
|
|
691
699
|
setForms: S,
|
|
692
700
|
validateAll: y,
|
|
693
701
|
getFormInstance: E
|
|
694
|
-
}), (f, i) => R(z).initialized.value ? (H(),
|
|
702
|
+
}), (f, i) => R(z).initialized.value ? (H(), q(Pe, {
|
|
695
703
|
key: 1,
|
|
696
704
|
onResolve: ee
|
|
697
705
|
}, {
|
|
698
706
|
default: T(() => [
|
|
699
707
|
k("div", ot, [
|
|
700
|
-
(H(!0), Ee(Je, null, ze(p.schemas, (
|
|
708
|
+
(H(!0), Ee(Je, null, ze(p.schemas, (P, F) => (H(), q(R(et), {
|
|
701
709
|
id: M.id,
|
|
702
|
-
key:
|
|
710
|
+
key: F,
|
|
703
711
|
sourceDateUrl: M.sourceDateUrl,
|
|
704
|
-
componentSchema:
|
|
712
|
+
componentSchema: P
|
|
705
713
|
}, null, 8, ["id", "sourceDateUrl", "componentSchema"]))), 128))
|
|
706
714
|
])
|
|
707
715
|
]),
|
|
708
716
|
fallback: T(() => [
|
|
709
717
|
k("div", st, [
|
|
710
|
-
|
|
718
|
+
Y(R(s))
|
|
711
719
|
])
|
|
712
720
|
]),
|
|
713
721
|
_: 1
|
|
@@ -718,13 +726,13 @@ function xe(e) {
|
|
|
718
726
|
return Ze() ? (We(e), !0) : !1;
|
|
719
727
|
}
|
|
720
728
|
function lt(e) {
|
|
721
|
-
let n = 0,
|
|
729
|
+
let n = 0, r, s;
|
|
722
730
|
const c = () => {
|
|
723
|
-
n -= 1,
|
|
731
|
+
n -= 1, s && n <= 0 && (s.stop(), r = void 0, s = void 0);
|
|
724
732
|
};
|
|
725
|
-
return (...a) => (n += 1,
|
|
733
|
+
return (...a) => (n += 1, s || (s = He(!0), r = s.run(() => e(...a))), xe(c), r);
|
|
726
734
|
}
|
|
727
|
-
function
|
|
735
|
+
function ue(e) {
|
|
728
736
|
return typeof e == "function" ? e() : R(e);
|
|
729
737
|
}
|
|
730
738
|
const at = typeof window < "u" && typeof document < "u";
|
|
@@ -732,56 +740,56 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
|
732
740
|
const it = (e) => typeof e < "u", ct = Object.prototype.toString, ut = (e) => ct.call(e) === "[object Object]", dt = () => {
|
|
733
741
|
};
|
|
734
742
|
function ft(e) {
|
|
735
|
-
return
|
|
743
|
+
return fe();
|
|
736
744
|
}
|
|
737
|
-
function pt(e, n = !0,
|
|
738
|
-
ft() ? Ae(e,
|
|
745
|
+
function pt(e, n = !0, r) {
|
|
746
|
+
ft() ? Ae(e, r) : n ? e() : de(e);
|
|
739
747
|
}
|
|
740
748
|
function mt(e = !1, n = {}) {
|
|
741
749
|
const {
|
|
742
|
-
truthyValue:
|
|
743
|
-
falsyValue:
|
|
744
|
-
} = n, c = Ke(e), a =
|
|
750
|
+
truthyValue: r = !0,
|
|
751
|
+
falsyValue: s = !1
|
|
752
|
+
} = n, c = Ke(e), a = V(e);
|
|
745
753
|
function w(g) {
|
|
746
754
|
if (arguments.length)
|
|
747
755
|
return a.value = g, a.value;
|
|
748
756
|
{
|
|
749
|
-
const
|
|
750
|
-
return a.value = a.value ===
|
|
757
|
+
const m = ue(r);
|
|
758
|
+
return a.value = a.value === m ? ue(s) : m, a.value;
|
|
751
759
|
}
|
|
752
760
|
}
|
|
753
761
|
return c ? w : [a, w];
|
|
754
762
|
}
|
|
755
|
-
function Jt(e, n,
|
|
756
|
-
const
|
|
757
|
-
return
|
|
763
|
+
function Jt(e, n, r) {
|
|
764
|
+
const s = B(e, (...c) => (de(() => s()), n(...c)), r);
|
|
765
|
+
return s;
|
|
758
766
|
}
|
|
759
767
|
const ve = at ? window : void 0;
|
|
760
|
-
function
|
|
768
|
+
function se(e) {
|
|
761
769
|
var n;
|
|
762
|
-
const
|
|
763
|
-
return (n =
|
|
770
|
+
const r = ue(e);
|
|
771
|
+
return (n = r == null ? void 0 : r.$el) != null ? n : r;
|
|
764
772
|
}
|
|
765
773
|
function ht(...e) {
|
|
766
|
-
let n,
|
|
767
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([
|
|
774
|
+
let n, r, s, c;
|
|
775
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, s, c] = e, n = ve) : [n, r, s, c] = e, !n)
|
|
768
776
|
return dt;
|
|
769
|
-
Array.isArray(
|
|
777
|
+
Array.isArray(r) || (r = [r]), Array.isArray(s) || (s = [s]);
|
|
770
778
|
const a = [], w = () => {
|
|
771
779
|
a.forEach((O) => O()), a.length = 0;
|
|
772
|
-
}, g = (O, t, x, d) => (O.addEventListener(t, x, d), () => O.removeEventListener(t, x, d)),
|
|
773
|
-
() => [
|
|
780
|
+
}, g = (O, t, x, d) => (O.addEventListener(t, x, d), () => O.removeEventListener(t, x, d)), m = B(
|
|
781
|
+
() => [se(n), ue(c)],
|
|
774
782
|
([O, t]) => {
|
|
775
783
|
if (w(), !O)
|
|
776
784
|
return;
|
|
777
785
|
const x = ut(t) ? { ...t } : t;
|
|
778
786
|
a.push(
|
|
779
|
-
...
|
|
787
|
+
...r.flatMap((d) => s.map((S) => g(O, d, S, x)))
|
|
780
788
|
);
|
|
781
789
|
},
|
|
782
790
|
{ immediate: !0, flush: "post" }
|
|
783
791
|
), N = () => {
|
|
784
|
-
|
|
792
|
+
m(), w();
|
|
785
793
|
};
|
|
786
794
|
return xe(N), N;
|
|
787
795
|
}
|
|
@@ -789,26 +797,26 @@ function vt(e) {
|
|
|
789
797
|
return typeof e == "function" ? e : typeof e == "string" ? (n) => n.key === e : Array.isArray(e) ? (n) => e.includes(n.key) : () => !0;
|
|
790
798
|
}
|
|
791
799
|
function Ce(...e) {
|
|
792
|
-
let n,
|
|
793
|
-
e.length === 3 ? (n = e[0],
|
|
800
|
+
let n, r, s = {};
|
|
801
|
+
e.length === 3 ? (n = e[0], r = e[1], s = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (n = !0, r = e[0], s = e[1]) : (n = e[0], r = e[1]) : (n = !0, r = e[0]);
|
|
794
802
|
const {
|
|
795
803
|
target: c = ve,
|
|
796
804
|
eventName: a = "keydown",
|
|
797
805
|
passive: w = !1,
|
|
798
806
|
dedupe: g = !1
|
|
799
|
-
} =
|
|
807
|
+
} = s, m = vt(n);
|
|
800
808
|
return ht(c, a, (O) => {
|
|
801
|
-
O.repeat &&
|
|
809
|
+
O.repeat && ue(g) || m(O) && r(O);
|
|
802
810
|
}, w);
|
|
803
811
|
}
|
|
804
|
-
function we(e, n,
|
|
805
|
-
return Ce(e, n, { ...
|
|
812
|
+
function we(e, n, r = {}) {
|
|
813
|
+
return Ce(e, n, { ...r, eventName: "keydown" });
|
|
806
814
|
}
|
|
807
|
-
function Se(e, n,
|
|
808
|
-
return Ce(e, n, { ...
|
|
815
|
+
function Se(e, n, r = {}) {
|
|
816
|
+
return Ce(e, n, { ...r, eventName: "keyup" });
|
|
809
817
|
}
|
|
810
818
|
function gt() {
|
|
811
|
-
const e =
|
|
819
|
+
const e = V(!1), n = fe();
|
|
812
820
|
return n && Ae(() => {
|
|
813
821
|
e.value = !0;
|
|
814
822
|
}, n), e;
|
|
@@ -820,18 +828,18 @@ function yt(e) {
|
|
|
820
828
|
function wt(e) {
|
|
821
829
|
return JSON.parse(JSON.stringify(e));
|
|
822
830
|
}
|
|
823
|
-
function St(e, n,
|
|
824
|
-
const { window:
|
|
831
|
+
function St(e, n, r = {}) {
|
|
832
|
+
const { window: s = ve, ...c } = r;
|
|
825
833
|
let a;
|
|
826
|
-
const w = yt(() =>
|
|
834
|
+
const w = yt(() => s && "ResizeObserver" in s), g = () => {
|
|
827
835
|
a && (a.disconnect(), a = void 0);
|
|
828
|
-
},
|
|
829
|
-
const t =
|
|
830
|
-
return Array.isArray(t) ? t.map((x) =>
|
|
836
|
+
}, m = W(() => {
|
|
837
|
+
const t = ue(e);
|
|
838
|
+
return Array.isArray(t) ? t.map((x) => se(x)) : [se(t)];
|
|
831
839
|
}), N = B(
|
|
832
|
-
|
|
840
|
+
m,
|
|
833
841
|
(t) => {
|
|
834
|
-
if (g(), w.value &&
|
|
842
|
+
if (g(), w.value && s) {
|
|
835
843
|
a = new ResizeObserver(n);
|
|
836
844
|
for (const x of t)
|
|
837
845
|
x && a.observe(x, c);
|
|
@@ -846,16 +854,16 @@ function St(e, n, s = {}) {
|
|
|
846
854
|
stop: O
|
|
847
855
|
};
|
|
848
856
|
}
|
|
849
|
-
function zt(e, n = { width: 0, height: 0 },
|
|
850
|
-
const { window:
|
|
857
|
+
function zt(e, n = { width: 0, height: 0 }, r = {}) {
|
|
858
|
+
const { window: s = ve, box: c = "content-box" } = r, a = W(() => {
|
|
851
859
|
var t, x;
|
|
852
|
-
return (x = (t =
|
|
853
|
-
}), w =
|
|
860
|
+
return (x = (t = se(e)) == null ? void 0 : t.namespaceURI) == null ? void 0 : x.includes("svg");
|
|
861
|
+
}), w = V(n.width), g = V(n.height), { stop: m } = St(
|
|
854
862
|
e,
|
|
855
863
|
([t]) => {
|
|
856
864
|
const x = c === "border-box" ? t.borderBoxSize : c === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
|
|
857
|
-
if (
|
|
858
|
-
const d =
|
|
865
|
+
if (s && a.value) {
|
|
866
|
+
const d = se(e);
|
|
859
867
|
if (d) {
|
|
860
868
|
const S = d.getBoundingClientRect();
|
|
861
869
|
w.value = S.width, g.value = S.height;
|
|
@@ -866,20 +874,20 @@ function zt(e, n = { width: 0, height: 0 }, s = {}) {
|
|
|
866
874
|
} else
|
|
867
875
|
w.value = t.contentRect.width, g.value = t.contentRect.height;
|
|
868
876
|
},
|
|
869
|
-
|
|
877
|
+
r
|
|
870
878
|
);
|
|
871
879
|
pt(() => {
|
|
872
|
-
const t =
|
|
880
|
+
const t = se(e);
|
|
873
881
|
t && (w.value = "offsetWidth" in t ? t.offsetWidth : n.width, g.value = "offsetHeight" in t ? t.offsetHeight : n.height);
|
|
874
882
|
});
|
|
875
883
|
const N = B(
|
|
876
|
-
() =>
|
|
884
|
+
() => se(e),
|
|
877
885
|
(t) => {
|
|
878
886
|
w.value = t ? n.width : 0, g.value = t ? n.height : 0;
|
|
879
887
|
}
|
|
880
888
|
);
|
|
881
889
|
function O() {
|
|
882
|
-
|
|
890
|
+
m(), N();
|
|
883
891
|
}
|
|
884
892
|
return {
|
|
885
893
|
width: w,
|
|
@@ -887,33 +895,33 @@ function zt(e, n = { width: 0, height: 0 }, s = {}) {
|
|
|
887
895
|
stop: O
|
|
888
896
|
};
|
|
889
897
|
}
|
|
890
|
-
function Ht(e, n,
|
|
898
|
+
function Ht(e, n, r, s = {}) {
|
|
891
899
|
var c, a, w;
|
|
892
900
|
const {
|
|
893
901
|
clone: g = !1,
|
|
894
|
-
passive:
|
|
902
|
+
passive: m = !1,
|
|
895
903
|
eventName: N,
|
|
896
904
|
deep: O = !1,
|
|
897
905
|
defaultValue: t,
|
|
898
906
|
shouldEmit: x
|
|
899
|
-
} =
|
|
907
|
+
} = s, d = fe(), S = r || (d == null ? void 0 : d.emit) || ((c = d == null ? void 0 : d.$emit) == null ? void 0 : c.bind(d)) || ((w = (a = d == null ? void 0 : d.proxy) == null ? void 0 : a.$emit) == null ? void 0 : w.bind(d == null ? void 0 : d.proxy));
|
|
900
908
|
let y = N;
|
|
901
909
|
n || (n = "modelValue"), y = y || `update:${n.toString()}`;
|
|
902
910
|
const E = (D) => g ? typeof g == "function" ? g(D) : wt(D) : D, M = () => it(e[n]) ? E(e[n]) : t, p = (D) => {
|
|
903
911
|
x ? x(D) && S(y, D) : S(y, D);
|
|
904
912
|
};
|
|
905
|
-
if (
|
|
906
|
-
const D = M(), I =
|
|
913
|
+
if (m) {
|
|
914
|
+
const D = M(), I = V(D);
|
|
907
915
|
let C = !1;
|
|
908
916
|
return B(
|
|
909
917
|
() => e[n],
|
|
910
|
-
(
|
|
911
|
-
C || (C = !0, I.value = E(
|
|
918
|
+
(h) => {
|
|
919
|
+
C || (C = !0, I.value = E(h), de(() => C = !1));
|
|
912
920
|
}
|
|
913
921
|
), B(
|
|
914
922
|
I,
|
|
915
|
-
(
|
|
916
|
-
!C && (
|
|
923
|
+
(h) => {
|
|
924
|
+
!C && (h !== e[n] || O) && p(h);
|
|
917
925
|
},
|
|
918
926
|
{ deep: O }
|
|
919
927
|
), I;
|
|
@@ -935,7 +943,7 @@ function Kt() {
|
|
|
935
943
|
};
|
|
936
944
|
}
|
|
937
945
|
function Dt() {
|
|
938
|
-
const e =
|
|
946
|
+
const e = V(!1);
|
|
939
947
|
return Ae(() => {
|
|
940
948
|
bt(e), Et(e);
|
|
941
949
|
}), B(
|
|
@@ -952,61 +960,61 @@ function bt(e) {
|
|
|
952
960
|
n && (n.classList.contains("dark") ? e.value = !0 : e.value = !1);
|
|
953
961
|
}
|
|
954
962
|
function Et(e) {
|
|
955
|
-
var n = document.querySelector("html"),
|
|
956
|
-
for (var c of
|
|
963
|
+
var n = document.querySelector("html"), r = new MutationObserver(function(s) {
|
|
964
|
+
for (var c of s)
|
|
957
965
|
if (c.type === "attributes" && c.attributeName === "class") {
|
|
958
966
|
const a = c.target;
|
|
959
967
|
new Array(...a.classList).includes("dark") ? e.value = !0 : e.value = !1;
|
|
960
968
|
}
|
|
961
969
|
});
|
|
962
|
-
|
|
970
|
+
r.observe(n, {
|
|
963
971
|
attributes: !0,
|
|
964
972
|
attributeFilter: ["class"]
|
|
965
973
|
}), $e(() => {
|
|
966
|
-
|
|
974
|
+
r.disconnect();
|
|
967
975
|
});
|
|
968
976
|
}
|
|
969
977
|
function At() {
|
|
970
|
-
const e =
|
|
978
|
+
const e = V(1), n = V(!1), { isDark: r } = Dt(), { pressSpace: s, pressShift: c, pressCtrl: a } = Ot();
|
|
971
979
|
return {
|
|
972
980
|
canvasScale: e,
|
|
973
|
-
pressSpace:
|
|
981
|
+
pressSpace: s,
|
|
974
982
|
pressShift: c,
|
|
975
983
|
pressCtrl: a,
|
|
976
984
|
disabledZoom: n,
|
|
977
|
-
isDark:
|
|
985
|
+
isDark: r
|
|
978
986
|
};
|
|
979
987
|
}
|
|
980
988
|
const ge = lt(At);
|
|
981
989
|
function Ot() {
|
|
982
|
-
const e =
|
|
990
|
+
const e = V(!1), n = V(!1), r = V(!1);
|
|
983
991
|
return we(" ", () => {
|
|
984
992
|
e.value = !0;
|
|
985
993
|
}), Se(" ", () => {
|
|
986
994
|
e.value = !1;
|
|
987
|
-
}), we("Shift", (
|
|
988
|
-
|
|
995
|
+
}), we("Shift", (s) => {
|
|
996
|
+
s.preventDefault(), n.value = !0;
|
|
989
997
|
}), Se("Shift", () => {
|
|
990
998
|
n.value = !1;
|
|
991
|
-
}), we("Control", (
|
|
992
|
-
|
|
999
|
+
}), we("Control", (s) => {
|
|
1000
|
+
s.preventDefault(), r.value = !0;
|
|
993
1001
|
}), Se("Control", () => {
|
|
994
|
-
|
|
995
|
-
}), { pressSpace: e, pressShift: n, pressCtrl:
|
|
1002
|
+
r.value = !1;
|
|
1003
|
+
}), { pressSpace: e, pressShift: n, pressCtrl: r };
|
|
996
1004
|
}
|
|
997
1005
|
function Zt(e) {
|
|
998
|
-
const { pressSpace: n } = ge(),
|
|
999
|
-
|
|
1000
|
-
let
|
|
1001
|
-
function a(
|
|
1006
|
+
const { pressSpace: n } = ge(), r = new Image(1, 1);
|
|
1007
|
+
r.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
|
|
1008
|
+
let s = 0, c = 0;
|
|
1009
|
+
function a(m) {
|
|
1002
1010
|
var N;
|
|
1003
|
-
n.value && (
|
|
1011
|
+
n.value && (s = m.x, c = m.y, (N = m.dataTransfer) == null || N.setDragImage(document.createElement("div"), 0, 0));
|
|
1004
1012
|
}
|
|
1005
|
-
function w(
|
|
1006
|
-
if (
|
|
1013
|
+
function w(m) {
|
|
1014
|
+
if (m.preventDefault(), !m.x || !m.y || !n.value)
|
|
1007
1015
|
return;
|
|
1008
|
-
const N =
|
|
1009
|
-
|
|
1016
|
+
const N = m.x - s, O = m.y - c;
|
|
1017
|
+
s = m.x, c = m.y, e.value && (e.value.scrollTop -= O, e.value.scrollLeft -= N);
|
|
1010
1018
|
}
|
|
1011
1019
|
function g() {
|
|
1012
1020
|
n.value = !1;
|
|
@@ -1014,38 +1022,38 @@ function Zt(e) {
|
|
|
1014
1022
|
return { handleElementDragStart: a, handleElementDrag: w, handleElementDragEnd: g };
|
|
1015
1023
|
}
|
|
1016
1024
|
function Wt(e) {
|
|
1017
|
-
const { pressCtrl: n, canvasScale:
|
|
1025
|
+
const { pressCtrl: n, canvasScale: r, disabledZoom: s } = ge();
|
|
1018
1026
|
function c(a) {
|
|
1019
|
-
if (!n.value ||
|
|
1027
|
+
if (!n.value || s.value)
|
|
1020
1028
|
return;
|
|
1021
1029
|
a.preventDefault();
|
|
1022
1030
|
let w = 0;
|
|
1023
|
-
a.deltaY < 0 ? w =
|
|
1031
|
+
a.deltaY < 0 ? w = r.value + 0.05 : w = r.value - 0.05, !(w > 150 || w < 0.5) && (r.value = w);
|
|
1024
1032
|
}
|
|
1025
1033
|
return B(
|
|
1026
|
-
() =>
|
|
1034
|
+
() => r.value,
|
|
1027
1035
|
(a) => {
|
|
1028
|
-
e.value && !
|
|
1036
|
+
e.value && !s.value && (e.value.style.transform = `scale(${a})`);
|
|
1029
1037
|
}
|
|
1030
|
-
), { handleZoom: c, canvasScale:
|
|
1038
|
+
), { handleZoom: c, canvasScale: r };
|
|
1031
1039
|
}
|
|
1032
1040
|
function Gt(e, n = 16.66) {
|
|
1033
|
-
let
|
|
1034
|
-
function
|
|
1035
|
-
c(),
|
|
1041
|
+
let r;
|
|
1042
|
+
function s() {
|
|
1043
|
+
c(), r = window.setInterval(e, n);
|
|
1036
1044
|
}
|
|
1037
1045
|
function c() {
|
|
1038
|
-
window.clearInterval(
|
|
1046
|
+
window.clearInterval(r);
|
|
1039
1047
|
}
|
|
1040
1048
|
return {
|
|
1041
|
-
startTimedQuery:
|
|
1049
|
+
startTimedQuery: s,
|
|
1042
1050
|
stopTimedQuery: c
|
|
1043
1051
|
};
|
|
1044
1052
|
}
|
|
1045
|
-
const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _t = /* @__PURE__ */
|
|
1053
|
+
const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _t = /* @__PURE__ */ ie({
|
|
1046
1054
|
__name: "index",
|
|
1047
1055
|
setup(e, { expose: n }) {
|
|
1048
|
-
const
|
|
1056
|
+
const r = z.getComponent("monacoEditor"), s = z.getComponent("modal"), c = V(null), a = V(!1), w = V(!1), g = V({}), m = oe("pageSchema"), N = V(null), O = V("");
|
|
1049
1057
|
function t() {
|
|
1050
1058
|
w.value = !1;
|
|
1051
1059
|
}
|
|
@@ -1062,7 +1070,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
|
|
|
1062
1070
|
alert("请添加表单组件后再尝试!");
|
|
1063
1071
|
return;
|
|
1064
1072
|
}
|
|
1065
|
-
Object.keys(y).length === 1 && (y = y.default), g.value = JSON.stringify(y, null, 2),
|
|
1073
|
+
Object.keys(y).length === 1 && (y = y.default), g.value = JSON.stringify(y, null, 2), de(() => {
|
|
1066
1074
|
var E;
|
|
1067
1075
|
(E = c.value) == null || E.setValue(g.value);
|
|
1068
1076
|
}), w.value = !0;
|
|
@@ -1072,7 +1080,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
|
|
|
1072
1080
|
}
|
|
1073
1081
|
return n({
|
|
1074
1082
|
handleOpen: d
|
|
1075
|
-
}), (y, E) => (H(),
|
|
1083
|
+
}), (y, E) => (H(), q(R(s), {
|
|
1076
1084
|
modelValue: a.value,
|
|
1077
1085
|
"onUpdate:modelValue": E[1] || (E[1] = (M) => a.value = M),
|
|
1078
1086
|
title: "预览",
|
|
@@ -1084,13 +1092,13 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
|
|
|
1084
1092
|
}, {
|
|
1085
1093
|
default: T(() => [
|
|
1086
1094
|
k("div", xt, [
|
|
1087
|
-
(H(),
|
|
1095
|
+
(H(), q(R(rt), {
|
|
1088
1096
|
key: O.value,
|
|
1089
1097
|
ref_key: "kb",
|
|
1090
1098
|
ref: N,
|
|
1091
|
-
"page-schema": R(
|
|
1099
|
+
"page-schema": R(m)
|
|
1092
1100
|
}, null, 8, ["page-schema"])),
|
|
1093
|
-
|
|
1101
|
+
Y(R(s), {
|
|
1094
1102
|
modelValue: w.value,
|
|
1095
1103
|
"onUpdate:modelValue": E[0] || (E[0] = (M) => w.value = M),
|
|
1096
1104
|
title: "表单数据",
|
|
@@ -1101,7 +1109,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
|
|
|
1101
1109
|
}, {
|
|
1102
1110
|
default: T(() => [
|
|
1103
1111
|
k("div", It, [
|
|
1104
|
-
|
|
1112
|
+
Y(R(r), {
|
|
1105
1113
|
ref_key: "monacoEditorRef",
|
|
1106
1114
|
ref: c,
|
|
1107
1115
|
autoToggleTheme: "",
|
|
@@ -1121,7 +1129,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
|
|
|
1121
1129
|
}), $t = {
|
|
1122
1130
|
key: 0,
|
|
1123
1131
|
class: "epic-loading-box"
|
|
1124
|
-
}, Nt = { class: "epic-designer-main" },
|
|
1132
|
+
}, Nt = { class: "epic-designer-main" }, Pt = { class: "epic-header-container" }, Ft = { class: "epic-loading-box" }, Qt = /* @__PURE__ */ ie({
|
|
1125
1133
|
__name: "designer",
|
|
1126
1134
|
props: {
|
|
1127
1135
|
disabledZoom: { type: Boolean, default: !1 },
|
|
@@ -1143,17 +1151,17 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
|
|
|
1143
1151
|
"deleteSourceData",
|
|
1144
1152
|
"updateSourceData"
|
|
1145
1153
|
],
|
|
1146
|
-
setup(e, { expose: n, emit:
|
|
1147
|
-
const { t:
|
|
1154
|
+
setup(e, { expose: n, emit: r }) {
|
|
1155
|
+
const { t: s } = Oe(), c = le(() => import("./index-IGxCNti8.js")), a = le(() => import("./index-WkZdU_zw.js")), w = le(() => import("./index-CjOFrMw5.js")), g = le(() => import("./index-Cln9MN7u.js")), m = le(() => import("./index-DgcFxYFp.js")), N = Ve(), O = ke(), t = e;
|
|
1148
1156
|
let x = {
|
|
1149
1157
|
schemas: [
|
|
1150
1158
|
{
|
|
1151
1159
|
type: "form",
|
|
1152
1160
|
id: "root",
|
|
1153
|
-
label:
|
|
1161
|
+
label: s("page"),
|
|
1154
1162
|
children: [],
|
|
1155
1163
|
componentProps: {
|
|
1156
|
-
name:
|
|
1164
|
+
name: s("form"),
|
|
1157
1165
|
style: {
|
|
1158
1166
|
padding: "16px"
|
|
1159
1167
|
}
|
|
@@ -1198,12 +1206,12 @@ defineExpose({
|
|
|
1198
1206
|
}
|
|
1199
1207
|
t.source && z.setSourceData(t.source), t.formMode && (x.schemas = z.formSchemas);
|
|
1200
1208
|
}), N.setDesignMode(), N.setDefaultComponentIds(x.schemas);
|
|
1201
|
-
const d =
|
|
1209
|
+
const d = r, S = V(null), y = ae({
|
|
1202
1210
|
checkedNode: null,
|
|
1203
1211
|
hoverNode: null,
|
|
1204
1212
|
disableHover: !1,
|
|
1205
1213
|
matched: []
|
|
1206
|
-
}), E =
|
|
1214
|
+
}), E = ae({
|
|
1207
1215
|
schemas: [],
|
|
1208
1216
|
script: x.script
|
|
1209
1217
|
}), { disabledZoom: M } = ge();
|
|
@@ -1218,7 +1226,7 @@ defineExpose({
|
|
|
1218
1226
|
), Z("designer", {
|
|
1219
1227
|
setCheckedNode: D,
|
|
1220
1228
|
setHoverNode: I,
|
|
1221
|
-
setDisableHover:
|
|
1229
|
+
setDisableHover: h,
|
|
1222
1230
|
handleToggleDeviceMode: ee,
|
|
1223
1231
|
reset: A,
|
|
1224
1232
|
state: y
|
|
@@ -1236,29 +1244,29 @@ defineExpose({
|
|
|
1236
1244
|
y.checkedNode = i, y.matched = Xe(E.schemas, i.id);
|
|
1237
1245
|
}
|
|
1238
1246
|
async function I(i = null) {
|
|
1239
|
-
var
|
|
1247
|
+
var P;
|
|
1240
1248
|
if (!i || y.disableHover)
|
|
1241
1249
|
return y.hoverNode = null, !1;
|
|
1242
|
-
if ((i == null ? void 0 : i.id) === ((
|
|
1250
|
+
if ((i == null ? void 0 : i.id) === ((P = y.hoverNode) == null ? void 0 : P.id))
|
|
1243
1251
|
return !1;
|
|
1244
1252
|
y.hoverNode = i;
|
|
1245
1253
|
}
|
|
1246
1254
|
function C() {
|
|
1247
|
-
|
|
1255
|
+
de(() => {
|
|
1248
1256
|
d("ready", { pageManager: N });
|
|
1249
1257
|
});
|
|
1250
1258
|
}
|
|
1251
|
-
async function
|
|
1259
|
+
async function h(i = !1) {
|
|
1252
1260
|
y.disableHover = i;
|
|
1253
1261
|
}
|
|
1254
1262
|
function U(i) {
|
|
1255
|
-
|
|
1263
|
+
ce(E, G(i));
|
|
1256
1264
|
}
|
|
1257
1265
|
function L() {
|
|
1258
1266
|
return Ie(E);
|
|
1259
1267
|
}
|
|
1260
1268
|
function A() {
|
|
1261
|
-
|
|
1269
|
+
Fe(E.schemas, x.schemas) && E.script === x.script || (ce(E.schemas, x.schemas), E.script = x.script, D(E.schemas[0]), O.push(E.schemas, "重置操作"), d("reset", E));
|
|
1262
1270
|
}
|
|
1263
1271
|
function v() {
|
|
1264
1272
|
d("save", Ie(E));
|
|
@@ -1275,15 +1283,15 @@ defineExpose({
|
|
|
1275
1283
|
getData: L,
|
|
1276
1284
|
reset: A,
|
|
1277
1285
|
preview: f
|
|
1278
|
-
}), (i,
|
|
1286
|
+
}), (i, P) => R(z).initialized.value ? (H(), q(Pe, {
|
|
1279
1287
|
key: 1,
|
|
1280
1288
|
onResolve: C
|
|
1281
1289
|
}, {
|
|
1282
1290
|
default: T(() => [
|
|
1283
1291
|
k("div", Nt, [
|
|
1284
|
-
k("div",
|
|
1292
|
+
k("div", Pt, [
|
|
1285
1293
|
K(i.$slots, "header", {}, () => [
|
|
1286
|
-
t.hiddenHeader ? Ne("", !0) : (H(),
|
|
1294
|
+
t.hiddenHeader ? Ne("", !0) : (H(), q(R(c), {
|
|
1287
1295
|
key: 0,
|
|
1288
1296
|
onPreview: f,
|
|
1289
1297
|
onSave: v
|
|
@@ -1313,26 +1321,26 @@ defineExpose({
|
|
|
1313
1321
|
k("div", {
|
|
1314
1322
|
class: Ge(["epic-split-view-container", { "hidden-header": i.hiddenHeader }])
|
|
1315
1323
|
}, [
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1324
|
+
Y(R(a)),
|
|
1325
|
+
Y(R(w)),
|
|
1326
|
+
Y(R(g))
|
|
1319
1327
|
], 2),
|
|
1320
|
-
|
|
1328
|
+
Y(_t, {
|
|
1321
1329
|
ref_key: "previewRef",
|
|
1322
1330
|
ref: S
|
|
1323
1331
|
}, null, 512)
|
|
1324
1332
|
])
|
|
1325
1333
|
]),
|
|
1326
1334
|
fallback: T(() => [
|
|
1327
|
-
k("div",
|
|
1328
|
-
|
|
1335
|
+
k("div", Ft, [
|
|
1336
|
+
Y(R(m))
|
|
1329
1337
|
])
|
|
1330
1338
|
]),
|
|
1331
1339
|
_: 3
|
|
1332
1340
|
})) : (H(), Ee("div", $t));
|
|
1333
1341
|
}
|
|
1334
|
-
}),
|
|
1335
|
-
component: async () => await import("./index-
|
|
1342
|
+
}), Vt = {
|
|
1343
|
+
component: async () => await import("./index-Dk08eIJW.js"),
|
|
1336
1344
|
defaultSchema: {
|
|
1337
1345
|
label: "代码编辑器",
|
|
1338
1346
|
type: "monacoEditor",
|
|
@@ -1382,7 +1390,7 @@ defineExpose({
|
|
|
1382
1390
|
}
|
|
1383
1391
|
}, { t: me } = Oe();
|
|
1384
1392
|
function Mt(e) {
|
|
1385
|
-
e.component("EInputSize", async () => await import("./index-Cx7gKpkD.js")), e.component("EColEditor", async () => await import("./index-CpTA2IRB.js")), e.component("EActionEditor", async () => await import("./index-
|
|
1393
|
+
e.component("EInputSize", async () => await import("./index-Cx7gKpkD.js")), e.component("EColEditor", async () => await import("./index-CpTA2IRB.js")), e.component("EActionEditor", async () => await import("./index-y2l3KPim.js")), e.component("ERuleEditor", async () => await import("./index-CzAoXJXL.js")), e.component("EOptionsEditor", async () => await import("./index-D0AvdGjo.js")), e.component("ENode", async () => await import("./index-DGRQyNXm.js")), e.component("EDataSource", async () => await import("./index-B0OgKtuT.js")), e.component("EColumnEditor", async () => await import("./index-BA7FMts9.js")), e.component("PaddingMarginControl", async () => await import("./index-CdnV7DS4.js")), e.component("ESourceDataSelect", async () => await import("./index-jj4e1UZY.js")), e.registerActivitybar({
|
|
1386
1394
|
id: "component_view",
|
|
1387
1395
|
title: me("component"),
|
|
1388
1396
|
icon: "icon--epic--extension-outline",
|
|
@@ -1395,17 +1403,17 @@ function Mt(e) {
|
|
|
1395
1403
|
}), e.registerRightSidebar({
|
|
1396
1404
|
id: "attribute_view",
|
|
1397
1405
|
title: me("attribute"),
|
|
1398
|
-
component: async () => await import("./attributeView-
|
|
1406
|
+
component: async () => await import("./attributeView-CFfmxcU9.js")
|
|
1399
1407
|
}), e.registerRightSidebar({
|
|
1400
1408
|
id: "style_view",
|
|
1401
1409
|
title: me("style"),
|
|
1402
|
-
component: async () => await import("./styleView-
|
|
1410
|
+
component: async () => await import("./styleView-BqdHZS9i.js")
|
|
1403
1411
|
}), e.registerRightSidebar({
|
|
1404
1412
|
id: "event_view",
|
|
1405
1413
|
title: "事件",
|
|
1406
1414
|
component: async () => await import("./eventView-C2wKhfU_.js")
|
|
1407
|
-
}), [
|
|
1408
|
-
e.registerComponent(
|
|
1415
|
+
}), [Vt, Ct].forEach((r) => {
|
|
1416
|
+
e.registerComponent(r);
|
|
1409
1417
|
});
|
|
1410
1418
|
}
|
|
1411
1419
|
Mt(z);
|
|
@@ -1421,7 +1429,7 @@ export {
|
|
|
1421
1429
|
Kt as h,
|
|
1422
1430
|
rt as i,
|
|
1423
1431
|
Qt as j,
|
|
1424
|
-
|
|
1432
|
+
Ve as k,
|
|
1425
1433
|
ke as l,
|
|
1426
1434
|
Ot as m,
|
|
1427
1435
|
Dt as n,
|