@vtj/renderer 0.9.27 → 0.9.28
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 +6 -6
- package/dist/index.mjs +598 -595
- package/package.json +5 -5
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
import { Base as
|
2
|
-
import { isUrl as
|
1
|
+
import { Base as Me, BUILT_IN_COMPONENTS as De, ProjectModel as O, HistoryModel as pe } from "@vtj/core";
|
2
|
+
import { isUrl as He, url as P, dedupArray as Oe, isString as j, isFunction as z, logger as x, storage as L, cookie as q, toArray as ie, unRSA as ae, delay as fe, createRequest as he, jsonp as me, merge as Be, pathToRegexp as Ne, pathToRegexpMatch as Ue, formDataToJson as Le, camelCase as $, upperFirst as qe, pick as Je, request as K, loadScript as ce, Storage as Ve, mapToObject as Z } from "@vtj/utils";
|
3
3
|
import * as N from "vue";
|
4
|
-
import { inject as
|
4
|
+
import { inject as ge, toRef as ze, readonly as Ke, ref as F, customRef as We, onBeforeUnmount as Ge, unref as Ye, getCurrentScope as Qe, onScopeDispose as Xe, getCurrentInstance as ve, watch as ye, computed as _e, onMounted as Ze, defineComponent as ee, h as W, createElementBlock as et, openBlock as tt, createElementVNode as E, toDisplayString as J, defineAsyncComponent as le, watchEffect as nt } from "vue";
|
5
5
|
import R from "mockjs";
|
6
|
-
import { useRoute as
|
6
|
+
import { useRoute as we } from "vue-router";
|
7
7
|
/**!
|
8
8
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
9
9
|
* @name @vtj/renderer
|
10
10
|
* @author CHC chenhuachun1549@dingtalk.com
|
11
|
-
* @version 0.9.
|
11
|
+
* @version 0.9.28
|
12
12
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
13
13
|
*/
|
14
|
-
const C = "0.9.
|
15
|
-
var y = /* @__PURE__ */ ((
|
16
|
-
const
|
14
|
+
const C = "0.9.28";
|
15
|
+
var y = /* @__PURE__ */ ((s) => (s.Runtime = "Runtime", s.Design = "Design", s.Raw = "Raw", s.VNode = "VNode", s))(y || {});
|
16
|
+
const ue = [
|
17
17
|
"$el",
|
18
18
|
"$emit",
|
19
19
|
"$nextTick",
|
@@ -25,7 +25,7 @@ const le = [
|
|
25
25
|
"$props",
|
26
26
|
"$options",
|
27
27
|
"$forceUpdate"
|
28
|
-
],
|
28
|
+
], Cn = [
|
29
29
|
"beforeCreate",
|
30
30
|
"created",
|
31
31
|
"beforeMount",
|
@@ -46,7 +46,7 @@ const le = [
|
|
46
46
|
"vFor",
|
47
47
|
"vBind",
|
48
48
|
"vHtml"
|
49
|
-
],
|
49
|
+
], rt = {
|
50
50
|
String,
|
51
51
|
Number,
|
52
52
|
Boolean,
|
@@ -54,93 +54,93 @@ const le = [
|
|
54
54
|
Object,
|
55
55
|
Function,
|
56
56
|
Date
|
57
|
-
},
|
57
|
+
}, A = "VtjPage", H = "VtjHomepage", ot = "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".split(
|
58
58
|
","
|
59
|
-
),
|
60
|
-
function M(
|
61
|
-
return
|
59
|
+
), it = "component,slot".split(",");
|
60
|
+
function M(s, e) {
|
61
|
+
return s.map((t) => He(t) || t.startsWith("/") ? t : `${e}${t}`);
|
62
62
|
}
|
63
|
-
function
|
64
|
-
return /\.css$/.test(
|
63
|
+
function te(s) {
|
64
|
+
return /\.css$/.test(s);
|
65
65
|
}
|
66
|
-
function
|
67
|
-
return /\.js$/.test(
|
66
|
+
function ne(s) {
|
67
|
+
return /\.js$/.test(s);
|
68
68
|
}
|
69
|
-
function
|
70
|
-
return /\.json$/.test(
|
69
|
+
function at(s) {
|
70
|
+
return /\.json$/.test(s);
|
71
71
|
}
|
72
|
-
function
|
73
|
-
return
|
74
|
-
(e) => `<script src="${
|
72
|
+
function An(s) {
|
73
|
+
return s.map(
|
74
|
+
(e) => `<script src="${P.append(e, { v: C })}"><\/script>`
|
75
75
|
).join("");
|
76
76
|
}
|
77
|
-
function
|
78
|
-
return
|
79
|
-
(e) => `<link rel="stylesheet" href="${
|
77
|
+
function Fn(s = []) {
|
78
|
+
return s.map(
|
79
|
+
(e) => `<link rel="stylesheet" href="${P.append(e, { v: C })}" />`
|
80
80
|
).join("");
|
81
81
|
}
|
82
|
-
function
|
83
|
-
return e &&
|
82
|
+
function ct(s, e = !1) {
|
83
|
+
return e && s.endsWith(".prod.js") ? s.replace(".prod.js", ".js") : s;
|
84
84
|
}
|
85
|
-
function
|
86
|
-
const
|
87
|
-
return
|
88
|
-
({ urls:
|
89
|
-
|
90
|
-
|
91
|
-
}), m && (i.push(m), c[m] = M(
|
85
|
+
function lt(s, e, t = !1) {
|
86
|
+
const n = s.filter((d) => !!d.enabled), r = [], o = [], a = [], i = [], c = {}, l = {}, f = [], u = {};
|
87
|
+
return n.forEach(
|
88
|
+
({ urls: d, assetsUrl: h, library: m, assetsLibrary: p, localeLibrary: w }) => {
|
89
|
+
d?.forEach((g) => {
|
90
|
+
ne(g) && r.push(ct(g, t)), te(g) && o.push(g);
|
91
|
+
}), m && (i.push(m), c[m] = M(d || [], e), w && (l[m] = w)), h && a.push(h), p && f.push(p), m && p && (u[p] = m);
|
92
92
|
}
|
93
93
|
), {
|
94
94
|
scripts: M(r, e),
|
95
95
|
css: M(o, e),
|
96
96
|
materials: M(a, e),
|
97
97
|
libraryExports: i,
|
98
|
-
materialExports:
|
98
|
+
materialExports: Oe(f),
|
99
99
|
materialMapLibrary: u,
|
100
100
|
libraryMap: c,
|
101
101
|
libraryLocaleMap: l
|
102
102
|
};
|
103
103
|
}
|
104
|
-
function
|
105
|
-
const { name: t, parent:
|
106
|
-
return
|
104
|
+
function ut(s, e) {
|
105
|
+
const { name: t, parent: n, alias: r } = s;
|
106
|
+
return n ? e[n]?.[r || t] : e[r || t];
|
107
107
|
}
|
108
|
-
function
|
109
|
-
return j(
|
108
|
+
function Se(s) {
|
109
|
+
return j(s) ? s : JSON.stringify(s);
|
110
110
|
}
|
111
|
-
function
|
112
|
-
const
|
113
|
-
if (
|
114
|
-
const r = new
|
111
|
+
function be(s, e, t) {
|
112
|
+
const n = s.CSSStyleSheet;
|
113
|
+
if (n.prototype.replaceSync) {
|
114
|
+
const r = new n();
|
115
115
|
r.id = e, r.replaceSync(t);
|
116
|
-
const o =
|
116
|
+
const o = s.document, a = o.adoptedStyleSheets, i = Array.from(a).filter(
|
117
117
|
(c) => c.id !== e
|
118
118
|
);
|
119
119
|
o.adoptedStyleSheets = [...i, r];
|
120
120
|
} else {
|
121
|
-
const r =
|
121
|
+
const r = s.document;
|
122
122
|
let o = r.getElementById(e);
|
123
123
|
o ? o.innerHTML = t : (o = r.createElement("style"), o.id = e, o.innerHTML = t, r.head.appendChild(o));
|
124
124
|
}
|
125
125
|
}
|
126
|
-
async function
|
127
|
-
const t = await window.fetch(e).then((
|
128
|
-
t &&
|
126
|
+
async function dt(s, e) {
|
127
|
+
const t = await window.fetch(e).then((n) => n.text()).catch(() => "");
|
128
|
+
t && be(window, s, t);
|
129
129
|
}
|
130
|
-
function pt(
|
131
|
-
const t = e.document,
|
132
|
-
for (const r of
|
130
|
+
function pt(s, e = window) {
|
131
|
+
const t = e.document, n = e.document.head;
|
132
|
+
for (const r of s)
|
133
133
|
if (!t.getElementById(r)) {
|
134
134
|
const a = t.createElement("link");
|
135
|
-
a.rel = "stylesheet", a.id = r, a.href = r,
|
135
|
+
a.rel = "stylesheet", a.id = r, a.href = r, n.appendChild(a);
|
136
136
|
}
|
137
137
|
}
|
138
|
-
async function
|
139
|
-
const
|
138
|
+
async function ft(s, e, t = window) {
|
139
|
+
const n = t.document, r = t.document.head;
|
140
140
|
let o = t[e];
|
141
141
|
return o ? o.default || o : new Promise((a, i) => {
|
142
|
-
for (const c of
|
143
|
-
const l =
|
142
|
+
for (const c of s) {
|
143
|
+
const l = n.createElement("script");
|
144
144
|
l.src = c, l.onload = () => {
|
145
145
|
o = t[e], o ? a(o.default || o) : i(null);
|
146
146
|
}, l.onerror = (f) => {
|
@@ -149,53 +149,53 @@ async function dt(n, e, t = window) {
|
|
149
149
|
}
|
150
150
|
});
|
151
151
|
}
|
152
|
-
function
|
153
|
-
return z(
|
152
|
+
function ht(s) {
|
153
|
+
return z(s) || z(s?.install);
|
154
154
|
}
|
155
|
-
function
|
156
|
-
return
|
155
|
+
function mt(s) {
|
156
|
+
return it.includes(s);
|
157
157
|
}
|
158
|
-
function
|
159
|
-
return
|
158
|
+
function gt(s) {
|
159
|
+
return ot.includes(s);
|
160
160
|
}
|
161
|
-
function
|
161
|
+
function T(s, e, t = !1, n = !1) {
|
162
162
|
try {
|
163
163
|
const r = ['"use strict";', "var __self = arguments[0];"];
|
164
164
|
r.push("return ");
|
165
|
-
let o = (
|
165
|
+
let o = (s.value || "").trim();
|
166
166
|
o = o.replace(/this(\W|$)/g, (i, c) => `__self${c}`), o = r.join(`
|
167
167
|
`) + o;
|
168
168
|
const a = `with(${t ? "{}" : "$scope || {}"}) { ${o} }`;
|
169
169
|
return new Function("$scope", a)(e);
|
170
170
|
} catch (r) {
|
171
|
-
if (
|
171
|
+
if (x.error("parseExpression.error", r, s, e?.__self ?? e), n)
|
172
172
|
throw r;
|
173
173
|
}
|
174
174
|
}
|
175
|
-
function G(
|
176
|
-
const r =
|
177
|
-
if (typeof r != "function" && (
|
175
|
+
function G(s, e, t = !1, n = !1) {
|
176
|
+
const r = T(s, e, t, n);
|
177
|
+
if (typeof r != "function" && (x.error(
|
178
178
|
"parseFunction.error",
|
179
179
|
"not a function",
|
180
|
-
|
180
|
+
s,
|
181
181
|
e?.__self ?? e
|
182
|
-
),
|
183
|
-
throw new Error(`"${
|
182
|
+
), n))
|
183
|
+
throw new Error(`"${s.value}" not a function`);
|
184
184
|
return r;
|
185
185
|
}
|
186
|
-
function _(
|
187
|
-
return
|
186
|
+
function _(s) {
|
187
|
+
return s && s.type === "JSExpression";
|
188
188
|
}
|
189
|
-
function I(
|
190
|
-
return typeof
|
189
|
+
function I(s) {
|
190
|
+
return typeof s == "object" && s && s.type === "JSFunction";
|
191
191
|
}
|
192
|
-
function
|
193
|
-
return _(
|
192
|
+
function vt(s) {
|
193
|
+
return _(s) || I(s);
|
194
194
|
}
|
195
|
-
function
|
196
|
-
return
|
195
|
+
function Tn(s) {
|
196
|
+
return vt(s) ? s.value : JSON.stringify(s);
|
197
197
|
}
|
198
|
-
const
|
198
|
+
const yt = {
|
199
199
|
session: !1,
|
200
200
|
authKey: "Authorization",
|
201
201
|
storageKey: "ACCESS_STORAGE",
|
@@ -207,31 +207,31 @@ const vt = {
|
|
207
207
|
unauthorizedMessage: "登录已经失效,请重新登录!",
|
208
208
|
noPermissionMessage: "无权限访问该页面",
|
209
209
|
appName: ""
|
210
|
-
},
|
211
|
-
class
|
210
|
+
}, je = Symbol("access");
|
211
|
+
class In {
|
212
212
|
options;
|
213
213
|
data = null;
|
214
214
|
mode = y.Raw;
|
215
215
|
constructor(e) {
|
216
|
-
this.options = Object.assign({},
|
216
|
+
this.options = Object.assign({}, yt, e), this.loadData();
|
217
217
|
}
|
218
218
|
connect(e) {
|
219
|
-
const { mode: t, router:
|
220
|
-
this.mode = t,
|
219
|
+
const { mode: t, router: n, request: r } = e;
|
220
|
+
this.mode = t, n && this.mode === y.Raw && this.setGuard(n), r && this.setRequest(r);
|
221
221
|
}
|
222
222
|
login(e) {
|
223
|
-
const { storageKey: t, storagePrefix:
|
223
|
+
const { storageKey: t, storagePrefix: n, session: r, authKey: o } = this.options;
|
224
224
|
this.setData(e), this.data && (L.save(t, e, {
|
225
225
|
type: "local",
|
226
|
-
prefix:
|
226
|
+
prefix: n
|
227
227
|
}), r && q.set(o, this.data.token));
|
228
228
|
}
|
229
229
|
clear() {
|
230
|
-
const { storageKey: e, storagePrefix: t, session:
|
230
|
+
const { storageKey: e, storagePrefix: t, session: n, authKey: r } = this.options;
|
231
231
|
this.data = null, L.remove(e, {
|
232
232
|
type: "local",
|
233
233
|
prefix: t
|
234
|
-
}),
|
234
|
+
}), n && q.remove(r);
|
235
235
|
}
|
236
236
|
logout() {
|
237
237
|
this.clear(), this.toLogin();
|
@@ -243,20 +243,20 @@ class Ts {
|
|
243
243
|
return this.data || this.loadData(), this.data?.token;
|
244
244
|
}
|
245
245
|
can(e) {
|
246
|
-
const { appName: t } = this.options, { permissions:
|
247
|
-
return typeof e == "function" ? e(
|
246
|
+
const { appName: t } = this.options, { permissions: n = {} } = this.data || {};
|
247
|
+
return typeof e == "function" ? e(n) : ie(e).every((o) => n[o] || n[t + "." + o]);
|
248
248
|
}
|
249
249
|
some(e) {
|
250
|
-
const { appName: t } = this.options, { permissions:
|
251
|
-
return
|
250
|
+
const { appName: t } = this.options, { permissions: n = {} } = this.data || {};
|
251
|
+
return ie(e).some((o) => n[o] || n[t + "." + o]);
|
252
252
|
}
|
253
253
|
install(e) {
|
254
|
-
e.config.globalProperties.$access || (e.config.globalProperties.$access = this), e.provide(
|
254
|
+
e.config.globalProperties.$access || (e.config.globalProperties.$access = this), e.provide(je, this);
|
255
255
|
}
|
256
256
|
isAuthPath(e) {
|
257
|
-
const { auth: t, isAuth:
|
258
|
-
if (
|
259
|
-
return
|
257
|
+
const { auth: t, isAuth: n } = this.options;
|
258
|
+
if (n)
|
259
|
+
return n(e);
|
260
260
|
if (e.path && typeof t == "string") {
|
261
261
|
const r = t.split("#")[1] || t;
|
262
262
|
return e.path === r;
|
@@ -266,46 +266,46 @@ class Ts {
|
|
266
266
|
toLogin() {
|
267
267
|
const { auth: e, redirectParam: t } = this.options;
|
268
268
|
if (!e) return;
|
269
|
-
const
|
270
|
-
typeof e == "function" ? e(
|
269
|
+
const n = t ? `?${t}=${encodeURIComponent(location.href)}` : "";
|
270
|
+
typeof e == "function" ? e(n) : location.href = t ? `${e}${n}` : e;
|
271
271
|
}
|
272
272
|
setData(e) {
|
273
273
|
const { privateKey: t } = this.options;
|
274
274
|
if (Array.isArray(e) && t) {
|
275
|
-
const
|
276
|
-
this.data = JSON.parse(
|
275
|
+
const n = e.map((r) => ae(r, t));
|
276
|
+
this.data = JSON.parse(n.join(""));
|
277
277
|
return;
|
278
278
|
}
|
279
279
|
if (typeof e == "string")
|
280
280
|
try {
|
281
|
-
const
|
282
|
-
|
283
|
-
} catch (
|
284
|
-
console.warn(
|
281
|
+
const n = t ? ae(e, t) : e;
|
282
|
+
n ? this.data = JSON.parse(n) : console.warn("RSA解密失败或登录信息缺失");
|
283
|
+
} catch (n) {
|
284
|
+
console.warn(n);
|
285
285
|
}
|
286
286
|
else
|
287
287
|
this.data = e;
|
288
288
|
}
|
289
289
|
loadData() {
|
290
|
-
const { storageKey: e, storagePrefix: t } = this.options,
|
290
|
+
const { storageKey: e, storagePrefix: t } = this.options, n = L.get(e, {
|
291
291
|
type: "local",
|
292
292
|
prefix: t
|
293
293
|
});
|
294
|
-
this.setData(
|
294
|
+
this.setData(n || null);
|
295
295
|
}
|
296
296
|
isLogined() {
|
297
297
|
const { session: e, authKey: t } = this.options;
|
298
298
|
return e && t ? !!q.get(t) : !!this.getToken();
|
299
299
|
}
|
300
300
|
hasRoutePermission(e) {
|
301
|
-
if (e.name ===
|
301
|
+
if (e.name === A) {
|
302
302
|
const t = e.params.id;
|
303
303
|
return t && this.can(t);
|
304
304
|
}
|
305
305
|
return !0;
|
306
306
|
}
|
307
307
|
setGuard(e) {
|
308
|
-
e.beforeEach((t,
|
308
|
+
e.beforeEach((t, n, r) => this.guard(t, r));
|
309
309
|
}
|
310
310
|
async guard(e, t) {
|
311
311
|
if (this.isWhiteList(e) || this.isAuthPath(e))
|
@@ -314,15 +314,15 @@ class Ts {
|
|
314
314
|
if (this.hasRoutePermission(e))
|
315
315
|
return t();
|
316
316
|
{
|
317
|
-
const { noPermissionMessage:
|
318
|
-
return await this.showTip(
|
317
|
+
const { noPermissionMessage: n = "无权限访问", unauthorized: r = !1 } = this.options;
|
318
|
+
return await this.showTip(n), z(r) ? (r(), t(!1)) : j(r) ? t(r) : t(!1);
|
319
319
|
}
|
320
320
|
}
|
321
321
|
t(!1), this.toLogin();
|
322
322
|
}
|
323
323
|
isWhiteList(e) {
|
324
324
|
const { whiteList: t } = this.options;
|
325
|
-
return t ? Array.isArray(t) ? t.some((
|
325
|
+
return t ? Array.isArray(t) ? t.some((n) => e.fullPath.startsWith(n)) : t(e) : !1;
|
326
326
|
}
|
327
327
|
isUnauthorized(e) {
|
328
328
|
const { unauthorizedCode: t = 401 } = this.options;
|
@@ -334,7 +334,7 @@ class Ts {
|
|
334
334
|
}
|
335
335
|
async showTip(e) {
|
336
336
|
const { alert: t } = this.options;
|
337
|
-
return t ? (await
|
337
|
+
return t ? (await fe(150), await t(e, {
|
338
338
|
title: "提示",
|
339
339
|
type: "warning"
|
340
340
|
}).catch(() => !1)) : !1;
|
@@ -343,20 +343,20 @@ class Ts {
|
|
343
343
|
e.useRequest((t) => (this.data?.token && (t.headers[this.options.authKey] = this.data?.token), t)), e.useResponse(
|
344
344
|
async (t) => (await this.showUnauthorizedAlert(t), t),
|
345
345
|
async (t) => {
|
346
|
-
const
|
347
|
-
return await this.showUnauthorizedAlert(
|
346
|
+
const n = t.response || t || {};
|
347
|
+
return await this.showUnauthorizedAlert(n), Promise.reject(t);
|
348
348
|
}
|
349
349
|
);
|
350
350
|
}
|
351
351
|
}
|
352
|
-
function
|
353
|
-
return
|
352
|
+
function _t() {
|
353
|
+
return ge(je, null);
|
354
354
|
}
|
355
|
-
function
|
356
|
-
const { notify: e, loading: t, settings:
|
355
|
+
function Mn(s = {}) {
|
356
|
+
const { notify: e, loading: t, settings: n = {} } = s;
|
357
357
|
let r = null;
|
358
358
|
return {
|
359
|
-
request:
|
359
|
+
request: he({
|
360
360
|
settings: {
|
361
361
|
type: "form",
|
362
362
|
validSuccess: !0,
|
@@ -373,84 +373,84 @@ function As(n = {}) {
|
|
373
373
|
hideLoading: () => {
|
374
374
|
r && (r.close(), r = null);
|
375
375
|
},
|
376
|
-
...
|
376
|
+
...n
|
377
377
|
}
|
378
378
|
}),
|
379
|
-
jsonp:
|
379
|
+
jsonp: me,
|
380
380
|
notify: e,
|
381
381
|
loading: t
|
382
382
|
};
|
383
383
|
}
|
384
|
-
function
|
385
|
-
const { jsonp: t, request:
|
386
|
-
if (
|
387
|
-
return (r = {}) => t(
|
388
|
-
...
|
384
|
+
function wt(s, e) {
|
385
|
+
const { jsonp: t, request: n } = e;
|
386
|
+
if (s.method === "jsonp")
|
387
|
+
return (r = {}) => t(s.url, {
|
388
|
+
...s.jsonpOptions,
|
389
389
|
query: r
|
390
390
|
});
|
391
391
|
{
|
392
|
-
const r =
|
393
|
-
url:
|
394
|
-
method:
|
392
|
+
const r = s.headers ? T(s.headers, {}, !0) : void 0, o = {
|
393
|
+
url: s.url,
|
394
|
+
method: s.method,
|
395
395
|
settings: {
|
396
|
-
...
|
396
|
+
...s.settings,
|
397
397
|
headers: r
|
398
398
|
}
|
399
399
|
};
|
400
|
-
return (a, i) => (delete o.data,
|
400
|
+
return (a, i) => (delete o.data, n.send(Be(o, i || {}, { data: a })));
|
401
401
|
}
|
402
402
|
}
|
403
|
-
function
|
403
|
+
function St(s, e) {
|
404
404
|
const { metaQuery: t } = e;
|
405
405
|
if (!t) return;
|
406
|
-
const { code:
|
406
|
+
const { code: n, queryCode: r } = s;
|
407
407
|
return (o, a) => {
|
408
408
|
if (!t) {
|
409
409
|
console.warn("adapter.metaQuery is not defined!");
|
410
410
|
return;
|
411
411
|
}
|
412
|
-
return t(
|
412
|
+
return t(n, r, o, a);
|
413
413
|
};
|
414
414
|
}
|
415
|
-
function
|
416
|
-
const
|
417
|
-
for (const r of
|
418
|
-
|
415
|
+
function bt(s = [], e = [], t) {
|
416
|
+
const n = {};
|
417
|
+
for (const r of s)
|
418
|
+
n[r.id] = wt(r, t);
|
419
419
|
for (const r of e)
|
420
|
-
|
421
|
-
return
|
420
|
+
n[r.id] = St(r, t);
|
421
|
+
return n;
|
422
422
|
}
|
423
|
-
async function
|
424
|
-
R && (
|
423
|
+
async function jt(s = []) {
|
424
|
+
R && ($e(), s.forEach((e) => Et(R, e)));
|
425
425
|
}
|
426
|
-
function
|
427
|
-
const e = I(
|
426
|
+
function $t(s) {
|
427
|
+
const e = I(s.mockTemplate) && s.mockTemplate.value ? G(s.mockTemplate, {}, !0) : void 0;
|
428
428
|
return async (...t) => {
|
429
|
-
let
|
429
|
+
let n = {};
|
430
430
|
if (e)
|
431
431
|
try {
|
432
|
-
|
432
|
+
n = await e.apply(e, t);
|
433
433
|
} catch (r) {
|
434
|
-
|
434
|
+
x.warn("模拟数据模版异常", r);
|
435
435
|
}
|
436
|
-
return R.mock(
|
436
|
+
return R.mock(n);
|
437
437
|
};
|
438
438
|
}
|
439
|
-
function
|
439
|
+
function Et(s, e) {
|
440
440
|
if (!e.mock) return;
|
441
|
-
const { url: t, mockTemplate:
|
442
|
-
if (t &&
|
443
|
-
const r =
|
444
|
-
|
445
|
-
const c =
|
446
|
-
return Object.assign(i, { data: l, params: c, query: f }),
|
441
|
+
const { url: t, mockTemplate: n } = e;
|
442
|
+
if (t && n) {
|
443
|
+
const r = Ne(`${t}(.*)`), o = Ue(t, { decode: decodeURIComponent }), a = T(n, {}, !0);
|
444
|
+
s.mock(r, (i) => {
|
445
|
+
const c = P.parse(i.url) || {}, l = i.body instanceof FormData ? Le(i.body) : i.body, f = o(i.url)?.params;
|
446
|
+
return Object.assign(i, { data: l, params: c, query: f }), s.mock(a(i));
|
447
447
|
});
|
448
448
|
}
|
449
449
|
}
|
450
|
-
function
|
450
|
+
function $e() {
|
451
451
|
R && (R._mocked = {});
|
452
452
|
}
|
453
|
-
class
|
453
|
+
class kt {
|
454
454
|
__id = null;
|
455
455
|
__mode;
|
456
456
|
__instance = null;
|
@@ -476,14 +476,14 @@ class Et {
|
|
476
476
|
$apis = {};
|
477
477
|
__transform = {};
|
478
478
|
constructor(e) {
|
479
|
-
const { mode: t, dsl:
|
480
|
-
this.__mode = t,
|
479
|
+
const { mode: t, dsl: n, attrs: r } = e;
|
480
|
+
this.__mode = t, n && (this.__id = n.id || null, this.__transform = n.transform || {}), r && Object.assign(this, r);
|
481
481
|
}
|
482
482
|
setup(e, t = N) {
|
483
|
-
const
|
484
|
-
if (!
|
485
|
-
this.__refs = {}, this.$refs = {}, this.context = {}, this.__contextRefs = {}, this.__instance =
|
486
|
-
const r =
|
483
|
+
const n = t.getCurrentInstance();
|
484
|
+
if (!n) return;
|
485
|
+
this.__refs = {}, this.$refs = {}, this.context = {}, this.__contextRefs = {}, this.__instance = n.proxy;
|
486
|
+
const r = n.appContext.config.globalProperties;
|
487
487
|
Object.assign(this, r), Object.assign(this, e || {}), this.__proxy(), t.onMounted(() => {
|
488
488
|
this.__proxy();
|
489
489
|
}), t.onUnmounted(() => {
|
@@ -493,12 +493,12 @@ class Et {
|
|
493
493
|
});
|
494
494
|
}
|
495
495
|
__proxy() {
|
496
|
-
this.__instance &&
|
496
|
+
this.__instance && ue.forEach((e) => {
|
497
497
|
this[e] = this.__instance?.[e];
|
498
498
|
});
|
499
499
|
}
|
500
500
|
__cleanup() {
|
501
|
-
|
501
|
+
ue.forEach((e) => {
|
502
502
|
this[e] = null;
|
503
503
|
}), this.__reset();
|
504
504
|
}
|
@@ -508,165 +508,165 @@ class Et {
|
|
508
508
|
__parseFunction(e) {
|
509
509
|
if (e)
|
510
510
|
if (this.__mode === y.Runtime) {
|
511
|
-
const { id: t, type:
|
512
|
-
return G({ type:
|
511
|
+
const { id: t, type: n } = e, r = t ? this.__transform[t] ?? e.value : e.value;
|
512
|
+
return G({ type: n, value: r }, this);
|
513
513
|
} else
|
514
514
|
return G(e, this);
|
515
515
|
}
|
516
516
|
__parseExpression(e) {
|
517
517
|
if (e)
|
518
518
|
if (this.__mode === y.Runtime) {
|
519
|
-
const { id: t, type:
|
520
|
-
return
|
519
|
+
const { id: t, type: n } = e, r = t ? this.__transform[t] ?? e.value : e.value;
|
520
|
+
return T({ type: n, value: r }, this);
|
521
521
|
} else
|
522
|
-
return
|
522
|
+
return T(e, this);
|
523
523
|
}
|
524
524
|
__ref(e = null, t) {
|
525
525
|
if (this.__mode !== y.VNode)
|
526
|
-
return e && e !== this.__id && (this.__contextRefs[e] = this), async (
|
527
|
-
await
|
528
|
-
let r =
|
526
|
+
return e && e !== this.__id && (this.__contextRefs[e] = this), async (n) => {
|
527
|
+
await fe(0);
|
528
|
+
let r = n?.$vtjEl || n?.$el || n?._?.vnode?.el || n;
|
529
529
|
if (!r) {
|
530
530
|
typeof t == "string" && (delete this.$refs[t], e && delete this.__refs[e]);
|
531
531
|
return;
|
532
532
|
}
|
533
|
-
return r.nodeType === 3 && r.nextSibling && (r = r.nextSibling), r.__vtj__ = e, y.Design === this.__mode && (r.__context__ = this, r.draggable = !0), e && (this.__refs[e] = this.__getRefEl(this.__refs, e,
|
533
|
+
return r.nodeType === 3 && r.nextSibling && (r = r.nextSibling), r.__vtj__ = e, y.Design === this.__mode && (r.__context__ = this, r.draggable = !0), e && (this.__refs[e] = this.__getRefEl(this.__refs, e, n)), typeof t == "function" ? t(n) : t && (this.$refs[t] = this.__getRefEl(this.$refs, t, n)), n;
|
534
534
|
};
|
535
535
|
}
|
536
|
-
__getRefEl(e, t,
|
536
|
+
__getRefEl(e, t, n) {
|
537
537
|
const r = e[t];
|
538
|
-
if (r &&
|
539
|
-
const o = new Set([].concat(r,
|
538
|
+
if (r && n !== r) {
|
539
|
+
const o = new Set([].concat(r, n));
|
540
540
|
return Array.from(o);
|
541
541
|
} else
|
542
|
-
return
|
542
|
+
return n;
|
543
543
|
}
|
544
544
|
__clone(e = {}) {
|
545
|
-
const t = { ...this.context, ...e },
|
545
|
+
const t = { ...this.context, ...e }, n = {
|
546
546
|
...t,
|
547
547
|
context: t
|
548
548
|
};
|
549
|
-
return
|
549
|
+
return n.context.__proto__ = this.context, n.__proto__ = this, n;
|
550
550
|
}
|
551
551
|
}
|
552
|
-
function Y(
|
552
|
+
function Y(s) {
|
553
553
|
const {
|
554
554
|
Vue: e = N,
|
555
555
|
mode: t = y.Runtime,
|
556
|
-
components:
|
556
|
+
components: n = {},
|
557
557
|
libs: r = {},
|
558
558
|
apis: o = {},
|
559
559
|
loader: a
|
560
|
-
} =
|
561
|
-
$components:
|
560
|
+
} = s, i = e.computed(() => s.dsl), c = {
|
561
|
+
$components: n,
|
562
562
|
$libs: r,
|
563
563
|
$apis: o
|
564
|
-
}, l = new
|
564
|
+
}, l = new kt({
|
565
565
|
mode: t,
|
566
566
|
dsl: i.value,
|
567
567
|
attrs: c
|
568
568
|
}), f = e.defineComponent({
|
569
569
|
name: i.value.name,
|
570
570
|
props: {
|
571
|
-
...
|
571
|
+
...Pt(i.value.props ?? [], l)
|
572
572
|
},
|
573
573
|
setup(u) {
|
574
|
-
l.$props = u, l.props = u, i.value.id &&
|
575
|
-
|
574
|
+
l.$props = u, l.props = u, i.value.id && be(
|
575
|
+
s.window || window,
|
576
576
|
i.value.id,
|
577
577
|
i.value.css || ""
|
578
578
|
), l.state = xt(e, i.value.state ?? {}, l);
|
579
|
-
const
|
579
|
+
const d = Ct(e, i.value.computed ?? {}, l), h = At(i.value.methods ?? {}, l), m = Ft(e, i.value.inject, l), p = Tt(
|
580
580
|
i.value.dataSources || {},
|
581
581
|
l
|
582
582
|
), w = {
|
583
583
|
...m,
|
584
|
-
...
|
584
|
+
...d,
|
585
585
|
...h,
|
586
|
-
...
|
586
|
+
...p
|
587
587
|
};
|
588
|
-
return l.setup(w, e),
|
588
|
+
return l.setup(w, e), It(e, i.value.watch ?? [], l), {
|
589
589
|
vtj: l
|
590
590
|
};
|
591
591
|
},
|
592
|
-
emits:
|
592
|
+
emits: Rt(i.value.emits),
|
593
593
|
expose: ["vtj"],
|
594
594
|
render() {
|
595
595
|
if (!i.value.nodes) return null;
|
596
596
|
const u = i.value.nodes || [];
|
597
|
-
return u.length === 1 ? B(u[0], l, e, a) : u.map((
|
597
|
+
return u.length === 1 ? B(u[0], l, e, a) : u.map((d) => B(d, l, e, a));
|
598
598
|
},
|
599
|
-
...
|
599
|
+
...Mt(i.value.lifeCycles ?? {}, l)
|
600
600
|
});
|
601
601
|
return {
|
602
602
|
renderer: e.markRaw(f),
|
603
603
|
context: l
|
604
604
|
};
|
605
605
|
}
|
606
|
-
function
|
607
|
-
return
|
606
|
+
function Rt(s = []) {
|
607
|
+
return s.map((e) => j(e) ? e : e.name);
|
608
608
|
}
|
609
|
-
function
|
610
|
-
const t = (
|
611
|
-
return
|
612
|
-
name:
|
609
|
+
function Pt(s = [], e) {
|
610
|
+
const t = (n) => n ? (Array.isArray(n) ? n : [n]).map((o) => rt[o]) : void 0;
|
611
|
+
return s.map((n) => j(n) ? {
|
612
|
+
name: n
|
613
613
|
} : {
|
614
|
-
name:
|
615
|
-
type:
|
616
|
-
required:
|
617
|
-
default: _(
|
614
|
+
name: n.name,
|
615
|
+
type: n.type,
|
616
|
+
required: n.required,
|
617
|
+
default: _(n.default) ? e.__parseExpression(n.default) : n.default
|
618
618
|
}).reduce(
|
619
|
-
(
|
619
|
+
(n, r) => (n[r.name] = {
|
620
620
|
type: t(r.type),
|
621
621
|
required: r.required,
|
622
622
|
default: r.default
|
623
|
-
},
|
623
|
+
}, n),
|
624
624
|
{}
|
625
625
|
);
|
626
626
|
}
|
627
|
-
function xt(
|
628
|
-
return
|
627
|
+
function xt(s, e, t) {
|
628
|
+
return s.reactive(
|
629
629
|
Object.keys(e || {}).reduce(
|
630
|
-
(
|
630
|
+
(n, r) => {
|
631
631
|
let o = e[r];
|
632
|
-
return _(o) ? o = t.__parseExpression(o) : I(o) && (o = t.__parseFunction(o)),
|
632
|
+
return _(o) ? o = t.__parseExpression(o) : I(o) && (o = t.__parseFunction(o)), n[r] = o, n;
|
633
633
|
},
|
634
634
|
{}
|
635
635
|
)
|
636
636
|
);
|
637
637
|
}
|
638
|
-
function
|
638
|
+
function Ct(s, e, t) {
|
639
639
|
return Object.entries(e ?? {}).reduce(
|
640
|
-
(
|
640
|
+
(n, [r, o]) => (n[r] = s.computed(t.__parseFunction(o)), n),
|
641
641
|
{}
|
642
642
|
);
|
643
643
|
}
|
644
|
-
function
|
645
|
-
return Object.entries(
|
646
|
-
(t, [
|
644
|
+
function At(s, e) {
|
645
|
+
return Object.entries(s ?? {}).reduce(
|
646
|
+
(t, [n, r]) => (t[n] = e.__parseFunction(r), t),
|
647
647
|
{}
|
648
648
|
);
|
649
649
|
}
|
650
|
-
function Ft(
|
650
|
+
function Ft(s, e = [], t) {
|
651
651
|
return e.reduce(
|
652
|
-
(
|
652
|
+
(n, r) => {
|
653
653
|
const { name: o, from: a } = r || {};
|
654
654
|
r.default;
|
655
655
|
const i = _(a) ? t.__parseExpression(a) || o : a ?? o, c = _(r.default) ? t.__parseExpression(r.default) : r.default ?? null;
|
656
|
-
return
|
656
|
+
return n[o] = s.inject(i, c), n;
|
657
657
|
},
|
658
658
|
{}
|
659
659
|
);
|
660
660
|
}
|
661
|
-
function Tt(
|
662
|
-
return Object.keys(
|
663
|
-
(t,
|
664
|
-
const r = n
|
661
|
+
function Tt(s, e) {
|
662
|
+
return Object.keys(s).reduce(
|
663
|
+
(t, n) => {
|
664
|
+
const r = s[n];
|
665
665
|
if (r.type === "mock")
|
666
|
-
t[
|
666
|
+
t[n] = $t(r);
|
667
667
|
else if (r.ref) {
|
668
668
|
const o = e.$apis[r.ref], a = I(r.transform) ? r.transform.value ? e.__parseFunction(r.transform) : void 0 : r.transform;
|
669
|
-
t[
|
669
|
+
t[n] = async (...i) => {
|
670
670
|
const c = await o.apply(e, i);
|
671
671
|
return a ? a(c) : c;
|
672
672
|
};
|
@@ -676,38 +676,38 @@ function Tt(n, e) {
|
|
676
676
|
{}
|
677
677
|
);
|
678
678
|
}
|
679
|
-
function
|
680
|
-
e.forEach((
|
681
|
-
|
682
|
-
t.__parseExpression(
|
683
|
-
t.__parseFunction(
|
679
|
+
function It(s, e = [], t) {
|
680
|
+
e.forEach((n) => {
|
681
|
+
s.watch(
|
682
|
+
t.__parseExpression(n.source),
|
683
|
+
t.__parseFunction(n.handler),
|
684
684
|
{
|
685
|
-
deep:
|
686
|
-
immediate:
|
685
|
+
deep: n.deep,
|
686
|
+
immediate: n.immediate
|
687
687
|
}
|
688
688
|
);
|
689
689
|
});
|
690
690
|
}
|
691
|
-
function
|
692
|
-
return Object.entries(
|
693
|
-
(t, [
|
691
|
+
function Mt(s, e) {
|
692
|
+
return Object.entries(s ?? {}).reduce(
|
693
|
+
(t, [n, r]) => (t[n] = e.__parseFunction(r), t),
|
694
694
|
{}
|
695
695
|
);
|
696
696
|
}
|
697
697
|
let V = [], k = {};
|
698
|
-
const
|
699
|
-
async function
|
700
|
-
const { urls: t = [], library:
|
701
|
-
if (r.length === 0 || !
|
702
|
-
const o = t.filter((i) =>
|
703
|
-
return o.length && pt(o, e), await
|
704
|
-
(i) => (console.warn("loadScriptUrl error", r,
|
698
|
+
const Dt = (s) => s;
|
699
|
+
async function Ee(s, e = window) {
|
700
|
+
const { urls: t = [], library: n } = s, r = t.filter((i) => ne(i));
|
701
|
+
if (r.length === 0 || !n) return null;
|
702
|
+
const o = t.filter((i) => te(i));
|
703
|
+
return o.length && pt(o, e), await ft(r, n, e).catch(
|
704
|
+
(i) => (console.warn("loadScriptUrl error", r, n, i), null)
|
705
705
|
);
|
706
706
|
}
|
707
|
-
function Q(
|
708
|
-
const { getDsl: e, getDslByUrl: t, options:
|
709
|
-
return
|
710
|
-
delete
|
707
|
+
function Q(s) {
|
708
|
+
const { getDsl: e, getDslByUrl: t, options: n } = s;
|
709
|
+
return n.window && (V.forEach((r) => {
|
710
|
+
delete n.window[r];
|
711
711
|
}), V = []), (r, o, a = N) => {
|
712
712
|
if (!o || typeof o == "string") return r;
|
713
713
|
if (o.type === "Schema" && o.id) {
|
@@ -715,11 +715,11 @@ function Q(n) {
|
|
715
715
|
return i || (i = k[o.id] = a.defineAsyncComponent(async () => {
|
716
716
|
const c = await e(o.id);
|
717
717
|
return c && (c.name = r), c ? Y({
|
718
|
-
...
|
718
|
+
...n,
|
719
719
|
Vue: a,
|
720
720
|
dsl: c,
|
721
721
|
mode: y.Runtime,
|
722
|
-
loader: Q(
|
722
|
+
loader: Q(s)
|
723
723
|
}).renderer : null;
|
724
724
|
}), i);
|
725
725
|
}
|
@@ -728,11 +728,11 @@ function Q(n) {
|
|
728
728
|
return i || (i = k[o.url] = a.defineAsyncComponent(async () => {
|
729
729
|
const c = await t(o.url);
|
730
730
|
return c && (c.name = r), c ? Y({
|
731
|
-
...
|
731
|
+
...n,
|
732
732
|
Vue: a,
|
733
733
|
dsl: c,
|
734
734
|
mode: y.Runtime,
|
735
|
-
loader: Q(
|
735
|
+
loader: Q(s)
|
736
736
|
}).renderer : null;
|
737
737
|
}), i);
|
738
738
|
}
|
@@ -740,7 +740,7 @@ function Q(n) {
|
|
740
740
|
let i = o.library ? k[o.library] : null;
|
741
741
|
return i || (o.library && V.push(o.library), i = k[o.library || Symbol()] = a.defineAsyncComponent(
|
742
742
|
async () => {
|
743
|
-
const c = await
|
743
|
+
const c = await Ee(o, n.window);
|
744
744
|
return c || (console.warn("getPlugin result is null", o), null);
|
745
745
|
}
|
746
746
|
), i);
|
@@ -748,286 +748,289 @@ function Q(n) {
|
|
748
748
|
return r;
|
749
749
|
};
|
750
750
|
}
|
751
|
-
function
|
751
|
+
function Dn() {
|
752
752
|
k = {};
|
753
753
|
}
|
754
|
-
function B(
|
755
|
-
if (!
|
756
|
-
const r = t.getCurrentInstance()?.appContext, { id: o = null, directives: a = [] } =
|
757
|
-
if (i && !
|
754
|
+
function B(s, e, t = N, n = Dt) {
|
755
|
+
if (!s || !s.name || s.invisible) return null;
|
756
|
+
const r = t.getCurrentInstance()?.appContext, { id: o = null, directives: a = [] } = s, { vIf: i, vFor: c, vShow: l, vModels: f, vBind: u, vHtml: d, others: h } = Ot(a);
|
757
|
+
if (i && !Bt(i, e))
|
758
758
|
return null;
|
759
|
-
const m = (
|
760
|
-
const w =
|
761
|
-
if (
|
762
|
-
return
|
763
|
-
if (
|
764
|
-
const b = s
|
765
|
-
return j(b) ?
|
766
|
-
})(), S =
|
767
|
-
if (
|
768
|
-
return
|
769
|
-
u && Object.assign(S,
|
759
|
+
const m = (p) => {
|
760
|
+
const w = p.$components, g = (() => {
|
761
|
+
if (s.name === "component")
|
762
|
+
return Nt(p, s.props?.is);
|
763
|
+
if (s.name === "slot") return s.name;
|
764
|
+
const b = n(s.name, s.from, t);
|
765
|
+
return j(b) ? mt(b) || gt(b) ? b : w[b] ?? r?.app?.component(b) ?? b : b;
|
766
|
+
})(), S = Ut(o, s.props ?? {}, p), Te = Lt(t, s.events ?? {}, p);
|
767
|
+
if (s.name === "slot")
|
768
|
+
return qt(t, s, S, p, n);
|
769
|
+
u && Object.assign(S, p.__parseExpression(u.value)), l && (S.style = Object.assign(
|
770
770
|
S.style ?? {},
|
771
|
-
|
772
|
-
)),
|
773
|
-
Object.assign(S,
|
771
|
+
Vt(l, p)
|
772
|
+
)), d && Object.assign(S, zt(d, p)), f.forEach((b) => {
|
773
|
+
Object.assign(S, Kt(t, b, p));
|
774
774
|
});
|
775
|
-
const
|
775
|
+
const Ie = Wt(
|
776
776
|
t,
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
|
777
|
+
s.children ?? [],
|
778
|
+
p,
|
779
|
+
n,
|
780
|
+
s
|
781
781
|
);
|
782
|
-
let U = t.createVNode(g, { ...S, ...Te },
|
783
|
-
const
|
784
|
-
return
|
782
|
+
let U = t.createVNode(g, { ...S, ...Te }, Ie);
|
783
|
+
const oe = r ? Ht(r, h, p) : [];
|
784
|
+
return oe.length && (U = t.withDirectives(U, oe)), U;
|
785
785
|
};
|
786
|
-
return c ?
|
786
|
+
return c ? Qt(c, m, e) : m(e);
|
787
787
|
}
|
788
|
-
function
|
789
|
-
const
|
788
|
+
function Ht(s, e, t) {
|
789
|
+
const n = s.app;
|
790
790
|
return e.map((r) => {
|
791
|
-
const o = typeof r.name == "string" ?
|
791
|
+
const o = typeof r.name == "string" ? n.directive(r.name) : t.__parseExpression(r.name);
|
792
792
|
if (!o) return null;
|
793
793
|
const a = [o];
|
794
794
|
return r.value && a.push(t.__parseExpression(r.value)), r.arg && a.push(r.arg), r.modifiers && a.push(r.modifiers), a;
|
795
795
|
}).filter((r) => !!r);
|
796
796
|
}
|
797
|
-
function
|
798
|
-
const e =
|
797
|
+
function Ot(s = []) {
|
798
|
+
const e = s.find((c) => $(c.name) === "vIf"), t = s.find((c) => $(c.name) === "vFor"), n = s.find((c) => $(c.name) === "vShow"), r = s.find((c) => $(c.name) === "vBind"), o = s.find((c) => $(c.name) === "vHtml"), a = s.filter(
|
799
799
|
(c) => $(c.name) === "vModel"
|
800
|
-
), i =
|
800
|
+
), i = s.filter(
|
801
801
|
(c) => !st.includes($(c.name))
|
802
802
|
);
|
803
803
|
return {
|
804
804
|
vIf: e,
|
805
805
|
vFor: t,
|
806
|
-
vShow:
|
806
|
+
vShow: n,
|
807
807
|
vModels: a,
|
808
808
|
vBind: r,
|
809
809
|
others: i,
|
810
810
|
vHtml: o
|
811
811
|
};
|
812
812
|
}
|
813
|
-
function
|
814
|
-
return !!e.__parseExpression(
|
813
|
+
function Bt(s, e) {
|
814
|
+
return !!e.__parseExpression(s.value);
|
815
815
|
}
|
816
|
-
function
|
817
|
-
return e ? _(e) ?
|
816
|
+
function Nt(s, e) {
|
817
|
+
return e ? _(e) ? s.__parseExpression(e) : e : "div";
|
818
818
|
}
|
819
|
-
function
|
820
|
-
const
|
821
|
-
|
822
|
-
|
823
|
-
|
819
|
+
function Ut(s, e, t) {
|
820
|
+
const n = X(e, t);
|
821
|
+
return n.ref = t.__ref(s, n.ref), n;
|
822
|
+
}
|
823
|
+
function X(s, e) {
|
824
|
+
return _(s) ? e.__parseExpression(s) : I(s) ? e.__parseFunction(s) : Array.isArray(s) ? s.map((t) => X(t, e)) : typeof s == "object" ? Object.keys(s || {}).reduce(
|
825
|
+
(t, n) => {
|
826
|
+
let r = s[n];
|
827
|
+
return t[n] = X(r, e), t;
|
824
828
|
},
|
825
829
|
{}
|
826
|
-
);
|
827
|
-
return s.ref = t.__ref(n, s.ref), s;
|
830
|
+
) : s;
|
828
831
|
}
|
829
|
-
function
|
830
|
-
const
|
832
|
+
function Lt(s, e, t) {
|
833
|
+
const n = ["passive", "capture", "once"], r = {
|
831
834
|
capture: "Capture",
|
832
835
|
once: "Once",
|
833
836
|
passive: "OnceCapture"
|
834
837
|
};
|
835
838
|
return Object.keys(e || {}).reduce(
|
836
839
|
(o, a) => {
|
837
|
-
const i = e[a], c =
|
838
|
-
return u && (o[f] =
|
840
|
+
const i = e[a], c = ke(i.modifiers), l = c.find((d) => n.includes(d)), f = "on" + qe(a) + (l && r[l] || ""), u = t.__parseFunction(i.handler);
|
841
|
+
return u && (o[f] = s.withModifiers(u, c)), o;
|
839
842
|
},
|
840
843
|
{}
|
841
844
|
);
|
842
845
|
}
|
843
|
-
function
|
844
|
-
const t = Object.keys(
|
845
|
-
return e ? t.map((
|
846
|
+
function ke(s = {}, e = !1) {
|
847
|
+
const t = Object.keys(s);
|
848
|
+
return e ? t.map((n) => "." + n) : t;
|
846
849
|
}
|
847
|
-
function
|
848
|
-
const { children: o } = e, a =
|
849
|
-
return i ? i(t) : o ? j(o) ?
|
850
|
-
|
850
|
+
function qt(s, e, t, n, r) {
|
851
|
+
const { children: o } = e, a = Jt(e, n), i = n.$slots?.[a.name];
|
852
|
+
return i ? i(t) : o ? j(o) ? s.createTextVNode(o) : _(o) ? s.createTextVNode(
|
853
|
+
Se(n.__parseExpression(o))
|
851
854
|
) : Array.isArray(o) ? o.map(
|
852
|
-
(c) => B(c,
|
855
|
+
(c) => B(c, n, s, r)
|
853
856
|
) : null : null;
|
854
857
|
}
|
855
|
-
function
|
856
|
-
const { props: t } =
|
858
|
+
function Jt(s, e) {
|
859
|
+
const { props: t } = s, n = t?.name || "default";
|
857
860
|
return {
|
858
|
-
name: _(
|
861
|
+
name: _(n) ? e.__parseExpression(n) : n,
|
859
862
|
params: []
|
860
863
|
};
|
861
864
|
}
|
862
|
-
function
|
863
|
-
return e.__parseExpression(
|
865
|
+
function Vt(s, e) {
|
866
|
+
return e.__parseExpression(s.value) ? {} : {
|
864
867
|
display: "none"
|
865
868
|
};
|
866
869
|
}
|
867
|
-
function
|
870
|
+
function zt(s, e) {
|
868
871
|
return {
|
869
|
-
innerHTML: e.__parseExpression(
|
872
|
+
innerHTML: e.__parseExpression(s.value) || ""
|
870
873
|
};
|
871
874
|
}
|
872
|
-
function
|
873
|
-
const
|
875
|
+
function Kt(s, e, t) {
|
876
|
+
const n = {
|
874
877
|
type: "JSFunction",
|
875
878
|
value: e.value?.value ? `(v) => {
|
876
879
|
${e.value.value} = v;
|
877
880
|
}` : "(v) => {}"
|
878
|
-
}, r = t.__parseFunction(
|
881
|
+
}, r = t.__parseFunction(n), o = ke(
|
879
882
|
_(e.modifiers) ? t.__parseExpression(e.modifiers) : e.modifiers
|
880
883
|
), a = _(e.arg) ? t.__parseExpression(e.arg) : e.arg || "modelValue";
|
881
884
|
return {
|
882
885
|
[a]: t.__parseExpression(e.value),
|
883
|
-
[`onUpdate:${a}`]: o.length && r ?
|
886
|
+
[`onUpdate:${a}`]: o.length && r ? s.withModifiers(r, o) : r
|
884
887
|
};
|
885
888
|
}
|
886
|
-
function
|
889
|
+
function Wt(s, e, t, n, r) {
|
887
890
|
if (!e) return null;
|
888
891
|
if (j(e))
|
889
892
|
return { default: () => e };
|
890
893
|
if (_(e))
|
891
894
|
return {
|
892
|
-
default: () =>
|
895
|
+
default: () => Se(t.__parseExpression(e))
|
893
896
|
};
|
894
897
|
if (Array.isArray(e) && e.length > 0) {
|
895
|
-
const o =
|
898
|
+
const o = Gt(e), a = (i) => !i || !r ? {} : r?.id && Object.keys(i).length ? {
|
896
899
|
[`scope_${r.id}`]: i
|
897
900
|
} : {};
|
898
901
|
return Object.entries(o).reduce((i, [c, { nodes: l, params: f }]) => (i[c] = (u) => {
|
899
|
-
const
|
902
|
+
const d = f.length ? Je(u ?? {}, f) : a(u);
|
900
903
|
return l.map(
|
901
|
-
(h) => B(h, t.__clone(
|
904
|
+
(h) => B(h, t.__clone(d), s, n)
|
902
905
|
);
|
903
906
|
}, i), {});
|
904
907
|
}
|
905
908
|
return null;
|
906
909
|
}
|
907
|
-
function
|
910
|
+
function Gt(s) {
|
908
911
|
const e = {
|
909
912
|
default: {
|
910
913
|
params: [],
|
911
914
|
nodes: []
|
912
915
|
}
|
913
916
|
};
|
914
|
-
for (const t of
|
915
|
-
const
|
916
|
-
e[r] ? (e[r].nodes.push(t), e[r].params = e[r].params.concat(
|
917
|
+
for (const t of s) {
|
918
|
+
const n = Yt(t.slot), r = n.name;
|
919
|
+
e[r] ? (e[r].nodes.push(t), e[r].params = e[r].params.concat(n.params)) : e[r] = {
|
917
920
|
nodes: [t],
|
918
|
-
params:
|
921
|
+
params: n.params
|
919
922
|
};
|
920
923
|
}
|
921
924
|
return e;
|
922
925
|
}
|
923
|
-
function
|
924
|
-
return j(
|
926
|
+
function Yt(s = "default") {
|
927
|
+
return j(s) ? { name: s, params: [] } : { params: [], ...s };
|
925
928
|
}
|
926
|
-
function
|
927
|
-
const { value:
|
928
|
-
let i = t.__parseExpression(
|
929
|
-
return Number.isInteger(i) && (i = new Array(i).fill(!0).map((c, l) => l + 1)), Array.isArray(i) ? i.map((c, l) => e(t.__clone({ [o]: c, [a]: l }))) : (console.warn("[vForRender]:", `${
|
929
|
+
function Qt(s, e, t) {
|
930
|
+
const { value: n, iterator: r } = s, { item: o = "item", index: a = "index" } = r || {};
|
931
|
+
let i = t.__parseExpression(n) || [];
|
932
|
+
return Number.isInteger(i) && (i = new Array(i).fill(!0).map((c, l) => l + 1)), Array.isArray(i) ? i.map((c, l) => e(t.__clone({ [o]: c, [a]: l }))) : (console.warn("[vForRender]:", `${n?.value} is not a Arrary`), []);
|
930
933
|
}
|
931
|
-
function
|
932
|
-
return
|
934
|
+
function Xt(s) {
|
935
|
+
return Qe() ? (Xe(s), !0) : !1;
|
933
936
|
}
|
934
|
-
function se(
|
935
|
-
return typeof
|
937
|
+
function se(s) {
|
938
|
+
return typeof s == "function" ? s() : Ye(s);
|
936
939
|
}
|
937
|
-
const
|
940
|
+
const Re = typeof window < "u" && typeof document < "u";
|
938
941
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
939
|
-
const
|
942
|
+
const Zt = (s) => s != null, en = () => {
|
940
943
|
};
|
941
|
-
function
|
942
|
-
return
|
944
|
+
function tn(s) {
|
945
|
+
return ve();
|
943
946
|
}
|
944
|
-
function
|
945
|
-
if (
|
946
|
-
return
|
947
|
-
const e =
|
948
|
-
return typeof e == "function" ?
|
947
|
+
function nn(...s) {
|
948
|
+
if (s.length !== 1)
|
949
|
+
return ze(...s);
|
950
|
+
const e = s[0];
|
951
|
+
return typeof e == "function" ? Ke(We(() => ({ get: e, set: en }))) : F(e);
|
949
952
|
}
|
950
|
-
function
|
951
|
-
|
953
|
+
function sn(s, e) {
|
954
|
+
tn() && Ge(s, e);
|
952
955
|
}
|
953
|
-
const
|
954
|
-
function
|
956
|
+
const rn = Re ? window : void 0, on = Re ? window.document : void 0;
|
957
|
+
function an(s) {
|
955
958
|
var e;
|
956
|
-
const t = se(
|
959
|
+
const t = se(s);
|
957
960
|
return (e = t?.$el) != null ? e : t;
|
958
961
|
}
|
959
|
-
function
|
960
|
-
const
|
961
|
-
return e &&
|
962
|
-
|
963
|
-
}, e),
|
962
|
+
function cn() {
|
963
|
+
const s = F(!1), e = ve();
|
964
|
+
return e && Ze(() => {
|
965
|
+
s.value = !0;
|
966
|
+
}, e), s;
|
964
967
|
}
|
965
|
-
function
|
966
|
-
const e =
|
967
|
-
return
|
968
|
+
function ln(s) {
|
969
|
+
const e = cn();
|
970
|
+
return _e(() => (e.value, !!s()));
|
968
971
|
}
|
969
|
-
function
|
970
|
-
const { window:
|
972
|
+
function un(s, e, t = {}) {
|
973
|
+
const { window: n = rn, ...r } = t;
|
971
974
|
let o;
|
972
|
-
const a =
|
975
|
+
const a = ln(() => n && "MutationObserver" in n), i = () => {
|
973
976
|
o && (o.disconnect(), o = void 0);
|
974
|
-
}, c =
|
975
|
-
const
|
977
|
+
}, c = _e(() => {
|
978
|
+
const d = se(s), h = (Array.isArray(d) ? d : [d]).map(an).filter(Zt);
|
976
979
|
return new Set(h);
|
977
|
-
}), l =
|
980
|
+
}), l = ye(
|
978
981
|
() => c.value,
|
979
|
-
(
|
980
|
-
i(), a.value &&
|
982
|
+
(d) => {
|
983
|
+
i(), a.value && d.size && (o = new MutationObserver(e), d.forEach((h) => o.observe(h, r)));
|
981
984
|
},
|
982
985
|
{ immediate: !0, flush: "post" }
|
983
986
|
), f = () => o?.takeRecords(), u = () => {
|
984
987
|
l(), i();
|
985
988
|
};
|
986
|
-
return
|
989
|
+
return Xt(u), {
|
987
990
|
isSupported: a,
|
988
991
|
stop: u,
|
989
992
|
takeRecords: f
|
990
993
|
};
|
991
994
|
}
|
992
|
-
function
|
993
|
-
var t,
|
995
|
+
function dn(s = null, e = {}) {
|
996
|
+
var t, n, r;
|
994
997
|
const {
|
995
|
-
document: o =
|
998
|
+
document: o = on,
|
996
999
|
restoreOnUnmount: a = (u) => u
|
997
|
-
} = e, i = (t = o?.title) != null ? t : "", c =
|
1000
|
+
} = e, i = (t = o?.title) != null ? t : "", c = nn((n = s ?? o?.title) != null ? n : null), l = s && typeof s == "function";
|
998
1001
|
function f(u) {
|
999
1002
|
if (!("titleTemplate" in e))
|
1000
1003
|
return u;
|
1001
|
-
const
|
1002
|
-
return typeof
|
1004
|
+
const d = e.titleTemplate || "%s";
|
1005
|
+
return typeof d == "function" ? d(u) : se(d).replace(/%s/g, u);
|
1003
1006
|
}
|
1004
|
-
return
|
1007
|
+
return ye(
|
1005
1008
|
c,
|
1006
|
-
(u,
|
1007
|
-
u !==
|
1009
|
+
(u, d) => {
|
1010
|
+
u !== d && o && (o.title = f(typeof u == "string" ? u : ""));
|
1008
1011
|
},
|
1009
1012
|
{ immediate: !0 }
|
1010
|
-
), e.observe && !e.titleTemplate && o && !l &&
|
1013
|
+
), e.observe && !e.titleTemplate && o && !l && un(
|
1011
1014
|
(r = o.head) == null ? void 0 : r.querySelector("title"),
|
1012
1015
|
() => {
|
1013
1016
|
o && o.title !== c.value && (c.value = f(o.title));
|
1014
1017
|
},
|
1015
1018
|
{ childList: !0 }
|
1016
|
-
),
|
1019
|
+
), sn(() => {
|
1017
1020
|
if (a) {
|
1018
1021
|
const u = a(i, c.value || "");
|
1019
1022
|
u != null && o && (o.title = u);
|
1020
1023
|
}
|
1021
1024
|
}), c;
|
1022
1025
|
}
|
1023
|
-
const
|
1026
|
+
const de = ee({
|
1024
1027
|
name: "VtjPageContainer",
|
1025
1028
|
async setup() {
|
1026
|
-
const
|
1027
|
-
return
|
1028
|
-
provider:
|
1029
|
+
const s = xe(), e = we(), t = e.params.id, n = t ? s.getPage(t) : s.getHomepage(), r = n ? await s.getRenderComponent(n.id) : null, o = F(Symbol());
|
1030
|
+
return n && (Object.assign(e.meta, n.meta || {}, { cache: n.cache }), dn(n.title || "VTJ")), {
|
1031
|
+
provider: s,
|
1029
1032
|
component: r,
|
1030
|
-
file:
|
1033
|
+
file: n,
|
1031
1034
|
query: e.query,
|
1032
1035
|
meta: e.meta,
|
1033
1036
|
sid: o,
|
@@ -1035,28 +1038,28 @@ const ue = Z({
|
|
1035
1038
|
};
|
1036
1039
|
},
|
1037
1040
|
render() {
|
1038
|
-
const { component:
|
1039
|
-
return
|
1041
|
+
const { component: s, query: e, sid: t } = this;
|
1042
|
+
return s ? W(s, { ...e, key: t }) : W("div", "页面不存在");
|
1040
1043
|
},
|
1041
1044
|
activated() {
|
1042
1045
|
this.meta.cache === !1 && (this.sid = Symbol());
|
1043
1046
|
}
|
1044
|
-
}),
|
1047
|
+
}), pn = {
|
1045
1048
|
"data-l-h6o7ki7": "",
|
1046
1049
|
class: "vtj-startup__wrapper"
|
1047
|
-
},
|
1050
|
+
}, fn = {
|
1048
1051
|
"data-l-h6o7ki7": "",
|
1049
1052
|
class: "vtj-startup"
|
1050
|
-
},
|
1053
|
+
}, hn = {
|
1051
1054
|
"data-l-h6o7ki7": "",
|
1052
1055
|
class: "vtj-startup__name"
|
1053
|
-
},
|
1056
|
+
}, mn = { "data-l-h6o7ki7": "" }, gn = {
|
1054
1057
|
"data-l-h6o7ki7": "",
|
1055
1058
|
class: "vtj-startup__tagline"
|
1056
|
-
},
|
1059
|
+
}, vn = {
|
1057
1060
|
"data-l-h6o7ki7": "",
|
1058
1061
|
class: "vtj-startup__actions"
|
1059
|
-
},
|
1062
|
+
}, yn = /* @__PURE__ */ ee({
|
1060
1063
|
__name: "Startup",
|
1061
1064
|
props: {
|
1062
1065
|
name: { default: "VTJ.PRO" },
|
@@ -1064,7 +1067,7 @@ const ue = Z({
|
|
1064
1067
|
actionText: { default: "开始设计" },
|
1065
1068
|
link: {}
|
1066
1069
|
},
|
1067
|
-
setup(
|
1070
|
+
setup(s) {
|
1068
1071
|
((r, o) => {
|
1069
1072
|
let a = document.getElementById("h6o7ki7");
|
1070
1073
|
a || (a = document.createElement("style"), a.id = "h6o7ki7", document.head.appendChild(a), a.innerHTML = o);
|
@@ -1146,7 +1149,7 @@ const ue = Z({
|
|
1146
1149
|
.vtj-startup__actions button[data-l-h6o7ki7]:hover{
|
1147
1150
|
opacity: 0.7;
|
1148
1151
|
}`);
|
1149
|
-
const t =
|
1152
|
+
const t = s, n = () => {
|
1150
1153
|
if (typeof window < "u") {
|
1151
1154
|
if (t.link) {
|
1152
1155
|
typeof t.link == "function" ? t.link() : window.location.href = t.link;
|
@@ -1156,35 +1159,35 @@ const ue = Z({
|
|
1156
1159
|
window.location.href = o;
|
1157
1160
|
}
|
1158
1161
|
};
|
1159
|
-
return (r, o) => (
|
1160
|
-
E("div",
|
1161
|
-
E("h1",
|
1162
|
-
E("span",
|
1162
|
+
return (r, o) => (tt(), et("div", pn, [
|
1163
|
+
E("div", fn, [
|
1164
|
+
E("h1", hn, [
|
1165
|
+
E("span", mn, J(t.name), 1)
|
1163
1166
|
]),
|
1164
|
-
E("div",
|
1165
|
-
E("div",
|
1167
|
+
E("div", gn, J(t.tagline), 1),
|
1168
|
+
E("div", vn, [
|
1166
1169
|
o[0] || (o[0] = E("span", { "data-l-h6o7ki7": "" }, "设置项目主页后,将替换此页面显示", -1)),
|
1167
1170
|
E("button", {
|
1168
1171
|
"data-l-h6o7ki7": "",
|
1169
|
-
onClick:
|
1172
|
+
onClick: n
|
1170
1173
|
}, J(t.actionText), 1)
|
1171
1174
|
])
|
1172
1175
|
])
|
1173
1176
|
]));
|
1174
1177
|
}
|
1175
|
-
}),
|
1178
|
+
}), _n = ee({
|
1176
1179
|
name: "VtjStartupContainer",
|
1177
1180
|
render() {
|
1178
|
-
return W(
|
1181
|
+
return W(yn);
|
1179
1182
|
}
|
1180
|
-
}),
|
1181
|
-
var
|
1182
|
-
class
|
1183
|
+
}), Pe = Symbol("Provider");
|
1184
|
+
var wn = /* @__PURE__ */ ((s) => (s.Production = "production", s.Development = "development", s))(wn || {});
|
1185
|
+
class Sn extends Me {
|
1183
1186
|
constructor(e) {
|
1184
1187
|
super(), this.options = e;
|
1185
1188
|
const {
|
1186
1189
|
service: t,
|
1187
|
-
mode:
|
1190
|
+
mode: n = y.Raw,
|
1188
1191
|
dependencies: r,
|
1189
1192
|
materials: o,
|
1190
1193
|
project: a = {},
|
@@ -1193,19 +1196,19 @@ class _s extends Ie {
|
|
1193
1196
|
modules: l = {},
|
1194
1197
|
router: f = null,
|
1195
1198
|
materialPath: u = "./",
|
1196
|
-
nodeEnv:
|
1199
|
+
nodeEnv: d = "development"
|
1197
1200
|
/* Development */
|
1198
1201
|
} = e;
|
1199
|
-
this.mode =
|
1202
|
+
this.mode = n, this.modules = l, this.service = t, this.router = f, this.materialPath = u, this.nodeEnv = d, r && (this.dependencies = r), o && (this.materials = o), Object.assign(this.globals, c), Object.assign(this.adapter, i);
|
1200
1203
|
const { access: h, request: m } = this.adapter;
|
1201
|
-
h && h.connect({ mode:
|
1204
|
+
h && h.connect({ mode: n, router: f, request: m }), a && n !== y.Design ? this.load(a) : this.project = a, R.setup({
|
1202
1205
|
timeout: "50-500"
|
1203
1206
|
});
|
1204
1207
|
}
|
1205
1208
|
mode;
|
1206
1209
|
globals = {};
|
1207
1210
|
modules = {};
|
1208
|
-
adapter = { request: K, jsonp:
|
1211
|
+
adapter = { request: K, jsonp: me };
|
1209
1212
|
apis = {};
|
1210
1213
|
dependencies = {};
|
1211
1214
|
materials = {};
|
@@ -1219,122 +1222,122 @@ class _s extends Ie {
|
|
1219
1222
|
urlDslCaches = {};
|
1220
1223
|
createMock(e) {
|
1221
1224
|
return async (...t) => {
|
1222
|
-
let
|
1225
|
+
let n = {};
|
1223
1226
|
if (e)
|
1224
1227
|
try {
|
1225
|
-
|
1228
|
+
n = await e.apply(e, t);
|
1226
1229
|
} catch (r) {
|
1227
|
-
|
1230
|
+
x.warn("模拟数据模版异常", r);
|
1228
1231
|
}
|
1229
|
-
return R.mock(
|
1232
|
+
return R.mock(n);
|
1230
1233
|
};
|
1231
1234
|
}
|
1232
1235
|
async load(e) {
|
1233
1236
|
const t = this.modules[`.vtj/projects/${e.id}.json`];
|
1234
1237
|
if (this.project = t ? await t() : await this.service.init(e), !this.project)
|
1235
1238
|
throw new Error("project is null");
|
1236
|
-
const { apis:
|
1237
|
-
o.CKEDITOR_VERSION = void 0, this.mode === y.Raw ? await this.loadDependencies(o) : await this.loadAssets(o), this.apis =
|
1239
|
+
const { apis: n = [], meta: r = [] } = this.project, o = window;
|
1240
|
+
o.CKEDITOR_VERSION = void 0, this.mode === y.Raw ? await this.loadDependencies(o) : await this.loadAssets(o), this.apis = bt(n, r, this.adapter), $e(), jt(n), this.initRouter(), this.triggerReady();
|
1238
1241
|
}
|
1239
1242
|
async loadDependencies(e) {
|
1240
1243
|
const t = Object.entries(this.dependencies);
|
1241
|
-
for (const [
|
1242
|
-
e[
|
1244
|
+
for (const [n, r] of t)
|
1245
|
+
e[n] || (e[n] = this.library[n] = await r());
|
1243
1246
|
}
|
1244
1247
|
async loadAssets(e) {
|
1245
|
-
const { dependencies: t = [] } = this.project, { dependencies:
|
1248
|
+
const { dependencies: t = [] } = this.project, { dependencies: n, library: r, components: o, materialPath: a, nodeEnv: i } = this, {
|
1246
1249
|
libraryExports: c,
|
1247
1250
|
libraryMap: l,
|
1248
1251
|
materials: f,
|
1249
1252
|
materialExports: u,
|
1250
|
-
materialMapLibrary:
|
1251
|
-
} =
|
1253
|
+
materialMapLibrary: d
|
1254
|
+
} = lt(
|
1252
1255
|
t,
|
1253
1256
|
a,
|
1254
1257
|
i === "development"
|
1255
1258
|
/* Development */
|
1256
1259
|
);
|
1257
1260
|
for (const h of c) {
|
1258
|
-
const m =
|
1259
|
-
if (
|
1260
|
-
r[h] =
|
1261
|
+
const m = n[h], p = e[h];
|
1262
|
+
if (p)
|
1263
|
+
r[h] = p;
|
1261
1264
|
else if (m)
|
1262
1265
|
e[h] = r[h] = await m();
|
1263
1266
|
else {
|
1264
1267
|
const w = l[h] || [];
|
1265
1268
|
for (const g of w)
|
1266
|
-
|
1269
|
+
te(g) && await dt(h, P.append(g, { v: C })), ne(g) && await ce(P.append(g, { v: C }));
|
1267
1270
|
r[h] = e[h];
|
1268
1271
|
}
|
1269
1272
|
}
|
1270
1273
|
if (i === "development") {
|
1271
1274
|
for (const m of f)
|
1272
|
-
await
|
1275
|
+
await ce(P.append(m, { v: C }));
|
1273
1276
|
const h = this.materials || {};
|
1274
1277
|
for (const m of u) {
|
1275
|
-
const
|
1278
|
+
const p = e[d[m]], w = De[m];
|
1276
1279
|
if (w)
|
1277
|
-
|
1278
|
-
o[g] =
|
1280
|
+
p && w.forEach((g) => {
|
1281
|
+
o[g] = p[g];
|
1279
1282
|
});
|
1280
1283
|
else {
|
1281
1284
|
const g = h[m] ? (await h[m]()).default : e[m];
|
1282
|
-
g &&
|
1283
|
-
o[S.name] =
|
1285
|
+
g && p && (g.components || []).forEach((S) => {
|
1286
|
+
o[S.name] = ut(S, p);
|
1284
1287
|
});
|
1285
1288
|
}
|
1286
1289
|
}
|
1287
1290
|
}
|
1288
1291
|
}
|
1289
1292
|
initRouter() {
|
1290
|
-
const { router: e, project: t, options:
|
1293
|
+
const { router: e, project: t, options: n, adapter: r } = this;
|
1291
1294
|
if (!e) return;
|
1292
|
-
const { routeAppendTo: o, pageRouteName: a = "page", routeMeta: i } =
|
1295
|
+
const { routeAppendTo: o, pageRouteName: a = "page", routeMeta: i } = n, c = o ? "" : "/", l = {
|
1293
1296
|
path: `${c}${a}/:id`,
|
1294
|
-
name:
|
1295
|
-
component:
|
1297
|
+
name: A,
|
1298
|
+
component: de
|
1296
1299
|
}, f = {
|
1297
1300
|
path: c,
|
1298
1301
|
name: H,
|
1299
|
-
component: t?.homepage ?
|
1302
|
+
component: t?.homepage ? de : r.startupComponent || _n,
|
1300
1303
|
meta: i
|
1301
1304
|
};
|
1302
|
-
e.hasRoute(
|
1305
|
+
e.hasRoute(A) && e.removeRoute(A), e.hasRoute(H) && e.removeRoute(H), o ? (e.addRoute(o, l), e.addRoute(o, f)) : (e.addRoute(l), e.addRoute(f));
|
1303
1306
|
}
|
1304
1307
|
install(e) {
|
1305
1308
|
const t = e.config.globalProperties.installed || {};
|
1306
|
-
for (const [
|
1307
|
-
!t[
|
1308
|
-
this.options.install && e.use(this.options.install), this.adapter.access && e.use(this.adapter.access), e.provide(
|
1309
|
-
const a = r?.$options.name, i = typeof
|
1309
|
+
for (const [n, r] of Object.entries(this.library))
|
1310
|
+
!t[n] && ht(r) && (e.use(r), t[n] = !0);
|
1311
|
+
this.options.install && e.use(this.options.install), this.adapter.access && e.use(this.adapter.access), e.provide(Pe, this), e.config.globalProperties.installed = t, this.mode === y.Design && (e.config.errorHandler = (n, r, o) => {
|
1312
|
+
const a = r?.$options.name, i = typeof n == "string" ? n : n?.message || n?.msg || "未知错误", c = `[ ${a} ] ${i} ${o}`;
|
1310
1313
|
console.error(
|
1311
1314
|
"[VTJ Error]:",
|
1312
1315
|
{
|
1313
|
-
err:
|
1316
|
+
err: n,
|
1314
1317
|
instance: r,
|
1315
1318
|
info: o
|
1316
1319
|
},
|
1317
|
-
|
1320
|
+
n?.stack
|
1318
1321
|
), this.adapter.notify && this.adapter.notify(c, "组件渲染错误", "error");
|
1319
1322
|
});
|
1320
1323
|
}
|
1321
1324
|
getFile(e) {
|
1322
1325
|
const { blocks: t = [] } = this.project || {};
|
1323
|
-
return this.getPage(e) || t.find((
|
1326
|
+
return this.getPage(e) || t.find((n) => n.id === e) || null;
|
1324
1327
|
}
|
1325
1328
|
getPage(e) {
|
1326
|
-
const { pages: t = [] } = this.project || {},
|
1329
|
+
const { pages: t = [] } = this.project || {}, n = (r, o = []) => {
|
1327
1330
|
for (const a of o) {
|
1328
1331
|
if (a.id === r)
|
1329
1332
|
return a;
|
1330
1333
|
if (a.children && a.children.length) {
|
1331
|
-
const i =
|
1334
|
+
const i = n(r, a.children);
|
1332
1335
|
if (i)
|
1333
1336
|
return i;
|
1334
1337
|
}
|
1335
1338
|
}
|
1336
1339
|
};
|
1337
|
-
return
|
1340
|
+
return n(e, t) || null;
|
1338
1341
|
}
|
1339
1342
|
getHomepage() {
|
1340
1343
|
const { homepage: e } = this.project || {};
|
@@ -1353,14 +1356,14 @@ class _s extends Ie {
|
|
1353
1356
|
validSuccess: !1,
|
1354
1357
|
originResponse: !0
|
1355
1358
|
}
|
1356
|
-
}).then((
|
1359
|
+
}).then((n) => n.data).catch(() => null));
|
1357
1360
|
}
|
1358
1361
|
createDslRenderer(e, t = {}) {
|
1359
|
-
const { library:
|
1362
|
+
const { library: n, components: r, mode: o, apis: a } = this, i = {
|
1360
1363
|
mode: o,
|
1361
|
-
Vue:
|
1364
|
+
Vue: n.Vue,
|
1362
1365
|
components: r,
|
1363
|
-
libs:
|
1366
|
+
libs: n,
|
1364
1367
|
apis: a,
|
1365
1368
|
window,
|
1366
1369
|
...t
|
@@ -1376,42 +1379,42 @@ class _s extends Ie {
|
|
1376
1379
|
});
|
1377
1380
|
}
|
1378
1381
|
async getRenderComponent(e, t) {
|
1379
|
-
const
|
1380
|
-
if (!
|
1381
|
-
return
|
1382
|
-
t && t(
|
1382
|
+
const n = this.getFile(e);
|
1383
|
+
if (!n)
|
1384
|
+
return x.warn(`Can not find file: ${e}`), null;
|
1385
|
+
t && t(n);
|
1383
1386
|
const r = `.vtj/vue/${e}.vue`, o = this.modules[r];
|
1384
1387
|
if (o)
|
1385
1388
|
return (await o())?.default;
|
1386
|
-
const a = await this.getDsl(
|
1387
|
-
return a ? this.createDslRenderer(a).renderer : (
|
1389
|
+
const a = await this.getDsl(n.id);
|
1390
|
+
return a ? this.createDslRenderer(a).renderer : (x.warn(`Can not find dsl: ${e}`), null);
|
1388
1391
|
}
|
1389
1392
|
defineUrlSchemaComponent(e, t) {
|
1390
|
-
return
|
1391
|
-
const
|
1392
|
-
return
|
1393
|
+
return le(async () => {
|
1394
|
+
const n = await this.getDslByUrl(e);
|
1395
|
+
return n ? (n.name = t || n.name, this.createDslRenderer(n).renderer) : null;
|
1393
1396
|
});
|
1394
1397
|
}
|
1395
1398
|
definePluginComponent(e) {
|
1396
|
-
return
|
1399
|
+
return le(async () => await Ee(e, window));
|
1397
1400
|
}
|
1398
1401
|
}
|
1399
|
-
function
|
1400
|
-
const e = new
|
1402
|
+
function Hn(s) {
|
1403
|
+
const e = new Sn(s);
|
1401
1404
|
return {
|
1402
1405
|
provider: e,
|
1403
|
-
onReady: (
|
1406
|
+
onReady: (n) => e.ready(n)
|
1404
1407
|
};
|
1405
1408
|
}
|
1406
|
-
function xe(
|
1407
|
-
const e =
|
1409
|
+
function xe(s = {}) {
|
1410
|
+
const e = ge(Pe);
|
1408
1411
|
if (!e)
|
1409
1412
|
throw new Error("Can not find provider");
|
1410
1413
|
if (e.nodeEnv === "development") {
|
1411
|
-
const { id: t, version:
|
1412
|
-
t &&
|
1414
|
+
const { id: t, version: n } = s;
|
1415
|
+
t && n && (async () => {
|
1413
1416
|
const r = await e.getDsl(t);
|
1414
|
-
r?.__VERSION__ !==
|
1417
|
+
r?.__VERSION__ !== n && e.adapter.notify && e.adapter.notify(
|
1415
1418
|
`[ ${r?.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,
|
1416
1419
|
"版本不一致",
|
1417
1420
|
"warning"
|
@@ -1420,35 +1423,35 @@ function xe(n = {}) {
|
|
1420
1423
|
}
|
1421
1424
|
return e;
|
1422
1425
|
}
|
1423
|
-
const
|
1426
|
+
const Ce = {
|
1424
1427
|
type: "json",
|
1425
1428
|
validSuccess: !0,
|
1426
1429
|
originResponse: !1,
|
1427
1430
|
failMessage: !0,
|
1428
|
-
validate: (
|
1429
|
-
},
|
1431
|
+
validate: (s) => s.data?.code === 0
|
1432
|
+
}, bn = (s, e = "/__vtj__/api/:type.json") => (t, n) => s.send({
|
1430
1433
|
url: e,
|
1431
1434
|
method: "post",
|
1432
1435
|
params: { type: t },
|
1433
1436
|
data: {
|
1434
1437
|
type: t,
|
1435
|
-
data:
|
1438
|
+
data: n
|
1436
1439
|
},
|
1437
|
-
settings:
|
1438
|
-
}),
|
1440
|
+
settings: Ce
|
1441
|
+
}), jn = (s, e = "/__vtj__/api/uploader.json") => async (t, n) => await s.send({
|
1439
1442
|
url: e,
|
1440
1443
|
method: "post",
|
1441
1444
|
data: {
|
1442
1445
|
files: t,
|
1443
|
-
projectId:
|
1446
|
+
projectId: n
|
1444
1447
|
},
|
1445
1448
|
settings: {
|
1446
|
-
...
|
1449
|
+
...Ce,
|
1447
1450
|
type: "data"
|
1448
1451
|
}
|
1449
1452
|
}).then((r) => r && r[0] ? r[0] : null).catch(() => null);
|
1450
|
-
function
|
1451
|
-
return
|
1453
|
+
function On(s) {
|
1454
|
+
return he({
|
1452
1455
|
settings: {
|
1453
1456
|
type: "json",
|
1454
1457
|
validSuccess: !0,
|
@@ -1456,17 +1459,17 @@ function Ds(n) {
|
|
1456
1459
|
failMessage: !0,
|
1457
1460
|
validate: (e) => e.data?.code === 0,
|
1458
1461
|
showError: (e) => {
|
1459
|
-
|
1462
|
+
s && s(e || "未知错误");
|
1460
1463
|
}
|
1461
1464
|
}
|
1462
1465
|
});
|
1463
1466
|
}
|
1464
|
-
class
|
1467
|
+
class re {
|
1465
1468
|
api;
|
1466
1469
|
pluginCaches = {};
|
1467
1470
|
uploader;
|
1468
1471
|
constructor(e = K) {
|
1469
|
-
this.api =
|
1472
|
+
this.api = bn(e), this.uploader = jn(e);
|
1470
1473
|
}
|
1471
1474
|
async getExtension() {
|
1472
1475
|
console.log("BaseService.getExtension");
|
@@ -1539,11 +1542,11 @@ class ne {
|
|
1539
1542
|
return await this.api("clearStaticFiles", e).catch(() => "");
|
1540
1543
|
}
|
1541
1544
|
async getPluginMaterial(e) {
|
1542
|
-
const { urls: t = [] } = e,
|
1543
|
-
if (!
|
1544
|
-
const r = this.pluginCaches[
|
1545
|
-
return r || (this.pluginCaches[
|
1546
|
-
url:
|
1545
|
+
const { urls: t = [] } = e, n = t.filter((o) => at(o))[0];
|
1546
|
+
if (!n) return null;
|
1547
|
+
const r = this.pluginCaches[n];
|
1548
|
+
return r || (this.pluginCaches[n] = K.send({
|
1549
|
+
url: n,
|
1547
1550
|
method: "get",
|
1548
1551
|
settings: {
|
1549
1552
|
validSuccess: !1,
|
@@ -1555,14 +1558,14 @@ class ne {
|
|
1555
1558
|
return console.log("BaseService.genSource", e), "";
|
1556
1559
|
}
|
1557
1560
|
}
|
1558
|
-
const v = new
|
1561
|
+
const v = new Ve({
|
1559
1562
|
type: "local",
|
1560
1563
|
expired: 0,
|
1561
1564
|
prefix: "__VTJ_"
|
1562
1565
|
});
|
1563
|
-
class
|
1566
|
+
class Bn extends re {
|
1564
1567
|
init(e) {
|
1565
|
-
const t = new O(e),
|
1568
|
+
const t = new O(e), n = v.get(`project_${t.id}`), r = Object.assign(t.toDsl(), n || {});
|
1566
1569
|
return v.save(`project_${t.id}`, r), Promise.resolve(r);
|
1567
1570
|
}
|
1568
1571
|
saveProject(e) {
|
@@ -1570,7 +1573,7 @@ class Hs extends ne {
|
|
1570
1573
|
return v.save(`project_${t.id}`, t.toDsl()), Promise.resolve(!0);
|
1571
1574
|
}
|
1572
1575
|
saveMaterials(e, t) {
|
1573
|
-
return v.save(`materials_${e.id}`,
|
1576
|
+
return v.save(`materials_${e.id}`, Z(t)), Promise.resolve(!0);
|
1574
1577
|
}
|
1575
1578
|
saveFile(e) {
|
1576
1579
|
return v.save(`file_${e.id}`, e), Promise.resolve(!0);
|
@@ -1594,30 +1597,30 @@ class Hs extends ne {
|
|
1594
1597
|
return Promise.resolve(!0);
|
1595
1598
|
}
|
1596
1599
|
getHistory(e) {
|
1597
|
-
const t = v.get(`history_${e}`),
|
1598
|
-
return Promise.resolve(
|
1600
|
+
const t = v.get(`history_${e}`), n = new pe(t || { id: e });
|
1601
|
+
return Promise.resolve(n.toDsl());
|
1599
1602
|
}
|
1600
1603
|
getHistoryItem(e, t) {
|
1601
|
-
const
|
1602
|
-
return Promise.resolve(
|
1604
|
+
const n = v.get(`history_${e}_${t}`);
|
1605
|
+
return Promise.resolve(n);
|
1603
1606
|
}
|
1604
1607
|
saveHistoryItem(e, t) {
|
1605
1608
|
return v.save(`history_${e}_${t.id}`, t), Promise.resolve(!0);
|
1606
1609
|
}
|
1607
1610
|
removeHistoryItem(e, t) {
|
1608
|
-
return t.forEach((
|
1609
|
-
v.remove(`history_${e}_${
|
1611
|
+
return t.forEach((n) => {
|
1612
|
+
v.remove(`history_${e}_${n}`);
|
1610
1613
|
}), Promise.resolve(!0);
|
1611
1614
|
}
|
1612
1615
|
}
|
1613
|
-
class
|
1616
|
+
class $n extends re {
|
1614
1617
|
projects = {};
|
1615
1618
|
materials = {};
|
1616
1619
|
files = {};
|
1617
1620
|
histories = {};
|
1618
1621
|
historyItems = {};
|
1619
1622
|
init(e) {
|
1620
|
-
const t = new O(e),
|
1623
|
+
const t = new O(e), n = this.projects[t.id] || {}, r = Object.assign(t.toDsl(), n);
|
1621
1624
|
return this.projects[r.id] = r, Promise.resolve(r);
|
1622
1625
|
}
|
1623
1626
|
saveProject(e) {
|
@@ -1625,7 +1628,7 @@ class bs extends ne {
|
|
1625
1628
|
return this.projects[t.id] = t.toDsl(), Promise.resolve(!0);
|
1626
1629
|
}
|
1627
1630
|
saveMaterials(e, t) {
|
1628
|
-
return e.id && (this.materials[e.id] =
|
1631
|
+
return e.id && (this.materials[e.id] = Z(t)), Promise.resolve(!0);
|
1629
1632
|
}
|
1630
1633
|
saveFile(e) {
|
1631
1634
|
return this.files[e.id] = e, Promise.resolve(!0);
|
@@ -1649,29 +1652,29 @@ class bs extends ne {
|
|
1649
1652
|
return Promise.resolve(!0);
|
1650
1653
|
}
|
1651
1654
|
getHistory(e) {
|
1652
|
-
const t = this.histories[e],
|
1653
|
-
return Promise.resolve(
|
1655
|
+
const t = this.histories[e], n = new pe(t || { id: e });
|
1656
|
+
return Promise.resolve(n);
|
1654
1657
|
}
|
1655
1658
|
getHistoryItem(e, t) {
|
1656
|
-
const
|
1659
|
+
const n = `${e}_${t}`, r = this.historyItems[n] || {};
|
1657
1660
|
return Promise.resolve(r);
|
1658
1661
|
}
|
1659
1662
|
saveHistoryItem(e, t) {
|
1660
|
-
const
|
1661
|
-
return this.historyItems[
|
1663
|
+
const n = `${e}_${t.id}`;
|
1664
|
+
return this.historyItems[n] = t, Promise.resolve(!0);
|
1662
1665
|
}
|
1663
1666
|
removeHistoryItem(e, t) {
|
1664
|
-
return t.forEach((
|
1665
|
-
const r = `${e}_${
|
1667
|
+
return t.forEach((n) => {
|
1668
|
+
const r = `${e}_${n}`;
|
1666
1669
|
delete this.historyItems[r];
|
1667
1670
|
}), Promise.resolve(!0);
|
1668
1671
|
}
|
1669
1672
|
}
|
1670
1673
|
let D = null;
|
1671
|
-
function
|
1672
|
-
return D || (D = new
|
1674
|
+
function Nn() {
|
1675
|
+
return D || (D = new $n(), D);
|
1673
1676
|
}
|
1674
|
-
class
|
1677
|
+
class Un extends re {
|
1675
1678
|
getFileCaches = {};
|
1676
1679
|
async getExtension() {
|
1677
1680
|
return await this.api("getExtension", {}).catch(() => {
|
@@ -1686,7 +1689,7 @@ class Bs extends ne {
|
|
1686
1689
|
async saveMaterials(e, t) {
|
1687
1690
|
return !!await this.api("saveMaterials", {
|
1688
1691
|
project: e,
|
1689
|
-
materials:
|
1692
|
+
materials: Z(t)
|
1690
1693
|
}).catch(() => !1);
|
1691
1694
|
}
|
1692
1695
|
async saveFile(e) {
|
@@ -1726,48 +1729,48 @@ class Bs extends ne {
|
|
1726
1729
|
);
|
1727
1730
|
}
|
1728
1731
|
}
|
1729
|
-
function
|
1730
|
-
return t.map((
|
1731
|
-
const { id: r, title: o, icon: a, children: i, hidden: c } =
|
1732
|
+
function Ae(s, e, t = []) {
|
1733
|
+
return t.map((n) => {
|
1734
|
+
const { id: r, title: o, icon: a, children: i, hidden: c } = n;
|
1732
1735
|
return {
|
1733
1736
|
id: r,
|
1734
1737
|
title: o,
|
1735
1738
|
icon: a,
|
1736
1739
|
hidden: c,
|
1737
|
-
url: `${
|
1738
|
-
children: i && i.length ?
|
1740
|
+
url: `${s}/${e}/${r}`,
|
1741
|
+
children: i && i.length ? Ae(s, e, i) : void 0
|
1739
1742
|
};
|
1740
1743
|
});
|
1741
1744
|
}
|
1742
|
-
function Fe(
|
1743
|
-
if (!e) return
|
1745
|
+
function Fe(s, e) {
|
1746
|
+
if (!e) return s;
|
1744
1747
|
let t = [];
|
1745
|
-
for (const
|
1746
|
-
if (
|
1747
|
-
const r = Fe(
|
1748
|
-
r.length && (
|
1748
|
+
for (const n of s)
|
1749
|
+
if (n.children && n.children.length) {
|
1750
|
+
const r = Fe(n.children, e);
|
1751
|
+
r.length && (n.children = r, t.push(n));
|
1749
1752
|
} else
|
1750
|
-
e.can(
|
1753
|
+
e.can(n.id.toString()) && t.push(n);
|
1751
1754
|
return t;
|
1752
1755
|
}
|
1753
|
-
function
|
1756
|
+
function Ln(s) {
|
1754
1757
|
const {
|
1755
1758
|
menuPathPrefix: e = "",
|
1756
1759
|
pageRouteName: t = "page",
|
1757
|
-
disableMenusFilter:
|
1758
|
-
} =
|
1759
|
-
|
1760
|
-
const { name:
|
1761
|
-
if (
|
1762
|
-
const
|
1763
|
-
i.value = !
|
1764
|
-
} else if (
|
1765
|
-
const
|
1766
|
-
i.value = !
|
1760
|
+
disableMenusFilter: n = !1
|
1761
|
+
} = s || {}, r = xe(), o = we(), a = _t(), i = F(!1), c = F(!1), l = r.project;
|
1762
|
+
nt(() => {
|
1763
|
+
const { name: d, params: h, meta: m } = o;
|
1764
|
+
if (d === A) {
|
1765
|
+
const p = r.getPage(h.id);
|
1766
|
+
i.value = !p?.mask, c.value = !!p?.pure;
|
1767
|
+
} else if (d === H) {
|
1768
|
+
const p = r.getHomepage();
|
1769
|
+
i.value = !p?.mask, c.value = !!p?.pure;
|
1767
1770
|
} else
|
1768
1771
|
i.value = !m.mask, c.value = !!m.pure;
|
1769
1772
|
});
|
1770
|
-
const f =
|
1773
|
+
const f = Ae(
|
1771
1774
|
e,
|
1772
1775
|
t,
|
1773
1776
|
l?.pages
|
@@ -1777,75 +1780,75 @@ function Ns(n) {
|
|
1777
1780
|
logo: u?.logo,
|
1778
1781
|
themeSwitchable: u?.themeSwitchable,
|
1779
1782
|
title: u?.title || l?.description || l?.name || "VTJ App",
|
1780
|
-
menus:
|
1783
|
+
menus: n ? f : Fe(f, a),
|
1781
1784
|
pure: c
|
1782
1785
|
};
|
1783
1786
|
}
|
1784
1787
|
export {
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
+
je as ACCESS_KEY,
|
1789
|
+
In as Access,
|
1790
|
+
it as BUILD_IN_TAGS,
|
1788
1791
|
st as BUILT_IN_DIRECTIVES,
|
1789
|
-
|
1790
|
-
|
1791
|
-
|
1792
|
+
re as BaseService,
|
1793
|
+
ue as CONTEXT_HOST,
|
1794
|
+
kt as Context,
|
1792
1795
|
y as ContextMode,
|
1793
|
-
|
1796
|
+
rt as DATA_TYPES,
|
1794
1797
|
H as HOMEPAGE_ROUTE_NAME,
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1799
|
-
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1798
|
+
ot as HTML_TAGS,
|
1799
|
+
Tn as JSCodeToString,
|
1800
|
+
Cn as LIFE_CYCLES_LIST,
|
1801
|
+
Un as LocalService,
|
1802
|
+
$n as MemoryService,
|
1803
|
+
wn as NodeEnv,
|
1804
|
+
A as PAGE_ROUTE_NAME,
|
1805
|
+
Sn as Provider,
|
1806
|
+
yn as Startup,
|
1807
|
+
Bn as StorageService,
|
1805
1808
|
C as VTJ_RENDERER_VERSION,
|
1806
|
-
|
1807
|
-
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1809
|
+
be as adoptedStyleSheets,
|
1810
|
+
Dn as clearLoaderCache,
|
1811
|
+
Mn as createAdapter,
|
1812
|
+
An as createAssetScripts,
|
1813
|
+
Fn as createAssetsCss,
|
1811
1814
|
Tt as createDataSources,
|
1812
1815
|
Q as createLoader,
|
1813
|
-
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1816
|
+
Nn as createMemoryService,
|
1817
|
+
St as createMetaApi,
|
1818
|
+
$t as createMock,
|
1819
|
+
Hn as createProvider,
|
1817
1820
|
Y as createRenderer,
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1821
|
+
wt as createSchemaApi,
|
1822
|
+
bt as createSchemaApis,
|
1823
|
+
On as createServiceRequest,
|
1824
|
+
Dt as defaultLoader,
|
1822
1825
|
M as fillBasePath,
|
1823
|
-
|
1824
|
-
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1826
|
+
ke as getModifiers,
|
1827
|
+
Ee as getPlugin,
|
1828
|
+
ut as getRawComponent,
|
1829
|
+
mt as isBuiltInTag,
|
1830
|
+
te as isCSSUrl,
|
1831
|
+
vt as isJSCode,
|
1829
1832
|
_ as isJSExpression,
|
1830
1833
|
I as isJSFunction,
|
1831
|
-
|
1832
|
-
|
1833
|
-
|
1834
|
-
|
1835
|
-
|
1834
|
+
at as isJSON,
|
1835
|
+
ne as isJSUrl,
|
1836
|
+
gt as isNativeTag,
|
1837
|
+
ht as isVuePlugin,
|
1838
|
+
dt as loadCss,
|
1836
1839
|
pt as loadCssUrl,
|
1837
|
-
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1840
|
+
ft as loadScriptUrl,
|
1841
|
+
Et as mockApi,
|
1842
|
+
jt as mockApis,
|
1843
|
+
$e as mockCleanup,
|
1841
1844
|
B as nodeRender,
|
1842
|
-
|
1843
|
-
|
1845
|
+
lt as parseDeps,
|
1846
|
+
T as parseExpression,
|
1844
1847
|
G as parseFunction,
|
1845
|
-
|
1846
|
-
|
1847
|
-
|
1848
|
-
|
1849
|
-
|
1848
|
+
Pe as providerKey,
|
1849
|
+
ct as removeProdFlag,
|
1850
|
+
Se as toString,
|
1851
|
+
_t as useAccess,
|
1852
|
+
Ln as useMask,
|
1850
1853
|
xe as useProvider
|
1851
1854
|
};
|