epic-designer-gold 1.0.24 → 1.0.26
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-BBN4W9TM.js → attributeView-CFfmxcU9.js} +1 -1
- package/dist/{attributeView-gzxLavkO.cjs → attributeView-DZE3sT--.cjs} +1 -1
- package/dist/{index-BokMTYeM.js → index-BA7FMts9.js} +1 -1
- package/dist/{index-D50jfb6U.cjs → index-BLihjCNa.cjs} +1 -1
- package/dist/{index-ClvhnVWp.cjs → index-Bhxsxvjz.cjs} +1 -1
- package/dist/index-Btz7ejRx.cjs +10 -0
- package/dist/{index-CSX7EJ3h.cjs → index-C6FCo-HH.cjs} +1 -1
- package/dist/{index-4GSgwHdx.cjs → index-Cdk7yCxQ.cjs} +1 -1
- package/dist/{index-hOLbkmql.js → index-CjOFrMw5.js} +1 -1
- package/dist/{index-CItH08Va.js → index-CzAoXJXL.js} +1 -1
- package/dist/{index-DrBumgPi.js → index-D0AvdGjo.js} +1 -1
- package/dist/{index-BBYobbqk.cjs → index-D79BnQLI.cjs} +1 -1
- package/dist/{index-rQwg6K9E.js → index-D83uXkXA.js} +314 -308
- package/dist/index-DGRQyNXm.js +4 -0
- package/dist/{index-BAUyJdDp.cjs → index-DOZDUgRO.cjs} +1 -1
- package/dist/{index-B7wRhLwc.js → index-Dk08eIJW.js} +1 -1
- package/dist/{index-Cy4M38xz.cjs → index-DzGAy8Ku.cjs} +1 -1
- package/dist/{index-CKI_3hdd.cjs → index-LMTPTgvs.cjs} +1 -1
- package/dist/{index-CNtDbtWP.js → index-jj4e1UZY.js} +1 -1
- package/dist/{index-BUt-kkII.js → index-y2l3KPim.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{selectPage-DoF_EREC.cjs → selectPage-CBIYwH5Q.cjs} +1 -1
- package/dist/{selectPage-DU5m5Bop.js → selectPage-D7EWbQEt.js} +34 -28
- package/dist/style.css +1 -1
- package/dist/{styleView-DN0aAYgR.js → styleView-BqdHZS9i.js} +1 -1
- package/dist/{styleView-D3pbuMzI.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-5XsDINLZ.js +0 -4
- package/dist/index-CDH3QO51.cjs +0 -10
|
@@ -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,
|
|
@@ -297,32 +297,38 @@ const je = /* @__PURE__ */ le({
|
|
|
297
297
|
field: l
|
|
298
298
|
};
|
|
299
299
|
return $.children && delete $.children, $;
|
|
300
|
-
}),
|
|
301
|
-
var $, u, _;
|
|
300
|
+
}), U = W(() => {
|
|
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
|
-
});
|
|
318
|
-
console.log("%c [ ]-324", "font-size:13px; background:pink; color:#bf2c9f;", R.value);
|
|
319
|
-
const L = W(() => z.getComponentConfingByType(t.type) ?? null);
|
|
325
|
+
}), L = W(() => z.getComponentConfingByType(t.type) ?? null);
|
|
320
326
|
he(() => {
|
|
321
|
-
c.value =
|
|
327
|
+
c.value = s.modelValue ?? a[t.field ?? ""];
|
|
322
328
|
}), B(
|
|
323
329
|
() => c.value,
|
|
324
330
|
() => {
|
|
325
|
-
c.value !== (
|
|
331
|
+
c.value !== (s.modelValue ?? a[t.field ?? ""]) && i(c.value);
|
|
326
332
|
}
|
|
327
333
|
), B(
|
|
328
334
|
() => E.value,
|
|
@@ -333,8 +339,8 @@ const je = /* @__PURE__ */ le({
|
|
|
333
339
|
);
|
|
334
340
|
function A() {
|
|
335
341
|
var l;
|
|
336
|
-
const o = E.value ||
|
|
337
|
-
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));
|
|
338
344
|
}
|
|
339
345
|
function v() {
|
|
340
346
|
var o;
|
|
@@ -349,7 +355,7 @@ const je = /* @__PURE__ */ le({
|
|
|
349
355
|
if (t.type === "slot") {
|
|
350
356
|
const _ = t.slotName;
|
|
351
357
|
if (!_) return;
|
|
352
|
-
I.value =
|
|
358
|
+
I.value = ie({
|
|
353
359
|
setup() {
|
|
354
360
|
return () => K(w, _, {
|
|
355
361
|
componentSchema: t,
|
|
@@ -373,15 +379,15 @@ const je = /* @__PURE__ */ le({
|
|
|
373
379
|
function f(o) {
|
|
374
380
|
console.log("%c [ v ]-462", "font-size:13px; background:pink; color:#bf2c9f;", o), Object.prototype.toString.call(o) === "[object Array]" ? o.forEach((l) => {
|
|
375
381
|
a[l.value] = l.label;
|
|
376
|
-
}) : a[o.value] = o.label,
|
|
382
|
+
}) : a[o.value] = o.label, s.id ? j.emit("updateformData" + s.id, a) : j.emit("updateformData", a);
|
|
377
383
|
}
|
|
378
384
|
function i(o) {
|
|
379
|
-
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);
|
|
380
386
|
}
|
|
381
|
-
function
|
|
387
|
+
function P(o) {
|
|
382
388
|
y("update:dynamicId", o);
|
|
383
389
|
}
|
|
384
|
-
let
|
|
390
|
+
let F = null;
|
|
385
391
|
return B(
|
|
386
392
|
() => t,
|
|
387
393
|
async (o) => {
|
|
@@ -393,9 +399,9 @@ const je = /* @__PURE__ */ le({
|
|
|
393
399
|
options: null
|
|
394
400
|
}
|
|
395
401
|
});
|
|
396
|
-
if (l ===
|
|
402
|
+
if (l === F)
|
|
397
403
|
return !1;
|
|
398
|
-
|
|
404
|
+
F = l, ee();
|
|
399
405
|
},
|
|
400
406
|
{
|
|
401
407
|
immediate: !0,
|
|
@@ -404,30 +410,30 @@ const je = /* @__PURE__ */ le({
|
|
|
404
410
|
), $e(v), (o, l) => {
|
|
405
411
|
var u;
|
|
406
412
|
const $ = Te("ENode");
|
|
407
|
-
return I.value && C.value ? (H(),
|
|
413
|
+
return I.value && C.value ? (H(), q(je, {
|
|
408
414
|
key: 0,
|
|
409
|
-
hasFormItem:
|
|
410
|
-
formItemProps:
|
|
415
|
+
hasFormItem: R(t).noFormItem !== !0 && ((u = L.value) == null ? void 0 : u.defaultSchema.input),
|
|
416
|
+
formItemProps: h.value,
|
|
411
417
|
onUpdateFormItemRef: p
|
|
412
418
|
}, {
|
|
413
419
|
default: T(() => [
|
|
414
|
-
(H(),
|
|
420
|
+
(H(), q(Be(I.value), be({
|
|
415
421
|
ref_key: "componentInstance",
|
|
416
422
|
ref: E,
|
|
417
423
|
onVnodeMounted: A,
|
|
418
|
-
model:
|
|
419
|
-
}, { ...
|
|
420
|
-
[
|
|
421
|
-
["onUpdate:" +
|
|
422
|
-
[`onUpdate:${
|
|
424
|
+
model: R(a)
|
|
425
|
+
}, { ...U.value }, {
|
|
426
|
+
[U.value.bindModel]: c.value,
|
|
427
|
+
["onUpdate:" + U.value.bindModel]: l[0] || (l[0] = (_) => c.value = _),
|
|
428
|
+
[`onUpdate:${U.value.bindModel}` || ""]: i,
|
|
423
429
|
"onUpdate:modelValueLabel": f,
|
|
424
|
-
"onUpdate:dynamicId":
|
|
430
|
+
"onUpdate:dynamicId": P
|
|
425
431
|
}), {
|
|
426
432
|
node: T((_) => [
|
|
427
|
-
|
|
428
|
-
id:
|
|
433
|
+
Y($, be({
|
|
434
|
+
id: s.id
|
|
429
435
|
}, _, {
|
|
430
|
-
sourceDateUrl:
|
|
436
|
+
sourceDateUrl: s.sourceDateUrl
|
|
431
437
|
}), null, 16, ["id", "sourceDateUrl"])
|
|
432
438
|
]),
|
|
433
439
|
"edit-node": T(() => [
|
|
@@ -442,8 +448,8 @@ const je = /* @__PURE__ */ le({
|
|
|
442
448
|
}
|
|
443
449
|
});
|
|
444
450
|
function tt() {
|
|
445
|
-
const e =
|
|
446
|
-
function
|
|
451
|
+
const e = V(!1), n = Ve(), r = V({});
|
|
452
|
+
function s() {
|
|
447
453
|
return new Promise((d) => {
|
|
448
454
|
if (e.value)
|
|
449
455
|
d();
|
|
@@ -456,8 +462,8 @@ function tt() {
|
|
|
456
462
|
}
|
|
457
463
|
async function c(d = "default") {
|
|
458
464
|
var y;
|
|
459
|
-
await
|
|
460
|
-
const S = (y =
|
|
465
|
+
await s();
|
|
466
|
+
const S = (y = r.value) == null ? void 0 : y[d];
|
|
461
467
|
if (!S) throw new Error(`表单 [name=${d}] 不存在`);
|
|
462
468
|
return S;
|
|
463
469
|
}
|
|
@@ -471,49 +477,49 @@ function tt() {
|
|
|
471
477
|
function g(d, S = "default", y = void 0) {
|
|
472
478
|
var E, M;
|
|
473
479
|
if (y && Object.keys(y).length) {
|
|
474
|
-
let p = function(
|
|
475
|
-
let
|
|
476
|
-
return
|
|
477
|
-
L.children && (
|
|
478
|
-
}),
|
|
479
|
-
}, I = function(
|
|
480
|
+
let p = function(h) {
|
|
481
|
+
let U = [];
|
|
482
|
+
return h.forEach((L) => {
|
|
483
|
+
L.children && (U = [...U, ...p(L.children)]), U.push(L);
|
|
484
|
+
}), U;
|
|
485
|
+
}, I = function(h) {
|
|
480
486
|
var L;
|
|
481
|
-
let
|
|
482
|
-
return Object.keys(
|
|
483
|
-
var f, i,
|
|
484
|
-
const v =
|
|
485
|
-
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" && !((
|
|
486
|
-
|
|
487
|
-
else if ((v == null ? void 0 : v.type) === "cascader" && (($ = (l = v == null ? void 0 : v.componentProps) == null ? void 0 : l.props) != null && $.multiple) && typeof
|
|
488
|
-
|
|
489
|
-
else if (((v == null ? void 0 : v.type) === "upload-image" || (v == null ? void 0 : v.type) === "upload-file") && typeof
|
|
487
|
+
let U = p((L = y == null ? void 0 : y.schemas[0]) == null ? void 0 : L.children);
|
|
488
|
+
return Object.keys(h).forEach((A) => {
|
|
489
|
+
var f, i, P, F, o, l, $;
|
|
490
|
+
const v = U.find((u) => u.field === A), ee = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
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") {
|
|
490
496
|
let u = [];
|
|
491
|
-
Object.entries(
|
|
492
|
-
|
|
493
|
-
}),
|
|
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) => ({
|
|
494
500
|
url: _,
|
|
495
501
|
name: u[J] || _
|
|
496
502
|
}));
|
|
497
|
-
} else (v == null ? void 0 : v.type) === "number" || (v == null ? void 0 : v.type) === "slider" ?
|
|
498
|
-
}),
|
|
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;
|
|
499
505
|
}(d);
|
|
500
506
|
n.setFormData(I, S);
|
|
501
|
-
const C = (E =
|
|
507
|
+
const C = (E = r.value) == null ? void 0 : E[S];
|
|
502
508
|
C == null || C.clearValidate();
|
|
503
509
|
} else {
|
|
504
510
|
n.setFormData(d, S);
|
|
505
|
-
const p = (M =
|
|
511
|
+
const p = (M = r.value) == null ? void 0 : M[S];
|
|
506
512
|
p == null || p.clearValidate();
|
|
507
513
|
}
|
|
508
514
|
}
|
|
509
|
-
async function
|
|
515
|
+
async function m(d = "default") {
|
|
510
516
|
return await a(d, async (S) => (await S.validate(), await S.getData()));
|
|
511
517
|
}
|
|
512
518
|
async function N(d) {
|
|
513
|
-
await
|
|
519
|
+
await s();
|
|
514
520
|
const S = {};
|
|
515
|
-
for (const y in
|
|
516
|
-
const E =
|
|
521
|
+
for (const y in r.value) {
|
|
522
|
+
const E = r.value[y];
|
|
517
523
|
E && (S[y] = G(await d(E)));
|
|
518
524
|
}
|
|
519
525
|
return S;
|
|
@@ -531,10 +537,10 @@ function tt() {
|
|
|
531
537
|
return {
|
|
532
538
|
ready: e,
|
|
533
539
|
pageManager: n,
|
|
534
|
-
forms:
|
|
540
|
+
forms: r,
|
|
535
541
|
getData: w,
|
|
536
542
|
setData: g,
|
|
537
|
-
validate:
|
|
543
|
+
validate: m,
|
|
538
544
|
getForms: O,
|
|
539
545
|
setForms: t,
|
|
540
546
|
validateAll: x,
|
|
@@ -544,7 +550,7 @@ function tt() {
|
|
|
544
550
|
const nt = {
|
|
545
551
|
key: 0,
|
|
546
552
|
class: "epic-loading-box"
|
|
547
|
-
}, 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({
|
|
548
554
|
__name: "builder",
|
|
549
555
|
props: {
|
|
550
556
|
pageSchema: {},
|
|
@@ -554,14 +560,14 @@ const nt = {
|
|
|
554
560
|
id: {}
|
|
555
561
|
},
|
|
556
562
|
emits: ["change", "ready"],
|
|
557
|
-
setup(e, { expose: n, emit:
|
|
558
|
-
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({
|
|
559
565
|
schemas: []
|
|
560
566
|
});
|
|
561
567
|
B(
|
|
562
568
|
() => M.pageSchema,
|
|
563
569
|
(f) => {
|
|
564
|
-
|
|
570
|
+
ce(p, f);
|
|
565
571
|
},
|
|
566
572
|
{
|
|
567
573
|
immediate: !0,
|
|
@@ -582,82 +588,82 @@ const nt = {
|
|
|
582
588
|
);
|
|
583
589
|
function D(f) {
|
|
584
590
|
let i = [];
|
|
585
|
-
return f.forEach((
|
|
586
|
-
|
|
591
|
+
return f.forEach((P) => {
|
|
592
|
+
P.children && (i = [...i, ...D(P.children)]), i.push(P);
|
|
587
593
|
}), i;
|
|
588
594
|
}
|
|
589
595
|
function I(f, i) {
|
|
590
|
-
function
|
|
596
|
+
function P(o) {
|
|
591
597
|
return JSON.parse(JSON.stringify(o));
|
|
592
598
|
}
|
|
593
|
-
function
|
|
599
|
+
function F(o, l) {
|
|
594
600
|
if (o.type === "card" && o.multiple && o.field && Array.isArray(l[o.field]))
|
|
595
601
|
return l[o.field].map((u) => {
|
|
596
602
|
var J;
|
|
597
|
-
const _ =
|
|
598
|
-
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(), _;
|
|
599
605
|
});
|
|
600
|
-
const $ =
|
|
601
|
-
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()), $;
|
|
602
608
|
}
|
|
603
|
-
return f.map((o) =>
|
|
609
|
+
return f.map((o) => F(o, i)).flat();
|
|
604
610
|
}
|
|
605
|
-
function C(f, i = "",
|
|
606
|
-
const
|
|
607
|
-
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) => {
|
|
608
614
|
o.field && (o.oldField = JSON.parse(JSON.stringify(o.field)));
|
|
609
615
|
const l = { ...o };
|
|
610
616
|
if (o.type === "card") {
|
|
611
617
|
const $ = o.field || "";
|
|
612
|
-
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}.${$}`);
|
|
613
619
|
const u = l.field || i;
|
|
614
|
-
|
|
620
|
+
P[u] = 0;
|
|
615
621
|
} else o.field && i && (l.field = `${i}.${o.field}`);
|
|
616
|
-
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;
|
|
617
623
|
});
|
|
618
624
|
}
|
|
619
|
-
function
|
|
620
|
-
const o =
|
|
621
|
-
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) => {
|
|
622
628
|
const $ = l.field || "";
|
|
623
|
-
let u =
|
|
624
|
-
l.type === "card" && l.multiple ? (typeof i[u][`${
|
|
625
|
-
i[`${u}[${
|
|
626
|
-
}) : 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(
|
|
627
633
|
l.children,
|
|
628
634
|
i,
|
|
629
|
-
`${u}[${
|
|
630
|
-
|
|
631
|
-
)),
|
|
632
|
-
}),
|
|
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;
|
|
633
639
|
}
|
|
634
|
-
function
|
|
635
|
-
let
|
|
640
|
+
function U(f, i, P) {
|
|
641
|
+
let F = h(G(f), G(i));
|
|
636
642
|
return {
|
|
637
643
|
obj: C(f),
|
|
638
|
-
dataObj:
|
|
644
|
+
dataObj: F
|
|
639
645
|
};
|
|
640
646
|
}
|
|
641
647
|
function L(f) {
|
|
642
648
|
let i = D(M.pageSchema.schemas[0].children);
|
|
643
649
|
a.value = i.filter((l) => l.type === "card" && l.multiple);
|
|
644
|
-
const
|
|
645
|
-
let { obj:
|
|
646
|
-
return f = o, M.pageSchema.schemas[0].children =
|
|
647
|
-
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;
|
|
648
654
|
if (l.indexOf("@") < 0) {
|
|
649
655
|
const b = i.find((X) => X.field === l), Me = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
650
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")
|
|
651
|
-
f[l] = (
|
|
652
|
-
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")
|
|
653
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(",");
|
|
654
660
|
else if (((b == null ? void 0 : b.type) === "upload-image" || (b == null ? void 0 : b.type) === "upload-file") && typeof f[l] == "string") {
|
|
655
661
|
let X = [];
|
|
656
|
-
Object.entries(f).forEach(([
|
|
657
|
-
f[l] === ye &&
|
|
658
|
-
}), f[l] = f[l].split(",").map((
|
|
659
|
-
url:
|
|
660
|
-
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
|
|
661
667
|
}));
|
|
662
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);
|
|
663
669
|
}
|
|
@@ -666,26 +672,26 @@ const nt = {
|
|
|
666
672
|
B(
|
|
667
673
|
() => p.script,
|
|
668
674
|
(f) => {
|
|
669
|
-
f &&
|
|
675
|
+
f && m.setMethods(f, !0);
|
|
670
676
|
},
|
|
671
677
|
{
|
|
672
678
|
immediate: !0
|
|
673
679
|
}
|
|
674
|
-
), Z("slots", Le()), Z("pageManager",
|
|
680
|
+
), Z("slots", Le()), Z("pageManager", m), Z("forms", N), Z("pageSchema", p), Z(
|
|
675
681
|
"disabled",
|
|
676
682
|
W(() => M.disabled)
|
|
677
683
|
);
|
|
678
|
-
const A =
|
|
684
|
+
const A = fe(), v = A == null ? void 0 : A.proxy;
|
|
679
685
|
function ee() {
|
|
680
|
-
|
|
681
|
-
g.value = !0, c("ready",
|
|
686
|
+
de(() => {
|
|
687
|
+
g.value = !0, c("ready", m), v && m.addComponentInstance("builder", v);
|
|
682
688
|
});
|
|
683
689
|
}
|
|
684
690
|
return j.on("updateformData" + (M.id ? M.id : ""), (f) => {
|
|
685
691
|
c("change", f);
|
|
686
692
|
}), n({
|
|
687
693
|
ready: g,
|
|
688
|
-
pageManager:
|
|
694
|
+
pageManager: m,
|
|
689
695
|
getData: O,
|
|
690
696
|
setData: t,
|
|
691
697
|
validate: x,
|
|
@@ -693,23 +699,23 @@ const nt = {
|
|
|
693
699
|
setForms: S,
|
|
694
700
|
validateAll: y,
|
|
695
701
|
getFormInstance: E
|
|
696
|
-
}), (f, i) =>
|
|
702
|
+
}), (f, i) => R(z).initialized.value ? (H(), q(Pe, {
|
|
697
703
|
key: 1,
|
|
698
704
|
onResolve: ee
|
|
699
705
|
}, {
|
|
700
706
|
default: T(() => [
|
|
701
707
|
k("div", ot, [
|
|
702
|
-
(H(!0), Ee(Je, null, ze(p.schemas, (
|
|
708
|
+
(H(!0), Ee(Je, null, ze(p.schemas, (P, F) => (H(), q(R(et), {
|
|
703
709
|
id: M.id,
|
|
704
|
-
key:
|
|
710
|
+
key: F,
|
|
705
711
|
sourceDateUrl: M.sourceDateUrl,
|
|
706
|
-
componentSchema:
|
|
712
|
+
componentSchema: P
|
|
707
713
|
}, null, 8, ["id", "sourceDateUrl", "componentSchema"]))), 128))
|
|
708
714
|
])
|
|
709
715
|
]),
|
|
710
716
|
fallback: T(() => [
|
|
711
717
|
k("div", st, [
|
|
712
|
-
|
|
718
|
+
Y(R(s))
|
|
713
719
|
])
|
|
714
720
|
]),
|
|
715
721
|
_: 1
|
|
@@ -720,70 +726,70 @@ function xe(e) {
|
|
|
720
726
|
return Ze() ? (We(e), !0) : !1;
|
|
721
727
|
}
|
|
722
728
|
function lt(e) {
|
|
723
|
-
let n = 0,
|
|
729
|
+
let n = 0, r, s;
|
|
724
730
|
const c = () => {
|
|
725
|
-
n -= 1,
|
|
731
|
+
n -= 1, s && n <= 0 && (s.stop(), r = void 0, s = void 0);
|
|
726
732
|
};
|
|
727
|
-
return (...a) => (n += 1,
|
|
733
|
+
return (...a) => (n += 1, s || (s = He(!0), r = s.run(() => e(...a))), xe(c), r);
|
|
728
734
|
}
|
|
729
|
-
function
|
|
730
|
-
return typeof e == "function" ? e() :
|
|
735
|
+
function ue(e) {
|
|
736
|
+
return typeof e == "function" ? e() : R(e);
|
|
731
737
|
}
|
|
732
738
|
const at = typeof window < "u" && typeof document < "u";
|
|
733
739
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
734
740
|
const it = (e) => typeof e < "u", ct = Object.prototype.toString, ut = (e) => ct.call(e) === "[object Object]", dt = () => {
|
|
735
741
|
};
|
|
736
742
|
function ft(e) {
|
|
737
|
-
return
|
|
743
|
+
return fe();
|
|
738
744
|
}
|
|
739
|
-
function pt(e, n = !0,
|
|
740
|
-
ft() ? Ae(e,
|
|
745
|
+
function pt(e, n = !0, r) {
|
|
746
|
+
ft() ? Ae(e, r) : n ? e() : de(e);
|
|
741
747
|
}
|
|
742
748
|
function mt(e = !1, n = {}) {
|
|
743
749
|
const {
|
|
744
|
-
truthyValue:
|
|
745
|
-
falsyValue:
|
|
746
|
-
} = n, c = Ke(e), a =
|
|
750
|
+
truthyValue: r = !0,
|
|
751
|
+
falsyValue: s = !1
|
|
752
|
+
} = n, c = Ke(e), a = V(e);
|
|
747
753
|
function w(g) {
|
|
748
754
|
if (arguments.length)
|
|
749
755
|
return a.value = g, a.value;
|
|
750
756
|
{
|
|
751
|
-
const
|
|
752
|
-
return a.value = a.value ===
|
|
757
|
+
const m = ue(r);
|
|
758
|
+
return a.value = a.value === m ? ue(s) : m, a.value;
|
|
753
759
|
}
|
|
754
760
|
}
|
|
755
761
|
return c ? w : [a, w];
|
|
756
762
|
}
|
|
757
|
-
function Jt(e, n,
|
|
758
|
-
const
|
|
759
|
-
return
|
|
763
|
+
function Jt(e, n, r) {
|
|
764
|
+
const s = B(e, (...c) => (de(() => s()), n(...c)), r);
|
|
765
|
+
return s;
|
|
760
766
|
}
|
|
761
767
|
const ve = at ? window : void 0;
|
|
762
|
-
function
|
|
768
|
+
function se(e) {
|
|
763
769
|
var n;
|
|
764
|
-
const
|
|
765
|
-
return (n =
|
|
770
|
+
const r = ue(e);
|
|
771
|
+
return (n = r == null ? void 0 : r.$el) != null ? n : r;
|
|
766
772
|
}
|
|
767
773
|
function ht(...e) {
|
|
768
|
-
let n,
|
|
769
|
-
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)
|
|
770
776
|
return dt;
|
|
771
|
-
Array.isArray(
|
|
777
|
+
Array.isArray(r) || (r = [r]), Array.isArray(s) || (s = [s]);
|
|
772
778
|
const a = [], w = () => {
|
|
773
779
|
a.forEach((O) => O()), a.length = 0;
|
|
774
|
-
}, g = (O, t, x, d) => (O.addEventListener(t, x, d), () => O.removeEventListener(t, x, d)),
|
|
775
|
-
() => [
|
|
780
|
+
}, g = (O, t, x, d) => (O.addEventListener(t, x, d), () => O.removeEventListener(t, x, d)), m = B(
|
|
781
|
+
() => [se(n), ue(c)],
|
|
776
782
|
([O, t]) => {
|
|
777
783
|
if (w(), !O)
|
|
778
784
|
return;
|
|
779
785
|
const x = ut(t) ? { ...t } : t;
|
|
780
786
|
a.push(
|
|
781
|
-
...
|
|
787
|
+
...r.flatMap((d) => s.map((S) => g(O, d, S, x)))
|
|
782
788
|
);
|
|
783
789
|
},
|
|
784
790
|
{ immediate: !0, flush: "post" }
|
|
785
791
|
), N = () => {
|
|
786
|
-
|
|
792
|
+
m(), w();
|
|
787
793
|
};
|
|
788
794
|
return xe(N), N;
|
|
789
795
|
}
|
|
@@ -791,26 +797,26 @@ function vt(e) {
|
|
|
791
797
|
return typeof e == "function" ? e : typeof e == "string" ? (n) => n.key === e : Array.isArray(e) ? (n) => e.includes(n.key) : () => !0;
|
|
792
798
|
}
|
|
793
799
|
function Ce(...e) {
|
|
794
|
-
let n,
|
|
795
|
-
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]);
|
|
796
802
|
const {
|
|
797
803
|
target: c = ve,
|
|
798
804
|
eventName: a = "keydown",
|
|
799
805
|
passive: w = !1,
|
|
800
806
|
dedupe: g = !1
|
|
801
|
-
} =
|
|
807
|
+
} = s, m = vt(n);
|
|
802
808
|
return ht(c, a, (O) => {
|
|
803
|
-
O.repeat &&
|
|
809
|
+
O.repeat && ue(g) || m(O) && r(O);
|
|
804
810
|
}, w);
|
|
805
811
|
}
|
|
806
|
-
function we(e, n,
|
|
807
|
-
return Ce(e, n, { ...
|
|
812
|
+
function we(e, n, r = {}) {
|
|
813
|
+
return Ce(e, n, { ...r, eventName: "keydown" });
|
|
808
814
|
}
|
|
809
|
-
function Se(e, n,
|
|
810
|
-
return Ce(e, n, { ...
|
|
815
|
+
function Se(e, n, r = {}) {
|
|
816
|
+
return Ce(e, n, { ...r, eventName: "keyup" });
|
|
811
817
|
}
|
|
812
818
|
function gt() {
|
|
813
|
-
const e =
|
|
819
|
+
const e = V(!1), n = fe();
|
|
814
820
|
return n && Ae(() => {
|
|
815
821
|
e.value = !0;
|
|
816
822
|
}, n), e;
|
|
@@ -822,18 +828,18 @@ function yt(e) {
|
|
|
822
828
|
function wt(e) {
|
|
823
829
|
return JSON.parse(JSON.stringify(e));
|
|
824
830
|
}
|
|
825
|
-
function St(e, n,
|
|
826
|
-
const { window:
|
|
831
|
+
function St(e, n, r = {}) {
|
|
832
|
+
const { window: s = ve, ...c } = r;
|
|
827
833
|
let a;
|
|
828
|
-
const w = yt(() =>
|
|
834
|
+
const w = yt(() => s && "ResizeObserver" in s), g = () => {
|
|
829
835
|
a && (a.disconnect(), a = void 0);
|
|
830
|
-
},
|
|
831
|
-
const t =
|
|
832
|
-
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)];
|
|
833
839
|
}), N = B(
|
|
834
|
-
|
|
840
|
+
m,
|
|
835
841
|
(t) => {
|
|
836
|
-
if (g(), w.value &&
|
|
842
|
+
if (g(), w.value && s) {
|
|
837
843
|
a = new ResizeObserver(n);
|
|
838
844
|
for (const x of t)
|
|
839
845
|
x && a.observe(x, c);
|
|
@@ -848,16 +854,16 @@ function St(e, n, s = {}) {
|
|
|
848
854
|
stop: O
|
|
849
855
|
};
|
|
850
856
|
}
|
|
851
|
-
function zt(e, n = { width: 0, height: 0 },
|
|
852
|
-
const { window:
|
|
857
|
+
function zt(e, n = { width: 0, height: 0 }, r = {}) {
|
|
858
|
+
const { window: s = ve, box: c = "content-box" } = r, a = W(() => {
|
|
853
859
|
var t, x;
|
|
854
|
-
return (x = (t =
|
|
855
|
-
}), 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(
|
|
856
862
|
e,
|
|
857
863
|
([t]) => {
|
|
858
864
|
const x = c === "border-box" ? t.borderBoxSize : c === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
|
|
859
|
-
if (
|
|
860
|
-
const d =
|
|
865
|
+
if (s && a.value) {
|
|
866
|
+
const d = se(e);
|
|
861
867
|
if (d) {
|
|
862
868
|
const S = d.getBoundingClientRect();
|
|
863
869
|
w.value = S.width, g.value = S.height;
|
|
@@ -868,20 +874,20 @@ function zt(e, n = { width: 0, height: 0 }, s = {}) {
|
|
|
868
874
|
} else
|
|
869
875
|
w.value = t.contentRect.width, g.value = t.contentRect.height;
|
|
870
876
|
},
|
|
871
|
-
|
|
877
|
+
r
|
|
872
878
|
);
|
|
873
879
|
pt(() => {
|
|
874
|
-
const t =
|
|
880
|
+
const t = se(e);
|
|
875
881
|
t && (w.value = "offsetWidth" in t ? t.offsetWidth : n.width, g.value = "offsetHeight" in t ? t.offsetHeight : n.height);
|
|
876
882
|
});
|
|
877
883
|
const N = B(
|
|
878
|
-
() =>
|
|
884
|
+
() => se(e),
|
|
879
885
|
(t) => {
|
|
880
886
|
w.value = t ? n.width : 0, g.value = t ? n.height : 0;
|
|
881
887
|
}
|
|
882
888
|
);
|
|
883
889
|
function O() {
|
|
884
|
-
|
|
890
|
+
m(), N();
|
|
885
891
|
}
|
|
886
892
|
return {
|
|
887
893
|
width: w,
|
|
@@ -889,33 +895,33 @@ function zt(e, n = { width: 0, height: 0 }, s = {}) {
|
|
|
889
895
|
stop: O
|
|
890
896
|
};
|
|
891
897
|
}
|
|
892
|
-
function Ht(e, n,
|
|
898
|
+
function Ht(e, n, r, s = {}) {
|
|
893
899
|
var c, a, w;
|
|
894
900
|
const {
|
|
895
901
|
clone: g = !1,
|
|
896
|
-
passive:
|
|
902
|
+
passive: m = !1,
|
|
897
903
|
eventName: N,
|
|
898
904
|
deep: O = !1,
|
|
899
905
|
defaultValue: t,
|
|
900
906
|
shouldEmit: x
|
|
901
|
-
} =
|
|
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));
|
|
902
908
|
let y = N;
|
|
903
909
|
n || (n = "modelValue"), y = y || `update:${n.toString()}`;
|
|
904
910
|
const E = (D) => g ? typeof g == "function" ? g(D) : wt(D) : D, M = () => it(e[n]) ? E(e[n]) : t, p = (D) => {
|
|
905
911
|
x ? x(D) && S(y, D) : S(y, D);
|
|
906
912
|
};
|
|
907
|
-
if (
|
|
908
|
-
const D = M(), I =
|
|
913
|
+
if (m) {
|
|
914
|
+
const D = M(), I = V(D);
|
|
909
915
|
let C = !1;
|
|
910
916
|
return B(
|
|
911
917
|
() => e[n],
|
|
912
|
-
(
|
|
913
|
-
C || (C = !0, I.value = E(
|
|
918
|
+
(h) => {
|
|
919
|
+
C || (C = !0, I.value = E(h), de(() => C = !1));
|
|
914
920
|
}
|
|
915
921
|
), B(
|
|
916
922
|
I,
|
|
917
|
-
(
|
|
918
|
-
!C && (
|
|
923
|
+
(h) => {
|
|
924
|
+
!C && (h !== e[n] || O) && p(h);
|
|
919
925
|
},
|
|
920
926
|
{ deep: O }
|
|
921
927
|
), I;
|
|
@@ -937,7 +943,7 @@ function Kt() {
|
|
|
937
943
|
};
|
|
938
944
|
}
|
|
939
945
|
function Dt() {
|
|
940
|
-
const e =
|
|
946
|
+
const e = V(!1);
|
|
941
947
|
return Ae(() => {
|
|
942
948
|
bt(e), Et(e);
|
|
943
949
|
}), B(
|
|
@@ -954,61 +960,61 @@ function bt(e) {
|
|
|
954
960
|
n && (n.classList.contains("dark") ? e.value = !0 : e.value = !1);
|
|
955
961
|
}
|
|
956
962
|
function Et(e) {
|
|
957
|
-
var n = document.querySelector("html"),
|
|
958
|
-
for (var c of
|
|
963
|
+
var n = document.querySelector("html"), r = new MutationObserver(function(s) {
|
|
964
|
+
for (var c of s)
|
|
959
965
|
if (c.type === "attributes" && c.attributeName === "class") {
|
|
960
966
|
const a = c.target;
|
|
961
967
|
new Array(...a.classList).includes("dark") ? e.value = !0 : e.value = !1;
|
|
962
968
|
}
|
|
963
969
|
});
|
|
964
|
-
|
|
970
|
+
r.observe(n, {
|
|
965
971
|
attributes: !0,
|
|
966
972
|
attributeFilter: ["class"]
|
|
967
973
|
}), $e(() => {
|
|
968
|
-
|
|
974
|
+
r.disconnect();
|
|
969
975
|
});
|
|
970
976
|
}
|
|
971
977
|
function At() {
|
|
972
|
-
const e =
|
|
978
|
+
const e = V(1), n = V(!1), { isDark: r } = Dt(), { pressSpace: s, pressShift: c, pressCtrl: a } = Ot();
|
|
973
979
|
return {
|
|
974
980
|
canvasScale: e,
|
|
975
|
-
pressSpace:
|
|
981
|
+
pressSpace: s,
|
|
976
982
|
pressShift: c,
|
|
977
983
|
pressCtrl: a,
|
|
978
984
|
disabledZoom: n,
|
|
979
|
-
isDark:
|
|
985
|
+
isDark: r
|
|
980
986
|
};
|
|
981
987
|
}
|
|
982
988
|
const ge = lt(At);
|
|
983
989
|
function Ot() {
|
|
984
|
-
const e =
|
|
990
|
+
const e = V(!1), n = V(!1), r = V(!1);
|
|
985
991
|
return we(" ", () => {
|
|
986
992
|
e.value = !0;
|
|
987
993
|
}), Se(" ", () => {
|
|
988
994
|
e.value = !1;
|
|
989
|
-
}), we("Shift", (
|
|
990
|
-
|
|
995
|
+
}), we("Shift", (s) => {
|
|
996
|
+
s.preventDefault(), n.value = !0;
|
|
991
997
|
}), Se("Shift", () => {
|
|
992
998
|
n.value = !1;
|
|
993
|
-
}), we("Control", (
|
|
994
|
-
|
|
999
|
+
}), we("Control", (s) => {
|
|
1000
|
+
s.preventDefault(), r.value = !0;
|
|
995
1001
|
}), Se("Control", () => {
|
|
996
|
-
|
|
997
|
-
}), { pressSpace: e, pressShift: n, pressCtrl:
|
|
1002
|
+
r.value = !1;
|
|
1003
|
+
}), { pressSpace: e, pressShift: n, pressCtrl: r };
|
|
998
1004
|
}
|
|
999
1005
|
function Zt(e) {
|
|
1000
|
-
const { pressSpace: n } = ge(),
|
|
1001
|
-
|
|
1002
|
-
let
|
|
1003
|
-
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) {
|
|
1004
1010
|
var N;
|
|
1005
|
-
n.value && (
|
|
1011
|
+
n.value && (s = m.x, c = m.y, (N = m.dataTransfer) == null || N.setDragImage(document.createElement("div"), 0, 0));
|
|
1006
1012
|
}
|
|
1007
|
-
function w(
|
|
1008
|
-
if (
|
|
1013
|
+
function w(m) {
|
|
1014
|
+
if (m.preventDefault(), !m.x || !m.y || !n.value)
|
|
1009
1015
|
return;
|
|
1010
|
-
const N =
|
|
1011
|
-
|
|
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);
|
|
1012
1018
|
}
|
|
1013
1019
|
function g() {
|
|
1014
1020
|
n.value = !1;
|
|
@@ -1016,38 +1022,38 @@ function Zt(e) {
|
|
|
1016
1022
|
return { handleElementDragStart: a, handleElementDrag: w, handleElementDragEnd: g };
|
|
1017
1023
|
}
|
|
1018
1024
|
function Wt(e) {
|
|
1019
|
-
const { pressCtrl: n, canvasScale:
|
|
1025
|
+
const { pressCtrl: n, canvasScale: r, disabledZoom: s } = ge();
|
|
1020
1026
|
function c(a) {
|
|
1021
|
-
if (!n.value ||
|
|
1027
|
+
if (!n.value || s.value)
|
|
1022
1028
|
return;
|
|
1023
1029
|
a.preventDefault();
|
|
1024
1030
|
let w = 0;
|
|
1025
|
-
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);
|
|
1026
1032
|
}
|
|
1027
1033
|
return B(
|
|
1028
|
-
() =>
|
|
1034
|
+
() => r.value,
|
|
1029
1035
|
(a) => {
|
|
1030
|
-
e.value && !
|
|
1036
|
+
e.value && !s.value && (e.value.style.transform = `scale(${a})`);
|
|
1031
1037
|
}
|
|
1032
|
-
), { handleZoom: c, canvasScale:
|
|
1038
|
+
), { handleZoom: c, canvasScale: r };
|
|
1033
1039
|
}
|
|
1034
1040
|
function Gt(e, n = 16.66) {
|
|
1035
|
-
let
|
|
1036
|
-
function
|
|
1037
|
-
c(),
|
|
1041
|
+
let r;
|
|
1042
|
+
function s() {
|
|
1043
|
+
c(), r = window.setInterval(e, n);
|
|
1038
1044
|
}
|
|
1039
1045
|
function c() {
|
|
1040
|
-
window.clearInterval(
|
|
1046
|
+
window.clearInterval(r);
|
|
1041
1047
|
}
|
|
1042
1048
|
return {
|
|
1043
|
-
startTimedQuery:
|
|
1049
|
+
startTimedQuery: s,
|
|
1044
1050
|
stopTimedQuery: c
|
|
1045
1051
|
};
|
|
1046
1052
|
}
|
|
1047
|
-
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({
|
|
1048
1054
|
__name: "index",
|
|
1049
1055
|
setup(e, { expose: n }) {
|
|
1050
|
-
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("");
|
|
1051
1057
|
function t() {
|
|
1052
1058
|
w.value = !1;
|
|
1053
1059
|
}
|
|
@@ -1064,7 +1070,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
|
|
|
1064
1070
|
alert("请添加表单组件后再尝试!");
|
|
1065
1071
|
return;
|
|
1066
1072
|
}
|
|
1067
|
-
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(() => {
|
|
1068
1074
|
var E;
|
|
1069
1075
|
(E = c.value) == null || E.setValue(g.value);
|
|
1070
1076
|
}), w.value = !0;
|
|
@@ -1074,7 +1080,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
|
|
|
1074
1080
|
}
|
|
1075
1081
|
return n({
|
|
1076
1082
|
handleOpen: d
|
|
1077
|
-
}), (y, E) => (H(),
|
|
1083
|
+
}), (y, E) => (H(), q(R(s), {
|
|
1078
1084
|
modelValue: a.value,
|
|
1079
1085
|
"onUpdate:modelValue": E[1] || (E[1] = (M) => a.value = M),
|
|
1080
1086
|
title: "预览",
|
|
@@ -1086,13 +1092,13 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
|
|
|
1086
1092
|
}, {
|
|
1087
1093
|
default: T(() => [
|
|
1088
1094
|
k("div", xt, [
|
|
1089
|
-
(H(),
|
|
1095
|
+
(H(), q(R(rt), {
|
|
1090
1096
|
key: O.value,
|
|
1091
1097
|
ref_key: "kb",
|
|
1092
1098
|
ref: N,
|
|
1093
|
-
"page-schema":
|
|
1099
|
+
"page-schema": R(m)
|
|
1094
1100
|
}, null, 8, ["page-schema"])),
|
|
1095
|
-
|
|
1101
|
+
Y(R(s), {
|
|
1096
1102
|
modelValue: w.value,
|
|
1097
1103
|
"onUpdate:modelValue": E[0] || (E[0] = (M) => w.value = M),
|
|
1098
1104
|
title: "表单数据",
|
|
@@ -1103,7 +1109,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
|
|
|
1103
1109
|
}, {
|
|
1104
1110
|
default: T(() => [
|
|
1105
1111
|
k("div", It, [
|
|
1106
|
-
|
|
1112
|
+
Y(R(r), {
|
|
1107
1113
|
ref_key: "monacoEditorRef",
|
|
1108
1114
|
ref: c,
|
|
1109
1115
|
autoToggleTheme: "",
|
|
@@ -1123,7 +1129,7 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
|
|
|
1123
1129
|
}), $t = {
|
|
1124
1130
|
key: 0,
|
|
1125
1131
|
class: "epic-loading-box"
|
|
1126
|
-
}, Nt = { class: "epic-designer-main" },
|
|
1132
|
+
}, Nt = { class: "epic-designer-main" }, Pt = { class: "epic-header-container" }, Ft = { class: "epic-loading-box" }, Qt = /* @__PURE__ */ ie({
|
|
1127
1133
|
__name: "designer",
|
|
1128
1134
|
props: {
|
|
1129
1135
|
disabledZoom: { type: Boolean, default: !1 },
|
|
@@ -1145,17 +1151,17 @@ const xt = { class: "min-w-750px rounded" }, It = { class: "h-full rounded" }, _
|
|
|
1145
1151
|
"deleteSourceData",
|
|
1146
1152
|
"updateSourceData"
|
|
1147
1153
|
],
|
|
1148
|
-
setup(e, { expose: n, emit:
|
|
1149
|
-
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;
|
|
1150
1156
|
let x = {
|
|
1151
1157
|
schemas: [
|
|
1152
1158
|
{
|
|
1153
1159
|
type: "form",
|
|
1154
1160
|
id: "root",
|
|
1155
|
-
label:
|
|
1161
|
+
label: s("page"),
|
|
1156
1162
|
children: [],
|
|
1157
1163
|
componentProps: {
|
|
1158
|
-
name:
|
|
1164
|
+
name: s("form"),
|
|
1159
1165
|
style: {
|
|
1160
1166
|
padding: "16px"
|
|
1161
1167
|
}
|
|
@@ -1200,12 +1206,12 @@ defineExpose({
|
|
|
1200
1206
|
}
|
|
1201
1207
|
t.source && z.setSourceData(t.source), t.formMode && (x.schemas = z.formSchemas);
|
|
1202
1208
|
}), N.setDesignMode(), N.setDefaultComponentIds(x.schemas);
|
|
1203
|
-
const d =
|
|
1209
|
+
const d = r, S = V(null), y = ae({
|
|
1204
1210
|
checkedNode: null,
|
|
1205
1211
|
hoverNode: null,
|
|
1206
1212
|
disableHover: !1,
|
|
1207
1213
|
matched: []
|
|
1208
|
-
}), E =
|
|
1214
|
+
}), E = ae({
|
|
1209
1215
|
schemas: [],
|
|
1210
1216
|
script: x.script
|
|
1211
1217
|
}), { disabledZoom: M } = ge();
|
|
@@ -1220,7 +1226,7 @@ defineExpose({
|
|
|
1220
1226
|
), Z("designer", {
|
|
1221
1227
|
setCheckedNode: D,
|
|
1222
1228
|
setHoverNode: I,
|
|
1223
|
-
setDisableHover:
|
|
1229
|
+
setDisableHover: h,
|
|
1224
1230
|
handleToggleDeviceMode: ee,
|
|
1225
1231
|
reset: A,
|
|
1226
1232
|
state: y
|
|
@@ -1238,29 +1244,29 @@ defineExpose({
|
|
|
1238
1244
|
y.checkedNode = i, y.matched = Xe(E.schemas, i.id);
|
|
1239
1245
|
}
|
|
1240
1246
|
async function I(i = null) {
|
|
1241
|
-
var
|
|
1247
|
+
var P;
|
|
1242
1248
|
if (!i || y.disableHover)
|
|
1243
1249
|
return y.hoverNode = null, !1;
|
|
1244
|
-
if ((i == null ? void 0 : i.id) === ((
|
|
1250
|
+
if ((i == null ? void 0 : i.id) === ((P = y.hoverNode) == null ? void 0 : P.id))
|
|
1245
1251
|
return !1;
|
|
1246
1252
|
y.hoverNode = i;
|
|
1247
1253
|
}
|
|
1248
1254
|
function C() {
|
|
1249
|
-
|
|
1255
|
+
de(() => {
|
|
1250
1256
|
d("ready", { pageManager: N });
|
|
1251
1257
|
});
|
|
1252
1258
|
}
|
|
1253
|
-
async function
|
|
1259
|
+
async function h(i = !1) {
|
|
1254
1260
|
y.disableHover = i;
|
|
1255
1261
|
}
|
|
1256
|
-
function
|
|
1257
|
-
|
|
1262
|
+
function U(i) {
|
|
1263
|
+
ce(E, G(i));
|
|
1258
1264
|
}
|
|
1259
1265
|
function L() {
|
|
1260
1266
|
return Ie(E);
|
|
1261
1267
|
}
|
|
1262
1268
|
function A() {
|
|
1263
|
-
|
|
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));
|
|
1264
1270
|
}
|
|
1265
1271
|
function v() {
|
|
1266
1272
|
d("save", Ie(E));
|
|
@@ -1273,19 +1279,19 @@ defineExpose({
|
|
|
1273
1279
|
}
|
|
1274
1280
|
return p(), n({
|
|
1275
1281
|
revoke: O,
|
|
1276
|
-
setData:
|
|
1282
|
+
setData: U,
|
|
1277
1283
|
getData: L,
|
|
1278
1284
|
reset: A,
|
|
1279
1285
|
preview: f
|
|
1280
|
-
}), (i,
|
|
1286
|
+
}), (i, P) => R(z).initialized.value ? (H(), q(Pe, {
|
|
1281
1287
|
key: 1,
|
|
1282
1288
|
onResolve: C
|
|
1283
1289
|
}, {
|
|
1284
1290
|
default: T(() => [
|
|
1285
1291
|
k("div", Nt, [
|
|
1286
|
-
k("div",
|
|
1292
|
+
k("div", Pt, [
|
|
1287
1293
|
K(i.$slots, "header", {}, () => [
|
|
1288
|
-
t.hiddenHeader ? Ne("", !0) : (H(),
|
|
1294
|
+
t.hiddenHeader ? Ne("", !0) : (H(), q(R(c), {
|
|
1289
1295
|
key: 0,
|
|
1290
1296
|
onPreview: f,
|
|
1291
1297
|
onSave: v
|
|
@@ -1315,26 +1321,26 @@ defineExpose({
|
|
|
1315
1321
|
k("div", {
|
|
1316
1322
|
class: Ge(["epic-split-view-container", { "hidden-header": i.hiddenHeader }])
|
|
1317
1323
|
}, [
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1324
|
+
Y(R(a)),
|
|
1325
|
+
Y(R(w)),
|
|
1326
|
+
Y(R(g))
|
|
1321
1327
|
], 2),
|
|
1322
|
-
|
|
1328
|
+
Y(_t, {
|
|
1323
1329
|
ref_key: "previewRef",
|
|
1324
1330
|
ref: S
|
|
1325
1331
|
}, null, 512)
|
|
1326
1332
|
])
|
|
1327
1333
|
]),
|
|
1328
1334
|
fallback: T(() => [
|
|
1329
|
-
k("div",
|
|
1330
|
-
|
|
1335
|
+
k("div", Ft, [
|
|
1336
|
+
Y(R(m))
|
|
1331
1337
|
])
|
|
1332
1338
|
]),
|
|
1333
1339
|
_: 3
|
|
1334
1340
|
})) : (H(), Ee("div", $t));
|
|
1335
1341
|
}
|
|
1336
|
-
}),
|
|
1337
|
-
component: async () => await import("./index-
|
|
1342
|
+
}), Vt = {
|
|
1343
|
+
component: async () => await import("./index-Dk08eIJW.js"),
|
|
1338
1344
|
defaultSchema: {
|
|
1339
1345
|
label: "代码编辑器",
|
|
1340
1346
|
type: "monacoEditor",
|
|
@@ -1384,7 +1390,7 @@ defineExpose({
|
|
|
1384
1390
|
}
|
|
1385
1391
|
}, { t: me } = Oe();
|
|
1386
1392
|
function Mt(e) {
|
|
1387
|
-
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({
|
|
1388
1394
|
id: "component_view",
|
|
1389
1395
|
title: me("component"),
|
|
1390
1396
|
icon: "icon--epic--extension-outline",
|
|
@@ -1397,17 +1403,17 @@ function Mt(e) {
|
|
|
1397
1403
|
}), e.registerRightSidebar({
|
|
1398
1404
|
id: "attribute_view",
|
|
1399
1405
|
title: me("attribute"),
|
|
1400
|
-
component: async () => await import("./attributeView-
|
|
1406
|
+
component: async () => await import("./attributeView-CFfmxcU9.js")
|
|
1401
1407
|
}), e.registerRightSidebar({
|
|
1402
1408
|
id: "style_view",
|
|
1403
1409
|
title: me("style"),
|
|
1404
|
-
component: async () => await import("./styleView-
|
|
1410
|
+
component: async () => await import("./styleView-BqdHZS9i.js")
|
|
1405
1411
|
}), e.registerRightSidebar({
|
|
1406
1412
|
id: "event_view",
|
|
1407
1413
|
title: "事件",
|
|
1408
1414
|
component: async () => await import("./eventView-C2wKhfU_.js")
|
|
1409
|
-
}), [
|
|
1410
|
-
e.registerComponent(
|
|
1415
|
+
}), [Vt, Ct].forEach((r) => {
|
|
1416
|
+
e.registerComponent(r);
|
|
1411
1417
|
});
|
|
1412
1418
|
}
|
|
1413
1419
|
Mt(z);
|
|
@@ -1423,7 +1429,7 @@ export {
|
|
|
1423
1429
|
Kt as h,
|
|
1424
1430
|
rt as i,
|
|
1425
1431
|
Qt as j,
|
|
1426
|
-
|
|
1432
|
+
Ve as k,
|
|
1427
1433
|
ke as l,
|
|
1428
1434
|
Ot as m,
|
|
1429
1435
|
Dt as n,
|