@vtj/renderer 0.16.18 → 0.16.19
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.cjs +10 -10
- package/dist/index.mjs +632 -603
- package/package.json +5 -5
- package/types/render/loader.d.ts +4 -1
- package/types/utils/util.d.ts +1 -0
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Base as
|
|
2
|
-
import { url as k, isUrl as
|
|
1
|
+
import { Base as Xe, BUILT_IN_COMPONENTS as Ye, ProjectModel as J, HistoryModel as Ce } from "@vtj/core";
|
|
2
|
+
import { url as k, isUrl as oe, dedupArray as Ze, isFunction as H, isEqual as et, isString as I, logger as O, storage as te, cookie as se, toArray as we, unRSA as Se, delay as K, createRequest as Pe, jsonp as Ae, merge as tt, pathToRegexp as st, pathToRegexpMatch as nt, formDataToJson as rt, Queue as it, cloneDeep as $e, camelCase as P, upperFirstCamelCase as ot, pick as at, request as ae, loadScript as Ee, debounce as ct, Storage as lt, mapToObject as he } from "@vtj/utils";
|
|
3
3
|
import * as G from "vue";
|
|
4
|
-
import { inject as
|
|
5
|
-
import { useRoute as
|
|
4
|
+
import { inject as Ie, defineComponent as Fe, h as ce, ref as le, watchEffect as ut, defineAsyncComponent as be } from "vue";
|
|
5
|
+
import { useRoute as ke } from "vue-router";
|
|
6
6
|
/**!
|
|
7
7
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
8
8
|
* @name @vtj/renderer
|
|
9
9
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
10
|
-
* @version 0.16.
|
|
10
|
+
* @version 0.16.19
|
|
11
11
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
12
12
|
*/
|
|
13
|
-
const x = "0.16.
|
|
13
|
+
const x = "0.16.19";
|
|
14
14
|
var _ = /* @__PURE__ */ ((n) => (n.Runtime = "Runtime", n.Design = "Design", n.Raw = "Raw", n.VNode = "VNode", n))(_ || {});
|
|
15
|
-
const
|
|
15
|
+
const je = [
|
|
16
16
|
"$el",
|
|
17
17
|
"$emit",
|
|
18
18
|
"$nextTick",
|
|
@@ -24,7 +24,7 @@ const $e = [
|
|
|
24
24
|
"$props",
|
|
25
25
|
"$options",
|
|
26
26
|
"$forceUpdate"
|
|
27
|
-
],
|
|
27
|
+
], As = [
|
|
28
28
|
"beforeCreate",
|
|
29
29
|
"created",
|
|
30
30
|
"beforeMount",
|
|
@@ -38,7 +38,7 @@ const $e = [
|
|
|
38
38
|
"renderTriggered",
|
|
39
39
|
"activated",
|
|
40
40
|
"deactivated"
|
|
41
|
-
],
|
|
41
|
+
], ft = [
|
|
42
42
|
"vIf",
|
|
43
43
|
"vElseIf",
|
|
44
44
|
"vElse",
|
|
@@ -47,7 +47,7 @@ const $e = [
|
|
|
47
47
|
"vFor",
|
|
48
48
|
"vBind",
|
|
49
49
|
"vHtml"
|
|
50
|
-
],
|
|
50
|
+
], pt = {
|
|
51
51
|
String,
|
|
52
52
|
Number,
|
|
53
53
|
Boolean,
|
|
@@ -55,9 +55,9 @@ const $e = [
|
|
|
55
55
|
Object,
|
|
56
56
|
Function,
|
|
57
57
|
Date
|
|
58
|
-
}, D = "VtjPage",
|
|
58
|
+
}, D = "VtjPage", q = "VtjHomepage", Oe = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(
|
|
59
59
|
","
|
|
60
|
-
),
|
|
60
|
+
), dt = "component,slot".split(","), Is = [
|
|
61
61
|
"h",
|
|
62
62
|
"t",
|
|
63
63
|
"t",
|
|
@@ -77,7 +77,7 @@ const $e = [
|
|
|
77
77
|
"p",
|
|
78
78
|
"r",
|
|
79
79
|
"o"
|
|
80
|
-
].join(""),
|
|
80
|
+
].join(""), Fs = {
|
|
81
81
|
auth: [
|
|
82
82
|
"h",
|
|
83
83
|
"t",
|
|
@@ -138,7 +138,7 @@ const $e = [
|
|
|
138
138
|
privateKey: "MIIBOgIBAAJBAKoIzmn1FYQ1YOhOBw9EhABxZ+PySAIaydI+zdhoKflrdgJ4A5E4/5gbQmRpk09hPWG8nvX7h+l/QLU8kXxAIBECAwEAAQJAAlgpxQY6sByLsXqzJcthC8LSGsLf2JEJkHwlnpwFqlEV8UCkoINpuZ2Wzl+aftURu5rIfAzRCQBvHmeOTW9/zQIhAO5ufWDmnSLyfAAsNo5JRNpVuLFCFodR8Xm+ulDlosR/AiEAtpAltyP9wmCABKG/v/hrtTr3mcvFNGCjoGa9bUAok28CIHbrVs9w1ijrBlvTsXYwJw46uP539uKRRT4ymZzlm9QjAiB+1KH/G9f9pEEL9rtaSOG7JF5D0JcOjlze4MGVFs+ZrQIhALKOUFBNr2zEsyJIjw2PlvEucdlG77UniszjXTROHSPd"
|
|
139
139
|
};
|
|
140
140
|
function L(n, e) {
|
|
141
|
-
return n.map((t) =>
|
|
141
|
+
return n.map((t) => oe(t) || t.startsWith("/") ? t : `${e}${t}`);
|
|
142
142
|
}
|
|
143
143
|
function V(n) {
|
|
144
144
|
return /\.css$/.test(n);
|
|
@@ -146,55 +146,55 @@ function V(n) {
|
|
|
146
146
|
function W(n) {
|
|
147
147
|
return /\.js$/.test(n);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function ht(n) {
|
|
150
150
|
return /\.json$/.test(n);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function ks(n) {
|
|
153
153
|
return n.map(
|
|
154
154
|
(e) => `<script src="${k.append(e, { v: x })}"><\/script>`
|
|
155
155
|
).join("");
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function Os(n = []) {
|
|
158
158
|
return n.map(
|
|
159
159
|
(e) => `<link rel="stylesheet" href="${k.append(e, { v: x })}" />`
|
|
160
160
|
).join("");
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function mt(n, e = !1) {
|
|
163
163
|
return e && n.endsWith(".prod.js") ? n.replace(".prod.js", ".js") : n;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
const s = n.filter((p) => !!p.enabled), r = [], i = [],
|
|
165
|
+
function gt(n, e, t = !1) {
|
|
166
|
+
const s = n.filter((p) => !!p.enabled), r = [], i = [], o = [], a = [], u = {}, c = {}, l = [], f = {};
|
|
167
167
|
return s.forEach(
|
|
168
168
|
({ urls: p, assetsUrl: d, library: m, assetsLibrary: h, localeLibrary: g }) => {
|
|
169
169
|
p?.forEach((y) => {
|
|
170
|
-
W(y) && r.push(
|
|
171
|
-
}), m && (
|
|
170
|
+
W(y) && r.push(mt(y, t)), V(y) && i.push(y);
|
|
171
|
+
}), m && (a.push(m), u[m] = L(p || [], e), g && (c[m] = g)), d && o.push(d), h && l.push(h), m && h && (f[h] = m);
|
|
172
172
|
}
|
|
173
173
|
), {
|
|
174
174
|
scripts: L(r, e),
|
|
175
175
|
css: L(i, e),
|
|
176
|
-
materials: L(
|
|
177
|
-
libraryExports:
|
|
178
|
-
materialExports:
|
|
176
|
+
materials: L(o, e),
|
|
177
|
+
libraryExports: a,
|
|
178
|
+
materialExports: Ze(l),
|
|
179
179
|
materialMapLibrary: f,
|
|
180
|
-
libraryMap:
|
|
180
|
+
libraryMap: u,
|
|
181
181
|
libraryLocaleMap: c
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function yt(n, e) {
|
|
185
185
|
const { name: t, parent: s, alias: r } = n;
|
|
186
186
|
return s ? e[s]?.[r || t] : e[r || t];
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function vt(n = []) {
|
|
189
189
|
const e = n.filter((s) => V(s)), t = n.filter((s) => W(s));
|
|
190
190
|
return {
|
|
191
191
|
css: e,
|
|
192
192
|
js: t
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function _t(n, e) {
|
|
196
196
|
const t = (c) => {
|
|
197
|
-
const
|
|
197
|
+
const l = [];
|
|
198
198
|
let f = 0;
|
|
199
199
|
for (; f < c.length; ) {
|
|
200
200
|
if (/\s/.test(c[f])) {
|
|
@@ -214,7 +214,7 @@ function ht(n, e) {
|
|
|
214
214
|
f++;
|
|
215
215
|
const w = c.substring(y, f).trim(), v = w.includes("@keyframes");
|
|
216
216
|
if (c[f] === ";")
|
|
217
|
-
|
|
217
|
+
l.push({
|
|
218
218
|
type: "simple-at-rule",
|
|
219
219
|
content: c.substring(y, f + 1)
|
|
220
220
|
}), f++;
|
|
@@ -223,11 +223,11 @@ function ht(n, e) {
|
|
|
223
223
|
let A = 1;
|
|
224
224
|
for (f++; f < c.length && A > 0; )
|
|
225
225
|
c[f] === "{" ? A++ : c[f] === "}" && A--, f++;
|
|
226
|
-
const
|
|
227
|
-
|
|
226
|
+
const X = c.substring(y, f), C = c.substring(S, f - 1);
|
|
227
|
+
l.push({
|
|
228
228
|
type: v ? "keyframes" : "at-rule",
|
|
229
229
|
rule: w,
|
|
230
|
-
content:
|
|
230
|
+
content: X,
|
|
231
231
|
inner: C
|
|
232
232
|
});
|
|
233
233
|
}
|
|
@@ -247,107 +247,107 @@ function ht(n, e) {
|
|
|
247
247
|
for (f++; f < c.length && h > 0; )
|
|
248
248
|
c[f] === "{" ? h++ : c[f] === "}" && h--, f++;
|
|
249
249
|
const g = c.substring(m, f - 1);
|
|
250
|
-
|
|
250
|
+
l.push({
|
|
251
251
|
type: "rule",
|
|
252
252
|
selector: d,
|
|
253
253
|
content: g.trim()
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
|
-
return
|
|
256
|
+
return l;
|
|
257
257
|
}, s = (c) => {
|
|
258
|
-
const
|
|
259
|
-
return /^(from|to|\d+(\.\d+)?%)$/.test(
|
|
260
|
-
}, r = (c) => c.replace(/::v-deep\(/g, ":deep(").replace(/::v-deep\s+/g, ":deep(").replace(/\/deep\//g, " ").replace(/>>>/g, " ").replace(/(.*?):deep\(([^)]+)\)/g, (
|
|
258
|
+
const l = c.trim();
|
|
259
|
+
return /^(from|to|\d+(\.\d+)?%)$/.test(l);
|
|
260
|
+
}, r = (c) => c.replace(/::v-deep\(/g, ":deep(").replace(/::v-deep\s+/g, ":deep(").replace(/\/deep\//g, " ").replace(/>>>/g, " ").replace(/(.*?):deep\(([^)]+)\)/g, (l, f, p) => {
|
|
261
261
|
const d = f.trim(), m = p.trim();
|
|
262
262
|
return d ? `${d}[${e}] ${m}` : m;
|
|
263
263
|
}), i = (c) => {
|
|
264
|
-
const
|
|
265
|
-
if (!
|
|
266
|
-
return
|
|
267
|
-
const f =
|
|
264
|
+
const l = c.trim();
|
|
265
|
+
if (!l || l.includes(`[${e}]`) || /^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(l) || s(l))
|
|
266
|
+
return l;
|
|
267
|
+
const f = l.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);
|
|
268
268
|
if (f) {
|
|
269
269
|
const [, p, d = ""] = f, m = p.trim();
|
|
270
|
-
return m ? `${m}[${e}]${d}` :
|
|
270
|
+
return m ? `${m}[${e}]${d}` : l;
|
|
271
271
|
}
|
|
272
|
-
return `${
|
|
273
|
-
},
|
|
274
|
-
switch (
|
|
272
|
+
return `${l}[${e}]`;
|
|
273
|
+
}, o = (c) => r(c).split(",").map((f) => i(f)).filter((f) => f.trim()).join(", "), a = (c) => c.map((l) => {
|
|
274
|
+
switch (l.type) {
|
|
275
275
|
case "simple-at-rule":
|
|
276
|
-
return
|
|
276
|
+
return l.content;
|
|
277
277
|
case "keyframes":
|
|
278
|
-
return
|
|
278
|
+
return l.content;
|
|
279
279
|
case "at-rule":
|
|
280
280
|
try {
|
|
281
|
-
const p = t(
|
|
282
|
-
return `${
|
|
281
|
+
const p = t(l.inner), d = a(p);
|
|
282
|
+
return `${l.rule} { ${d} }`;
|
|
283
283
|
} catch {
|
|
284
|
-
return
|
|
284
|
+
return l.content;
|
|
285
285
|
}
|
|
286
286
|
case "rule":
|
|
287
|
-
if (!
|
|
287
|
+
if (!l.selector || !l.content)
|
|
288
288
|
return "";
|
|
289
|
-
const f =
|
|
290
|
-
return f.trim() ? `${f} { ${
|
|
289
|
+
const f = o(l.selector);
|
|
290
|
+
return f.trim() ? `${f} { ${l.content} }` : "";
|
|
291
291
|
default:
|
|
292
292
|
return "";
|
|
293
293
|
}
|
|
294
|
-
}).filter((
|
|
294
|
+
}).filter((l) => l.trim()).join(" "), u = (c) => c.replace(/\s*{\s*/g, " { ").replace(/\s*}\s*/g, " } ").replace(/\s*;\s*/g, "; ").replace(/\s*,\s*/g, ", ").replace(/\s+/g, " ").replace(/^\s+|\s+$/g, "").replace(/\s*}\s*}/g, " } }").trim();
|
|
295
295
|
try {
|
|
296
296
|
const c = n.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g, "").replace(/^\s+|\s+$/gm, "").replace(/\n\s*\n/g, `
|
|
297
|
-
`),
|
|
298
|
-
return
|
|
297
|
+
`), l = t(c), f = a(l);
|
|
298
|
+
return u(f);
|
|
299
299
|
} catch (c) {
|
|
300
300
|
return console.error("CSS scoping failed:", c), console.error("Input CSS:", n), n.replace(/\/\*[\s\S]*?\*\//g, "").replace(
|
|
301
301
|
/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,
|
|
302
|
-
(
|
|
303
|
-
).replace(/([^{}@]+)(?=\s*{)/g, (
|
|
304
|
-
const f =
|
|
305
|
-
return !f || f.startsWith("@") || f.includes(`[${e}]`) || s(f) ?
|
|
302
|
+
(l) => l
|
|
303
|
+
).replace(/([^{}@]+)(?=\s*{)/g, (l) => {
|
|
304
|
+
const f = l.trim();
|
|
305
|
+
return !f || f.startsWith("@") || f.includes(`[${e}]`) || s(f) ? l : `${f}[${e}]`;
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
const
|
|
310
|
-
function
|
|
309
|
+
const wt = 750;
|
|
310
|
+
function St(n, e, t) {
|
|
311
311
|
let s;
|
|
312
312
|
typeof n < "u" ? s = n.innerWidth || n.document.documentElement.clientWidth : (console.warn("无法获取屏幕宽度,使用默认值375"), s = 375);
|
|
313
|
-
const r = t ||
|
|
313
|
+
const r = t || wt;
|
|
314
314
|
return e * s / r;
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function $t(n, e) {
|
|
317
317
|
let t = !1, s = !1, r = !1, i = "";
|
|
318
|
-
for (let
|
|
319
|
-
const
|
|
320
|
-
if (
|
|
321
|
-
const
|
|
322
|
-
if (
|
|
323
|
-
const c =
|
|
324
|
-
i += p,
|
|
318
|
+
for (let o = 0; o < e.length; o++) {
|
|
319
|
+
const a = e[o];
|
|
320
|
+
if (a === "'" && !s && !r ? t = !t : a === '"' && !t && !r ? s = !s : e.substr(o, 4).toLowerCase() === "url(" && !t && !s ? r = !0 : a === ")" && r && (r = !1), !t && !s && !r) {
|
|
321
|
+
const u = e.substr(o).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);
|
|
322
|
+
if (u) {
|
|
323
|
+
const c = u[1], l = parseFloat(c), p = `${St(n, l).toFixed(6).replace(/\.?0+$/, "")}px`;
|
|
324
|
+
i += p, o += u[0].length - 1;
|
|
325
325
|
continue;
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
i +=
|
|
328
|
+
i += a;
|
|
329
329
|
}
|
|
330
330
|
return i;
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function Me(n) {
|
|
333
333
|
return I(n) ? n : JSON.stringify(n);
|
|
334
334
|
}
|
|
335
|
-
function
|
|
336
|
-
const r = n.CSSStyleSheet, i = s ? `data-v-${e}` : e,
|
|
337
|
-
if (r.prototype.replaceSync && !
|
|
335
|
+
function me(n, e, t, s = !1) {
|
|
336
|
+
const r = n.CSSStyleSheet, i = s ? `data-v-${e}` : e, o = n.__uniConfig ? $t(n, t) : t, a = s ? _t(o, i) : o, u = !!n.__uniConfig;
|
|
337
|
+
if (r.prototype.replaceSync && !u) {
|
|
338
338
|
const c = new r();
|
|
339
|
-
c.id = e, c.replaceSync(
|
|
340
|
-
const
|
|
339
|
+
c.id = e, c.replaceSync(a);
|
|
340
|
+
const l = n.document, f = l.adoptedStyleSheets, p = Array.from(f).filter(
|
|
341
341
|
(d) => d.id !== e
|
|
342
342
|
);
|
|
343
|
-
|
|
343
|
+
l.adoptedStyleSheets = [...p, c];
|
|
344
344
|
} else {
|
|
345
345
|
const c = n.document;
|
|
346
|
-
let
|
|
347
|
-
|
|
346
|
+
let l = c.getElementById(e);
|
|
347
|
+
l ? l.innerHTML = a : (l = c.createElement("style"), l.id = e, l.innerHTML = a, c.head.appendChild(l));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function Ms(n) {
|
|
351
351
|
const e = n.adoptedStyleSheets || [];
|
|
352
352
|
let t = "";
|
|
353
353
|
if (e.forEach((s) => {
|
|
@@ -363,64 +363,73 @@ function Cs(n) {
|
|
|
363
363
|
s.textContent = t, n.head.appendChild(s);
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
async function
|
|
366
|
+
async function Et(n, e) {
|
|
367
367
|
const t = await window.fetch(e).then((s) => s.text()).catch(() => "");
|
|
368
|
-
t &&
|
|
368
|
+
t && me(window, n, t);
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Te(n, e = window) {
|
|
371
371
|
const t = e.document, s = e.document.head;
|
|
372
372
|
for (const r of n)
|
|
373
373
|
if (!t.getElementById(r)) {
|
|
374
|
-
const
|
|
375
|
-
|
|
374
|
+
const o = t.createElement("link");
|
|
375
|
+
o.rel = "stylesheet", o.id = r, o.href = r, s.appendChild(o);
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
async function
|
|
378
|
+
async function xe(n, e, t = window) {
|
|
379
379
|
const s = t.document, r = t.document.head;
|
|
380
380
|
let i = t[e];
|
|
381
|
-
return i ? i.default || i : new Promise((
|
|
382
|
-
for (const
|
|
381
|
+
return i ? i.default || i : new Promise((o, a) => {
|
|
382
|
+
for (const u of n) {
|
|
383
383
|
const c = s.createElement("script");
|
|
384
|
-
c.src =
|
|
385
|
-
i = t[e], i ?
|
|
386
|
-
}, c.onerror = (
|
|
387
|
-
|
|
384
|
+
c.src = u, c.onload = () => {
|
|
385
|
+
i = t[e], i ? o(i.default || i) : a(null);
|
|
386
|
+
}, c.onerror = (l) => {
|
|
387
|
+
a(l);
|
|
388
388
|
}, r.appendChild(c);
|
|
389
389
|
}
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
return
|
|
392
|
+
function bt(n) {
|
|
393
|
+
return H(n) && Object.getOwnPropertyNames(n.prototype || {}).length === 0 || H(n?.install);
|
|
394
394
|
}
|
|
395
|
-
function
|
|
396
|
-
return
|
|
395
|
+
function jt(n) {
|
|
396
|
+
return dt.includes(n);
|
|
397
397
|
}
|
|
398
|
-
function
|
|
399
|
-
return
|
|
398
|
+
function Rt(n) {
|
|
399
|
+
return Oe.includes(n);
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function N(n = window) {
|
|
402
402
|
const e = window?.Mock;
|
|
403
403
|
if (e) return e;
|
|
404
404
|
const t = n?.Mock;
|
|
405
405
|
if (t && window)
|
|
406
406
|
return window.Mock = t, t;
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Ts(n, e, t) {
|
|
409
409
|
Object.assign(e.meta, t.meta);
|
|
410
410
|
const s = n?._container;
|
|
411
411
|
t?.type === "page" && s.classList.add("is-page"), t?.pure && s.classList.add("is-pure");
|
|
412
412
|
}
|
|
413
|
+
function Ct(n = {}, e = {}) {
|
|
414
|
+
const t = Object.entries(n), s = Object.entries(e);
|
|
415
|
+
if (t.length !== s.length)
|
|
416
|
+
return !1;
|
|
417
|
+
for (const [r, i] of t)
|
|
418
|
+
if (!H(i) && !et(i, e[r]))
|
|
419
|
+
return !1;
|
|
420
|
+
return !0;
|
|
421
|
+
}
|
|
413
422
|
function B(n, e, t = !1, s = !1, r = !1) {
|
|
414
423
|
try {
|
|
415
424
|
const i = ['"use strict";', "var __self = arguments[0];"];
|
|
416
425
|
i.push("return ");
|
|
417
|
-
let
|
|
418
|
-
r || (
|
|
419
|
-
`) +
|
|
420
|
-
const
|
|
421
|
-
${
|
|
422
|
-
` : `with(${t ? "{}" : "$scope || {}"}) { ${
|
|
423
|
-
return new Function("$scope",
|
|
426
|
+
let o = (n.value || "").trim();
|
|
427
|
+
r || (o = o.replace(/this(\W|$)/g, (u, c) => `__self${c}`)), o = i.join(`
|
|
428
|
+
`) + o;
|
|
429
|
+
const a = r ? `
|
|
430
|
+
${o}
|
|
431
|
+
` : `with(${t ? "{}" : "$scope || {}"}) { ${o} }`;
|
|
432
|
+
return new Function("$scope", a)(e);
|
|
424
433
|
} catch (i) {
|
|
425
434
|
if (O.error("parseExpression.error", i, n, e?.__self ?? e), s)
|
|
426
435
|
throw i;
|
|
@@ -443,13 +452,13 @@ function b(n) {
|
|
|
443
452
|
function E(n) {
|
|
444
453
|
return typeof n == "object" && n && n.type === "JSFunction";
|
|
445
454
|
}
|
|
446
|
-
function
|
|
455
|
+
function Pt(n) {
|
|
447
456
|
return b(n) || E(n);
|
|
448
457
|
}
|
|
449
|
-
function
|
|
450
|
-
return
|
|
458
|
+
function xs(n) {
|
|
459
|
+
return Pt(n) ? n.value : JSON.stringify(n);
|
|
451
460
|
}
|
|
452
|
-
const
|
|
461
|
+
const At = {
|
|
453
462
|
session: !1,
|
|
454
463
|
authKey: "Authorization",
|
|
455
464
|
storageKey: "ACCESS_STORAGE",
|
|
@@ -462,15 +471,15 @@ const Et = {
|
|
|
462
471
|
noPermissionMessage: "无权限访问该页面",
|
|
463
472
|
appName: "",
|
|
464
473
|
statusKey: "code"
|
|
465
|
-
},
|
|
466
|
-
class
|
|
474
|
+
}, De = Symbol("access");
|
|
475
|
+
class ge {
|
|
467
476
|
options;
|
|
468
477
|
data = null;
|
|
469
478
|
mode = _.Raw;
|
|
470
479
|
interceptResponse = !0;
|
|
471
480
|
isTipShowing = !1;
|
|
472
481
|
constructor(e) {
|
|
473
|
-
this.options = Object.assign({},
|
|
482
|
+
this.options = Object.assign({}, At, e), this.loadData();
|
|
474
483
|
}
|
|
475
484
|
enableIntercept() {
|
|
476
485
|
this.interceptResponse = !0;
|
|
@@ -484,17 +493,17 @@ class de {
|
|
|
484
493
|
}
|
|
485
494
|
login(e) {
|
|
486
495
|
const { storageKey: t, storagePrefix: s, session: r, authKey: i } = this.options;
|
|
487
|
-
this.setData(e), this.data && (
|
|
496
|
+
this.setData(e), this.data && (te.save(t, e, {
|
|
488
497
|
type: "local",
|
|
489
498
|
prefix: s
|
|
490
|
-
}), r &&
|
|
499
|
+
}), r && se.set(i, this.data.token));
|
|
491
500
|
}
|
|
492
501
|
clear() {
|
|
493
502
|
const { storageKey: e, storagePrefix: t, session: s, authKey: r } = this.options;
|
|
494
|
-
this.data = null,
|
|
503
|
+
this.data = null, te.remove(e, {
|
|
495
504
|
type: "local",
|
|
496
505
|
prefix: t
|
|
497
|
-
}), s &&
|
|
506
|
+
}), s && se.remove(r);
|
|
498
507
|
}
|
|
499
508
|
logout() {
|
|
500
509
|
this.clear(), this.toLogin();
|
|
@@ -507,14 +516,14 @@ class de {
|
|
|
507
516
|
}
|
|
508
517
|
can(e) {
|
|
509
518
|
const { appName: t } = this.options, { permissions: s = {} } = this.data || {};
|
|
510
|
-
return typeof e == "function" ? e(s) :
|
|
519
|
+
return typeof e == "function" ? e(s) : we(e).every((i) => s[i] || s[t + "." + i]);
|
|
511
520
|
}
|
|
512
521
|
some(e) {
|
|
513
522
|
const { appName: t } = this.options, { permissions: s = {} } = this.data || {};
|
|
514
|
-
return
|
|
523
|
+
return we(e).some((i) => s[i] || s[t + "." + i]);
|
|
515
524
|
}
|
|
516
525
|
install(e) {
|
|
517
|
-
e.config.globalProperties.$access = this, e.provide(
|
|
526
|
+
e.config.globalProperties.$access = this, e.provide(De, this);
|
|
518
527
|
}
|
|
519
528
|
isAuthPath(e) {
|
|
520
529
|
const { auth: t, isAuth: s } = this.options;
|
|
@@ -535,7 +544,7 @@ class de {
|
|
|
535
544
|
setData(e) {
|
|
536
545
|
const { privateKey: t } = this.options;
|
|
537
546
|
if (Array.isArray(e) && t) {
|
|
538
|
-
const s = e.map((r) =>
|
|
547
|
+
const s = e.map((r) => Se(r, t));
|
|
539
548
|
try {
|
|
540
549
|
this.data = JSON.parse(s.join(""));
|
|
541
550
|
} catch (r) {
|
|
@@ -545,7 +554,7 @@ class de {
|
|
|
545
554
|
}
|
|
546
555
|
if (typeof e == "string")
|
|
547
556
|
try {
|
|
548
|
-
const s = t ?
|
|
557
|
+
const s = t ? Se(e, t) : e;
|
|
549
558
|
s ? this.data = JSON.parse(s) : console.warn("RSA解密失败或登录信息缺失");
|
|
550
559
|
} catch (s) {
|
|
551
560
|
console.warn(s);
|
|
@@ -554,7 +563,7 @@ class de {
|
|
|
554
563
|
this.data = e;
|
|
555
564
|
}
|
|
556
565
|
loadData() {
|
|
557
|
-
const { storageKey: e, storagePrefix: t } = this.options, s =
|
|
566
|
+
const { storageKey: e, storagePrefix: t } = this.options, s = te.get(e, {
|
|
558
567
|
type: "local",
|
|
559
568
|
prefix: t
|
|
560
569
|
});
|
|
@@ -562,7 +571,7 @@ class de {
|
|
|
562
571
|
}
|
|
563
572
|
isLogined() {
|
|
564
573
|
const { session: e, authKey: t } = this.options;
|
|
565
|
-
return e && t ? !!
|
|
574
|
+
return e && t ? !!se.get(t) : !!this.getToken();
|
|
566
575
|
}
|
|
567
576
|
hasRoutePermission(e) {
|
|
568
577
|
if (e.name === D) {
|
|
@@ -582,7 +591,7 @@ class de {
|
|
|
582
591
|
return t();
|
|
583
592
|
{
|
|
584
593
|
const { noPermissionMessage: s = "无权限访问", unauthorized: r = !1 } = this.options;
|
|
585
|
-
return await this.showTip(s),
|
|
594
|
+
return await this.showTip(s), H(r) ? (r(), t(!1)) : I(r) ? t(r) : t(!1);
|
|
586
595
|
}
|
|
587
596
|
}
|
|
588
597
|
t(!1), await K(0), this.toLogin();
|
|
@@ -619,54 +628,54 @@ class de {
|
|
|
619
628
|
);
|
|
620
629
|
}
|
|
621
630
|
}
|
|
622
|
-
function
|
|
623
|
-
return
|
|
631
|
+
function It() {
|
|
632
|
+
return Ie(De, null);
|
|
624
633
|
}
|
|
625
|
-
function
|
|
634
|
+
function Ds(n = {}) {
|
|
626
635
|
const {
|
|
627
636
|
notify: e,
|
|
628
637
|
loading: t,
|
|
629
638
|
settings: s = {},
|
|
630
639
|
Startup: r,
|
|
631
640
|
access: i,
|
|
632
|
-
useTitle:
|
|
633
|
-
alert:
|
|
641
|
+
useTitle: o,
|
|
642
|
+
alert: a
|
|
634
643
|
} = n;
|
|
635
|
-
let
|
|
644
|
+
let u = null;
|
|
636
645
|
return {
|
|
637
|
-
request:
|
|
646
|
+
request: Pe({
|
|
638
647
|
settings: {
|
|
639
648
|
type: "form",
|
|
640
649
|
validSuccess: !0,
|
|
641
650
|
originResponse: !1,
|
|
642
651
|
loading: !0,
|
|
643
|
-
validate: (
|
|
652
|
+
validate: (l) => l.data?.code === 0 || !!l.data?.success,
|
|
644
653
|
failMessage: !0,
|
|
645
|
-
showError: (
|
|
646
|
-
e && e(
|
|
654
|
+
showError: (l) => {
|
|
655
|
+
e && e(l || "未知错误");
|
|
647
656
|
},
|
|
648
657
|
showLoading: () => {
|
|
649
|
-
|
|
658
|
+
u && u.close(), t && (u = t());
|
|
650
659
|
},
|
|
651
660
|
hideLoading: () => {
|
|
652
|
-
|
|
661
|
+
u && (u.close(), u = null);
|
|
653
662
|
},
|
|
654
663
|
...s
|
|
655
664
|
}
|
|
656
665
|
}),
|
|
657
|
-
jsonp:
|
|
666
|
+
jsonp: Ae,
|
|
658
667
|
notify: e,
|
|
659
668
|
loading: t,
|
|
660
|
-
useTitle:
|
|
661
|
-
alert:
|
|
669
|
+
useTitle: o,
|
|
670
|
+
alert: a,
|
|
662
671
|
startupComponent: r,
|
|
663
|
-
access: i ? new
|
|
672
|
+
access: i ? new ge({ alert: a, ...i }) : void 0
|
|
664
673
|
};
|
|
665
674
|
}
|
|
666
|
-
function
|
|
667
|
-
return new
|
|
675
|
+
function Hs(n = {}) {
|
|
676
|
+
return new ge(n);
|
|
668
677
|
}
|
|
669
|
-
function
|
|
678
|
+
function Ft(n, e) {
|
|
670
679
|
const { jsonp: t, request: s } = e;
|
|
671
680
|
if (n.method === "jsonp")
|
|
672
681
|
return (r = {}) => t(n.url, {
|
|
@@ -682,72 +691,72 @@ function jt(n, e) {
|
|
|
682
691
|
headers: r
|
|
683
692
|
}
|
|
684
693
|
};
|
|
685
|
-
return (
|
|
694
|
+
return (o, a) => (delete i.data, s.send(tt(i, a || {}, { data: o })));
|
|
686
695
|
}
|
|
687
696
|
}
|
|
688
|
-
function
|
|
697
|
+
function kt(n, e) {
|
|
689
698
|
const { metaQuery: t } = e;
|
|
690
699
|
if (!t) return;
|
|
691
700
|
const { code: s, queryCode: r } = n;
|
|
692
|
-
return (i,
|
|
701
|
+
return (i, o) => {
|
|
693
702
|
if (!t) {
|
|
694
703
|
console.warn("adapter.metaQuery is not defined!");
|
|
695
704
|
return;
|
|
696
705
|
}
|
|
697
|
-
return t(s, r, i,
|
|
706
|
+
return t(s, r, i, o);
|
|
698
707
|
};
|
|
699
708
|
}
|
|
700
|
-
function
|
|
709
|
+
function Ot(n = [], e = [], t) {
|
|
701
710
|
const s = {};
|
|
702
711
|
for (const r of n) {
|
|
703
|
-
const i =
|
|
712
|
+
const i = Ft(r, t);
|
|
704
713
|
s[r.id] = i, s[r.name] = i;
|
|
705
714
|
}
|
|
706
715
|
for (const r of e)
|
|
707
|
-
s[r.id] =
|
|
716
|
+
s[r.id] = kt(r, t);
|
|
708
717
|
return s;
|
|
709
718
|
}
|
|
710
|
-
async function
|
|
711
|
-
const t =
|
|
712
|
-
t && (
|
|
719
|
+
async function Mt(n = [], e = window) {
|
|
720
|
+
const t = N(e);
|
|
721
|
+
t && (He(e), n.forEach((s) => xt(t, s)));
|
|
713
722
|
}
|
|
714
|
-
function
|
|
715
|
-
const t = E(n.mockTemplate) && n.mockTemplate.value ? R(n.mockTemplate, {}, !0) : void 0, s =
|
|
723
|
+
function Tt(n, e = window) {
|
|
724
|
+
const t = E(n.mockTemplate) && n.mockTemplate.value ? R(n.mockTemplate, {}, !0) : void 0, s = N(e);
|
|
716
725
|
return async (...r) => {
|
|
717
726
|
let i = {};
|
|
718
727
|
if (t)
|
|
719
728
|
try {
|
|
720
729
|
i = await t.apply(t, r);
|
|
721
|
-
} catch (
|
|
722
|
-
O.warn("模拟数据模版异常",
|
|
730
|
+
} catch (o) {
|
|
731
|
+
O.warn("模拟数据模版异常", o);
|
|
723
732
|
}
|
|
724
733
|
return s?.mock(i);
|
|
725
734
|
};
|
|
726
735
|
}
|
|
727
|
-
function
|
|
736
|
+
function xt(n, e) {
|
|
728
737
|
if (!e.mock) return;
|
|
729
738
|
const { url: t, mockTemplate: s } = e;
|
|
730
739
|
if (t && s)
|
|
731
740
|
try {
|
|
732
|
-
const r =
|
|
733
|
-
n.mock(i, (
|
|
734
|
-
const c = k.parse(
|
|
735
|
-
Object.assign(
|
|
741
|
+
const r = oe(t) ? new URL(t).pathname : t, i = st(`(.*)${r}(.*)`), o = nt(r, { decode: decodeURIComponent }), a = B(s, {}, !0);
|
|
742
|
+
n.mock(i, (u) => {
|
|
743
|
+
const c = k.parse(u.url) || {}, l = u.body instanceof FormData ? rt(u.body) : u.body, f = oe(u.url) ? new URL(u.url).pathname : u.url.split("?")[0], p = o(f)?.params;
|
|
744
|
+
Object.assign(u, { data: l, params: p, query: c });
|
|
736
745
|
try {
|
|
737
|
-
return n.mock(
|
|
746
|
+
return n.mock(a(u));
|
|
738
747
|
} catch (d) {
|
|
739
|
-
return console.warn("[mockApi]", i,
|
|
748
|
+
return console.warn("[mockApi]", i, u, d), null;
|
|
740
749
|
}
|
|
741
750
|
});
|
|
742
751
|
} catch (r) {
|
|
743
752
|
console.warn("mockApi", r);
|
|
744
753
|
}
|
|
745
754
|
}
|
|
746
|
-
function
|
|
747
|
-
const e =
|
|
755
|
+
function He(n = window) {
|
|
756
|
+
const e = N(n);
|
|
748
757
|
e && (e._mocked = {});
|
|
749
758
|
}
|
|
750
|
-
class
|
|
759
|
+
class Dt {
|
|
751
760
|
__id = null;
|
|
752
761
|
__mode;
|
|
753
762
|
__instance = null;
|
|
@@ -792,12 +801,12 @@ class Ft {
|
|
|
792
801
|
});
|
|
793
802
|
}
|
|
794
803
|
__proxy() {
|
|
795
|
-
this.__instance &&
|
|
804
|
+
this.__instance && je.forEach((e) => {
|
|
796
805
|
this[e] = this.__instance?.[e];
|
|
797
806
|
});
|
|
798
807
|
}
|
|
799
808
|
__cleanup() {
|
|
800
|
-
|
|
809
|
+
je.forEach((e) => {
|
|
801
810
|
this[e] = null;
|
|
802
811
|
}), this.__reset();
|
|
803
812
|
}
|
|
@@ -851,40 +860,40 @@ class Ft {
|
|
|
851
860
|
return s.context.__proto__ = this.context, s.__proto__ = this, s;
|
|
852
861
|
}
|
|
853
862
|
}
|
|
854
|
-
function
|
|
863
|
+
function ue(n) {
|
|
855
864
|
const {
|
|
856
865
|
Vue: e = G,
|
|
857
866
|
mode: t = _.Runtime,
|
|
858
867
|
components: s = {},
|
|
859
868
|
libs: r = {},
|
|
860
869
|
apis: i = {},
|
|
861
|
-
loader:
|
|
862
|
-
} = n,
|
|
870
|
+
loader: o
|
|
871
|
+
} = n, a = e.computed(() => n.dsl), u = {
|
|
863
872
|
$components: s,
|
|
864
873
|
$libs: r,
|
|
865
874
|
$apis: i
|
|
866
|
-
}, c = new
|
|
875
|
+
}, c = new Dt({
|
|
867
876
|
mode: t,
|
|
868
|
-
dsl:
|
|
869
|
-
attrs:
|
|
870
|
-
}),
|
|
871
|
-
name:
|
|
872
|
-
__scopeId:
|
|
877
|
+
dsl: a.value,
|
|
878
|
+
attrs: u
|
|
879
|
+
}), l = e.defineComponent({
|
|
880
|
+
name: a.value.name,
|
|
881
|
+
__scopeId: a.value.id ? `data-v-${a.value.id}` : void 0,
|
|
873
882
|
props: {
|
|
874
|
-
...
|
|
883
|
+
...Nt(a.value.props ?? [], c)
|
|
875
884
|
},
|
|
876
885
|
async setup(f) {
|
|
877
|
-
c.$props = f, c.props = f,
|
|
886
|
+
c.$props = f, c.props = f, a.value.id && me(
|
|
878
887
|
n.window || window,
|
|
879
|
-
|
|
880
|
-
|
|
888
|
+
a.value.id,
|
|
889
|
+
a.value.css || "",
|
|
881
890
|
!0
|
|
882
|
-
), c.state =
|
|
883
|
-
const p =
|
|
891
|
+
), c.state = Bt(e, a.value.state ?? {}, c);
|
|
892
|
+
const p = Lt(e, a.value.computed ?? {}, c), d = Ut(a.value.methods ?? {}, c), m = qt(e, a.value.inject, c);
|
|
884
893
|
for (const [y, w] of Object.entries(m || {}))
|
|
885
894
|
m[y] = e.inject(y, w);
|
|
886
|
-
const h =
|
|
887
|
-
|
|
895
|
+
const h = Jt(
|
|
896
|
+
a.value.dataSources || {},
|
|
888
897
|
c
|
|
889
898
|
), g = {
|
|
890
899
|
...m,
|
|
@@ -892,39 +901,39 @@ function ae(n) {
|
|
|
892
901
|
...d,
|
|
893
902
|
...h
|
|
894
903
|
};
|
|
895
|
-
return c.setup(g, e),
|
|
904
|
+
return c.setup(g, e), Kt(e, a.value.watch ?? [], c), {
|
|
896
905
|
vtj: c,
|
|
897
906
|
state: c.state,
|
|
898
907
|
...p,
|
|
899
908
|
...d
|
|
900
909
|
};
|
|
901
910
|
},
|
|
902
|
-
emits:
|
|
903
|
-
expose: ["vtj", ...
|
|
911
|
+
emits: Ht(a.value.emits),
|
|
912
|
+
expose: ["vtj", ...a.value.expose || []],
|
|
904
913
|
render() {
|
|
905
|
-
if (!
|
|
906
|
-
const f =
|
|
914
|
+
if (!a.value.nodes) return null;
|
|
915
|
+
const f = a.value.nodes || [];
|
|
907
916
|
if (f.length === 1)
|
|
908
|
-
return M(f[0], c, e,
|
|
917
|
+
return M(f[0], c, e, o, f);
|
|
909
918
|
{
|
|
910
919
|
const p = f.map(
|
|
911
|
-
(d) => M(d, c, e,
|
|
920
|
+
(d) => M(d, c, e, o, f)
|
|
912
921
|
);
|
|
913
922
|
return e.createVNode("div", {}, p);
|
|
914
923
|
}
|
|
915
924
|
},
|
|
916
|
-
...
|
|
925
|
+
...zt(a.value.lifeCycles ?? {}, c)
|
|
917
926
|
});
|
|
918
927
|
return {
|
|
919
|
-
renderer: e.markRaw(
|
|
928
|
+
renderer: e.markRaw(l),
|
|
920
929
|
context: c
|
|
921
930
|
};
|
|
922
931
|
}
|
|
923
|
-
function
|
|
932
|
+
function Ht(n = []) {
|
|
924
933
|
return n.map((e) => I(e) ? e : e.name);
|
|
925
934
|
}
|
|
926
|
-
function
|
|
927
|
-
const t = (s) => s ? (Array.isArray(s) ? s : [s]).map((i) =>
|
|
935
|
+
function Nt(n = [], e) {
|
|
936
|
+
const t = (s) => s ? (Array.isArray(s) ? s : [s]).map((i) => pt[i]) : void 0;
|
|
928
937
|
return n.map((s) => I(s) ? {
|
|
929
938
|
name: s
|
|
930
939
|
} : {
|
|
@@ -941,7 +950,7 @@ function Ot(n = [], e) {
|
|
|
941
950
|
{}
|
|
942
951
|
);
|
|
943
952
|
}
|
|
944
|
-
function
|
|
953
|
+
function Bt(n, e, t) {
|
|
945
954
|
return n.reactive(
|
|
946
955
|
Object.keys(e || {}).reduce(
|
|
947
956
|
(s, r) => {
|
|
@@ -952,40 +961,40 @@ function Mt(n, e, t) {
|
|
|
952
961
|
)
|
|
953
962
|
);
|
|
954
963
|
}
|
|
955
|
-
function
|
|
964
|
+
function Lt(n, e, t) {
|
|
956
965
|
return Object.entries(e ?? {}).reduce(
|
|
957
966
|
(s, [r, i]) => (s[r] = n.computed(t.__parseFunction(i)), s),
|
|
958
967
|
{}
|
|
959
968
|
);
|
|
960
969
|
}
|
|
961
|
-
function
|
|
970
|
+
function Ut(n, e) {
|
|
962
971
|
return Object.entries(n ?? {}).reduce(
|
|
963
972
|
(t, [s, r]) => (t[s] = e.__parseFunction(r), t),
|
|
964
973
|
{}
|
|
965
974
|
);
|
|
966
975
|
}
|
|
967
|
-
function
|
|
976
|
+
function qt(n, e = [], t) {
|
|
968
977
|
return e.reduce(
|
|
969
978
|
(s, r) => {
|
|
970
|
-
const { name: i, from:
|
|
979
|
+
const { name: i, from: o } = r || {};
|
|
971
980
|
r.default;
|
|
972
|
-
const
|
|
973
|
-
return s[i] = n.inject(
|
|
981
|
+
const a = b(o) ? t.__parseExpression(o) || i : o ?? i, u = b(r.default) ? t.__parseExpression(r.default) : r.default ?? null;
|
|
982
|
+
return s[i] = n.inject(a, u), s;
|
|
974
983
|
},
|
|
975
984
|
{}
|
|
976
985
|
);
|
|
977
986
|
}
|
|
978
|
-
function
|
|
987
|
+
function Jt(n, e) {
|
|
979
988
|
return Object.keys(n).reduce(
|
|
980
989
|
(t, s) => {
|
|
981
990
|
const r = n[s];
|
|
982
991
|
if (r.type === "mock")
|
|
983
|
-
t[s] =
|
|
992
|
+
t[s] = Tt(r);
|
|
984
993
|
else if (r.ref) {
|
|
985
|
-
const i = e.$apis[r.ref],
|
|
986
|
-
t[s] = async (...
|
|
987
|
-
const
|
|
988
|
-
return
|
|
994
|
+
const i = e.$apis[r.ref], o = E(r.transform) ? r.transform.value ? e.__parseFunction(r.transform) : void 0 : r.transform;
|
|
995
|
+
t[s] = async (...a) => {
|
|
996
|
+
const u = await i.apply(e, a);
|
|
997
|
+
return o ? o(u) : u;
|
|
989
998
|
};
|
|
990
999
|
}
|
|
991
1000
|
return t;
|
|
@@ -993,7 +1002,7 @@ function Ht(n, e) {
|
|
|
993
1002
|
{}
|
|
994
1003
|
);
|
|
995
1004
|
}
|
|
996
|
-
function
|
|
1005
|
+
function Kt(n, e = [], t) {
|
|
997
1006
|
e.forEach((s) => {
|
|
998
1007
|
n.watch(
|
|
999
1008
|
t.__parseExpression(s.source),
|
|
@@ -1005,131 +1014,147 @@ function Bt(n, e = [], t) {
|
|
|
1005
1014
|
);
|
|
1006
1015
|
});
|
|
1007
1016
|
}
|
|
1008
|
-
function
|
|
1017
|
+
function zt(n, e) {
|
|
1009
1018
|
return Object.entries(n ?? {}).reduce(
|
|
1010
1019
|
(t, [s, r]) => {
|
|
1011
1020
|
const i = e.__parseFunction(r);
|
|
1012
1021
|
return t[s] = async () => {
|
|
1013
|
-
|
|
1022
|
+
H(i) && (await K(0), await i());
|
|
1014
1023
|
}, t;
|
|
1015
1024
|
},
|
|
1016
1025
|
{}
|
|
1017
1026
|
);
|
|
1018
1027
|
}
|
|
1019
|
-
const
|
|
1020
|
-
let
|
|
1021
|
-
const
|
|
1022
|
-
async function
|
|
1023
|
-
const { urls: t = [], library: s } = n, r = t.filter((
|
|
1028
|
+
const Ne = new it();
|
|
1029
|
+
let ne = [], F = {}, T = {}, Q = {};
|
|
1030
|
+
const Gt = (n, e) => e;
|
|
1031
|
+
async function Be(n, e = window) {
|
|
1032
|
+
const { urls: t = [], library: s } = n, r = t.filter((a) => W(a));
|
|
1024
1033
|
if (r.length === 0 || !s) return null;
|
|
1025
|
-
const i = t.filter((
|
|
1026
|
-
return i.length &&
|
|
1027
|
-
(
|
|
1034
|
+
const i = t.filter((a) => V(a));
|
|
1035
|
+
return i.length && Te(i, e), await xe(r, s, e).catch(
|
|
1036
|
+
(a) => (console.warn("loadScriptUrl error", r, s, a), null)
|
|
1028
1037
|
);
|
|
1029
1038
|
}
|
|
1030
|
-
function
|
|
1039
|
+
function fe(n) {
|
|
1031
1040
|
const { getDsl: e, getDslByUrl: t, options: s } = n;
|
|
1032
|
-
return s.window && (
|
|
1041
|
+
return s.window && (ne.forEach((r) => {
|
|
1033
1042
|
delete s.window[r];
|
|
1034
|
-
}),
|
|
1035
|
-
if (!
|
|
1036
|
-
let
|
|
1037
|
-
if (
|
|
1038
|
-
return
|
|
1039
|
-
const
|
|
1040
|
-
|
|
1041
|
-
() => e(
|
|
1043
|
+
}), ne = []), (r, i, o, a = G) => {
|
|
1044
|
+
if (!o || typeof o == "string") return i;
|
|
1045
|
+
let u = "";
|
|
1046
|
+
if (o.type === "Schema" && o.id)
|
|
1047
|
+
return u = o.id + "_" + r, T[u] || (T[u] = a.defineAsyncComponent(async () => {
|
|
1048
|
+
const c = F[o.id] || await Ne.add(
|
|
1049
|
+
o.id,
|
|
1050
|
+
() => e(o.id)
|
|
1042
1051
|
);
|
|
1043
|
-
return
|
|
1044
|
-
...s,
|
|
1052
|
+
return c && (c.name = i, F[o.id] = c), c ? ue({
|
|
1045
1053
|
Vue: a,
|
|
1046
|
-
dsl: _e(l),
|
|
1047
1054
|
mode: _.Runtime,
|
|
1048
|
-
|
|
1055
|
+
...s,
|
|
1056
|
+
dsl: $e(c),
|
|
1057
|
+
loader: fe(n)
|
|
1049
1058
|
}).renderer : null;
|
|
1050
1059
|
}));
|
|
1051
|
-
if (
|
|
1052
|
-
return
|
|
1053
|
-
const
|
|
1054
|
-
return
|
|
1060
|
+
if (o.type === "UrlSchema" && o.url)
|
|
1061
|
+
return u = o.url + "_" + r, T[u] || (T[u] = a.defineAsyncComponent(async () => {
|
|
1062
|
+
const c = F[o.url] || await t(o.url);
|
|
1063
|
+
return c && (c.name = i, F[o.url] = c), c ? ue({
|
|
1055
1064
|
...s,
|
|
1056
1065
|
Vue: a,
|
|
1057
|
-
dsl:
|
|
1066
|
+
dsl: $e(c),
|
|
1058
1067
|
mode: _.Runtime,
|
|
1059
|
-
loader:
|
|
1068
|
+
loader: fe(n)
|
|
1060
1069
|
}).renderer : null;
|
|
1061
1070
|
}));
|
|
1062
|
-
if (
|
|
1063
|
-
let
|
|
1064
|
-
return
|
|
1071
|
+
if (o.type === "Plugin") {
|
|
1072
|
+
let c = o.library ? F[o.library] : null;
|
|
1073
|
+
return c || (o.library && ne.push(o.library), c = F[o.library || Symbol()] = a.defineAsyncComponent(
|
|
1065
1074
|
async () => {
|
|
1066
|
-
const
|
|
1067
|
-
return
|
|
1075
|
+
const l = await Be(o, s.window);
|
|
1076
|
+
return l || (console.warn("getPlugin result is null", o), null);
|
|
1068
1077
|
}
|
|
1069
|
-
),
|
|
1078
|
+
), c);
|
|
1070
1079
|
}
|
|
1071
|
-
return
|
|
1080
|
+
return i;
|
|
1072
1081
|
};
|
|
1073
1082
|
}
|
|
1074
|
-
function
|
|
1075
|
-
F = {}, T = {},
|
|
1083
|
+
function Ns() {
|
|
1084
|
+
F = {}, T = {}, Q = {}, Ne.clearAllCache();
|
|
1085
|
+
}
|
|
1086
|
+
function Vt(n, e) {
|
|
1087
|
+
Q[n] = e;
|
|
1076
1088
|
}
|
|
1077
|
-
function
|
|
1089
|
+
function Re(n) {
|
|
1090
|
+
return Q[n];
|
|
1091
|
+
}
|
|
1092
|
+
function Bs() {
|
|
1093
|
+
Q = {};
|
|
1094
|
+
}
|
|
1095
|
+
function M(n, e, t = G, s = Gt, r = [], i = !1) {
|
|
1078
1096
|
if (!n || !n.name || n.invisible) return null;
|
|
1079
|
-
const
|
|
1080
|
-
if (!i && (
|
|
1097
|
+
const o = t.getCurrentInstance()?.appContext, { id: a = null, directives: u = [] } = n, { vIf: c, vElseIf: l, vElse: f, vFor: p, vShow: d, vModels: m, vBind: h, vHtml: g, others: y } = Le(u);
|
|
1098
|
+
if (!i && (l || f))
|
|
1081
1099
|
return null;
|
|
1082
|
-
if (c && !
|
|
1083
|
-
return
|
|
1100
|
+
if (c && !Qt(c, e))
|
|
1101
|
+
return ts(n, e, t, s, r);
|
|
1084
1102
|
const w = (v, S = 0) => {
|
|
1085
|
-
const A = v.$components,
|
|
1103
|
+
const A = v.$components, X = (() => {
|
|
1086
1104
|
if (n.name === "component")
|
|
1087
|
-
return
|
|
1105
|
+
return Xt(v, n.props?.is);
|
|
1088
1106
|
if (n.name === "slot") return n.name;
|
|
1089
|
-
const j = s(n.name, n.from, t);
|
|
1090
|
-
return I(j) ?
|
|
1091
|
-
})(), C =
|
|
1107
|
+
const j = s(`${n.id}_${S}`, n.name, n.from, t);
|
|
1108
|
+
return I(j) ? jt(j) || Rt(j) ? j : A[j] ?? o?.app?.component(j) ?? j : j;
|
|
1109
|
+
})(), C = Yt(a, n.props ?? {}, v), Ge = es(t, n.events ?? {}, v);
|
|
1092
1110
|
if (n.name === "slot")
|
|
1093
|
-
return
|
|
1111
|
+
return ss(t, n, C, v, s);
|
|
1094
1112
|
h && Object.assign(C, v.__parseExpression(h.value)), d && (C.style = Object.assign(
|
|
1095
1113
|
C.style ?? {},
|
|
1096
|
-
|
|
1097
|
-
)), g && Object.assign(C,
|
|
1098
|
-
|
|
1114
|
+
rs(d, v)
|
|
1115
|
+
)), g && Object.assign(C, is(g, v)), m.forEach((j) => {
|
|
1116
|
+
Oe.includes(n.name) ? Object.assign(C, os(j, v)) : Object.assign(C, as(t, j, v));
|
|
1099
1117
|
});
|
|
1100
|
-
const
|
|
1118
|
+
const Ve = cs(
|
|
1101
1119
|
t,
|
|
1102
1120
|
n.children ?? [],
|
|
1103
1121
|
v,
|
|
1104
1122
|
s,
|
|
1105
1123
|
n
|
|
1106
|
-
),
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1124
|
+
), ve = v?.__id ? `data-v-${v.__id}` : void 0, We = ve ? { [ve]: "" } : {}, Qe = v.__mode === _.Design ? { "data-vtj": a } : {}, Y = `${a}_${S}`, Z = {
|
|
1125
|
+
key: `${a}_${S}`,
|
|
1126
|
+
...We,
|
|
1127
|
+
...Qe,
|
|
1128
|
+
...C,
|
|
1129
|
+
...Ge
|
|
1130
|
+
};
|
|
1131
|
+
Ct(Z, Re(Y)) || Vt(Y, Z);
|
|
1132
|
+
let ee = t.createVNode(
|
|
1133
|
+
X,
|
|
1134
|
+
Re(Y) || Z || {},
|
|
1135
|
+
Ve
|
|
1111
1136
|
);
|
|
1112
|
-
const
|
|
1113
|
-
return
|
|
1137
|
+
const _e = o ? Wt(o, y, v) : [];
|
|
1138
|
+
return _e.length && (ee = t.withDirectives(ee, _e)), ee;
|
|
1114
1139
|
};
|
|
1115
|
-
return p ?
|
|
1140
|
+
return p ? fs(p, w, e) : w(e);
|
|
1116
1141
|
}
|
|
1117
|
-
function
|
|
1142
|
+
function Wt(n, e, t) {
|
|
1118
1143
|
const s = n.app;
|
|
1119
1144
|
return e.map((r) => {
|
|
1120
1145
|
const i = typeof r.name == "string" ? s.directive(r.name) : t.__parseExpression(r.name);
|
|
1121
1146
|
if (!i) return null;
|
|
1122
|
-
const
|
|
1123
|
-
return r.value &&
|
|
1147
|
+
const o = [i];
|
|
1148
|
+
return r.value && o.push(t.__parseExpression(r.value)), r.arg && o.push(r.arg), r.modifiers && o.push(r.modifiers), o;
|
|
1124
1149
|
}).filter((r) => !!r);
|
|
1125
1150
|
}
|
|
1126
|
-
function
|
|
1127
|
-
const e = n.find((
|
|
1128
|
-
(
|
|
1129
|
-
), s = n.find((
|
|
1130
|
-
(
|
|
1151
|
+
function Le(n = []) {
|
|
1152
|
+
const e = n.find((l) => P(l.name) === "vIf"), t = n.find(
|
|
1153
|
+
(l) => P(l.name) === "vElseIf"
|
|
1154
|
+
), s = n.find((l) => P(l.name) === "vElse"), r = n.find((l) => P(l.name) === "vFor"), i = n.find((l) => P(l.name) === "vShow"), o = n.find((l) => P(l.name) === "vBind"), a = n.find((l) => P(l.name) === "vHtml"), u = n.filter(
|
|
1155
|
+
(l) => P(l.name) === "vModel"
|
|
1131
1156
|
), c = n.filter(
|
|
1132
|
-
(
|
|
1157
|
+
(l) => !ft.includes(P(l.name))
|
|
1133
1158
|
);
|
|
1134
1159
|
return {
|
|
1135
1160
|
vIf: e,
|
|
@@ -1137,97 +1162,97 @@ function De(n = []) {
|
|
|
1137
1162
|
vElse: s,
|
|
1138
1163
|
vFor: r,
|
|
1139
1164
|
vShow: i,
|
|
1140
|
-
vModels:
|
|
1141
|
-
vBind:
|
|
1165
|
+
vModels: u,
|
|
1166
|
+
vBind: o,
|
|
1142
1167
|
others: c,
|
|
1143
|
-
vHtml:
|
|
1168
|
+
vHtml: a
|
|
1144
1169
|
};
|
|
1145
1170
|
}
|
|
1146
|
-
function
|
|
1171
|
+
function Qt(n, e) {
|
|
1147
1172
|
return !!e.__parseExpression(n.value);
|
|
1148
1173
|
}
|
|
1149
|
-
function
|
|
1174
|
+
function Xt(n, e) {
|
|
1150
1175
|
return e ? b(e) ? n.__parseExpression(e) : e : "div";
|
|
1151
1176
|
}
|
|
1152
|
-
function
|
|
1153
|
-
const s =
|
|
1177
|
+
function Yt(n, e, t) {
|
|
1178
|
+
const s = pe(e, t);
|
|
1154
1179
|
return s.ref = t.__ref(n, s.ref), s;
|
|
1155
1180
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return b(n) ? e.__parseExpression(n) : E(n) ? e.__parseFunction(n) : Array.isArray(n) ? n.map((t) =>
|
|
1181
|
+
function pe(n, e) {
|
|
1182
|
+
return b(n) ? e.__parseExpression(n) : E(n) ? e.__parseFunction(n) : Array.isArray(n) ? n.map((t) => pe(t, e)) : typeof n == "object" ? Object.keys(n || {}).reduce(
|
|
1158
1183
|
(t, s) => {
|
|
1159
1184
|
let r = n[s];
|
|
1160
|
-
return t[s] =
|
|
1185
|
+
return t[s] = pe(r, e), t;
|
|
1161
1186
|
},
|
|
1162
1187
|
{}
|
|
1163
1188
|
) : n;
|
|
1164
1189
|
}
|
|
1165
|
-
function
|
|
1190
|
+
function Zt(n, e) {
|
|
1166
1191
|
return (t) => {
|
|
1167
1192
|
t?.key?.toLowerCase() === e.toLowerCase() && n(t);
|
|
1168
1193
|
};
|
|
1169
1194
|
}
|
|
1170
|
-
function
|
|
1195
|
+
function es(n, e, t) {
|
|
1171
1196
|
const s = ["passive", "capture", "once"], r = {
|
|
1172
1197
|
capture: "Capture",
|
|
1173
1198
|
once: "Once",
|
|
1174
1199
|
passive: "OnceCapture"
|
|
1175
1200
|
};
|
|
1176
1201
|
return Object.keys(e || {}).reduce(
|
|
1177
|
-
(i,
|
|
1178
|
-
const
|
|
1179
|
-
return f && (i[
|
|
1180
|
-
|
|
1181
|
-
|
|
1202
|
+
(i, o) => {
|
|
1203
|
+
const a = e[o], u = Ue(a.modifiers), c = u.find((p) => s.includes(p)), l = "on" + ot(o) + (c && r[c] || ""), f = t.__parseFunction(a.handler);
|
|
1204
|
+
return f && (i[l] = n.withModifiers(
|
|
1205
|
+
u.includes("enter") ? Zt(f, "enter") : f,
|
|
1206
|
+
u
|
|
1182
1207
|
)), i;
|
|
1183
1208
|
},
|
|
1184
1209
|
{}
|
|
1185
1210
|
);
|
|
1186
1211
|
}
|
|
1187
|
-
function
|
|
1188
|
-
let i = r.findIndex((
|
|
1189
|
-
for (let
|
|
1190
|
-
const { directives:
|
|
1191
|
-
if (
|
|
1192
|
-
if (e.__parseExpression(
|
|
1193
|
-
return M(r[
|
|
1212
|
+
function ts(n, e, t, s, r = []) {
|
|
1213
|
+
let i = r.findIndex((o) => o.id === n.id);
|
|
1214
|
+
for (let o = ++i; o < r.length; o++) {
|
|
1215
|
+
const { directives: a = [] } = r[o], { vElseIf: u, vElse: c } = Le(a);
|
|
1216
|
+
if (u) {
|
|
1217
|
+
if (e.__parseExpression(u.value))
|
|
1218
|
+
return M(r[o], e, t, s, r, !0);
|
|
1194
1219
|
continue;
|
|
1195
1220
|
}
|
|
1196
1221
|
if (c)
|
|
1197
|
-
return M(r[
|
|
1222
|
+
return M(r[o], e, t, s, r, !0);
|
|
1198
1223
|
}
|
|
1199
1224
|
return null;
|
|
1200
1225
|
}
|
|
1201
|
-
function
|
|
1226
|
+
function Ue(n = {}, e = !1) {
|
|
1202
1227
|
const t = Object.keys(n);
|
|
1203
1228
|
return e ? t.map((s) => "." + s) : t;
|
|
1204
1229
|
}
|
|
1205
|
-
function
|
|
1206
|
-
const { children: i } = e,
|
|
1207
|
-
return
|
|
1208
|
-
|
|
1230
|
+
function ss(n, e, t, s, r) {
|
|
1231
|
+
const { children: i } = e, o = ns(e, s), a = s.$slots?.[o.name];
|
|
1232
|
+
return a ? a(t) : i ? I(i) ? n.createTextVNode(i) : b(i) ? n.createTextVNode(
|
|
1233
|
+
Me(s.__parseExpression(i))
|
|
1209
1234
|
) : Array.isArray(i) ? i.map(
|
|
1210
|
-
(
|
|
1235
|
+
(u) => M(u, s, n, r, i)
|
|
1211
1236
|
) : null : null;
|
|
1212
1237
|
}
|
|
1213
|
-
function
|
|
1238
|
+
function ns(n, e) {
|
|
1214
1239
|
const { props: t } = n, s = t?.name || "default";
|
|
1215
1240
|
return {
|
|
1216
1241
|
name: b(s) ? e.__parseExpression(s) : s,
|
|
1217
1242
|
params: []
|
|
1218
1243
|
};
|
|
1219
1244
|
}
|
|
1220
|
-
function
|
|
1245
|
+
function rs(n, e) {
|
|
1221
1246
|
return e.__parseExpression(n.value) ? {} : {
|
|
1222
1247
|
display: "none"
|
|
1223
1248
|
};
|
|
1224
1249
|
}
|
|
1225
|
-
function
|
|
1250
|
+
function is(n, e) {
|
|
1226
1251
|
return {
|
|
1227
1252
|
innerHTML: e.__parseExpression(n.value) || ""
|
|
1228
1253
|
};
|
|
1229
1254
|
}
|
|
1230
|
-
function
|
|
1255
|
+
function os(n, e) {
|
|
1231
1256
|
const t = {
|
|
1232
1257
|
type: "JSFunction",
|
|
1233
1258
|
value: n.value?.value ? `(v) => {
|
|
@@ -1239,50 +1264,50 @@ function Zt(n, e) {
|
|
|
1239
1264
|
onInput: e.__parseFunction(t)
|
|
1240
1265
|
};
|
|
1241
1266
|
}
|
|
1242
|
-
function
|
|
1267
|
+
function as(n, e, t) {
|
|
1243
1268
|
const s = {
|
|
1244
1269
|
type: "JSFunction",
|
|
1245
1270
|
value: e.value?.value ? `(v) => {
|
|
1246
1271
|
${e.value.value} = v;
|
|
1247
1272
|
}` : "(v) => {}"
|
|
1248
|
-
}, r = t.__parseFunction(s), i =
|
|
1273
|
+
}, r = t.__parseFunction(s), i = Ue(
|
|
1249
1274
|
b(e.modifiers) ? t.__parseExpression(e.modifiers) : e.modifiers
|
|
1250
|
-
),
|
|
1275
|
+
), o = b(e.arg) ? t.__parseExpression(e.arg) : e.arg || "modelValue";
|
|
1251
1276
|
return {
|
|
1252
|
-
[
|
|
1253
|
-
[`onUpdate:${
|
|
1277
|
+
[o]: t.__parseExpression(e.value),
|
|
1278
|
+
[`onUpdate:${o}`]: i.length && r ? n.withModifiers(r, i) : r
|
|
1254
1279
|
};
|
|
1255
1280
|
}
|
|
1256
|
-
function
|
|
1281
|
+
function cs(n, e, t, s, r) {
|
|
1257
1282
|
if (!e) return null;
|
|
1258
1283
|
if (I(e))
|
|
1259
1284
|
return { default: () => e };
|
|
1260
1285
|
if (b(e))
|
|
1261
1286
|
return {
|
|
1262
|
-
default: () =>
|
|
1287
|
+
default: () => Me(t.__parseExpression(e))
|
|
1263
1288
|
};
|
|
1264
1289
|
if (Array.isArray(e) && e.length > 0) {
|
|
1265
|
-
const i =
|
|
1266
|
-
[
|
|
1290
|
+
const i = ls(e), o = (a, u) => !a || !r ? {} : r?.id && Object.keys(a).length ? u ? {
|
|
1291
|
+
[u]: a
|
|
1267
1292
|
} : {
|
|
1268
|
-
[`scope_${r.id}`]:
|
|
1269
|
-
} :
|
|
1293
|
+
[`scope_${r.id}`]: a
|
|
1294
|
+
} : u ? { [u]: /* @__PURE__ */ Object.create(null) } : {};
|
|
1270
1295
|
return Object.entries(i).reduce(
|
|
1271
|
-
(
|
|
1272
|
-
const d =
|
|
1296
|
+
(a, [u, { nodes: c, params: l, scope: f }]) => (a[u] = (p) => {
|
|
1297
|
+
const d = l.length ? at(p ?? {}, l) : o(p, f);
|
|
1273
1298
|
return c.map(
|
|
1274
1299
|
(m) => M(m, t.__clone(d), n, s, c)
|
|
1275
1300
|
);
|
|
1276
|
-
},
|
|
1301
|
+
}, a),
|
|
1277
1302
|
{}
|
|
1278
1303
|
);
|
|
1279
1304
|
}
|
|
1280
1305
|
return null;
|
|
1281
1306
|
}
|
|
1282
|
-
function
|
|
1307
|
+
function ls(n) {
|
|
1283
1308
|
const e = {};
|
|
1284
1309
|
for (const t of n) {
|
|
1285
|
-
const s =
|
|
1310
|
+
const s = us(t.slot), r = s.name;
|
|
1286
1311
|
e[r] ? (e[r].nodes.push(t), e[r].params = e[r].params.concat(s.params), e[r].scope = s.scope || "") : e[r] = {
|
|
1287
1312
|
nodes: [t],
|
|
1288
1313
|
params: s.params,
|
|
@@ -1291,24 +1316,24 @@ function ss(n) {
|
|
|
1291
1316
|
}
|
|
1292
1317
|
return e;
|
|
1293
1318
|
}
|
|
1294
|
-
function
|
|
1319
|
+
function us(n = "default") {
|
|
1295
1320
|
return I(n) ? { name: n, params: [], scope: "" } : { params: [], scope: "", ...n };
|
|
1296
1321
|
}
|
|
1297
|
-
function
|
|
1298
|
-
const { value: s, iterator: r } = n, { item: i = "item", index:
|
|
1299
|
-
let
|
|
1300
|
-
return Number.isInteger(
|
|
1322
|
+
function fs(n, e, t) {
|
|
1323
|
+
const { value: s, iterator: r } = n, { item: i = "item", index: o = "index" } = r || {};
|
|
1324
|
+
let a = t.__parseExpression(s) || [];
|
|
1325
|
+
return Number.isInteger(a) && (a = new Array(a).fill(!0).map((u, c) => c + 1)), Array.isArray(a) ? a.map((u, c) => e(t.__clone({ [i]: u, [o]: c }), c)) : (console.warn("[vForRender]:", `${s?.value} is not a Arrary`), []);
|
|
1301
1326
|
}
|
|
1302
|
-
const
|
|
1327
|
+
const re = Fe({
|
|
1303
1328
|
name: "VtjPageContainer",
|
|
1304
1329
|
async setup() {
|
|
1305
|
-
const n =
|
|
1330
|
+
const n = Ke(), e = ke(), t = e.meta.__vtj__ || e.params.id, s = t ? n.getPage(t) : n.getHomepage(), r = s ? await n.getRenderComponent(s.id) : null, i = le(Symbol());
|
|
1306
1331
|
if (s) {
|
|
1307
1332
|
Object.assign(e.meta, s.meta || {}, { cache: s.cache });
|
|
1308
|
-
const { useTitle:
|
|
1309
|
-
if (
|
|
1310
|
-
const
|
|
1311
|
-
a
|
|
1333
|
+
const { useTitle: o } = n?.adapter;
|
|
1334
|
+
if (o) {
|
|
1335
|
+
const a = e.meta.title || s.title || "VTJ.PRO";
|
|
1336
|
+
o(a);
|
|
1312
1337
|
}
|
|
1313
1338
|
}
|
|
1314
1339
|
return {
|
|
@@ -1323,7 +1348,7 @@ const te = Ce({
|
|
|
1323
1348
|
},
|
|
1324
1349
|
render() {
|
|
1325
1350
|
const { component: n, query: e, sid: t } = this;
|
|
1326
|
-
return n ?
|
|
1351
|
+
return n ? ce(n, { ...e, key: t }) : ce(
|
|
1327
1352
|
"div",
|
|
1328
1353
|
{ style: { padding: "10px" } },
|
|
1329
1354
|
"找不到组件,组件不存在或未发布!"
|
|
@@ -1332,67 +1357,67 @@ const te = Ce({
|
|
|
1332
1357
|
activated() {
|
|
1333
1358
|
this.meta.cache === !1 && (this.sid = Symbol());
|
|
1334
1359
|
}
|
|
1335
|
-
}),
|
|
1360
|
+
}), ps = Fe({
|
|
1336
1361
|
name: "VtjStartupContainer",
|
|
1337
1362
|
render() {
|
|
1338
|
-
return
|
|
1363
|
+
return ce("div", "page not found!");
|
|
1339
1364
|
}
|
|
1340
1365
|
});
|
|
1341
1366
|
function z(n, e, t = []) {
|
|
1342
1367
|
const s = [];
|
|
1343
1368
|
for (const r of t) {
|
|
1344
|
-
const { id: i, title:
|
|
1345
|
-
if (
|
|
1346
|
-
const f = z(n, e,
|
|
1369
|
+
const { id: i, title: o, icon: a, children: u, hidden: c, layout: l } = r;
|
|
1370
|
+
if (l) {
|
|
1371
|
+
const f = z(n, e, u || []);
|
|
1347
1372
|
s.push(...f);
|
|
1348
1373
|
} else {
|
|
1349
1374
|
const f = {
|
|
1350
1375
|
id: i,
|
|
1351
|
-
title:
|
|
1352
|
-
icon:
|
|
1376
|
+
title: o,
|
|
1377
|
+
icon: a,
|
|
1353
1378
|
hidden: c,
|
|
1354
1379
|
url: `${n}/${e}/${i}`,
|
|
1355
|
-
children:
|
|
1380
|
+
children: u && u.length ? z(n, e, u) : void 0
|
|
1356
1381
|
};
|
|
1357
1382
|
s.push(f);
|
|
1358
1383
|
}
|
|
1359
1384
|
}
|
|
1360
1385
|
return s;
|
|
1361
1386
|
}
|
|
1362
|
-
function
|
|
1387
|
+
function qe(n, e) {
|
|
1363
1388
|
if (!e) return n;
|
|
1364
1389
|
let t = [];
|
|
1365
1390
|
for (const s of n)
|
|
1366
1391
|
if (s.children && s.children.length) {
|
|
1367
|
-
const r =
|
|
1392
|
+
const r = qe(s.children, e);
|
|
1368
1393
|
r.length && (s.children = r, t.push(s));
|
|
1369
1394
|
} else
|
|
1370
1395
|
e.can(s.id.toString()) && t.push(s);
|
|
1371
1396
|
return t;
|
|
1372
1397
|
}
|
|
1373
|
-
function
|
|
1398
|
+
function Ls(n) {
|
|
1374
1399
|
const {
|
|
1375
1400
|
menuPathPrefix: e = "",
|
|
1376
1401
|
pageRouteName: t = "page",
|
|
1377
1402
|
disableMenusFilter: s = !1
|
|
1378
|
-
} = n || {}, r =
|
|
1379
|
-
|
|
1403
|
+
} = n || {}, r = Ke(), i = ke(), o = It(), a = le(!1), u = le(!1), c = r.project, l = (d, m) => {
|
|
1404
|
+
a.value = !d?.mask, u.value = m?.pure ?? !!d?.pure;
|
|
1380
1405
|
};
|
|
1381
|
-
|
|
1406
|
+
ut(() => {
|
|
1382
1407
|
const { name: d, params: m, meta: h } = i;
|
|
1383
1408
|
if (d === D) {
|
|
1384
1409
|
const g = r.getPage(m.id);
|
|
1385
|
-
|
|
1386
|
-
} else if (d ===
|
|
1410
|
+
l(g, h);
|
|
1411
|
+
} else if (d === q) {
|
|
1387
1412
|
const g = r.getHomepage();
|
|
1388
|
-
|
|
1413
|
+
l(g, h);
|
|
1389
1414
|
} else {
|
|
1390
1415
|
const g = h.__vtj__;
|
|
1391
1416
|
if (g) {
|
|
1392
1417
|
const y = r.getPage(g);
|
|
1393
|
-
|
|
1418
|
+
l(y, h);
|
|
1394
1419
|
} else
|
|
1395
|
-
|
|
1420
|
+
a.value = !h.mask, u.value = !!h.pure;
|
|
1396
1421
|
}
|
|
1397
1422
|
});
|
|
1398
1423
|
const f = z(
|
|
@@ -1401,153 +1426,153 @@ function Os(n) {
|
|
|
1401
1426
|
c?.pages
|
|
1402
1427
|
), p = c?.config;
|
|
1403
1428
|
return {
|
|
1404
|
-
disabled:
|
|
1429
|
+
disabled: a,
|
|
1405
1430
|
logo: p?.logo,
|
|
1406
1431
|
themeSwitchable: p?.themeSwitchable,
|
|
1407
1432
|
title: p?.title || c?.description || c?.name || "VTJ App",
|
|
1408
|
-
menus: s ? f :
|
|
1409
|
-
pure:
|
|
1433
|
+
menus: s ? f : qe(f, o),
|
|
1434
|
+
pure: u
|
|
1410
1435
|
};
|
|
1411
1436
|
}
|
|
1412
|
-
function
|
|
1413
|
-
const { id: t, title: s, meta: r } = n, { name: i = "page", prefix:
|
|
1437
|
+
function ie(n, e) {
|
|
1438
|
+
const { id: t, title: s, meta: r } = n, { name: i = "page", prefix: o = "", component: a, routeMeta: u } = e;
|
|
1414
1439
|
return {
|
|
1415
1440
|
name: t,
|
|
1416
|
-
path: `${
|
|
1417
|
-
component:
|
|
1441
|
+
path: `${o}${i}/${t}`,
|
|
1442
|
+
component: a,
|
|
1418
1443
|
meta: {
|
|
1419
1444
|
title: s,
|
|
1420
|
-
...
|
|
1445
|
+
...u,
|
|
1421
1446
|
...r,
|
|
1422
1447
|
__vtj__: t
|
|
1423
1448
|
}
|
|
1424
1449
|
};
|
|
1425
1450
|
}
|
|
1426
|
-
function
|
|
1451
|
+
function de(n) {
|
|
1427
1452
|
const {
|
|
1428
1453
|
name: e = "page",
|
|
1429
1454
|
prefix: t = "",
|
|
1430
1455
|
pages: s = [],
|
|
1431
1456
|
component: r,
|
|
1432
1457
|
loader: i,
|
|
1433
|
-
routeMeta:
|
|
1434
|
-
homepage:
|
|
1435
|
-
} = n,
|
|
1458
|
+
routeMeta: o,
|
|
1459
|
+
homepage: a
|
|
1460
|
+
} = n, u = [];
|
|
1436
1461
|
for (const c of s) {
|
|
1437
|
-
const { id:
|
|
1462
|
+
const { id: l, title: f, dir: p, layout: d, children: m, meta: h } = c;
|
|
1438
1463
|
if (p) {
|
|
1439
|
-
const g =
|
|
1464
|
+
const g = de({
|
|
1440
1465
|
name: e,
|
|
1441
1466
|
prefix: t,
|
|
1442
1467
|
component: r,
|
|
1443
|
-
routeMeta:
|
|
1444
|
-
homepage:
|
|
1468
|
+
routeMeta: o,
|
|
1469
|
+
homepage: a,
|
|
1445
1470
|
loader: i,
|
|
1446
1471
|
pages: m || []
|
|
1447
1472
|
});
|
|
1448
|
-
|
|
1473
|
+
u.push(...g);
|
|
1449
1474
|
} else if (d) {
|
|
1450
|
-
const g =
|
|
1475
|
+
const g = de({
|
|
1451
1476
|
name: e,
|
|
1452
1477
|
prefix: t,
|
|
1453
1478
|
component: r,
|
|
1454
|
-
routeMeta:
|
|
1455
|
-
homepage:
|
|
1479
|
+
routeMeta: o,
|
|
1480
|
+
homepage: a,
|
|
1456
1481
|
loader: i,
|
|
1457
1482
|
pages: m || []
|
|
1458
1483
|
}), y = {
|
|
1459
|
-
name: `layout_${
|
|
1484
|
+
name: `layout_${l}`,
|
|
1460
1485
|
path: t,
|
|
1461
|
-
component: () => i(
|
|
1486
|
+
component: () => i(l),
|
|
1462
1487
|
meta: {
|
|
1463
1488
|
title: f,
|
|
1464
|
-
...
|
|
1489
|
+
...o,
|
|
1465
1490
|
...h,
|
|
1466
|
-
__vtj__:
|
|
1491
|
+
__vtj__: l
|
|
1467
1492
|
},
|
|
1468
1493
|
children: g
|
|
1469
1494
|
};
|
|
1470
|
-
|
|
1471
|
-
} else if (
|
|
1472
|
-
const g =
|
|
1473
|
-
g.path = "", g.name = `home_${
|
|
1495
|
+
u.push(y), u.push(ie(c, n));
|
|
1496
|
+
} else if (u.push(ie(c, n)), a === l) {
|
|
1497
|
+
const g = ie(c, n);
|
|
1498
|
+
g.path = "", g.name = `home_${l}`, u.push(g);
|
|
1474
1499
|
}
|
|
1475
1500
|
}
|
|
1476
|
-
return
|
|
1501
|
+
return u;
|
|
1477
1502
|
}
|
|
1478
|
-
function
|
|
1479
|
-
const { css: t, store: s, enhance: r } = n, { window: i, app:
|
|
1480
|
-
|
|
1503
|
+
function ds(n = {}, e) {
|
|
1504
|
+
const { css: t, store: s, enhance: r } = n, { window: i, app: o, library: a = {}, adapter: u, mode: c } = e, { Pinia: l } = a;
|
|
1505
|
+
o.config.globalProperties.$libs = a, me(i, "global-css", t || ""), l && s && hs(s, o, l), gs(o, u, n), !u.access && n.access && ms(n.access, o, c, u), ys(o, n), r && vs(r, o, a);
|
|
1481
1506
|
}
|
|
1482
|
-
function
|
|
1507
|
+
function hs(n, e, t) {
|
|
1483
1508
|
const s = t.createPinia();
|
|
1484
1509
|
if (e.use(s), E(n) && n.value) {
|
|
1485
1510
|
const r = R(n, {}, !1, !1, !0), i = t.defineStore("$store", r(e) || {});
|
|
1486
1511
|
e.config.globalProperties.$store = i();
|
|
1487
1512
|
}
|
|
1488
1513
|
}
|
|
1489
|
-
function
|
|
1514
|
+
function ms(n, e, t, s) {
|
|
1490
1515
|
if (E(n) && n.value) {
|
|
1491
|
-
const r = R(n, {}, !1, !1, !0), { alert: i, request:
|
|
1516
|
+
const r = R(n, {}, !1, !1, !0), { alert: i, request: o } = s, a = new ge({
|
|
1492
1517
|
alert: i,
|
|
1493
1518
|
storagePrefix: "__VTJ_APP_",
|
|
1494
1519
|
...r(e)
|
|
1495
|
-
}),
|
|
1496
|
-
|
|
1520
|
+
}), u = e.config.globalProperties.$router;
|
|
1521
|
+
a.connect({ mode: t, router: u, request: o }), e.use(a);
|
|
1497
1522
|
}
|
|
1498
1523
|
}
|
|
1499
|
-
function
|
|
1524
|
+
function gs(n, e, t) {
|
|
1500
1525
|
if (!e.request) return;
|
|
1501
1526
|
const { axios: s, request: r, response: i } = t;
|
|
1502
1527
|
if (s && E(s) && s.value) {
|
|
1503
|
-
const
|
|
1504
|
-
e.request.setConfig(
|
|
1528
|
+
const o = R(s, {}, !1, !1, !0);
|
|
1529
|
+
e.request.setConfig(o(n));
|
|
1505
1530
|
}
|
|
1506
1531
|
if (r && E(r) && r.value) {
|
|
1507
|
-
const
|
|
1508
|
-
|
|
1532
|
+
const o = R(r, {}, !1, !1, !0), a = e.request;
|
|
1533
|
+
a.__unReq && a.__unReq(), a.__unReq = e.request.useRequest((u) => o(u, n));
|
|
1509
1534
|
}
|
|
1510
1535
|
if (i && E(i) && i.value) {
|
|
1511
|
-
const
|
|
1512
|
-
|
|
1536
|
+
const o = R(i, {}, !1, !1, !0), a = e.request;
|
|
1537
|
+
a.__unRes && a.__unRes(), a.__unRes = e.request.useResponse((u) => o(u, n));
|
|
1513
1538
|
}
|
|
1514
1539
|
}
|
|
1515
|
-
function
|
|
1540
|
+
function ys(n, e) {
|
|
1516
1541
|
const { beforeEach: t, afterEach: s } = e, r = n.config.globalProperties.$router;
|
|
1517
1542
|
if (t && E(t) && t.value) {
|
|
1518
1543
|
const i = R(t, {}, !1, !1, !0);
|
|
1519
|
-
r && r.beforeEach((
|
|
1544
|
+
r && r.beforeEach((o, a, u) => i(o, a, u, n));
|
|
1520
1545
|
}
|
|
1521
1546
|
if (s && E(s) && s.value) {
|
|
1522
1547
|
const i = R(s, {}, !1, !1, !0);
|
|
1523
|
-
r && r.afterEach((
|
|
1548
|
+
r && r.afterEach((o, a, u) => i(o, a, u, n));
|
|
1524
1549
|
}
|
|
1525
1550
|
}
|
|
1526
|
-
function
|
|
1551
|
+
function vs(n, e, t = {}) {
|
|
1527
1552
|
E(n) && n.value && R(n, {}, !1, !1, !0)(e, t);
|
|
1528
1553
|
}
|
|
1529
|
-
function
|
|
1554
|
+
function _s(n, e, t) {
|
|
1530
1555
|
if (!n || !e || !t) return;
|
|
1531
1556
|
const { VueI18n: s } = e;
|
|
1532
1557
|
if (s) {
|
|
1533
|
-
const { locale: r, fallbackLocale: i, messages:
|
|
1534
|
-
for (let c of
|
|
1535
|
-
const
|
|
1536
|
-
for (const f of
|
|
1537
|
-
|
|
1558
|
+
const { locale: r, fallbackLocale: i, messages: o = [] } = t, a = {};
|
|
1559
|
+
for (let c of o) {
|
|
1560
|
+
const l = Object.keys(c).filter((f) => f !== "key");
|
|
1561
|
+
for (const f of l)
|
|
1562
|
+
a[f] || (a[f] = {}), a[f][c.key] = c[f];
|
|
1538
1563
|
}
|
|
1539
|
-
const
|
|
1564
|
+
const u = s.createI18n({
|
|
1540
1565
|
legacy: !1,
|
|
1541
1566
|
locale: r,
|
|
1542
1567
|
fallbackLocale: i,
|
|
1543
|
-
messages:
|
|
1568
|
+
messages: a
|
|
1544
1569
|
});
|
|
1545
|
-
n.use(
|
|
1570
|
+
n.use(u);
|
|
1546
1571
|
}
|
|
1547
1572
|
}
|
|
1548
|
-
const
|
|
1549
|
-
var
|
|
1550
|
-
class
|
|
1573
|
+
const Je = Symbol("Provider");
|
|
1574
|
+
var ws = /* @__PURE__ */ ((n) => (n.Production = "production", n.Development = "development", n))(ws || {});
|
|
1575
|
+
class Ss extends Xe {
|
|
1551
1576
|
/**
|
|
1552
1577
|
* 创建Provider实例
|
|
1553
1578
|
* @param options 配置选项
|
|
@@ -1559,18 +1584,18 @@ class hs extends Ge {
|
|
|
1559
1584
|
mode: s = _.Raw,
|
|
1560
1585
|
dependencies: r,
|
|
1561
1586
|
materials: i,
|
|
1562
|
-
project:
|
|
1563
|
-
adapter:
|
|
1564
|
-
globals:
|
|
1587
|
+
project: o = {},
|
|
1588
|
+
adapter: a = {},
|
|
1589
|
+
globals: u = {},
|
|
1565
1590
|
modules: c = {},
|
|
1566
|
-
router:
|
|
1591
|
+
router: l = null,
|
|
1567
1592
|
materialPath: f = "./",
|
|
1568
1593
|
nodeEnv: p = "development"
|
|
1569
1594
|
/* Development */
|
|
1570
1595
|
} = e;
|
|
1571
|
-
this.mode = s, this.modules = c, this.service = t, this.router =
|
|
1596
|
+
this.mode = s, this.modules = c, this.service = t, this.router = l, this.materialPath = f, this.nodeEnv = p, r && (this.dependencies = r), i && (this.materials = i), Object.assign(this.globals, u), Object.assign(this.adapter, a);
|
|
1572
1597
|
const { access: d, request: m } = this.adapter;
|
|
1573
|
-
d && d.connect({ mode: s, router:
|
|
1598
|
+
d && d.connect({ mode: s, router: l, request: m }), o && s !== _.Design ? this.load(o) : this.project = o;
|
|
1574
1599
|
}
|
|
1575
1600
|
mode;
|
|
1576
1601
|
// 当前运行模式(设计/源码/预览等)
|
|
@@ -1578,7 +1603,7 @@ class hs extends Ge {
|
|
|
1578
1603
|
// 全局变量
|
|
1579
1604
|
modules = {};
|
|
1580
1605
|
// 异步模块加载器
|
|
1581
|
-
adapter = { request:
|
|
1606
|
+
adapter = { request: ae, jsonp: Ae };
|
|
1582
1607
|
// 适配器接口
|
|
1583
1608
|
apis = {};
|
|
1584
1609
|
// API集合
|
|
@@ -1618,7 +1643,7 @@ class hs extends Ge {
|
|
|
1618
1643
|
} catch (i) {
|
|
1619
1644
|
O.warn("模拟数据模版异常", i);
|
|
1620
1645
|
}
|
|
1621
|
-
return
|
|
1646
|
+
return N()?.mock(s);
|
|
1622
1647
|
};
|
|
1623
1648
|
}
|
|
1624
1649
|
/**
|
|
@@ -1634,11 +1659,11 @@ class hs extends Ge {
|
|
|
1634
1659
|
const { vtjDir: t = ".vtj" } = this.options, s = this.modules[`${t}/projects/${e.id}.json`] || this.modules[`/src/${t}/projects/${e.id}.json`];
|
|
1635
1660
|
if (this.project = s ? await s() : await this.service.init(e), !this.project)
|
|
1636
1661
|
throw new Error("project is null");
|
|
1637
|
-
const { apis: r = [], meta: i = [], env:
|
|
1638
|
-
|
|
1662
|
+
const { apis: r = [], meta: i = [], env: o = [] } = this.project, a = window;
|
|
1663
|
+
a && (a.CKEDITOR_VERSION = void 0), this.initEnv(o), this.mode === _.Raw ? await this.loadDependencies(a) : await this.loadAssets(a), this.initMock(a), this.apis = Ot(r, i, this.adapter), He(a), Mt(r, a), e.platform !== "uniapp" && this.initRouter(), this.triggerReady();
|
|
1639
1664
|
}
|
|
1640
1665
|
initMock(e) {
|
|
1641
|
-
const t =
|
|
1666
|
+
const t = N(e);
|
|
1642
1667
|
t && t.setup({
|
|
1643
1668
|
timeout: "50-500"
|
|
1644
1669
|
});
|
|
@@ -1653,20 +1678,20 @@ class hs extends Ge {
|
|
|
1653
1678
|
dependencies: s,
|
|
1654
1679
|
library: r,
|
|
1655
1680
|
components: i,
|
|
1656
|
-
materialPath:
|
|
1657
|
-
nodeEnv:
|
|
1658
|
-
libraryLocales:
|
|
1681
|
+
materialPath: o,
|
|
1682
|
+
nodeEnv: a,
|
|
1683
|
+
libraryLocales: u
|
|
1659
1684
|
} = this, {
|
|
1660
1685
|
libraryExports: c,
|
|
1661
|
-
libraryMap:
|
|
1686
|
+
libraryMap: l,
|
|
1662
1687
|
materials: f,
|
|
1663
1688
|
materialExports: p,
|
|
1664
1689
|
materialMapLibrary: d,
|
|
1665
1690
|
libraryLocaleMap: m
|
|
1666
|
-
} =
|
|
1691
|
+
} = gt(
|
|
1667
1692
|
t,
|
|
1668
|
-
|
|
1669
|
-
|
|
1693
|
+
o,
|
|
1694
|
+
a === "development"
|
|
1670
1695
|
/* Development */
|
|
1671
1696
|
);
|
|
1672
1697
|
Object.assign(this.libraryLocaleMap, m);
|
|
@@ -1677,23 +1702,23 @@ class hs extends Ge {
|
|
|
1677
1702
|
else if (g)
|
|
1678
1703
|
e[h] = r[h] = await g();
|
|
1679
1704
|
else {
|
|
1680
|
-
const v =
|
|
1705
|
+
const v = l[h] || [];
|
|
1681
1706
|
for (const S of v)
|
|
1682
|
-
V(S) && await
|
|
1707
|
+
V(S) && await Et(S, k.append(S, { v: x })), W(S) && await Ee(k.append(S, { v: x }));
|
|
1683
1708
|
r[h] = e[h];
|
|
1684
1709
|
}
|
|
1685
1710
|
const w = m[h];
|
|
1686
1711
|
if (w) {
|
|
1687
1712
|
const v = s[w];
|
|
1688
|
-
|
|
1713
|
+
u[w] = v ? await v() : e[w];
|
|
1689
1714
|
}
|
|
1690
1715
|
}
|
|
1691
|
-
if (
|
|
1716
|
+
if (a === "development") {
|
|
1692
1717
|
for (const g of f)
|
|
1693
|
-
await
|
|
1718
|
+
await Ee(k.append(g, { v: x }));
|
|
1694
1719
|
const h = this.materials || {};
|
|
1695
1720
|
for (const g of p) {
|
|
1696
|
-
const y = e[d[g]], w = y?.default || y, v =
|
|
1721
|
+
const y = e[d[g]], w = y?.default || y, v = Ye[g];
|
|
1697
1722
|
if (v)
|
|
1698
1723
|
w && v.forEach((S) => {
|
|
1699
1724
|
i[S] = w[S];
|
|
@@ -1701,7 +1726,7 @@ class hs extends Ge {
|
|
|
1701
1726
|
else {
|
|
1702
1727
|
const S = h[g] ? (await h[g]()).default : e[g];
|
|
1703
1728
|
S && w && (S.components || []).forEach((A) => {
|
|
1704
|
-
i[A.name] =
|
|
1729
|
+
i[A.name] = yt(A, w);
|
|
1705
1730
|
});
|
|
1706
1731
|
}
|
|
1707
1732
|
}
|
|
@@ -1711,38 +1736,38 @@ class hs extends Ge {
|
|
|
1711
1736
|
const { router: e, project: t, options: s, adapter: r } = this;
|
|
1712
1737
|
if (!e) return;
|
|
1713
1738
|
const i = t?.platform === "uniapp" ? "pages" : "page", {
|
|
1714
|
-
routeAppendTo:
|
|
1715
|
-
pageRouteName:
|
|
1716
|
-
routeMeta:
|
|
1717
|
-
} = s, c =
|
|
1718
|
-
path: `${c}${
|
|
1739
|
+
routeAppendTo: o,
|
|
1740
|
+
pageRouteName: a = i,
|
|
1741
|
+
routeMeta: u
|
|
1742
|
+
} = s, c = o ? "" : "/", l = {
|
|
1743
|
+
path: `${c}${a}/:id`,
|
|
1719
1744
|
name: D,
|
|
1720
|
-
component:
|
|
1745
|
+
component: re
|
|
1721
1746
|
}, f = this.getHomepage(), p = {
|
|
1722
1747
|
path: c,
|
|
1723
|
-
name:
|
|
1724
|
-
component: f ?
|
|
1725
|
-
meta:
|
|
1748
|
+
name: q,
|
|
1749
|
+
component: f ? re : r.startupComponent || ps,
|
|
1750
|
+
meta: u
|
|
1726
1751
|
};
|
|
1727
|
-
if (e.hasRoute(D) && e.removeRoute(D), e.hasRoute(
|
|
1752
|
+
if (e.hasRoute(D) && e.removeRoute(D), e.hasRoute(q) && e.removeRoute(q), s.enableStaticRoute) {
|
|
1728
1753
|
const d = t?.pages || [];
|
|
1729
|
-
|
|
1730
|
-
name:
|
|
1754
|
+
de({
|
|
1755
|
+
name: a,
|
|
1731
1756
|
prefix: c,
|
|
1732
1757
|
pages: d,
|
|
1733
|
-
component:
|
|
1758
|
+
component: re,
|
|
1734
1759
|
loader: this.getRenderComponent.bind(this),
|
|
1735
1760
|
homepage: f?.id
|
|
1736
1761
|
}).forEach((h) => {
|
|
1737
|
-
|
|
1738
|
-
}), f || (
|
|
1762
|
+
o ? e.addRoute(o, h) : e.addRoute(h);
|
|
1763
|
+
}), f || (o ? e.addRoute(o, p) : e.addRoute(p));
|
|
1739
1764
|
} else
|
|
1740
|
-
|
|
1765
|
+
o ? (e.addRoute(o, l), e.addRoute(o, p)) : (e.addRoute(l), e.addRoute(p));
|
|
1741
1766
|
}
|
|
1742
1767
|
setErrorHandler(e) {
|
|
1743
|
-
e.config.errorHandler =
|
|
1744
|
-
const i = s?.$options.name,
|
|
1745
|
-
["getComputedStyle", "ResizeObserver"].some((c) =>
|
|
1768
|
+
e.config.errorHandler = ct((t, s, r) => {
|
|
1769
|
+
const i = s?.$options.name, o = typeof t == "string" ? t : t?.message || t?.msg || "未知错误", a = `[ ${i} ] ${o} ${r}`;
|
|
1770
|
+
["getComputedStyle", "ResizeObserver"].some((c) => a.includes(c)) || (console.error(
|
|
1746
1771
|
"[VTJ Error]:",
|
|
1747
1772
|
{
|
|
1748
1773
|
err: t,
|
|
@@ -1750,7 +1775,7 @@ class hs extends Ge {
|
|
|
1750
1775
|
info: r
|
|
1751
1776
|
},
|
|
1752
1777
|
t?.stack
|
|
1753
|
-
), this.errorHandler && this.errorHandler(t), this.adapter.notify && this.adapter.notify(
|
|
1778
|
+
), this.errorHandler && this.errorHandler(t), this.adapter.notify && this.adapter.notify(a, "组件渲染错误", "error"));
|
|
1754
1779
|
}, 300);
|
|
1755
1780
|
}
|
|
1756
1781
|
/**
|
|
@@ -1765,12 +1790,12 @@ class hs extends Ge {
|
|
|
1765
1790
|
*/
|
|
1766
1791
|
install(e) {
|
|
1767
1792
|
const { libraryLocaleMap: t, libraryLocales: s } = this, { libraryOptions: r = {} } = this.options, i = e.config.globalProperties.installed || {};
|
|
1768
|
-
for (const [
|
|
1769
|
-
if (!i[
|
|
1770
|
-
const c = { locale: s[t[
|
|
1771
|
-
e.use(
|
|
1793
|
+
for (const [o, a] of Object.entries(this.library))
|
|
1794
|
+
if (!i[o] && bt(a)) {
|
|
1795
|
+
const c = { locale: s[t[o]] }, l = r[o] || {}, f = { ...c, ...l };
|
|
1796
|
+
e.use(a, f), i[o] = !0;
|
|
1772
1797
|
}
|
|
1773
|
-
e.provide(
|
|
1798
|
+
e.provide(Je, this), e.config.globalProperties.$provider = this, e.config.globalProperties.$request = this.adapter?.request, this.options.install && e.use(this.options.install), this.adapter.access && e.use(this.adapter.access), this.project?.platform !== "uniapp" && this.mode !== _.Design && this.initGlobals(this.project?.globals || {}, {
|
|
1774
1799
|
app: e,
|
|
1775
1800
|
window,
|
|
1776
1801
|
adapter: this.adapter,
|
|
@@ -1784,13 +1809,13 @@ class hs extends Ge {
|
|
|
1784
1809
|
}
|
|
1785
1810
|
getPage(e) {
|
|
1786
1811
|
const { pages: t = [] } = this.project || {}, s = (r, i = []) => {
|
|
1787
|
-
for (const
|
|
1788
|
-
if (
|
|
1789
|
-
return
|
|
1790
|
-
if (
|
|
1791
|
-
const
|
|
1792
|
-
if (
|
|
1793
|
-
return
|
|
1812
|
+
for (const o of i) {
|
|
1813
|
+
if (o.id === r)
|
|
1814
|
+
return o;
|
|
1815
|
+
if (o.children && o.children.length) {
|
|
1816
|
+
const a = s(r, o.children);
|
|
1817
|
+
if (a)
|
|
1818
|
+
return a;
|
|
1794
1819
|
}
|
|
1795
1820
|
}
|
|
1796
1821
|
};
|
|
@@ -1844,23 +1869,23 @@ class hs extends Ge {
|
|
|
1844
1869
|
* @returns 渲染器实例
|
|
1845
1870
|
*/
|
|
1846
1871
|
createDslRenderer(e, t = {}) {
|
|
1847
|
-
const { library: s, components: r, mode: i, apis:
|
|
1872
|
+
const { library: s, components: r, mode: i, apis: o } = this, a = {
|
|
1848
1873
|
mode: i,
|
|
1849
1874
|
Vue: s.Vue,
|
|
1850
1875
|
components: r,
|
|
1851
1876
|
libs: s,
|
|
1852
|
-
apis:
|
|
1877
|
+
apis: o,
|
|
1853
1878
|
window,
|
|
1854
1879
|
...t
|
|
1855
|
-
},
|
|
1880
|
+
}, u = fe({
|
|
1856
1881
|
getDsl: async (c) => await this.getDsl(c) || null,
|
|
1857
1882
|
getDslByUrl: async (c) => await this.getDslByUrl(c) || null,
|
|
1858
|
-
options:
|
|
1883
|
+
options: a
|
|
1859
1884
|
});
|
|
1860
|
-
return
|
|
1861
|
-
...
|
|
1885
|
+
return ue({
|
|
1886
|
+
...a,
|
|
1862
1887
|
dsl: e,
|
|
1863
|
-
loader:
|
|
1888
|
+
loader: u
|
|
1864
1889
|
});
|
|
1865
1890
|
}
|
|
1866
1891
|
/**
|
|
@@ -1878,8 +1903,8 @@ class hs extends Ge {
|
|
|
1878
1903
|
if (!s)
|
|
1879
1904
|
return O.warn(`Can not find file: ${e}`), null;
|
|
1880
1905
|
if (t && t(s), this.mode === _.Raw) {
|
|
1881
|
-
const { vtjRawDir: i = ".vtj/vue" } = this.options,
|
|
1882
|
-
return
|
|
1906
|
+
const { vtjRawDir: i = ".vtj/vue" } = this.options, o = `${i}/${e}.vue`, a = this.modules[o] || this.modules[`/src/pages/${e}.vue`];
|
|
1907
|
+
return a ? (await a())?.default : this.nodeEnv === "development" && this.adapter.startupComponent || null;
|
|
1883
1908
|
}
|
|
1884
1909
|
const r = await this.getDsl(s.id);
|
|
1885
1910
|
return r ? this.createDslRenderer(r).renderer : (O.warn(`Can not find dsl: ${e}`), null);
|
|
@@ -1894,7 +1919,7 @@ class hs extends Ge {
|
|
|
1894
1919
|
* @returns Vue异步组件
|
|
1895
1920
|
*/
|
|
1896
1921
|
defineUrlSchemaComponent(e, t) {
|
|
1897
|
-
return
|
|
1922
|
+
return be(async () => {
|
|
1898
1923
|
const s = await this.getDslByUrl(e);
|
|
1899
1924
|
return s ? (s.name = t || s.name, this.createDslRenderer(s).renderer) : null;
|
|
1900
1925
|
});
|
|
@@ -1907,7 +1932,7 @@ class hs extends Ge {
|
|
|
1907
1932
|
* @returns Vue异步组件
|
|
1908
1933
|
*/
|
|
1909
1934
|
definePluginComponent(e) {
|
|
1910
|
-
return
|
|
1935
|
+
return be(async () => await Be(e, window));
|
|
1911
1936
|
}
|
|
1912
1937
|
/**
|
|
1913
1938
|
* 设置应用全局
|
|
@@ -1922,10 +1947,10 @@ class hs extends Ge {
|
|
|
1922
1947
|
},
|
|
1923
1948
|
t
|
|
1924
1949
|
);
|
|
1925
|
-
|
|
1950
|
+
ds(e, s);
|
|
1926
1951
|
}
|
|
1927
1952
|
initI18n(e, t, s) {
|
|
1928
|
-
|
|
1953
|
+
_s(e, t, s);
|
|
1929
1954
|
}
|
|
1930
1955
|
initEnv(e = []) {
|
|
1931
1956
|
this.env = e.reduce(
|
|
@@ -1934,15 +1959,15 @@ class hs extends Ge {
|
|
|
1934
1959
|
);
|
|
1935
1960
|
}
|
|
1936
1961
|
}
|
|
1937
|
-
function
|
|
1938
|
-
const e = new
|
|
1962
|
+
function Us(n) {
|
|
1963
|
+
const e = new Ss(n);
|
|
1939
1964
|
return {
|
|
1940
1965
|
provider: e,
|
|
1941
1966
|
onReady: (s) => e.ready(s)
|
|
1942
1967
|
};
|
|
1943
1968
|
}
|
|
1944
|
-
function
|
|
1945
|
-
const e =
|
|
1969
|
+
function Ke(n = {}) {
|
|
1970
|
+
const e = Ie(Je, null);
|
|
1946
1971
|
if (!e)
|
|
1947
1972
|
throw new Error("Can not find provider");
|
|
1948
1973
|
if (e.nodeEnv === "development") {
|
|
@@ -1958,21 +1983,21 @@ function Ne(n = {}) {
|
|
|
1958
1983
|
}
|
|
1959
1984
|
return e;
|
|
1960
1985
|
}
|
|
1961
|
-
async function
|
|
1962
|
-
const { name: t, urls: s = [] } = n || {}, r = s.map((
|
|
1963
|
-
if (i.length &&
|
|
1964
|
-
return await
|
|
1986
|
+
async function qs(n, e = "") {
|
|
1987
|
+
const { name: t, urls: s = [] } = n || {}, r = s.map((a) => e + a), { css: i, js: o } = vt(r);
|
|
1988
|
+
if (i.length && Te(i), o.length)
|
|
1989
|
+
return await xe(o, t).catch(
|
|
1965
1990
|
() => {
|
|
1966
1991
|
}
|
|
1967
1992
|
);
|
|
1968
1993
|
}
|
|
1969
|
-
const
|
|
1994
|
+
const ze = {
|
|
1970
1995
|
type: "json",
|
|
1971
1996
|
validSuccess: !0,
|
|
1972
1997
|
originResponse: !1,
|
|
1973
1998
|
failMessage: !0,
|
|
1974
1999
|
validate: (n) => n.data?.code === 0
|
|
1975
|
-
},
|
|
2000
|
+
}, $s = (n, e = "/__vtj__/api/:type.json") => (t, s, r) => n.send({
|
|
1976
2001
|
url: e,
|
|
1977
2002
|
method: "post",
|
|
1978
2003
|
params: { type: t },
|
|
@@ -1981,8 +2006,8 @@ const Ue = {
|
|
|
1981
2006
|
type: t,
|
|
1982
2007
|
data: s
|
|
1983
2008
|
},
|
|
1984
|
-
settings:
|
|
1985
|
-
}),
|
|
2009
|
+
settings: ze
|
|
2010
|
+
}), Es = (n, e = "/__vtj__/api/uploader.json") => async (t, s) => await n.send({
|
|
1986
2011
|
url: e,
|
|
1987
2012
|
method: "post",
|
|
1988
2013
|
data: {
|
|
@@ -1990,12 +2015,12 @@ const Ue = {
|
|
|
1990
2015
|
projectId: s
|
|
1991
2016
|
},
|
|
1992
2017
|
settings: {
|
|
1993
|
-
...
|
|
2018
|
+
...ze,
|
|
1994
2019
|
type: "data"
|
|
1995
2020
|
}
|
|
1996
2021
|
}).then((r) => r && r[0] ? r[0] : null).catch(() => null);
|
|
1997
|
-
function
|
|
1998
|
-
return
|
|
2022
|
+
function Js(n) {
|
|
2023
|
+
return Pe({
|
|
1999
2024
|
settings: {
|
|
2000
2025
|
type: "json",
|
|
2001
2026
|
validSuccess: !0,
|
|
@@ -2008,9 +2033,9 @@ function xs(n) {
|
|
|
2008
2033
|
}
|
|
2009
2034
|
});
|
|
2010
2035
|
}
|
|
2011
|
-
class
|
|
2012
|
-
constructor(e =
|
|
2013
|
-
this.req = e, this.api =
|
|
2036
|
+
class ye {
|
|
2037
|
+
constructor(e = ae) {
|
|
2038
|
+
this.req = e, this.api = $s(e), this.uploader = Es(e);
|
|
2014
2039
|
}
|
|
2015
2040
|
api;
|
|
2016
2041
|
pluginCaches = {};
|
|
@@ -2094,10 +2119,10 @@ class he {
|
|
|
2094
2119
|
return await this.api("clearStaticFiles", e).catch(() => "");
|
|
2095
2120
|
}
|
|
2096
2121
|
async getPluginMaterial(e) {
|
|
2097
|
-
const { urls: t = [] } = e, s = t.filter((i) =>
|
|
2122
|
+
const { urls: t = [] } = e, s = t.filter((i) => ht(i))[0];
|
|
2098
2123
|
if (!s) return null;
|
|
2099
2124
|
const r = this.pluginCaches[s];
|
|
2100
|
-
return r || (this.pluginCaches[s] =
|
|
2125
|
+
return r || (this.pluginCaches[s] = ae.send({
|
|
2101
2126
|
url: s,
|
|
2102
2127
|
method: "get",
|
|
2103
2128
|
settings: {
|
|
@@ -2110,22 +2135,22 @@ class he {
|
|
|
2110
2135
|
return console.log("BaseService.genSource", e), "";
|
|
2111
2136
|
}
|
|
2112
2137
|
}
|
|
2113
|
-
const $ = new
|
|
2138
|
+
const $ = new lt({
|
|
2114
2139
|
type: "local",
|
|
2115
2140
|
expired: 0,
|
|
2116
2141
|
prefix: "__VTJ_"
|
|
2117
2142
|
});
|
|
2118
|
-
class
|
|
2143
|
+
class Ks extends ye {
|
|
2119
2144
|
init(e) {
|
|
2120
|
-
const t = new
|
|
2145
|
+
const t = new J(e), s = $.get(`project_${t.id}`), r = Object.assign(t.toDsl(), s || {});
|
|
2121
2146
|
return $.save(`project_${t.id}`, r), Promise.resolve(r);
|
|
2122
2147
|
}
|
|
2123
2148
|
saveProject(e) {
|
|
2124
|
-
const t = new
|
|
2149
|
+
const t = new J(e);
|
|
2125
2150
|
return $.save(`project_${t.id}`, t.toDsl()), Promise.resolve(!0);
|
|
2126
2151
|
}
|
|
2127
2152
|
saveMaterials(e, t) {
|
|
2128
|
-
return $.save(`materials_${e.id}`,
|
|
2153
|
+
return $.save(`materials_${e.id}`, he(t)), Promise.resolve(!0);
|
|
2129
2154
|
}
|
|
2130
2155
|
saveFile(e) {
|
|
2131
2156
|
return $.save(`file_${e.id}`, e), Promise.resolve(!0);
|
|
@@ -2149,7 +2174,7 @@ class Ds extends he {
|
|
|
2149
2174
|
return Promise.resolve(!0);
|
|
2150
2175
|
}
|
|
2151
2176
|
getHistory(e) {
|
|
2152
|
-
const t = $.get(`history_${e}`), s = new
|
|
2177
|
+
const t = $.get(`history_${e}`), s = new Ce(t || { id: e });
|
|
2153
2178
|
return Promise.resolve(s.toDsl());
|
|
2154
2179
|
}
|
|
2155
2180
|
getHistoryItem(e, t) {
|
|
@@ -2165,22 +2190,22 @@ class Ds extends he {
|
|
|
2165
2190
|
}), Promise.resolve(!0);
|
|
2166
2191
|
}
|
|
2167
2192
|
}
|
|
2168
|
-
class
|
|
2193
|
+
class bs extends ye {
|
|
2169
2194
|
projects = {};
|
|
2170
2195
|
materials = {};
|
|
2171
2196
|
files = {};
|
|
2172
2197
|
histories = {};
|
|
2173
2198
|
historyItems = {};
|
|
2174
2199
|
init(e) {
|
|
2175
|
-
const t = new
|
|
2200
|
+
const t = new J(e), s = this.projects[t.id] || {}, r = Object.assign(t.toDsl(), s);
|
|
2176
2201
|
return this.projects[r.id] = r, Promise.resolve(r);
|
|
2177
2202
|
}
|
|
2178
2203
|
saveProject(e) {
|
|
2179
|
-
const t = new
|
|
2204
|
+
const t = new J(e);
|
|
2180
2205
|
return this.projects[t.id] = t.toDsl(), Promise.resolve(!0);
|
|
2181
2206
|
}
|
|
2182
2207
|
saveMaterials(e, t) {
|
|
2183
|
-
return e.id && (this.materials[e.id] =
|
|
2208
|
+
return e.id && (this.materials[e.id] = he(t)), Promise.resolve(!0);
|
|
2184
2209
|
}
|
|
2185
2210
|
saveFile(e) {
|
|
2186
2211
|
return this.files[e.id] = e, Promise.resolve(!0);
|
|
@@ -2204,7 +2229,7 @@ class ys extends he {
|
|
|
2204
2229
|
return Promise.resolve(!0);
|
|
2205
2230
|
}
|
|
2206
2231
|
getHistory(e) {
|
|
2207
|
-
const t = this.histories[e], s = new
|
|
2232
|
+
const t = this.histories[e], s = new Ce(t || { id: e });
|
|
2208
2233
|
return Promise.resolve(s);
|
|
2209
2234
|
}
|
|
2210
2235
|
getHistoryItem(e, t) {
|
|
@@ -2222,11 +2247,11 @@ class ys extends he {
|
|
|
2222
2247
|
}), Promise.resolve(!0);
|
|
2223
2248
|
}
|
|
2224
2249
|
}
|
|
2225
|
-
let
|
|
2226
|
-
function
|
|
2227
|
-
return
|
|
2250
|
+
let U = null;
|
|
2251
|
+
function zs() {
|
|
2252
|
+
return U || (U = new bs(), U);
|
|
2228
2253
|
}
|
|
2229
|
-
class
|
|
2254
|
+
class Gs extends ye {
|
|
2230
2255
|
getFileCaches = {};
|
|
2231
2256
|
async getExtension() {
|
|
2232
2257
|
return await this.api("getExtension", {}).catch(() => {
|
|
@@ -2243,7 +2268,7 @@ class Bs extends he {
|
|
|
2243
2268
|
async saveMaterials(e, t) {
|
|
2244
2269
|
return !!await this.api("saveMaterials", {
|
|
2245
2270
|
project: e,
|
|
2246
|
-
materials:
|
|
2271
|
+
materials: he(t)
|
|
2247
2272
|
}).catch(() => !1);
|
|
2248
2273
|
}
|
|
2249
2274
|
async saveFile(e) {
|
|
@@ -2284,82 +2309,86 @@ class Bs extends he {
|
|
|
2284
2309
|
}
|
|
2285
2310
|
}
|
|
2286
2311
|
export {
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2312
|
+
Fs as ACCESS,
|
|
2313
|
+
De as ACCESS_KEY,
|
|
2314
|
+
ge as Access,
|
|
2315
|
+
dt as BUILD_IN_TAGS,
|
|
2316
|
+
ft as BUILT_IN_DIRECTIVES,
|
|
2317
|
+
ye as BaseService,
|
|
2318
|
+
je as CONTEXT_HOST,
|
|
2319
|
+
Dt as Context,
|
|
2295
2320
|
_ as ContextMode,
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2321
|
+
pt as DATA_TYPES,
|
|
2322
|
+
q as HOMEPAGE_ROUTE_NAME,
|
|
2323
|
+
Oe as HTML_TAGS,
|
|
2324
|
+
xs as JSCodeToString,
|
|
2325
|
+
As as LIFE_CYCLES_LIST,
|
|
2326
|
+
Gs as LocalService,
|
|
2327
|
+
bs as MemoryService,
|
|
2328
|
+
ws as NodeEnv,
|
|
2304
2329
|
D as PAGE_ROUTE_NAME,
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2330
|
+
Ss as Provider,
|
|
2331
|
+
Is as REMOTE,
|
|
2332
|
+
Ks as StorageService,
|
|
2308
2333
|
x as VTJ_RENDERER_VERSION,
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2334
|
+
Ms as adoptStylesToInline,
|
|
2335
|
+
me as adoptedStyleSheets,
|
|
2336
|
+
Ns as clearLoaderCache,
|
|
2337
|
+
Bs as clearNodeCache,
|
|
2338
|
+
_t as compileScopedCSS,
|
|
2339
|
+
$t as convertCssRpx,
|
|
2340
|
+
Hs as createAccess,
|
|
2341
|
+
Ds as createAdapter,
|
|
2342
|
+
ks as createAssetScripts,
|
|
2343
|
+
Os as createAssetsCss,
|
|
2344
|
+
Jt as createDataSources,
|
|
2345
|
+
fe as createLoader,
|
|
2346
|
+
zs as createMemoryService,
|
|
2321
2347
|
z as createMenus,
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2348
|
+
kt as createMetaApi,
|
|
2349
|
+
Tt as createMock,
|
|
2350
|
+
Us as createProvider,
|
|
2351
|
+
ue as createRenderer,
|
|
2352
|
+
Ft as createSchemaApi,
|
|
2353
|
+
Ot as createSchemaApis,
|
|
2354
|
+
Js as createServiceRequest,
|
|
2355
|
+
Gt as defaultLoader,
|
|
2330
2356
|
L as fillBasePath,
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2357
|
+
N as getMock,
|
|
2358
|
+
Ue as getModifiers,
|
|
2359
|
+
Re as getNodeCache,
|
|
2360
|
+
Be as getPlugin,
|
|
2361
|
+
yt as getRawComponent,
|
|
2362
|
+
jt as isBuiltInTag,
|
|
2336
2363
|
V as isCSSUrl,
|
|
2337
|
-
|
|
2364
|
+
Ct as isEqualValue,
|
|
2365
|
+
Pt as isJSCode,
|
|
2338
2366
|
b as isJSExpression,
|
|
2339
2367
|
E as isJSFunction,
|
|
2340
|
-
|
|
2368
|
+
ht as isJSON,
|
|
2341
2369
|
W as isJSUrl,
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2370
|
+
Rt as isNativeTag,
|
|
2371
|
+
bt as isVuePlugin,
|
|
2372
|
+
Et as loadCss,
|
|
2373
|
+
Te as loadCssUrl,
|
|
2374
|
+
qs as loadEnhance,
|
|
2375
|
+
xe as loadScriptUrl,
|
|
2376
|
+
qe as menusFilter,
|
|
2377
|
+
xt as mockApi,
|
|
2378
|
+
Mt as mockApis,
|
|
2379
|
+
He as mockCleanup,
|
|
2352
2380
|
M as nodeRender,
|
|
2353
|
-
|
|
2381
|
+
gt as parseDeps,
|
|
2354
2382
|
B as parseExpression,
|
|
2355
2383
|
R as parseFunction,
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2384
|
+
vt as parseUrls,
|
|
2385
|
+
Je as providerKey,
|
|
2386
|
+
mt as removeProdFlag,
|
|
2387
|
+
St as rpxToPx,
|
|
2388
|
+
Vt as setNodeCache,
|
|
2389
|
+
Ts as setupPageSetting,
|
|
2390
|
+
Me as toString,
|
|
2391
|
+
It as useAccess,
|
|
2392
|
+
Ls as useMask,
|
|
2393
|
+
Ke as useProvider
|
|
2365
2394
|
};
|