epic-designer-gold 1.0.34 → 1.0.36
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/{index-3k1IXN1T.js → _plugin-vue_export-helper-8DRKdUfJ.js} +30 -24
- package/dist/{index-DlWUR7vt.cjs → _plugin-vue_export-helper-NUO0U1Az.cjs} +3 -3
- package/dist/{attributeView-cV9JcdL1.cjs → attributeView-BTH9azyB.cjs} +1 -1
- package/dist/{attributeView-tdOSR9MO.js → attributeView-CDem_ES8.js} +1 -1
- package/dist/form-DDcaeFok.js +233 -0
- package/dist/form-sr_OUKVG.cjs +1 -0
- package/dist/{index-9Mn4Y5ul.js → index-7Z6k5ElN.js} +1 -1
- package/dist/{index-DM3RLWza.js → index-B-CXu5E4.js} +1 -1
- package/dist/{index-CQSYlqUB.js → index-B2L9CYN8.js} +1 -1
- package/dist/{index-DmY8tL_f.cjs → index-B9Wg0OhT.cjs} +1 -1
- package/dist/{index-CsW4QbS7.cjs → index-BEh2QNCv.cjs} +1 -1
- package/dist/index-BU-UAvHC.cjs +1 -0
- package/dist/{index-BEyLpsim.js → index-BcqJCHqF.js} +2 -2
- package/dist/{index-Cv3nKoEL.js → index-BtHv1yZo.js} +2 -2
- package/dist/{index-BUITcTmI.cjs → index-C9azM5P0.cjs} +1 -1
- package/dist/{index-BozsQqds.cjs → index-CGSKdgpe.cjs} +1 -1
- package/dist/{index-C4dEBxvF.js → index-CTeq7qi8.js} +1 -1
- package/dist/index-CXkyECv6.cjs +10 -0
- package/dist/{index-DKt-n7Pv.cjs → index-C_yxhoSP.cjs} +1 -1
- package/dist/{index-C8ReU6Xc.js → index-CjRCetGY.js} +252 -254
- package/dist/{index--gqcMvxJ.cjs → index-DCixZvy_.cjs} +1 -1
- package/dist/{index-C4CkFEzv.cjs → index-DV6zVc1G.cjs} +1 -1
- package/dist/{index-tkciUDvZ.js → index-DWNK2WbN.js} +2 -2
- package/dist/{index-C9q_Wa8V.cjs → index-DYItQsu1.cjs} +1 -1
- package/dist/{index-BRDkOUYS.cjs → index-Dgm8C1cw.cjs} +1 -1
- package/dist/{index-p8GEir2h.js → index-DhC_pgAC.js} +1 -1
- package/dist/{index-CRsrNl6B.cjs → index-Dk-o3v2v.cjs} +1 -1
- package/dist/{index-BDF5_G5f.cjs → index-Dz2rmUzG.cjs} +1 -1
- package/dist/{index-BMXnkqXx.js → index-Dz39c928.js} +1 -1
- package/dist/{index-B9pkOv4t.js → index-PJBBvGIL.js} +1 -1
- package/dist/{index-BKdKkCt6.cjs → index-U1_FTPaZ.cjs} +1 -1
- package/dist/{index-C_vstFad.js → index-Zf435cWW.js} +2 -2
- package/dist/{index-Do-zTF8W.js → index-aPG4tpxN.js} +1 -1
- package/dist/index-edBSFxZI.js +4 -0
- package/dist/{index-DFhtJ9Co.cjs → index-i1OdHmT9.cjs} +1 -1
- package/dist/{index-jRFvV869.js → index-q9yvq5KO.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/ocrUpload-BoJVjq3M.cjs +1 -0
- package/dist/{ocrUpload-Cxxs1GtD.js → ocrUpload-DFAe83gW.js} +36 -34
- package/dist/{selectPage-oM1OpHbJ.js → selectPage-Cu2yuxd6.js} +6 -7
- package/dist/selectPage-DZQ1Sbs4.cjs +1 -0
- package/dist/sign-BWCF3Rru.cjs +1 -0
- package/dist/{sign-Cz5OCE1C.js → sign-D5uFYJi9.js} +22 -23
- package/dist/style.css +1 -1
- package/dist/{styleView-CTqq3Ctg.cjs → styleView-BgS1xwp3.cjs} +1 -1
- package/dist/{styleView-BreyVWSd.js → styleView-NkYOpZPH.js} +1 -1
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +4 -4
- package/package.json +1 -1
- package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/form-CUbklubB.cjs +0 -1
- package/dist/form-DGbjgAvD.js +0 -208
- package/dist/index-CYD9fvY1.js +0 -4
- package/dist/index-DJDwPJHn.cjs +0 -10
- package/dist/index-eAXbC_rr.cjs +0 -1
- package/dist/ocrUpload-CMskfGHX.cjs +0 -1
- package/dist/selectPage-H4G0pWhK.cjs +0 -1
- package/dist/sign-Cusu4oCD.cjs +0 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ref as F, reactive as de, defineComponent as fe, createBlock as ae, renderSlot as
|
|
2
|
-
import { f as rt, p as
|
|
1
|
+
import { ref as F, reactive as de, defineComponent as fe, createBlock as ae, renderSlot as q, openBlock as Y, unref as W, mergeProps as xe, withCtx as Z, getCurrentInstance as ye, inject as se, watch as K, useAttrs as Ze, provide as X, shallowRef as Re, computed as ee, watchEffect as Ee, onUnmounted as Ue, resolveComponent as Ge, createElementBlock as ge, Fragment as Te, createCommentVNode as Ne, createElementVNode as te, createStaticVNode as Qe, toDisplayString as Ye, resolveDynamicComponent as ke, createVNode as oe, useSlots as qe, Suspense as Be, renderList as Xe, nextTick as ce, onMounted as Fe, effectScope as je, isRef as et, readonly as tt, getCurrentScope as nt, onScopeDispose as ot, normalizeClass as at, toRaw as Ve } from "vue";
|
|
2
|
+
import { f as rt, p as k, d as pe, a as ne, b as ze, c as st, E as re, l as ue, g as lt, e as it } from "./pluginManager-B0y107-1.js";
|
|
3
3
|
import { a as j, u as Pe } from "./index-B1s67XDZ.js";
|
|
4
4
|
import { ElMessage as ct } from "element-plus";
|
|
5
|
-
import { a as ve } from "./
|
|
6
|
-
|
|
7
|
-
function pn(e, n) {
|
|
5
|
+
import { a as ve, _ as ut } from "./_plugin-vue_export-helper-8DRKdUfJ.js";
|
|
6
|
+
function fn(e, n) {
|
|
8
7
|
let o = null;
|
|
9
8
|
return (...s) => {
|
|
10
9
|
o && clearTimeout(o), o = setTimeout(() => {
|
|
@@ -12,8 +11,8 @@ function pn(e, n) {
|
|
|
12
11
|
}, n);
|
|
13
12
|
};
|
|
14
13
|
}
|
|
15
|
-
function
|
|
16
|
-
const e = F({}), n = F({}), o = F(!1), s = F([]),
|
|
14
|
+
function Je() {
|
|
15
|
+
const e = F({}), n = F({}), o = F(!1), s = F([]), f = de({});
|
|
17
16
|
function a(p) {
|
|
18
17
|
return e.value[p];
|
|
19
18
|
}
|
|
@@ -24,7 +23,7 @@ function ze() {
|
|
|
24
23
|
delete e.value[p];
|
|
25
24
|
}
|
|
26
25
|
function w(p, E = !1) {
|
|
27
|
-
const $ = Object.entries(
|
|
26
|
+
const $ = Object.entries(k.publicMethods).reduce(
|
|
28
27
|
(P, [y, H]) => (P[y] = H.handler, P),
|
|
29
28
|
{}
|
|
30
29
|
);
|
|
@@ -35,7 +34,7 @@ function ze() {
|
|
|
35
34
|
find: a,
|
|
36
35
|
defineExpose: A,
|
|
37
36
|
publicMethods: $,
|
|
38
|
-
pluginManager:
|
|
37
|
+
pluginManager: k
|
|
39
38
|
})();
|
|
40
39
|
} catch (P) {
|
|
41
40
|
E && console.error("[epic:自定义函数]异常:", P);
|
|
@@ -70,7 +69,7 @@ function ze() {
|
|
|
70
69
|
function m(p, E) {
|
|
71
70
|
var $;
|
|
72
71
|
try {
|
|
73
|
-
($ =
|
|
72
|
+
($ = k.publicMethods[p.methodName]) == null || $.handler(...E);
|
|
74
73
|
} catch (P) {
|
|
75
74
|
console.error(`[Epic:公共函数(${p.methodName})]执行异常:`, P);
|
|
76
75
|
}
|
|
@@ -95,7 +94,7 @@ function ze() {
|
|
|
95
94
|
console.error(`[Epic:组件${p.componentId}函数(${p.methodName})]执行异常:`, P);
|
|
96
95
|
}
|
|
97
96
|
}
|
|
98
|
-
function
|
|
97
|
+
function b(p = !0) {
|
|
99
98
|
o.value = p;
|
|
100
99
|
}
|
|
101
100
|
function g(p) {
|
|
@@ -103,25 +102,25 @@ function ze() {
|
|
|
103
102
|
s.value = E.map(($) => $.id);
|
|
104
103
|
}
|
|
105
104
|
function D(p, E = "default") {
|
|
106
|
-
if (
|
|
107
|
-
const $ =
|
|
105
|
+
if (f[E]) {
|
|
106
|
+
const $ = f[E];
|
|
108
107
|
pe(p, $);
|
|
109
108
|
}
|
|
110
|
-
|
|
109
|
+
f[E] = p;
|
|
111
110
|
}
|
|
112
111
|
function M(p, E = "default") {
|
|
113
|
-
if (
|
|
114
|
-
pe(
|
|
112
|
+
if (f[E]) {
|
|
113
|
+
pe(f[E], p, !1);
|
|
115
114
|
return;
|
|
116
115
|
}
|
|
117
|
-
|
|
116
|
+
f[E] = p;
|
|
118
117
|
}
|
|
119
118
|
return {
|
|
120
119
|
componentInstances: e,
|
|
121
120
|
funcs: n,
|
|
122
121
|
isDesignMode: o,
|
|
123
122
|
defaultComponentIds: s,
|
|
124
|
-
forms:
|
|
123
|
+
forms: f,
|
|
125
124
|
addFormData: D,
|
|
126
125
|
setFormData: M,
|
|
127
126
|
getComponentInstance: a,
|
|
@@ -131,14 +130,14 @@ function ze() {
|
|
|
131
130
|
removeComponentInstance: i,
|
|
132
131
|
setMethods: w,
|
|
133
132
|
doActions: _,
|
|
134
|
-
setDesignMode:
|
|
133
|
+
setDesignMode: b,
|
|
135
134
|
setDefaultComponentIds: g
|
|
136
135
|
};
|
|
137
136
|
}
|
|
138
137
|
function dt() {
|
|
139
138
|
const e = F([]), n = F([]), o = F(null);
|
|
140
139
|
let s = 0;
|
|
141
|
-
function
|
|
140
|
+
function f(w, A = "插入组件") {
|
|
142
141
|
const _ = Date.now();
|
|
143
142
|
s + 150 > _ || (s = _, o.value != null && (e.value.push(o.value), n.value.splice(0, n.value.length)), o.value = {
|
|
144
143
|
type: A,
|
|
@@ -164,7 +163,7 @@ function dt() {
|
|
|
164
163
|
recordList: e,
|
|
165
164
|
undoList: n,
|
|
166
165
|
currentRecord: o,
|
|
167
|
-
push:
|
|
166
|
+
push: f,
|
|
168
167
|
undo: a,
|
|
169
168
|
redo: v,
|
|
170
169
|
reset: i
|
|
@@ -178,8 +177,8 @@ const ft = /* @__PURE__ */ fe({
|
|
|
178
177
|
},
|
|
179
178
|
emits: ["updateFormItemRef"],
|
|
180
179
|
setup(e, { emit: n }) {
|
|
181
|
-
const o =
|
|
182
|
-
|
|
180
|
+
const o = k.getComponent("form-item"), s = e, f = n, a = F(), v = () => {
|
|
181
|
+
f("updateFormItemRef", a.value);
|
|
183
182
|
};
|
|
184
183
|
return (i, w) => s.hasFormItem ? (Y(), ae(W(o), xe({
|
|
185
184
|
key: 0,
|
|
@@ -188,10 +187,10 @@ const ft = /* @__PURE__ */ fe({
|
|
|
188
187
|
onVnodeMounted: v
|
|
189
188
|
}, s.formItemProps), {
|
|
190
189
|
default: Z(() => [
|
|
191
|
-
|
|
190
|
+
q(i.$slots, "default")
|
|
192
191
|
]),
|
|
193
192
|
_: 3
|
|
194
|
-
}, 16, ["onVnodeMounted"])) :
|
|
193
|
+
}, 16, ["onVnodeMounted"])) : q(i.$slots, "default", { key: 1 });
|
|
195
194
|
}
|
|
196
195
|
}), pt = {
|
|
197
196
|
key: 0,
|
|
@@ -211,15 +210,15 @@ const ft = /* @__PURE__ */ fe({
|
|
|
211
210
|
},
|
|
212
211
|
emits: ["update:modelValue", "change", "update:dynamicId"],
|
|
213
212
|
setup(e, { emit: n }) {
|
|
214
|
-
const o = F(!1), s = F("加载中"), { proxy:
|
|
213
|
+
const o = F(!1), s = F("加载中"), { proxy: f } = ye(), a = e, v = F(null);
|
|
215
214
|
let i = se("formData", de({}));
|
|
216
215
|
const w = se("slots", {}), A = se("pageManager", {}), _ = se("disabled", { value: !1 }), m = se("ruleFieldPrefix", null), N = se("resetFormData", !1);
|
|
217
216
|
let t = de(ne(a.componentSchema));
|
|
218
217
|
p();
|
|
219
|
-
async function
|
|
218
|
+
async function b(r) {
|
|
220
219
|
try {
|
|
221
220
|
o.value = !0, s.value = "正在识别中...请稍等";
|
|
222
|
-
const
|
|
221
|
+
const S = {
|
|
223
222
|
url: r.callBackUrl,
|
|
224
223
|
headers: {
|
|
225
224
|
Authorization: "Bearer " + j.get("Admin-Token"),
|
|
@@ -227,23 +226,23 @@ const ft = /* @__PURE__ */ fe({
|
|
|
227
226
|
zone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
228
227
|
}
|
|
229
228
|
}, R = (r.callBackMethod || "").toLowerCase(), O = { [r.callBackField]: r.url.join(",") };
|
|
230
|
-
R === "get" ? (
|
|
231
|
-
let U = await ve(
|
|
232
|
-
r.callBackDataPath ?
|
|
233
|
-
i[
|
|
234
|
-
}), i[r.field + "-orcWarningInfo"] = "", r.validateParams.forEach((
|
|
235
|
-
i[
|
|
236
|
-
})), Object.assign(i,
|
|
237
|
-
} catch (
|
|
238
|
-
ct.error("OCR 识别回调处理失败:" +
|
|
229
|
+
R === "get" ? (S.method = "get", S.params = O) : (S.method = R || "post", S.data = O);
|
|
230
|
+
let U = await ve(S), d = {};
|
|
231
|
+
r.callBackDataPath ? d = r.callBackDataPath.split(".").reduce((G, Q) => G[Q], U.data) : d = U.data, r.validate && (r.validateParams.forEach((z) => {
|
|
232
|
+
i[z.value] = i.orcWarningInfo__copy_data[z.value];
|
|
233
|
+
}), i[r.field + "-orcWarningInfo"] = "", r.validateParams.forEach((z) => {
|
|
234
|
+
i[z.value] && d[z.value] !== i[z.value] && d[z.value] && (a.componentSchema.componentProps.validateStatus = !0, i[r.field + "-orcWarningInfo"] ? i[r.field + "-orcWarningInfo"] = i[r.field + "-orcWarningInfo"] + "," + z.label + "已从" + i[z.value] + "改为" + d[z.value] : i[r.field + "-orcWarningInfo"] = z.label + "已从" + i[z.value] + "改为" + d[z.value]);
|
|
235
|
+
})), Object.assign(i, d);
|
|
236
|
+
} catch (S) {
|
|
237
|
+
ct.error("OCR 识别回调处理失败:" + S.message);
|
|
239
238
|
} finally {
|
|
240
239
|
o.value = !1, s.value = "加载中";
|
|
241
240
|
}
|
|
242
241
|
}
|
|
243
|
-
async function g({ value: r, field:
|
|
242
|
+
async function g({ value: r, field: S, fillDataSource: R, fillDataParams: O }) {
|
|
244
243
|
try {
|
|
245
244
|
o.value = !0;
|
|
246
|
-
const
|
|
245
|
+
const d = (await ve({
|
|
247
246
|
url: a.sourceDateUrl,
|
|
248
247
|
method: "get",
|
|
249
248
|
params: {
|
|
@@ -257,16 +256,16 @@ const ft = /* @__PURE__ */ fe({
|
|
|
257
256
|
//时区
|
|
258
257
|
}
|
|
259
258
|
})).data.data;
|
|
260
|
-
let
|
|
261
|
-
url:
|
|
262
|
-
method:
|
|
263
|
-
data:
|
|
264
|
-
params:
|
|
265
|
-
...JSON.parse(
|
|
266
|
-
[
|
|
267
|
-
} : { [
|
|
259
|
+
let z = await ve({
|
|
260
|
+
url: d.url,
|
|
261
|
+
method: d.method,
|
|
262
|
+
data: d.body ? JSON.parse(d.body) : {},
|
|
263
|
+
params: d.params ? {
|
|
264
|
+
...JSON.parse(d.params),
|
|
265
|
+
[S]: r
|
|
266
|
+
} : { [S]: r },
|
|
268
267
|
headers: {
|
|
269
|
-
...JSON.parse(
|
|
268
|
+
...JSON.parse(d.headers),
|
|
270
269
|
Authorization: "Bearer " + j.get("Admin-Token"),
|
|
271
270
|
lang: j.get("saas-locale") || "zh-CN",
|
|
272
271
|
//语言
|
|
@@ -274,13 +273,13 @@ const ft = /* @__PURE__ */ fe({
|
|
|
274
273
|
//时区
|
|
275
274
|
}
|
|
276
275
|
});
|
|
277
|
-
if (
|
|
278
|
-
let he =
|
|
276
|
+
if (d && (d != null && d.dataPath)) {
|
|
277
|
+
let he = d.dataPath.split(".").reduce((we, Ke) => we[Ke], z.data);
|
|
279
278
|
O.split(",").forEach((we) => {
|
|
280
279
|
i[we] = he[we];
|
|
281
280
|
});
|
|
282
281
|
} else {
|
|
283
|
-
let G =
|
|
282
|
+
let G = z.data;
|
|
284
283
|
O.split(",").forEach((Q) => {
|
|
285
284
|
i[Q] = G[Q];
|
|
286
285
|
});
|
|
@@ -295,7 +294,6 @@ const ft = /* @__PURE__ */ fe({
|
|
|
295
294
|
async function D(r) {
|
|
296
295
|
if (["cascader", "checkbox", "select", "radio", "ocr-select-page"].includes(r.type) && r.componentProps.dynamicId && a.sourceDateUrl) {
|
|
297
296
|
const O = (await ve({
|
|
298
|
-
// || "http://192.168.28.205:3000/dev-api/data-source
|
|
299
297
|
url: a.sourceDateUrl,
|
|
300
298
|
method: "get",
|
|
301
299
|
params: {
|
|
@@ -324,28 +322,28 @@ const ft = /* @__PURE__ */ fe({
|
|
|
324
322
|
}
|
|
325
323
|
});
|
|
326
324
|
if (O && (O != null && O.dataPath)) {
|
|
327
|
-
const
|
|
328
|
-
r.componentProps.options = M(
|
|
325
|
+
const z = O.dataPath.split(".").reduce((G, Q) => G[Q], U.data);
|
|
326
|
+
r.componentProps.options = M(z, O.dataKey, O.dataValue);
|
|
329
327
|
} else
|
|
330
328
|
r.componentProps.options = M(U.data, O.dataKey, O.dataValue);
|
|
331
329
|
return r;
|
|
332
330
|
}
|
|
333
331
|
return r;
|
|
334
332
|
}
|
|
335
|
-
function M(r,
|
|
333
|
+
function M(r, S, R) {
|
|
336
334
|
return r && Object.prototype.toString.call(r) === "[object Array]" ? r.map((O) => O.children && O.children.length ? {
|
|
337
|
-
label: O[
|
|
335
|
+
label: O[S],
|
|
338
336
|
value: O[R] + "",
|
|
339
|
-
children: M(O.children,
|
|
337
|
+
children: M(O.children, S, R)
|
|
340
338
|
} : {
|
|
341
|
-
label: O[
|
|
339
|
+
label: O[S],
|
|
342
340
|
value: O[R] + ""
|
|
343
341
|
}) : [];
|
|
344
342
|
}
|
|
345
343
|
K(
|
|
346
344
|
() => a.componentSchema,
|
|
347
345
|
(r) => {
|
|
348
|
-
|
|
346
|
+
ze(t, r, ["children"]) || (pe(t, ne(r)), p());
|
|
349
347
|
},
|
|
350
348
|
{
|
|
351
349
|
deep: !0
|
|
@@ -358,10 +356,10 @@ const ft = /* @__PURE__ */ fe({
|
|
|
358
356
|
const E = n, $ = F(), P = F(), y = (r) => {
|
|
359
357
|
P.value = r;
|
|
360
358
|
}, H = Ze();
|
|
361
|
-
Object.keys(H).length &&
|
|
362
|
-
const
|
|
363
|
-
var r,
|
|
364
|
-
return (r = t.componentProps) != null && r.hidden ? !1 : typeof t.show == "boolean" ? t.show : ((
|
|
359
|
+
Object.keys(H).length && X("nodeAttrs", H);
|
|
360
|
+
const J = Re(null), I = ee(() => {
|
|
361
|
+
var r, S;
|
|
362
|
+
return (r = t.componentProps) != null && r.hidden ? !1 : typeof t.show == "boolean" ? t.show : ((S = t.show) == null ? void 0 : S.call(t, { values: i })) ?? !0;
|
|
365
363
|
}), l = ee(() => {
|
|
366
364
|
var O;
|
|
367
365
|
const r = I.value && ((O = t.rules) == null ? void 0 : O.map((U) => ({
|
|
@@ -369,20 +367,20 @@ const ft = /* @__PURE__ */ fe({
|
|
|
369
367
|
validator: U.validator && A.funcs.value[U.validator]
|
|
370
368
|
// 自定义校验函数
|
|
371
369
|
})));
|
|
372
|
-
let
|
|
373
|
-
a.ruleField ?
|
|
370
|
+
let S = t.field;
|
|
371
|
+
a.ruleField ? S = a.ruleField : m && t.field && (S = ne(m), S.push(t.field));
|
|
374
372
|
const R = {
|
|
375
373
|
...t,
|
|
376
374
|
rules: r,
|
|
377
375
|
rule: r,
|
|
378
|
-
field:
|
|
376
|
+
field: S
|
|
379
377
|
};
|
|
380
378
|
return R.children && delete R.children, R;
|
|
381
379
|
}), B = ee(() => {
|
|
382
380
|
var R, O, U;
|
|
383
|
-
const r = ((R = c.value) == null ? void 0 : R.bindModel) ?? "modelValue",
|
|
384
|
-
return t.on && Object.keys(t.on).forEach((
|
|
385
|
-
|
|
381
|
+
const r = ((R = c.value) == null ? void 0 : R.bindModel) ?? "modelValue", S = {};
|
|
382
|
+
return t.on && Object.keys(t.on).forEach((d) => {
|
|
383
|
+
S[`on${st(d)}`] = (...z) => A.doActions(t.on[d], ...z);
|
|
386
384
|
}), t.type === "selectpage" && (t.componentProps.defaultData = {
|
|
387
385
|
value: i[t.field],
|
|
388
386
|
label: i[i[t.field]]
|
|
@@ -393,9 +391,9 @@ const ft = /* @__PURE__ */ fe({
|
|
|
393
391
|
// 为了避免禁用对超链接输入框点击的影响
|
|
394
392
|
disabled: a.componentSchema.type === "input" && a.componentSchema.componentProps && ((O = a.componentSchema.componentProps) != null && O.isLink) ? !1 : (_ == null ? void 0 : _.value) || ((U = t.componentProps) == null ? void 0 : U.disabled),
|
|
395
393
|
bindModel: r,
|
|
396
|
-
...
|
|
394
|
+
...S
|
|
397
395
|
};
|
|
398
|
-
}), c = ee(() =>
|
|
396
|
+
}), c = ee(() => k.getComponentConfingByType(t.type) ?? null);
|
|
399
397
|
Ee(() => {
|
|
400
398
|
v.value = a.modelValue ?? i[t.field ?? ""];
|
|
401
399
|
}), K(
|
|
@@ -411,26 +409,26 @@ const ft = /* @__PURE__ */ fe({
|
|
|
411
409
|
{ immediate: !0 }
|
|
412
410
|
);
|
|
413
411
|
function u() {
|
|
414
|
-
var
|
|
415
|
-
const r = $.value ||
|
|
416
|
-
t != null && t.id && r && ((t.input || t.type === "table" && t.field || t.type === "card" && t.field && t.multiple) && (r.setValue = h, r.getValue = () => i[t.field] || a.modelValue), r.setAttr = (R, O) => (t.componentProps || (t.componentProps = {}), t.componentProps[R] = O), r.getAttr = (R) => t.componentProps[R], A.addComponentInstance(t == null ? void 0 : t.id, r), (
|
|
412
|
+
var S;
|
|
413
|
+
const r = $.value || f;
|
|
414
|
+
t != null && t.id && r && ((t.input || t.type === "table" && t.field || t.type === "card" && t.field && t.multiple) && (r.setValue = h, r.getValue = () => i[t.field] || a.modelValue), r.setAttr = (R, O) => (t.componentProps || (t.componentProps = {}), t.componentProps[R] = O), r.getAttr = (R) => t.componentProps[R], A.addComponentInstance(t == null ? void 0 : t.id, r), (S = c.value) != null && S.defaultSchema.input && t.noFormItem !== !0 && P.value && A.addComponentInstance((t == null ? void 0 : t.id) + "formItem", P.value));
|
|
417
415
|
}
|
|
418
416
|
function C() {
|
|
419
417
|
var r;
|
|
420
418
|
t.id && (A.removeComponentInstance(t == null ? void 0 : t.id), (r = c.value) != null && r.defaultSchema.input && t.noFormItem !== !0 && A.removeComponentInstance((t == null ? void 0 : t.id) + "formItem"));
|
|
421
419
|
}
|
|
422
420
|
async function V() {
|
|
423
|
-
var
|
|
424
|
-
if (t = await D(t), typeof ((
|
|
421
|
+
var S, R, O;
|
|
422
|
+
if (t = await D(t), typeof ((S = t.componentProps) == null ? void 0 : S.defaultValue) < "u") {
|
|
425
423
|
const U = A.isDesignMode.value ? (R = t.componentProps) == null ? void 0 : R.defaultValue : i[t.field] ?? ((O = t.componentProps) == null ? void 0 : O.defaultValue);
|
|
426
424
|
h(ne(U));
|
|
427
425
|
}
|
|
428
426
|
if (t.type === "slot") {
|
|
429
427
|
const U = t.slotName;
|
|
430
428
|
if (!U) return;
|
|
431
|
-
|
|
429
|
+
J.value = fe({
|
|
432
430
|
setup() {
|
|
433
|
-
return () =>
|
|
431
|
+
return () => q(w, U, {
|
|
434
432
|
componentSchema: t,
|
|
435
433
|
model: i
|
|
436
434
|
});
|
|
@@ -438,20 +436,20 @@ const ft = /* @__PURE__ */ fe({
|
|
|
438
436
|
});
|
|
439
437
|
return;
|
|
440
438
|
}
|
|
441
|
-
const r =
|
|
439
|
+
const r = k.getComponent(t.type);
|
|
442
440
|
if (!r) {
|
|
443
441
|
console.error(`组件${t.type}未注册`);
|
|
444
442
|
return;
|
|
445
443
|
}
|
|
446
444
|
if (typeof r == "function") {
|
|
447
445
|
const U = await r();
|
|
448
|
-
|
|
446
|
+
J.value = U.default ?? U;
|
|
449
447
|
} else
|
|
450
|
-
r && (
|
|
448
|
+
r && (J.value = r);
|
|
451
449
|
}
|
|
452
450
|
function x(r) {
|
|
453
|
-
Object.prototype.toString.call(r) === "[object Array]" ? r.forEach((
|
|
454
|
-
i[
|
|
451
|
+
Object.prototype.toString.call(r) === "[object Array]" ? r.forEach((S) => {
|
|
452
|
+
i[S.value] = S.label;
|
|
455
453
|
}) : i[r.value] = r.label, a != null && a.id ? re.emit("updateformData" + (a == null ? void 0 : a.id), i) : re.emit("updateformData", i);
|
|
456
454
|
}
|
|
457
455
|
function h(r) {
|
|
@@ -464,7 +462,7 @@ const ft = /* @__PURE__ */ fe({
|
|
|
464
462
|
return K(
|
|
465
463
|
() => t,
|
|
466
464
|
async (r) => {
|
|
467
|
-
const
|
|
465
|
+
const S = JSON.stringify({
|
|
468
466
|
...r,
|
|
469
467
|
children: void 0,
|
|
470
468
|
componentProps: {
|
|
@@ -472,32 +470,32 @@ const ft = /* @__PURE__ */ fe({
|
|
|
472
470
|
options: null
|
|
473
471
|
}
|
|
474
472
|
});
|
|
475
|
-
if (
|
|
473
|
+
if (S === T)
|
|
476
474
|
return !1;
|
|
477
|
-
T =
|
|
475
|
+
T = S, V();
|
|
478
476
|
},
|
|
479
477
|
{
|
|
480
478
|
immediate: !0,
|
|
481
479
|
deep: !0
|
|
482
480
|
}
|
|
483
|
-
), Ue(C), (r,
|
|
481
|
+
), Ue(C), (r, S) => {
|
|
484
482
|
var O;
|
|
485
483
|
const R = Ge("ENode");
|
|
486
484
|
return Y(), ge(Te, null, [
|
|
487
485
|
o.value ? (Y(), ge("div", pt, [
|
|
488
486
|
te("div", mt, [
|
|
489
|
-
|
|
487
|
+
S[1] || (S[1] = Qe('<div class="epic-loading-wave" data-v-9341bca4><div class="wave" data-v-9341bca4></div><div class="wave" data-v-9341bca4></div><div class="wave" data-v-9341bca4></div><div class="wave" data-v-9341bca4></div><div class="wave" data-v-9341bca4></div></div>', 1)),
|
|
490
488
|
te("span", ht, Ye(s.value), 1)
|
|
491
489
|
])
|
|
492
490
|
])) : Ne("", !0),
|
|
493
|
-
|
|
491
|
+
J.value && I.value ? (Y(), ae(ft, {
|
|
494
492
|
key: 1,
|
|
495
493
|
hasFormItem: W(t).noFormItem !== !0 && ((O = c.value) == null ? void 0 : O.defaultSchema.input),
|
|
496
494
|
formItemProps: l.value,
|
|
497
495
|
onUpdateFormItemRef: y
|
|
498
496
|
}, {
|
|
499
497
|
default: Z(() => [
|
|
500
|
-
(Y(), ae(
|
|
498
|
+
(Y(), ae(ke(J.value), xe({
|
|
501
499
|
ref_key: "componentInstance",
|
|
502
500
|
ref: $,
|
|
503
501
|
onVnodeMounted: u,
|
|
@@ -505,11 +503,11 @@ const ft = /* @__PURE__ */ fe({
|
|
|
505
503
|
sourceDateUrl: a.sourceDateUrl
|
|
506
504
|
}, { ...B.value }, {
|
|
507
505
|
[B.value.bindModel]: v.value,
|
|
508
|
-
["onUpdate:" + B.value.bindModel]:
|
|
506
|
+
["onUpdate:" + B.value.bindModel]: S[0] || (S[0] = (U) => v.value = U),
|
|
509
507
|
[`onUpdate:${B.value.bindModel}` || ""]: h,
|
|
510
508
|
"onUpdate:modelValueLabel": x,
|
|
511
509
|
"onUpdate:dynamicId": L,
|
|
512
|
-
"onUpdate:ocrData":
|
|
510
|
+
"onUpdate:ocrData": b,
|
|
513
511
|
"onUpdate:selectFillData": g
|
|
514
512
|
}), {
|
|
515
513
|
node: Z((U) => [
|
|
@@ -520,7 +518,7 @@ const ft = /* @__PURE__ */ fe({
|
|
|
520
518
|
}), null, 16, ["id", "sourceDateUrl"])
|
|
521
519
|
]),
|
|
522
520
|
"edit-node": Z(() => [
|
|
523
|
-
|
|
521
|
+
q(r.$slots, "edit-node", {}, void 0, !0)
|
|
524
522
|
]),
|
|
525
523
|
_: 3
|
|
526
524
|
}, 16, ["model", "sourceDateUrl"]))
|
|
@@ -530,45 +528,45 @@ const ft = /* @__PURE__ */ fe({
|
|
|
530
528
|
], 64);
|
|
531
529
|
};
|
|
532
530
|
}
|
|
533
|
-
}), gt = /* @__PURE__ */ ut(vt, [["__scopeId", "data-v-
|
|
531
|
+
}), gt = /* @__PURE__ */ ut(vt, [["__scopeId", "data-v-9341bca4"]]);
|
|
534
532
|
function yt() {
|
|
535
|
-
const e = F(!1), n =
|
|
533
|
+
const e = F(!1), n = Je(), o = F({});
|
|
536
534
|
function s() {
|
|
537
535
|
return new Promise((t) => {
|
|
538
536
|
if (e.value)
|
|
539
537
|
t();
|
|
540
538
|
else {
|
|
541
|
-
const
|
|
542
|
-
|
|
539
|
+
const b = K(e, () => {
|
|
540
|
+
b(), t();
|
|
543
541
|
});
|
|
544
542
|
}
|
|
545
543
|
});
|
|
546
544
|
}
|
|
547
|
-
async function
|
|
545
|
+
async function f(t = "default") {
|
|
548
546
|
var g;
|
|
549
547
|
await s();
|
|
550
|
-
const
|
|
551
|
-
if (!
|
|
552
|
-
return
|
|
548
|
+
const b = (g = o.value) == null ? void 0 : g[t];
|
|
549
|
+
if (!b) throw new Error(`表单 [name=${t}] 不存在`);
|
|
550
|
+
return b;
|
|
553
551
|
}
|
|
554
|
-
async function a(t,
|
|
555
|
-
const g = await
|
|
556
|
-
return ne(await
|
|
552
|
+
async function a(t, b) {
|
|
553
|
+
const g = await f(t);
|
|
554
|
+
return ne(await b(g));
|
|
557
555
|
}
|
|
558
556
|
async function v(t = "default") {
|
|
559
|
-
return await a(t, (
|
|
557
|
+
return await a(t, (b) => b.getData());
|
|
560
558
|
}
|
|
561
|
-
function i(t,
|
|
559
|
+
function i(t, b = "default", g = void 0) {
|
|
562
560
|
var D, M;
|
|
563
561
|
if (g && Object.keys(g).length) {
|
|
564
562
|
let p = function(y) {
|
|
565
563
|
let H = [];
|
|
566
|
-
return y.forEach((
|
|
567
|
-
|
|
564
|
+
return y.forEach((J) => {
|
|
565
|
+
J.children && (H = [...H, ...p(J.children)]), H.push(J);
|
|
568
566
|
}), H;
|
|
569
567
|
}, $ = function(y) {
|
|
570
|
-
var
|
|
571
|
-
let H = p((
|
|
568
|
+
var J;
|
|
569
|
+
let H = p((J = g == null ? void 0 : g.schemas[0]) == null ? void 0 : J.children);
|
|
572
570
|
return Object.keys(y).forEach((I) => {
|
|
573
571
|
var c, u, C, V, x, h, L;
|
|
574
572
|
const l = H.find((T) => T.field === I), B = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
@@ -576,44 +574,44 @@ function yt() {
|
|
|
576
574
|
y[I] = (x = y[I]) == null ? void 0 : x.split(",");
|
|
577
575
|
else if ((l == null ? void 0 : l.type) === "cascader" && ((L = (h = l == null ? void 0 : l.componentProps) == null ? void 0 : h.props) != null && L.multiple) && typeof y[I] == "string")
|
|
578
576
|
y[I].indexOf(";") === -1 && y[I].indexOf(";") === -1 ? y[I][y[I]] : y[I].indexOf(";") > -1 ? y[I] = y[I].split(";").map((T) => T.split(",")) : y[I].indexOf(";") === -1 ? y[I] = y[I].split(",") : y[I].indexOf(";") > -1 ? y[I] = y[I].split(";").map((T) => T.split(",")) : y[I].indexOf(";") === -1 && (y[I] = y[I].split(","));
|
|
579
|
-
else if (((l == null ? void 0 : l.type) === "upload-image" || (l == null ? void 0 : l.type) === "upload-file") && typeof y[I] == "string") {
|
|
577
|
+
else if (((l == null ? void 0 : l.type) === "upload-image" || (l == null ? void 0 : l.type) === "upload-file" || (l == null ? void 0 : l.type) === "ocr-upload") && typeof y[I] == "string") {
|
|
580
578
|
let T = [];
|
|
581
|
-
Object.entries(y).forEach(([r,
|
|
582
|
-
y[I] ===
|
|
583
|
-
}), y[I] = y[I].split(",").map((r,
|
|
579
|
+
Object.entries(y).forEach(([r, S]) => {
|
|
580
|
+
y[I] === S && r !== l.field && r.indexOf("@") > -1 && r.indexOf(I) > -1 && (T = r.split("@")[1].split(","));
|
|
581
|
+
}), y[I] = y[I].split(",").map((r, S) => ({
|
|
584
582
|
url: r,
|
|
585
|
-
name: T[
|
|
583
|
+
name: T[S] || r
|
|
586
584
|
}));
|
|
587
585
|
} else (l == null ? void 0 : l.type) === "number" || (l == null ? void 0 : l.type) === "slider" ? y[I] = Number(y[I]) : (l == null ? void 0 : l.type) === "switch" && (y[I] = typeof y[I] == "boolean" ? y[I] : y[I].indexOf("true") > -1);
|
|
588
586
|
}), y;
|
|
589
587
|
}(t);
|
|
590
|
-
n.setFormData($,
|
|
591
|
-
const P = (D = o.value) == null ? void 0 : D[
|
|
588
|
+
console.log("%c [ data1 ]-131", "font-size:13px; background:pink; color:#bf2c9f;", $), n.setFormData($, b);
|
|
589
|
+
const P = (D = o.value) == null ? void 0 : D[b];
|
|
592
590
|
P == null || P.clearValidate();
|
|
593
591
|
} else {
|
|
594
|
-
n.setFormData(t,
|
|
595
|
-
const p = (M = o.value) == null ? void 0 : M[
|
|
592
|
+
n.setFormData(t, b);
|
|
593
|
+
const p = (M = o.value) == null ? void 0 : M[b];
|
|
596
594
|
p == null || p.clearValidate();
|
|
597
595
|
}
|
|
598
596
|
}
|
|
599
597
|
async function w(t = "default") {
|
|
600
|
-
return await a(t, async (
|
|
598
|
+
return await a(t, async (b) => (await b.validate(), await b.getData()));
|
|
601
599
|
}
|
|
602
600
|
async function A(t) {
|
|
603
601
|
await s();
|
|
604
|
-
const
|
|
602
|
+
const b = {};
|
|
605
603
|
for (const g in o.value) {
|
|
606
604
|
const D = o.value[g];
|
|
607
|
-
D && (
|
|
605
|
+
D && (b[g] = ne(await t(D)));
|
|
608
606
|
}
|
|
609
|
-
return
|
|
607
|
+
return b;
|
|
610
608
|
}
|
|
611
609
|
async function _() {
|
|
612
610
|
return await A((t) => t.getData());
|
|
613
611
|
}
|
|
614
612
|
function m(t) {
|
|
615
|
-
for (const
|
|
616
|
-
i(t[
|
|
613
|
+
for (const b in t)
|
|
614
|
+
i(t[b], b);
|
|
617
615
|
}
|
|
618
616
|
async function N() {
|
|
619
617
|
return await A(async (t) => (await t.validate(), await t.getData()));
|
|
@@ -628,13 +626,13 @@ function yt() {
|
|
|
628
626
|
getForms: _,
|
|
629
627
|
setForms: m,
|
|
630
628
|
validateAll: N,
|
|
631
|
-
getFormInstance:
|
|
629
|
+
getFormInstance: f
|
|
632
630
|
};
|
|
633
631
|
}
|
|
634
632
|
const wt = {
|
|
635
633
|
key: 0,
|
|
636
634
|
class: "epic-loading-box"
|
|
637
|
-
},
|
|
635
|
+
}, St = { class: "epic-builder-main" }, bt = { class: "epic-loading-box" }, Dt = /* @__PURE__ */ fe({
|
|
638
636
|
__name: "builder",
|
|
639
637
|
props: {
|
|
640
638
|
pageSchema: {},
|
|
@@ -645,7 +643,7 @@ const wt = {
|
|
|
645
643
|
},
|
|
646
644
|
emits: ["change", "ready"],
|
|
647
645
|
setup(e, { expose: n, emit: o }) {
|
|
648
|
-
const s = ue(() => import("./index-
|
|
646
|
+
const s = ue(() => import("./index-Dz39c928.js")), f = o, a = F([]), v = F({}), { ready: i, pageManager: w, forms: A, getData: _, setData: m, validate: N, getForms: t, setForms: b, validateAll: g, getFormInstance: D } = yt(), M = e, p = de({
|
|
649
647
|
schemas: []
|
|
650
648
|
});
|
|
651
649
|
K(
|
|
@@ -661,7 +659,7 @@ const wt = {
|
|
|
661
659
|
() => M.formData,
|
|
662
660
|
(c) => {
|
|
663
661
|
if (c) {
|
|
664
|
-
let u =
|
|
662
|
+
let u = J(c);
|
|
665
663
|
v.value = u, m(u);
|
|
666
664
|
}
|
|
667
665
|
},
|
|
@@ -683,9 +681,9 @@ const wt = {
|
|
|
683
681
|
function V(x, h) {
|
|
684
682
|
if (x.type === "card" && x.multiple && x.field && Array.isArray(h[x.field]))
|
|
685
683
|
return h[x.field].map((T) => {
|
|
686
|
-
var
|
|
684
|
+
var S;
|
|
687
685
|
const r = C({ ...x, multiple: !0 });
|
|
688
|
-
return r.children = (
|
|
686
|
+
return r.children = (S = r.children) == null ? void 0 : S.map((R) => V(R, T)).flat(), r;
|
|
689
687
|
});
|
|
690
688
|
const L = C(x);
|
|
691
689
|
return Array.isArray(L.children) && (L.children = L.children.map((T) => V(T, h)).flat()), L;
|
|
@@ -728,28 +726,28 @@ const wt = {
|
|
|
728
726
|
dataObj: V
|
|
729
727
|
};
|
|
730
728
|
}
|
|
731
|
-
function
|
|
729
|
+
function J(c) {
|
|
732
730
|
let u = E(M.pageSchema.schemas[0].children);
|
|
733
731
|
a.value = u.filter((h) => h.type === "card" && h.multiple);
|
|
734
732
|
const C = $(M.pageSchema.schemas[0].children, c);
|
|
735
733
|
let { obj: V, dataObj: x } = H(C, c, a.value);
|
|
736
734
|
return c = x, M.pageSchema.schemas[0].children = V, Object.keys(c).forEach((h) => {
|
|
737
|
-
var L, T, r,
|
|
735
|
+
var L, T, r, S, R, O, U;
|
|
738
736
|
if (h.indexOf("@") < 0) {
|
|
739
|
-
const
|
|
740
|
-
if ((
|
|
737
|
+
const d = u.find((G) => G.field === h), z = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
738
|
+
if ((d && (d == null ? void 0 : d.type) === "checkbox" || (d == null ? void 0 : d.type) === "select" && ((L = d == null ? void 0 : d.componentProps) != null && L.multiple) || (d == null ? void 0 : d.type) === "cascader" && !((r = (T = d == null ? void 0 : d.componentProps) == null ? void 0 : T.props) != null && r.multiple) || (d == null ? void 0 : d.type) === "date" && z.includes((S = d == null ? void 0 : d.componentProps) == null ? void 0 : S.type)) && typeof c[h] == "string")
|
|
741
739
|
c[h] = (R = c[h]) == null ? void 0 : R.split(",");
|
|
742
|
-
else if ((
|
|
740
|
+
else if ((d == null ? void 0 : d.type) === "cascader" && ((U = (O = d == null ? void 0 : d.componentProps) == null ? void 0 : O.props) != null && U.multiple) && typeof c[h] == "string")
|
|
743
741
|
c[h].indexOf(";") > -1 ? c[h] = c[h].split(";").map((G) => G.split(",")) : c[h] = c[h].split(","), c[h].indexOf(";") > -1 ? c[h] = c[h].split(";").map((G) => G.split(",")) : c[h] = c[h].split(",");
|
|
744
|
-
else if (((
|
|
742
|
+
else if (((d == null ? void 0 : d.type) === "upload-image" || (d == null ? void 0 : d.type) === "upload-file" || (d == null ? void 0 : d.type) === "ocr-upload") && typeof c[h] == "string") {
|
|
745
743
|
let G = [];
|
|
746
744
|
Object.entries(c).forEach(([Q, he]) => {
|
|
747
|
-
c[h] === he && Q !==
|
|
745
|
+
c[h] === he && Q !== d.field && Q.indexOf("@") > -1 && Q.indexOf(h) > -1 && (G = Q.split("@")[1].split(","));
|
|
748
746
|
}), c[h] = c[h].split(",").map((Q, he) => ({
|
|
749
747
|
url: Q,
|
|
750
748
|
name: G[he] || Q
|
|
751
749
|
}));
|
|
752
|
-
} else (
|
|
750
|
+
} else (d == null ? void 0 : d.type) === "number" || (d == null ? void 0 : d.type) === "slider" ? c[h] = Number(c[h]) : (d == null ? void 0 : d.type) === "switch" && (c[h] = typeof c[h] == "boolean" ? c[h] : c[h].indexOf("true") > -1);
|
|
753
751
|
}
|
|
754
752
|
}), c;
|
|
755
753
|
}
|
|
@@ -761,18 +759,18 @@ const wt = {
|
|
|
761
759
|
{
|
|
762
760
|
immediate: !0
|
|
763
761
|
}
|
|
764
|
-
),
|
|
762
|
+
), X("slots", qe()), X("pageManager", w), X("forms", A), X("pageSchema", p), X(
|
|
765
763
|
"disabled",
|
|
766
764
|
ee(() => M.disabled)
|
|
767
765
|
);
|
|
768
766
|
const I = ye(), l = I == null ? void 0 : I.proxy;
|
|
769
767
|
function B() {
|
|
770
768
|
ce(() => {
|
|
771
|
-
i.value = !0,
|
|
769
|
+
i.value = !0, f("ready", w), l && w.addComponentInstance("builder", l);
|
|
772
770
|
});
|
|
773
771
|
}
|
|
774
772
|
return re.on("updateformData" + (M.id ? M.id : ""), (c) => {
|
|
775
|
-
|
|
773
|
+
f("change", c);
|
|
776
774
|
}), n({
|
|
777
775
|
ready: i,
|
|
778
776
|
pageManager: w,
|
|
@@ -780,16 +778,16 @@ const wt = {
|
|
|
780
778
|
setData: m,
|
|
781
779
|
validate: N,
|
|
782
780
|
getForms: t,
|
|
783
|
-
setForms:
|
|
781
|
+
setForms: b,
|
|
784
782
|
validateAll: g,
|
|
785
783
|
getFormInstance: D
|
|
786
|
-
}), (c, u) => W(
|
|
784
|
+
}), (c, u) => W(k).initialized.value ? (Y(), ae(Be, {
|
|
787
785
|
key: 1,
|
|
788
786
|
onResolve: B
|
|
789
787
|
}, {
|
|
790
788
|
default: Z(() => [
|
|
791
|
-
te("div",
|
|
792
|
-
(Y(!0), ge(Te, null,
|
|
789
|
+
te("div", St, [
|
|
790
|
+
(Y(!0), ge(Te, null, Xe(p.schemas, (C, V) => (Y(), ae(W(gt), {
|
|
793
791
|
id: M.id,
|
|
794
792
|
key: V,
|
|
795
793
|
sourceDateUrl: M.sourceDateUrl,
|
|
@@ -798,7 +796,7 @@ const wt = {
|
|
|
798
796
|
])
|
|
799
797
|
]),
|
|
800
798
|
fallback: Z(() => [
|
|
801
|
-
te("div",
|
|
799
|
+
te("div", bt, [
|
|
802
800
|
oe(W(s))
|
|
803
801
|
])
|
|
804
802
|
]),
|
|
@@ -811,10 +809,10 @@ function Ce(e) {
|
|
|
811
809
|
}
|
|
812
810
|
function Et(e) {
|
|
813
811
|
let n = 0, o, s;
|
|
814
|
-
const
|
|
812
|
+
const f = () => {
|
|
815
813
|
n -= 1, s && n <= 0 && (s.stop(), o = void 0, s = void 0);
|
|
816
814
|
};
|
|
817
|
-
return (...a) => (n += 1, s || (s = je(!0), o = s.run(() => e(...a))), Ce(
|
|
815
|
+
return (...a) => (n += 1, s || (s = je(!0), o = s.run(() => e(...a))), Ce(f), o);
|
|
818
816
|
}
|
|
819
817
|
function ie(e) {
|
|
820
818
|
return typeof e == "function" ? e() : W(e);
|
|
@@ -825,8 +823,8 @@ const At = (e) => typeof e < "u", _t = Object.prototype.toString, It = (e) => _t
|
|
|
825
823
|
};
|
|
826
824
|
function Nt(e, n) {
|
|
827
825
|
function o(...s) {
|
|
828
|
-
return new Promise((
|
|
829
|
-
Promise.resolve(e(() => n.apply(this, s), { fn: n, thisArg: this, args: s })).then(
|
|
826
|
+
return new Promise((f, a) => {
|
|
827
|
+
Promise.resolve(e(() => n.apply(this, s), { fn: n, thisArg: this, args: s })).then(f).catch(a);
|
|
830
828
|
});
|
|
831
829
|
}
|
|
832
830
|
return o;
|
|
@@ -840,10 +838,10 @@ function $t(e = Le) {
|
|
|
840
838
|
function s() {
|
|
841
839
|
n.value = !0;
|
|
842
840
|
}
|
|
843
|
-
const
|
|
841
|
+
const f = (...a) => {
|
|
844
842
|
n.value && e(...a);
|
|
845
843
|
};
|
|
846
|
-
return { isActive: tt(n), pause: o, resume: s, eventFilter:
|
|
844
|
+
return { isActive: tt(n), pause: o, resume: s, eventFilter: f };
|
|
847
845
|
}
|
|
848
846
|
function Ft(e) {
|
|
849
847
|
return ye();
|
|
@@ -851,7 +849,7 @@ function Ft(e) {
|
|
|
851
849
|
function Pt(e, n, o = {}) {
|
|
852
850
|
const {
|
|
853
851
|
eventFilter: s = Le,
|
|
854
|
-
...
|
|
852
|
+
...f
|
|
855
853
|
} = o;
|
|
856
854
|
return K(
|
|
857
855
|
e,
|
|
@@ -859,19 +857,19 @@ function Pt(e, n, o = {}) {
|
|
|
859
857
|
s,
|
|
860
858
|
n
|
|
861
859
|
),
|
|
862
|
-
|
|
860
|
+
f
|
|
863
861
|
);
|
|
864
862
|
}
|
|
865
863
|
function Ct(e, n, o = {}) {
|
|
866
864
|
const {
|
|
867
865
|
eventFilter: s,
|
|
868
|
-
...
|
|
866
|
+
...f
|
|
869
867
|
} = o, { eventFilter: a, pause: v, resume: i, isActive: w } = $t(s);
|
|
870
868
|
return { stop: Pt(
|
|
871
869
|
e,
|
|
872
870
|
n,
|
|
873
871
|
{
|
|
874
|
-
...
|
|
872
|
+
...f,
|
|
875
873
|
eventFilter: a
|
|
876
874
|
}
|
|
877
875
|
), pause: v, resume: i, isActive: w };
|
|
@@ -883,7 +881,7 @@ function Vt(e = !1, n = {}) {
|
|
|
883
881
|
const {
|
|
884
882
|
truthyValue: o = !0,
|
|
885
883
|
falsyValue: s = !1
|
|
886
|
-
} = n,
|
|
884
|
+
} = n, f = et(e), a = F(e);
|
|
887
885
|
function v(i) {
|
|
888
886
|
if (arguments.length)
|
|
889
887
|
return a.value = i, a.value;
|
|
@@ -892,10 +890,10 @@ function Vt(e = !1, n = {}) {
|
|
|
892
890
|
return a.value = a.value === w ? ie(s) : w, a.value;
|
|
893
891
|
}
|
|
894
892
|
}
|
|
895
|
-
return
|
|
893
|
+
return f ? v : [a, v];
|
|
896
894
|
}
|
|
897
|
-
function
|
|
898
|
-
const s = K(e, (...
|
|
895
|
+
function pn(e, n, o) {
|
|
896
|
+
const s = K(e, (...f) => (ce(() => s()), n(...f)), o);
|
|
899
897
|
return s;
|
|
900
898
|
}
|
|
901
899
|
const me = Ot ? window : void 0;
|
|
@@ -905,20 +903,20 @@ function le(e) {
|
|
|
905
903
|
return (n = o == null ? void 0 : o.$el) != null ? n : o;
|
|
906
904
|
}
|
|
907
905
|
function $e(...e) {
|
|
908
|
-
let n, o, s,
|
|
909
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, s,
|
|
906
|
+
let n, o, s, f;
|
|
907
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, s, f] = e, n = me) : [n, o, s, f] = e, !n)
|
|
910
908
|
return xt;
|
|
911
909
|
Array.isArray(o) || (o = [o]), Array.isArray(s) || (s = [s]);
|
|
912
910
|
const a = [], v = () => {
|
|
913
911
|
a.forEach((_) => _()), a.length = 0;
|
|
914
912
|
}, i = (_, m, N, t) => (_.addEventListener(m, N, t), () => _.removeEventListener(m, N, t)), w = K(
|
|
915
|
-
() => [le(n), ie(
|
|
913
|
+
() => [le(n), ie(f)],
|
|
916
914
|
([_, m]) => {
|
|
917
915
|
if (v(), !_)
|
|
918
916
|
return;
|
|
919
917
|
const N = It(m) ? { ...m } : m;
|
|
920
918
|
a.push(
|
|
921
|
-
...o.flatMap((t) => s.map((
|
|
919
|
+
...o.flatMap((t) => s.map((b) => i(_, t, b, N)))
|
|
922
920
|
);
|
|
923
921
|
},
|
|
924
922
|
{ immediate: !0, flush: "post" }
|
|
@@ -934,12 +932,12 @@ function He(...e) {
|
|
|
934
932
|
let n, o, s = {};
|
|
935
933
|
e.length === 3 ? (n = e[0], o = e[1], s = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (n = !0, o = e[0], s = e[1]) : (n = e[0], o = e[1]) : (n = !0, o = e[0]);
|
|
936
934
|
const {
|
|
937
|
-
target:
|
|
935
|
+
target: f = me,
|
|
938
936
|
eventName: a = "keydown",
|
|
939
937
|
passive: v = !1,
|
|
940
938
|
dedupe: i = !1
|
|
941
939
|
} = s, w = Mt(n);
|
|
942
|
-
return $e(
|
|
940
|
+
return $e(f, a, (_) => {
|
|
943
941
|
_.repeat && ie(i) || w(_) && o(_);
|
|
944
942
|
}, v);
|
|
945
943
|
}
|
|
@@ -962,11 +960,11 @@ function Ut(e) {
|
|
|
962
960
|
function Tt(e) {
|
|
963
961
|
return JSON.parse(JSON.stringify(e));
|
|
964
962
|
}
|
|
965
|
-
const
|
|
966
|
-
function
|
|
967
|
-
return
|
|
963
|
+
const Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, be = "__vueuse_ssr_handlers__", Bt = /* @__PURE__ */ zt();
|
|
964
|
+
function zt() {
|
|
965
|
+
return be in Se || (Se[be] = Se[be] || {}), Se[be];
|
|
968
966
|
}
|
|
969
|
-
function
|
|
967
|
+
function Jt(e, n) {
|
|
970
968
|
return Bt[e] || n;
|
|
971
969
|
}
|
|
972
970
|
function Lt(e) {
|
|
@@ -1006,8 +1004,8 @@ const Wt = {
|
|
|
1006
1004
|
write: (e) => e.toISOString()
|
|
1007
1005
|
}
|
|
1008
1006
|
}, Me = "vueuse-storage";
|
|
1009
|
-
function
|
|
1010
|
-
var
|
|
1007
|
+
function mn(e, n, o, s = {}) {
|
|
1008
|
+
var f;
|
|
1011
1009
|
const {
|
|
1012
1010
|
flush: a = "pre",
|
|
1013
1011
|
deep: v = !0,
|
|
@@ -1020,11 +1018,11 @@ function hn(e, n, o, s = {}) {
|
|
|
1020
1018
|
onError: t = (l) => {
|
|
1021
1019
|
console.error(l);
|
|
1022
1020
|
},
|
|
1023
|
-
initOnMounted:
|
|
1021
|
+
initOnMounted: b
|
|
1024
1022
|
} = s, g = (_ ? Re : F)(typeof n == "function" ? n() : n);
|
|
1025
1023
|
if (!o)
|
|
1026
1024
|
try {
|
|
1027
|
-
o =
|
|
1025
|
+
o = Jt("getDefaultStorage", () => {
|
|
1028
1026
|
var l;
|
|
1029
1027
|
return (l = me) == null ? void 0 : l.localStorage;
|
|
1030
1028
|
})();
|
|
@@ -1033,14 +1031,14 @@ function hn(e, n, o, s = {}) {
|
|
|
1033
1031
|
}
|
|
1034
1032
|
if (!o)
|
|
1035
1033
|
return g;
|
|
1036
|
-
const D = ie(n), M = Lt(D), p = (
|
|
1034
|
+
const D = ie(n), M = Lt(D), p = (f = s.serializer) != null ? f : Wt[M], { pause: E, resume: $ } = Ct(
|
|
1037
1035
|
g,
|
|
1038
1036
|
() => y(g.value),
|
|
1039
1037
|
{ flush: a, deep: v, eventFilter: N }
|
|
1040
1038
|
);
|
|
1041
1039
|
m && i && We(() => {
|
|
1042
|
-
o instanceof Storage ? $e(m, "storage",
|
|
1043
|
-
}),
|
|
1040
|
+
o instanceof Storage ? $e(m, "storage", J) : $e(m, Me, I), b && J();
|
|
1041
|
+
}), b || J();
|
|
1044
1042
|
function P(l, B) {
|
|
1045
1043
|
if (m) {
|
|
1046
1044
|
const c = {
|
|
@@ -1076,7 +1074,7 @@ function hn(e, n, o, s = {}) {
|
|
|
1076
1074
|
return typeof A == "function" ? A(c, D) : M === "object" && !Array.isArray(c) ? { ...D, ...c } : c;
|
|
1077
1075
|
} else return typeof B != "string" ? B : p.read(B);
|
|
1078
1076
|
}
|
|
1079
|
-
function
|
|
1077
|
+
function J(l) {
|
|
1080
1078
|
if (!(l && l.storageArea !== o)) {
|
|
1081
1079
|
if (l && l.key == null) {
|
|
1082
1080
|
g.value = D;
|
|
@@ -1095,12 +1093,12 @@ function hn(e, n, o, s = {}) {
|
|
|
1095
1093
|
}
|
|
1096
1094
|
}
|
|
1097
1095
|
function I(l) {
|
|
1098
|
-
|
|
1096
|
+
J(l.detail);
|
|
1099
1097
|
}
|
|
1100
1098
|
return g;
|
|
1101
1099
|
}
|
|
1102
1100
|
function Ht(e, n, o = {}) {
|
|
1103
|
-
const { window: s = me, ...
|
|
1101
|
+
const { window: s = me, ...f } = o;
|
|
1104
1102
|
let a;
|
|
1105
1103
|
const v = Ut(() => s && "ResizeObserver" in s), i = () => {
|
|
1106
1104
|
a && (a.disconnect(), a = void 0);
|
|
@@ -1113,7 +1111,7 @@ function Ht(e, n, o = {}) {
|
|
|
1113
1111
|
if (i(), v.value && s) {
|
|
1114
1112
|
a = new ResizeObserver(n);
|
|
1115
1113
|
for (const N of m)
|
|
1116
|
-
N && a.observe(N,
|
|
1114
|
+
N && a.observe(N, f);
|
|
1117
1115
|
}
|
|
1118
1116
|
},
|
|
1119
1117
|
{ immediate: !0, flush: "post" }
|
|
@@ -1125,23 +1123,23 @@ function Ht(e, n, o = {}) {
|
|
|
1125
1123
|
stop: _
|
|
1126
1124
|
};
|
|
1127
1125
|
}
|
|
1128
|
-
function
|
|
1129
|
-
const { window: s = me, box:
|
|
1126
|
+
function hn(e, n = { width: 0, height: 0 }, o = {}) {
|
|
1127
|
+
const { window: s = me, box: f = "content-box" } = o, a = ee(() => {
|
|
1130
1128
|
var m, N;
|
|
1131
1129
|
return (N = (m = le(e)) == null ? void 0 : m.namespaceURI) == null ? void 0 : N.includes("svg");
|
|
1132
1130
|
}), v = F(n.width), i = F(n.height), { stop: w } = Ht(
|
|
1133
1131
|
e,
|
|
1134
1132
|
([m]) => {
|
|
1135
|
-
const N =
|
|
1133
|
+
const N = f === "border-box" ? m.borderBoxSize : f === "content-box" ? m.contentBoxSize : m.devicePixelContentBoxSize;
|
|
1136
1134
|
if (s && a.value) {
|
|
1137
1135
|
const t = le(e);
|
|
1138
1136
|
if (t) {
|
|
1139
|
-
const
|
|
1140
|
-
v.value =
|
|
1137
|
+
const b = t.getBoundingClientRect();
|
|
1138
|
+
v.value = b.width, i.value = b.height;
|
|
1141
1139
|
}
|
|
1142
1140
|
} else if (N) {
|
|
1143
1141
|
const t = Array.isArray(N) ? N : [N];
|
|
1144
|
-
v.value = t.reduce((
|
|
1142
|
+
v.value = t.reduce((b, { inlineSize: g }) => b + g, 0), i.value = t.reduce((b, { blockSize: g }) => b + g, 0);
|
|
1145
1143
|
} else
|
|
1146
1144
|
v.value = m.contentRect.width, i.value = m.contentRect.height;
|
|
1147
1145
|
},
|
|
@@ -1166,8 +1164,8 @@ function vn(e, n = { width: 0, height: 0 }, o = {}) {
|
|
|
1166
1164
|
stop: _
|
|
1167
1165
|
};
|
|
1168
1166
|
}
|
|
1169
|
-
function
|
|
1170
|
-
var
|
|
1167
|
+
function vn(e, n, o, s = {}) {
|
|
1168
|
+
var f, a, v;
|
|
1171
1169
|
const {
|
|
1172
1170
|
clone: i = !1,
|
|
1173
1171
|
passive: w = !1,
|
|
@@ -1175,11 +1173,11 @@ function gn(e, n, o, s = {}) {
|
|
|
1175
1173
|
deep: _ = !1,
|
|
1176
1174
|
defaultValue: m,
|
|
1177
1175
|
shouldEmit: N
|
|
1178
|
-
} = s, t = ye(),
|
|
1176
|
+
} = s, t = ye(), b = o || (t == null ? void 0 : t.emit) || ((f = t == null ? void 0 : t.$emit) == null ? void 0 : f.bind(t)) || ((v = (a = t == null ? void 0 : t.proxy) == null ? void 0 : a.$emit) == null ? void 0 : v.bind(t == null ? void 0 : t.proxy));
|
|
1179
1177
|
let g = A;
|
|
1180
1178
|
n || (n = "modelValue"), g = g || `update:${n.toString()}`;
|
|
1181
1179
|
const D = (E) => i ? typeof i == "function" ? i(E) : Tt(E) : E, M = () => At(e[n]) ? D(e[n]) : m, p = (E) => {
|
|
1182
|
-
N ? N(E) &&
|
|
1180
|
+
N ? N(E) && b(g, E) : b(g, E);
|
|
1183
1181
|
};
|
|
1184
1182
|
if (w) {
|
|
1185
1183
|
const E = M(), $ = F(E);
|
|
@@ -1206,7 +1204,7 @@ function gn(e, n, o, s = {}) {
|
|
|
1206
1204
|
}
|
|
1207
1205
|
});
|
|
1208
1206
|
}
|
|
1209
|
-
function
|
|
1207
|
+
function gn() {
|
|
1210
1208
|
const { isDark: e } = Oe(), n = Vt(e);
|
|
1211
1209
|
return {
|
|
1212
1210
|
isDark: e,
|
|
@@ -1232,9 +1230,9 @@ function Zt(e) {
|
|
|
1232
1230
|
}
|
|
1233
1231
|
function Gt(e) {
|
|
1234
1232
|
var n = document.querySelector("html"), o = new MutationObserver(function(s) {
|
|
1235
|
-
for (var
|
|
1236
|
-
if (
|
|
1237
|
-
const a =
|
|
1233
|
+
for (var f of s)
|
|
1234
|
+
if (f.type === "attributes" && f.attributeName === "class") {
|
|
1235
|
+
const a = f.target;
|
|
1238
1236
|
new Array(...a.classList).includes("dark") ? e.value = !0 : e.value = !1;
|
|
1239
1237
|
}
|
|
1240
1238
|
});
|
|
@@ -1246,11 +1244,11 @@ function Gt(e) {
|
|
|
1246
1244
|
});
|
|
1247
1245
|
}
|
|
1248
1246
|
function Qt() {
|
|
1249
|
-
const e = F(1), n = F(!1), { isDark: o } = Kt(), { pressSpace: s, pressShift:
|
|
1247
|
+
const e = F(1), n = F(!1), { isDark: o } = Kt(), { pressSpace: s, pressShift: f, pressCtrl: a } = Yt();
|
|
1250
1248
|
return {
|
|
1251
1249
|
canvasScale: e,
|
|
1252
1250
|
pressSpace: s,
|
|
1253
|
-
pressShift:
|
|
1251
|
+
pressShift: f,
|
|
1254
1252
|
pressCtrl: a,
|
|
1255
1253
|
disabledZoom: n,
|
|
1256
1254
|
isDark: o
|
|
@@ -1273,28 +1271,28 @@ function Yt() {
|
|
|
1273
1271
|
o.value = !1;
|
|
1274
1272
|
}), { pressSpace: e, pressShift: n, pressCtrl: o };
|
|
1275
1273
|
}
|
|
1276
|
-
function
|
|
1274
|
+
function yn(e) {
|
|
1277
1275
|
const { pressSpace: n } = Oe(), o = new Image(1, 1);
|
|
1278
1276
|
o.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
|
|
1279
|
-
let s = 0,
|
|
1277
|
+
let s = 0, f = 0;
|
|
1280
1278
|
function a(w) {
|
|
1281
1279
|
var A;
|
|
1282
|
-
n.value && (s = w.x,
|
|
1280
|
+
n.value && (s = w.x, f = w.y, (A = w.dataTransfer) == null || A.setDragImage(document.createElement("div"), 0, 0));
|
|
1283
1281
|
}
|
|
1284
1282
|
function v(w) {
|
|
1285
1283
|
if (w.preventDefault(), !w.x || !w.y || !n.value)
|
|
1286
1284
|
return;
|
|
1287
|
-
const A = w.x - s, _ = w.y -
|
|
1288
|
-
s = w.x,
|
|
1285
|
+
const A = w.x - s, _ = w.y - f;
|
|
1286
|
+
s = w.x, f = w.y, e.value && (e.value.scrollTop -= _, e.value.scrollLeft -= A);
|
|
1289
1287
|
}
|
|
1290
1288
|
function i() {
|
|
1291
1289
|
n.value = !1;
|
|
1292
1290
|
}
|
|
1293
1291
|
return { handleElementDragStart: a, handleElementDrag: v, handleElementDragEnd: i };
|
|
1294
1292
|
}
|
|
1295
|
-
function
|
|
1293
|
+
function wn(e) {
|
|
1296
1294
|
const { pressCtrl: n, canvasScale: o, disabledZoom: s } = Oe();
|
|
1297
|
-
function
|
|
1295
|
+
function f(a) {
|
|
1298
1296
|
if (!n.value || s.value)
|
|
1299
1297
|
return;
|
|
1300
1298
|
a.preventDefault();
|
|
@@ -1306,25 +1304,25 @@ function bn(e) {
|
|
|
1306
1304
|
(a) => {
|
|
1307
1305
|
e.value && !s.value && (e.value.style.transform = `scale(${a})`);
|
|
1308
1306
|
}
|
|
1309
|
-
), { handleZoom:
|
|
1307
|
+
), { handleZoom: f, canvasScale: o };
|
|
1310
1308
|
}
|
|
1311
1309
|
function Sn(e, n = 16.66) {
|
|
1312
1310
|
let o;
|
|
1313
1311
|
function s() {
|
|
1314
|
-
|
|
1312
|
+
f(), o = window.setInterval(e, n);
|
|
1315
1313
|
}
|
|
1316
|
-
function
|
|
1314
|
+
function f() {
|
|
1317
1315
|
window.clearInterval(o);
|
|
1318
1316
|
}
|
|
1319
1317
|
return {
|
|
1320
1318
|
startTimedQuery: s,
|
|
1321
|
-
stopTimedQuery:
|
|
1319
|
+
stopTimedQuery: f
|
|
1322
1320
|
};
|
|
1323
1321
|
}
|
|
1324
|
-
const
|
|
1322
|
+
const kt = { class: "min-w-750px rounded" }, qt = { class: "h-full rounded" }, Xt = /* @__PURE__ */ fe({
|
|
1325
1323
|
__name: "index",
|
|
1326
1324
|
setup(e, { expose: n }) {
|
|
1327
|
-
const o =
|
|
1325
|
+
const o = k.getComponent("monacoEditor"), s = k.getComponent("modal"), f = F(null), a = F(!1), v = F(!1), i = F({}), w = se("pageSchema"), A = F(null), _ = F("");
|
|
1328
1326
|
function m() {
|
|
1329
1327
|
v.value = !1;
|
|
1330
1328
|
}
|
|
@@ -1334,7 +1332,7 @@ const qt = { class: "min-w-750px rounded" }, Xt = { class: "h-full rounded" }, k
|
|
|
1334
1332
|
function t() {
|
|
1335
1333
|
a.value = !0, _.value = lt();
|
|
1336
1334
|
}
|
|
1337
|
-
async function
|
|
1335
|
+
async function b() {
|
|
1338
1336
|
try {
|
|
1339
1337
|
let g = await A.value.validateAll();
|
|
1340
1338
|
if (!Object.keys(g).length) {
|
|
@@ -1343,7 +1341,7 @@ const qt = { class: "min-w-750px rounded" }, Xt = { class: "h-full rounded" }, k
|
|
|
1343
1341
|
}
|
|
1344
1342
|
Object.keys(g).length === 1 && (g = g.default), i.value = JSON.stringify(g, null, 2), ce(() => {
|
|
1345
1343
|
var D;
|
|
1346
|
-
(D =
|
|
1344
|
+
(D = f.value) == null || D.setValue(i.value);
|
|
1347
1345
|
}), v.value = !0;
|
|
1348
1346
|
} catch (g) {
|
|
1349
1347
|
console.error(g);
|
|
@@ -1358,11 +1356,11 @@ const qt = { class: "min-w-750px rounded" }, Xt = { class: "h-full rounded" }, k
|
|
|
1358
1356
|
class: "w-900px",
|
|
1359
1357
|
width: "900px",
|
|
1360
1358
|
onClose: N,
|
|
1361
|
-
onOk:
|
|
1359
|
+
onOk: b,
|
|
1362
1360
|
okText: "表单数据"
|
|
1363
1361
|
}, {
|
|
1364
1362
|
default: Z(() => [
|
|
1365
|
-
te("div",
|
|
1363
|
+
te("div", kt, [
|
|
1366
1364
|
(Y(), ae(W(Dt), {
|
|
1367
1365
|
key: _.value,
|
|
1368
1366
|
ref_key: "kb",
|
|
@@ -1379,10 +1377,10 @@ const qt = { class: "min-w-750px rounded" }, Xt = { class: "h-full rounded" }, k
|
|
|
1379
1377
|
onOk: m
|
|
1380
1378
|
}, {
|
|
1381
1379
|
default: Z(() => [
|
|
1382
|
-
te("div",
|
|
1380
|
+
te("div", qt, [
|
|
1383
1381
|
oe(W(o), {
|
|
1384
1382
|
ref_key: "monacoEditorRef",
|
|
1385
|
-
ref:
|
|
1383
|
+
ref: f,
|
|
1386
1384
|
autoToggleTheme: "",
|
|
1387
1385
|
readOnly: "",
|
|
1388
1386
|
class: "h-full editor",
|
|
@@ -1400,7 +1398,7 @@ const qt = { class: "min-w-750px rounded" }, Xt = { class: "h-full rounded" }, k
|
|
|
1400
1398
|
}), jt = {
|
|
1401
1399
|
key: 0,
|
|
1402
1400
|
class: "epic-loading-box"
|
|
1403
|
-
}, en = { class: "epic-designer-main" }, tn = { class: "epic-header-container" }, nn = { class: "epic-loading-box" },
|
|
1401
|
+
}, en = { class: "epic-designer-main" }, tn = { class: "epic-header-container" }, nn = { class: "epic-loading-box" }, bn = /* @__PURE__ */ fe({
|
|
1404
1402
|
__name: "designer",
|
|
1405
1403
|
props: {
|
|
1406
1404
|
disabledZoom: { type: Boolean, default: !1 },
|
|
@@ -1423,7 +1421,7 @@ const qt = { class: "min-w-750px rounded" }, Xt = { class: "h-full rounded" }, k
|
|
|
1423
1421
|
"updateSourceData"
|
|
1424
1422
|
],
|
|
1425
1423
|
setup(e, { expose: n, emit: o }) {
|
|
1426
|
-
const { t: s } = Pe(),
|
|
1424
|
+
const { t: s } = Pe(), f = ue(() => import("./index-syyNmnFq.js")), a = ue(() => import("./index-BTaKazMR.js")), v = ue(() => import("./index-aPG4tpxN.js")), i = ue(() => import("./index-ocw8DZly.js")), w = ue(() => import("./index-Dz39c928.js")), A = Je(), _ = dt(), m = e;
|
|
1427
1425
|
let N = {
|
|
1428
1426
|
schemas: [
|
|
1429
1427
|
{
|
|
@@ -1475,9 +1473,9 @@ defineExpose({
|
|
|
1475
1473
|
N = m.defaultSchema;
|
|
1476
1474
|
return;
|
|
1477
1475
|
}
|
|
1478
|
-
m.source &&
|
|
1476
|
+
m.source && k.setSourceData(m.source), m.formMode && (N.schemas = k.formSchemas);
|
|
1479
1477
|
}), A.setDesignMode(), A.setDefaultComponentIds(N.schemas);
|
|
1480
|
-
const t = o,
|
|
1478
|
+
const t = o, b = F(null), g = de({
|
|
1481
1479
|
checkedNode: null,
|
|
1482
1480
|
hoverNode: null,
|
|
1483
1481
|
disableHover: !1,
|
|
@@ -1491,10 +1489,10 @@ defineExpose({
|
|
|
1491
1489
|
}), Ee(() => {
|
|
1492
1490
|
const u = D.script;
|
|
1493
1491
|
u && u !== "" && A.setMethods(u);
|
|
1494
|
-
}),
|
|
1492
|
+
}), X("pageSchema", D), X("revoke", _), X("pageManager", A), X(
|
|
1495
1493
|
"designerProps",
|
|
1496
1494
|
ee(() => m)
|
|
1497
|
-
),
|
|
1495
|
+
), X("designer", {
|
|
1498
1496
|
setCheckedNode: E,
|
|
1499
1497
|
setHoverNode: $,
|
|
1500
1498
|
setDisableHover: y,
|
|
@@ -1533,11 +1531,11 @@ defineExpose({
|
|
|
1533
1531
|
function H(u) {
|
|
1534
1532
|
pe(D, ne(u));
|
|
1535
1533
|
}
|
|
1536
|
-
function
|
|
1534
|
+
function J() {
|
|
1537
1535
|
return Ve(D);
|
|
1538
1536
|
}
|
|
1539
1537
|
function I() {
|
|
1540
|
-
|
|
1538
|
+
ze(D.schemas, N.schemas) && D.script === N.script || (pe(D.schemas, N.schemas), D.script = N.script, E(D.schemas[0]), _.push(D.schemas, "重置操作"), t("reset", D));
|
|
1541
1539
|
}
|
|
1542
1540
|
function l() {
|
|
1543
1541
|
t("save", Ve(D));
|
|
@@ -1546,44 +1544,44 @@ defineExpose({
|
|
|
1546
1544
|
t("toggleDeviceMode", u);
|
|
1547
1545
|
}
|
|
1548
1546
|
function c() {
|
|
1549
|
-
|
|
1547
|
+
b.value.handleOpen();
|
|
1550
1548
|
}
|
|
1551
1549
|
return p(), n({
|
|
1552
1550
|
revoke: _,
|
|
1553
1551
|
setData: H,
|
|
1554
|
-
getData:
|
|
1552
|
+
getData: J,
|
|
1555
1553
|
reset: I,
|
|
1556
1554
|
preview: c
|
|
1557
|
-
}), (u, C) => W(
|
|
1555
|
+
}), (u, C) => W(k).initialized.value ? (Y(), ae(Be, {
|
|
1558
1556
|
key: 1,
|
|
1559
1557
|
onResolve: P
|
|
1560
1558
|
}, {
|
|
1561
1559
|
default: Z(() => [
|
|
1562
1560
|
te("div", en, [
|
|
1563
1561
|
te("div", tn, [
|
|
1564
|
-
|
|
1565
|
-
m.hiddenHeader ? Ne("", !0) : (Y(), ae(W(
|
|
1562
|
+
q(u.$slots, "header", {}, () => [
|
|
1563
|
+
m.hiddenHeader ? Ne("", !0) : (Y(), ae(W(f), {
|
|
1566
1564
|
key: 0,
|
|
1567
1565
|
onPreview: c,
|
|
1568
1566
|
onSave: l
|
|
1569
1567
|
}, {
|
|
1570
1568
|
header: Z(() => [
|
|
1571
|
-
|
|
1569
|
+
q(u.$slots, "header-prefix")
|
|
1572
1570
|
]),
|
|
1573
1571
|
prefix: Z(() => [
|
|
1574
|
-
|
|
1572
|
+
q(u.$slots, "header-prefix")
|
|
1575
1573
|
]),
|
|
1576
1574
|
title: Z(() => [
|
|
1577
|
-
|
|
1575
|
+
q(u.$slots, "header-title")
|
|
1578
1576
|
]),
|
|
1579
1577
|
"right-prefix": Z(() => [
|
|
1580
|
-
|
|
1578
|
+
q(u.$slots, "header-right-prefix")
|
|
1581
1579
|
]),
|
|
1582
1580
|
"right-action": Z(() => [
|
|
1583
|
-
|
|
1581
|
+
q(u.$slots, "header-right-action")
|
|
1584
1582
|
]),
|
|
1585
1583
|
"right-suffix": Z(() => [
|
|
1586
|
-
|
|
1584
|
+
q(u.$slots, "header-right-suffix")
|
|
1587
1585
|
]),
|
|
1588
1586
|
_: 3
|
|
1589
1587
|
}))
|
|
@@ -1596,9 +1594,9 @@ defineExpose({
|
|
|
1596
1594
|
oe(W(v)),
|
|
1597
1595
|
oe(W(i))
|
|
1598
1596
|
], 2),
|
|
1599
|
-
oe(
|
|
1597
|
+
oe(Xt, {
|
|
1600
1598
|
ref_key: "previewRef",
|
|
1601
|
-
ref:
|
|
1599
|
+
ref: b
|
|
1602
1600
|
}, null, 512)
|
|
1603
1601
|
])
|
|
1604
1602
|
]),
|
|
@@ -1611,7 +1609,7 @@ defineExpose({
|
|
|
1611
1609
|
})) : (Y(), ge("div", jt));
|
|
1612
1610
|
}
|
|
1613
1611
|
}), on = {
|
|
1614
|
-
component: async () => await import("./index-
|
|
1612
|
+
component: async () => await import("./index-DWNK2WbN.js"),
|
|
1615
1613
|
defaultSchema: {
|
|
1616
1614
|
label: "代码编辑器",
|
|
1617
1615
|
type: "monacoEditor",
|
|
@@ -1661,11 +1659,11 @@ defineExpose({
|
|
|
1661
1659
|
}
|
|
1662
1660
|
}, { t: De } = Pe();
|
|
1663
1661
|
function rn(e) {
|
|
1664
|
-
e.component("EInputSize", async () => await import("./index-DMnyvgEN.js")), e.component("EColEditor", async () => await import("./index-CAYHjLKP.js")), e.component("EActionEditor", async () => await import("./index-
|
|
1662
|
+
e.component("EInputSize", async () => await import("./index-DMnyvgEN.js")), e.component("EColEditor", async () => await import("./index-CAYHjLKP.js")), e.component("EActionEditor", async () => await import("./index-q9yvq5KO.js")), e.component("ERuleEditor", async () => await import("./index-PJBBvGIL.js")), e.component("EOptionsEditor", async () => await import("./index-BcqJCHqF.js")), e.component("ENode", async () => await import("./index-edBSFxZI.js")), e.component("EDataSource", async () => await import("./index-7Z6k5ElN.js")), e.component("EColumnEditor", async () => await import("./index-B-CXu5E4.js")), e.component("PaddingMarginControl", async () => await import("./index-B2L9CYN8.js")), e.component("ESourceDataSelect", async () => await import("./index-CTeq7qi8.js")), e.component("EValidateParam", async () => await import("./index-Zf435cWW.js")), e.component("EDescribe", async () => await import("./index-BtHv1yZo.js")), e.registerActivitybar({
|
|
1665
1663
|
id: "component_view",
|
|
1666
1664
|
title: De("component"),
|
|
1667
1665
|
icon: "icon--epic--extension-outline",
|
|
1668
|
-
component: async () => await import("./index-
|
|
1666
|
+
component: async () => await import("./index-DhC_pgAC.js")
|
|
1669
1667
|
}), e.registerActivitybar({
|
|
1670
1668
|
id: "outline_view",
|
|
1671
1669
|
title: De("outline"),
|
|
@@ -1674,11 +1672,11 @@ function rn(e) {
|
|
|
1674
1672
|
}), e.registerRightSidebar({
|
|
1675
1673
|
id: "attribute_view",
|
|
1676
1674
|
title: De("attribute"),
|
|
1677
|
-
component: async () => await import("./attributeView-
|
|
1675
|
+
component: async () => await import("./attributeView-CDem_ES8.js")
|
|
1678
1676
|
}), e.registerRightSidebar({
|
|
1679
1677
|
id: "style_view",
|
|
1680
1678
|
title: De("style"),
|
|
1681
|
-
component: async () => await import("./styleView-
|
|
1679
|
+
component: async () => await import("./styleView-NkYOpZPH.js")
|
|
1682
1680
|
}), e.registerRightSidebar({
|
|
1683
1681
|
id: "event_view",
|
|
1684
1682
|
title: "事件",
|
|
@@ -1687,26 +1685,26 @@ function rn(e) {
|
|
|
1687
1685
|
e.registerComponent(o);
|
|
1688
1686
|
});
|
|
1689
1687
|
}
|
|
1690
|
-
rn(
|
|
1688
|
+
rn(k);
|
|
1691
1689
|
export {
|
|
1692
1690
|
gt as E,
|
|
1693
1691
|
Dt as _,
|
|
1694
1692
|
Sn as a,
|
|
1695
1693
|
Ht as b,
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1694
|
+
yn as c,
|
|
1695
|
+
hn as d,
|
|
1696
|
+
wn as e,
|
|
1697
|
+
fn as f,
|
|
1698
|
+
vn as g,
|
|
1699
|
+
mn as h,
|
|
1700
|
+
gn as i,
|
|
1701
|
+
bn as j,
|
|
1702
|
+
Je as k,
|
|
1705
1703
|
dt as l,
|
|
1706
1704
|
Yt as m,
|
|
1707
1705
|
Kt as n,
|
|
1708
1706
|
Zt as o,
|
|
1709
1707
|
Qt as p,
|
|
1710
1708
|
Oe as u,
|
|
1711
|
-
|
|
1709
|
+
pn as w
|
|
1712
1710
|
};
|