@vtj/uni 0.12.30 → 0.12.32
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/README.md +0 -17
- package/dist/index.mjs +102 -99
- package/dist/index.umd.js +3 -3
- package/package.json +5 -5
- package/types/constants.d.ts +1 -0
- package/types/version.d.ts +2 -2
package/README.md
CHANGED
@@ -28,16 +28,6 @@ VTJ 是一款以AI驱动的Vue3前端低代码开发工具。内置低代码引
|
|
28
28
|
|
29
29
|
- ✨ **物料丰富**: 此外,还内置了多款常用、功能强大的组件库以及丰富的页面模板,不仅支持高度定制,还提供了可复用的区块组件,助您高效构建出色的应用。
|
30
30
|
|
31
|
-
## 预览
|
32
|
-
|
33
|
-

|
34
|
-
|
35
|
-

|
36
|
-
|
37
|
-

|
38
|
-
|
39
|
-

|
40
|
-
|
41
31
|
## 体验
|
42
32
|
|
43
33
|
### 在线体验
|
@@ -98,10 +88,3 @@ npm run setup && npm run build && npm run app:dev
|
|
98
88
|
- 首次启动需要执行初始化:`npm run setup && npm run build`
|
99
89
|
- 重启开发环境:`npm run app:dev`
|
100
90
|
- 清理项目:`npm run clean` 清理后需要重新执行初始化
|
101
|
-
|
102
|
-
## 技术交流
|
103
|
-
|
104
|
-
钉钉群、 微信群(加好友,拉进群,备注:vtj)
|
105
|
-
|
106
|
-
<table border="0">
|
107
|
-
<tr><td><img src="./dingtalk.png" /></td><td><img src="./wechat.png" width="" /></td></tr></table>
|
package/dist/index.mjs
CHANGED
@@ -3,10 +3,10 @@ import { adoptedStyleSheets as S } from "@vtj/renderer";
|
|
3
3
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
4
4
|
* @name @vtj/uni
|
5
5
|
* @author CHC chenhuachun1549@dingtalk.com
|
6
|
-
* @version 0.12.
|
6
|
+
* @version 0.12.32
|
7
7
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
8
8
|
*/
|
9
|
-
const
|
9
|
+
const ee = "0.12.32", N = [
|
10
10
|
"onLaunch",
|
11
11
|
"onShow",
|
12
12
|
"onHide",
|
@@ -17,7 +17,16 @@ const Q = "0.12.30", h = [
|
|
17
17
|
"onPageNotFound",
|
18
18
|
"onUniNViewMessage",
|
19
19
|
"onExit"
|
20
|
-
],
|
20
|
+
], h = [
|
21
|
+
"beforeCreate",
|
22
|
+
"created",
|
23
|
+
"beforeMount",
|
24
|
+
"mounted",
|
25
|
+
"beforeUpdate",
|
26
|
+
"updated",
|
27
|
+
"beforeUnmount",
|
28
|
+
"unmounted"
|
29
|
+
], ne = [
|
21
30
|
"onLoad",
|
22
31
|
"onShow",
|
23
32
|
"onReady",
|
@@ -36,35 +45,28 @@ const Q = "0.12.30", h = [
|
|
36
45
|
"onNavigationBarSearchInputClicked",
|
37
46
|
"onShareTimeline",
|
38
47
|
"onAddToFavorites",
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
], f = "/pages", N = "VTJ", A = "__UNI__1FC118B", I = "VTJ移动跨端项目", w = "1.0.0", U = "100", R = !1, B = {}, C = { enable: !1 }, y = "3", b = {
|
48
|
-
name: N,
|
49
|
-
appid: A,
|
50
|
-
description: I,
|
51
|
-
versionName: w,
|
52
|
-
versionCode: U,
|
53
|
-
transformPx: R,
|
48
|
+
...h
|
49
|
+
], f = "/pages", A = "VTJ", I = "__UNI__1FC118B", w = "VTJ移动跨端项目", U = "1.0.0", R = "100", B = !1, C = {}, y = { enable: !1 }, b = "3", v = {
|
50
|
+
name: A,
|
51
|
+
appid: I,
|
52
|
+
description: w,
|
53
|
+
versionName: U,
|
54
|
+
versionCode: R,
|
55
|
+
transformPx: B,
|
54
56
|
"app-plus": { usingComponents: !0, nvueStyleCompiler: "uni-app", compilerVersion: 3, splashscreen: { alwaysShowBeforeRender: !0, waiting: !0, autoclose: !0, delay: 0 }, modules: {}, distribute: { android: { permissions: ['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>', '<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>', '<uses-permission android:name="android.permission.VIBRATE"/>', '<uses-permission android:name="android.permission.READ_LOGS"/>', '<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>', '<uses-feature android:name="android.hardware.camera.autofocus"/>', '<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>', '<uses-permission android:name="android.permission.CAMERA"/>', '<uses-permission android:name="android.permission.GET_ACCOUNTS"/>', '<uses-permission android:name="android.permission.READ_PHONE_STATE"/>', '<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>', '<uses-permission android:name="android.permission.WAKE_LOCK"/>', '<uses-permission android:name="android.permission.FLASHLIGHT"/>', '<uses-feature android:name="android.hardware.camera"/>', '<uses-permission android:name="android.permission.WRITE_SETTINGS"/>'] }, ios: {}, sdkConfigs: {}, icons: { android: { hdpi: "src/static/logo.png", xhdpi: "src/static/logo.png", xxhdpi: "src/static/logo.png", xxxhdpi: "src/static/logo.png" } } } },
|
55
|
-
quickapp:
|
57
|
+
quickapp: C,
|
56
58
|
"mp-weixin": { appid: "", setting: { urlCheck: !1 }, usingComponents: !0 },
|
57
59
|
"mp-alipay": { usingComponents: !0 },
|
58
60
|
"mp-baidu": { usingComponents: !0 },
|
59
61
|
"mp-toutiao": { usingComponents: !0 },
|
60
|
-
uniStatistics:
|
61
|
-
vueVersion:
|
62
|
-
},
|
63
|
-
pages:
|
64
|
-
globalStyle:
|
65
|
-
easycom:
|
62
|
+
uniStatistics: y,
|
63
|
+
vueVersion: b
|
64
|
+
}, F = [], P = { navigationBarTextStyle: "black", navigationBarTitleText: "uni-app", navigationBarBackgroundColor: "#F8F8F8", backgroundColor: "#F8F8F8" }, O = { autoscan: !0, custom: { "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue" } }, L = {
|
65
|
+
pages: F,
|
66
|
+
globalStyle: P,
|
67
|
+
easycom: O
|
66
68
|
};
|
67
|
-
function
|
69
|
+
function te(e) {
|
68
70
|
const [t, ...n] = e;
|
69
71
|
return [t.toLowerCase(), ...n].join("").replace(/[A-Z]/g, (i) => `-${i.toLowerCase()}`);
|
70
72
|
}
|
@@ -80,8 +82,8 @@ function x(e) {
|
|
80
82
|
});
|
81
83
|
return {
|
82
84
|
...e,
|
83
|
-
manifestJson: Object.assign({},
|
84
|
-
pagesJson: Object.assign({},
|
85
|
+
manifestJson: Object.assign({}, v, t),
|
86
|
+
pagesJson: Object.assign({}, L, n, { pages: i })
|
85
87
|
};
|
86
88
|
}
|
87
89
|
const g = {
|
@@ -102,36 +104,36 @@ function E(e) {
|
|
102
104
|
g[o] && (t[g[o]] = o === "navigationBarTextStyle" ? n[e[o]] || n.black : e[o]);
|
103
105
|
return t;
|
104
106
|
}
|
105
|
-
function
|
107
|
+
function V(e) {
|
106
108
|
const t = {};
|
107
109
|
for (const n in e)
|
108
110
|
g[n] || (t[n] = e[n]);
|
109
111
|
return t;
|
110
112
|
}
|
111
|
-
function
|
113
|
+
function oe(e) {
|
112
114
|
return e.split("?")[0].match(/\#\/pages\/([\w\W]*)/i)?.[1] ?? "";
|
113
115
|
}
|
114
|
-
function
|
116
|
+
function k(e) {
|
115
117
|
return e.h5?.router?.mode || "hash";
|
116
118
|
}
|
117
|
-
function
|
119
|
+
function W(e) {
|
118
120
|
return {
|
119
121
|
topWindow: !!e.topWindow?.path,
|
120
122
|
leftWindow: !!e.leftWindow?.path,
|
121
123
|
rightWindow: !!e.rightWindow?.path
|
122
124
|
};
|
123
125
|
}
|
124
|
-
function
|
126
|
+
function M(e) {
|
125
127
|
const { pagesJson: t = {} } = e, { globalStyle: n, pages: o = [] } = t;
|
126
128
|
return !!(n?.enablePullDownRefresh || o.find((i) => !!i.style?.enablePullDownRefresh));
|
127
129
|
}
|
128
|
-
function
|
130
|
+
function D(e) {
|
129
131
|
const { pagesJson: t = {} } = e, { globalStyle: n, pages: o = [] } = t;
|
130
132
|
let i = !1;
|
131
133
|
return n?.navigationStyle === "custom" ? (i = !0, o.find((s) => s.style?.navigationStyle === "default") && (i = !1)) : o.every((s) => s.style?.navigationStyle === "custom") && (i = !0), i;
|
132
134
|
}
|
133
|
-
function
|
134
|
-
const t =
|
135
|
+
function G(e) {
|
136
|
+
const t = D(e), n = {
|
135
137
|
navigationBar: !1,
|
136
138
|
navigationBarButtons: !1,
|
137
139
|
navigationBarSearchInput: !1,
|
@@ -143,13 +145,13 @@ function D(e) {
|
|
143
145
|
const a = i?.h5?.titleNView;
|
144
146
|
return s.find((r) => !!r.style?.h5?.titleNView?.buttons.length) && (n.navigationBarButtons = !0), (a?.searchInput || s.find((r) => !!r.style?.h5?.titleNView?.searchInput)) && (n.navigationBarSearchInput = !0), (a?.type === "transparent" || s.find((r) => r.style?.h5?.titleNView?.type === "transparent")) && (n.navigationBarTransparent = !0), n;
|
145
147
|
}
|
146
|
-
function
|
147
|
-
const { pagesJson: n = {}, manifestJson: o = {} } = e, { topWindow: i, leftWindow: s, rightWindow: a } =
|
148
|
+
function J(e, t = window) {
|
149
|
+
const { pagesJson: n = {}, manifestJson: o = {} } = e, { topWindow: i, leftWindow: s, rightWindow: a } = W(n), {
|
148
150
|
navigationBar: r,
|
149
151
|
navigationBarButtons: c,
|
150
|
-
navigationBarSearchInput:
|
151
|
-
navigationBarTransparent:
|
152
|
-
} =
|
152
|
+
navigationBarSearchInput: _,
|
153
|
+
navigationBarTransparent: u
|
154
|
+
} = G(e), p = {
|
153
155
|
// vue
|
154
156
|
__VUE_OPTIONS_API__: !0,
|
155
157
|
// enable/disable Options API support, default: true
|
@@ -184,7 +186,7 @@ function G(e, t = window) {
|
|
184
186
|
// 是否启用i18n
|
185
187
|
__UNI_FEATURE_NVUE__: !1,
|
186
188
|
// 是否启用nvue
|
187
|
-
__UNI_FEATURE_ROUTER_MODE__:
|
189
|
+
__UNI_FEATURE_ROUTER_MODE__: k(o),
|
188
190
|
// 路由模式
|
189
191
|
__UNI_FEATURE_PAGES__: !!n.pages?.length,
|
190
192
|
// 是否多页面
|
@@ -202,35 +204,35 @@ function G(e, t = window) {
|
|
202
204
|
// 是否启用响应式
|
203
205
|
__UNI_FEATURE_NAVIGATIONBAR__: r,
|
204
206
|
// 是否启用标题栏
|
205
|
-
__UNI_FEATURE_PULL_DOWN_REFRESH__:
|
207
|
+
__UNI_FEATURE_PULL_DOWN_REFRESH__: M(e),
|
206
208
|
// 是否启用下拉刷新
|
207
209
|
__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__: c,
|
208
210
|
// 是否启用标题栏按钮
|
209
|
-
__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:
|
211
|
+
__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__: _,
|
210
212
|
// 是否启用标题栏搜索框
|
211
|
-
__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:
|
213
|
+
__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__: u
|
212
214
|
// 是否启用透明标题栏
|
213
215
|
};
|
214
216
|
Object.entries(p).forEach(([d, l]) => {
|
215
217
|
t[d] = l;
|
216
218
|
});
|
217
219
|
}
|
218
|
-
const
|
219
|
-
function
|
220
|
+
const H = "4.57";
|
221
|
+
function j(e, t = window) {
|
220
222
|
const { pagesJson: n = {}, manifestJson: o = {} } = e, { easycom: i = {} } = n, {
|
221
223
|
appid: s = "",
|
222
224
|
name: a = "",
|
223
225
|
versionCode: r = "",
|
224
226
|
versionName: c = ""
|
225
|
-
} = o,
|
227
|
+
} = o, _ = n.globalStyle, u = o.h5?.router || {};
|
226
228
|
t.__uniConfig = {
|
227
229
|
easycom: i,
|
228
230
|
globalStyle: {
|
229
|
-
...
|
230
|
-
navigationBar: E(
|
231
|
+
...V(_),
|
232
|
+
navigationBar: E(_),
|
231
233
|
isNVue: !1
|
232
234
|
},
|
233
|
-
compilerVersion:
|
235
|
+
compilerVersion: H,
|
234
236
|
appId: s,
|
235
237
|
appName: a,
|
236
238
|
appVersion: c,
|
@@ -262,8 +264,8 @@ function H(e, t = window) {
|
|
262
264
|
mode: "hash",
|
263
265
|
base: "/",
|
264
266
|
assets: "assets",
|
265
|
-
routerBase:
|
266
|
-
...
|
267
|
+
routerBase: u.base || "/",
|
268
|
+
...u
|
267
269
|
},
|
268
270
|
darkmode: !1,
|
269
271
|
themeConfig: {},
|
@@ -285,7 +287,7 @@ function H(e, t = window) {
|
|
285
287
|
// tabBar: pagesJson.tabBar
|
286
288
|
};
|
287
289
|
}
|
288
|
-
function
|
290
|
+
function $(e, t = window) {
|
289
291
|
const {
|
290
292
|
UniServiceJSBridge: n,
|
291
293
|
UniViewJSBridge: o,
|
@@ -295,14 +297,14 @@ function j(e, t = window) {
|
|
295
297
|
upx2px: r,
|
296
298
|
setupPage: c
|
297
299
|
} = e;
|
298
|
-
t.UniServiceJSBridge = n, t.UniViewJSBridge = o, t.getApp = i, t.uni = s, t.wx = s, t.getCurrentPages = a, t.upx2px = r, t.__setupPage = (
|
300
|
+
t.UniServiceJSBridge = n, t.UniViewJSBridge = o, t.getApp = i, t.uni = s, t.wx = s, t.getCurrentPages = a, t.upx2px = r, t.__setupPage = (_) => c(_);
|
299
301
|
}
|
300
|
-
function
|
301
|
-
const { openBlock: o, createBlock: i, withCtx: s, createVNode: a } = e, { PageComponent: r, setupPage: c, getApp:
|
302
|
+
function K(e, t, n) {
|
303
|
+
const { openBlock: o, createBlock: i, withCtx: s, createVNode: a } = e, { PageComponent: r, setupPage: c, getApp: _ } = t;
|
302
304
|
return {
|
303
305
|
mpType: "page",
|
304
306
|
async setup() {
|
305
|
-
const p =
|
307
|
+
const p = _()?.$route?.query || {}, { loader: d, component: l } = n, T = d ? await d(n) : l || {};
|
306
308
|
return () => (o(), i(r, null, {
|
307
309
|
page: s(() => [
|
308
310
|
a(
|
@@ -317,11 +319,11 @@ function $(e, t, n) {
|
|
317
319
|
}
|
318
320
|
};
|
319
321
|
}
|
320
|
-
function
|
321
|
-
const { path: o, style: i = {}, meta: s = {}, home: a, id: r } = t, c = e.tabBar?.list || [],
|
322
|
+
function Y(e, t, n) {
|
323
|
+
const { path: o, style: i = {}, meta: s = {}, home: a, id: r } = t, c = e.tabBar?.list || [], _ = c.findIndex((l) => l.pagePath === o || l.pagePath?.endsWith(r)), u = c[_], p = !!u, d = n === 0;
|
322
324
|
return {
|
323
325
|
isTabBar: p,
|
324
|
-
tabBarIndex:
|
326
|
+
tabBarIndex: _,
|
325
327
|
isQuit: a ?? d,
|
326
328
|
isEntry: a ?? d,
|
327
329
|
navigationBar: {
|
@@ -329,30 +331,30 @@ function K(e, t, n) {
|
|
329
331
|
...E(i)
|
330
332
|
},
|
331
333
|
isNVue: !1,
|
332
|
-
route:
|
334
|
+
route: u ? u.pagePath : o,
|
333
335
|
...s
|
334
336
|
};
|
335
337
|
}
|
336
338
|
function q(e, t, n, o, i = window) {
|
337
339
|
const s = n.map((a, r) => {
|
338
|
-
const c =
|
340
|
+
const c = Y(o, a, r), _ = K(e, t, a), { path: u } = a;
|
339
341
|
return {
|
340
|
-
path:
|
341
|
-
alias:
|
342
|
+
path: u,
|
343
|
+
alias: u,
|
342
344
|
meta: c,
|
343
345
|
component: {
|
344
346
|
render() {
|
345
|
-
return e.h(e.Suspense, [e.h(
|
347
|
+
return e.h(e.Suspense, [e.h(_)]);
|
346
348
|
}
|
347
349
|
}
|
348
350
|
};
|
349
351
|
});
|
350
352
|
i.__uniRoutes = s, i.__uniLayout = {};
|
351
353
|
}
|
352
|
-
function
|
354
|
+
function z(e, t, n = window) {
|
353
355
|
S(n, String(e), t);
|
354
356
|
}
|
355
|
-
function
|
357
|
+
function X(e, t) {
|
356
358
|
if (!t) return;
|
357
359
|
[
|
358
360
|
"View",
|
@@ -394,7 +396,7 @@ function z(e, t) {
|
|
394
396
|
e.component(o, i);
|
395
397
|
});
|
396
398
|
}
|
397
|
-
function
|
399
|
+
function ie(e) {
|
398
400
|
const t = x(e), {
|
399
401
|
Vue: n,
|
400
402
|
App: o,
|
@@ -403,19 +405,19 @@ function oe(e) {
|
|
403
405
|
pagesJson: a = {},
|
404
406
|
manifestJson: r = {},
|
405
407
|
window: c,
|
406
|
-
css:
|
408
|
+
css: _ = ""
|
407
409
|
} = t;
|
408
410
|
if (!i)
|
409
411
|
return n.createApp(o);
|
410
|
-
const { plugin:
|
411
|
-
|
412
|
+
const { plugin: u, setupApp: p } = i;
|
413
|
+
J(t, c), j(t, c), $(i, c), q(n, i, s, a, c), z(r.appid || Date.now(), _, c);
|
412
414
|
const d = n.createApp(p(o));
|
413
|
-
return d.use(
|
415
|
+
return d.use(X, i), d.use(u), d;
|
414
416
|
}
|
415
|
-
function
|
417
|
+
function ae(e, t) {
|
416
418
|
const n = {};
|
417
419
|
return Object.entries(e).forEach(([o, i]) => {
|
418
|
-
|
420
|
+
N.includes(o) && i && (n[o] = t(i));
|
419
421
|
}), n;
|
420
422
|
}
|
421
423
|
function m(e, t) {
|
@@ -428,7 +430,7 @@ function m(e, t) {
|
|
428
430
|
return null;
|
429
431
|
};
|
430
432
|
}
|
431
|
-
async function
|
433
|
+
async function se(e, t = !1, n = f) {
|
432
434
|
const o = e.project?.pages || [], i = [];
|
433
435
|
for (const a of o) {
|
434
436
|
const r = e.project?.homepage === a.id;
|
@@ -466,7 +468,7 @@ async function ae(e, t = !1, n = f) {
|
|
466
468
|
}
|
467
469
|
return i;
|
468
470
|
}
|
469
|
-
function
|
471
|
+
function re() {
|
470
472
|
if (window.uni?.showLoading)
|
471
473
|
return window.uni.showLoading({
|
472
474
|
title: "加载中...",
|
@@ -477,40 +479,41 @@ function se() {
|
|
477
479
|
}
|
478
480
|
};
|
479
481
|
}
|
480
|
-
function
|
482
|
+
function Z(e, t = "", n = "warning") {
|
481
483
|
window.uni?.showModal && window.uni.showModal({
|
482
484
|
title: t,
|
483
485
|
content: e,
|
484
486
|
showCancel: !1
|
485
487
|
});
|
486
488
|
}
|
487
|
-
function
|
488
|
-
|
489
|
+
function ce(e) {
|
490
|
+
Z(e);
|
489
491
|
}
|
490
492
|
export {
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
493
|
+
N as APP_LIFE_CYCLE,
|
494
|
+
h as COMPONENT_LIFE_CYCLES_LIST,
|
495
|
+
v as MANIFEST_JSON,
|
496
|
+
L as PAGES_JSON,
|
497
|
+
ne as PAGE_LIFE_CYCLES_LIST,
|
495
498
|
f as ROUTE_PAGE_BASE_PATH,
|
496
|
-
|
497
|
-
|
499
|
+
ce as alert,
|
500
|
+
ae as createUniAppComponent,
|
498
501
|
m as createUniLoader,
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
+
se as createUniRoutes,
|
503
|
+
oe as getFileId,
|
504
|
+
V as getGobalStyle,
|
502
505
|
E as getNavigationBar,
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
506
|
+
z as injectUniCSS,
|
507
|
+
j as injectUniConfig,
|
508
|
+
J as injectUniFeatures,
|
509
|
+
$ as injectUniGlobal,
|
507
510
|
q as injectUniRoutes,
|
508
|
-
|
509
|
-
|
511
|
+
X as install,
|
512
|
+
re as loading,
|
510
513
|
x as mergeOptions,
|
511
514
|
g as navigationBarMaps,
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
515
|
+
Z as notify,
|
516
|
+
ie as setupUniApp,
|
517
|
+
te as toKebabCase,
|
518
|
+
ee as version
|
516
519
|
};
|
package/dist/index.umd.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
(function(
|
1
|
+
(function(r,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("@vtj/renderer")):typeof define=="function"&&define.amd?define(["exports","@vtj/renderer"],m):(r=typeof globalThis<"u"?globalThis:r||self,m(r.VtjUni={},r.renderer))})(this,function(r,m){"use strict";/**!
|
2
2
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
3
3
|
* @name @vtj/uni
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
5
|
-
* @version 0.12.
|
5
|
+
* @version 0.12.32
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
|
-
*/const O="0.12.30",N=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],L=["onLoad","onShow","onReady","onHide","onUnload","onResize","onPullDownRefresh","onReachBottom","onTabItemTap","onShareAppMessage","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onShareTimeline","onAddToFavorites","beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],S="/pages",I={name:"VTJ",appid:"__UNI__1FC118B",description:"VTJ移动跨端项目",versionName:"1.0.0",versionCode:"100",transformPx:!1,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:{},"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:{enable:!1},vueVersion:"3"},h={pages:[],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},easycom:{autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}}};function k(n){const[t,...e]=n;return[t.toLowerCase(),...e].join("").replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`)}function w(n){let{manifestJson:t={},pagesJson:e={},routes:o=[]}=n;const i=o.map(u=>{const{path:a,style:d,needLogin:_}=u;return{path:a,style:d,needLogin:_}});return{...n,manifestJson:Object.assign({},I,t),pagesJson:Object.assign({},h,e,{pages:i})}}const T={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function A(n){const t={},e={black:"#000000",white:"#ffffff"};for(const o in n)T[o]&&(t[T[o]]=o==="navigationBarTextStyle"?e[n[o]]||e.black:n[o]);return t}function R(n){const t={};for(const e in n)T[e]||(t[e]=n[e]);return t}function V(n){var o;const e=n.split("?")[0].match(/\#\/pages\/([\w\W]*)/i);return(o=e==null?void 0:e[1])!=null?o:""}function W(n){var e;const t=n.h5;return((e=t==null?void 0:t.router)==null?void 0:e.mode)||"hash"}function j(n){var t,e,o;return{topWindow:!!((t=n.topWindow)!=null&&t.path),leftWindow:!!((e=n.leftWindow)!=null&&e.path),rightWindow:!!((o=n.rightWindow)!=null&&o.path)}}function G(n){const{pagesJson:t={}}=n,{globalStyle:e,pages:o=[]}=t;return!!(e!=null&&e.enablePullDownRefresh||o.find(i=>{var u;return!!((u=i.style)!=null&&u.enablePullDownRefresh)}))}function M(n){const{pagesJson:t={}}=n,{globalStyle:e,pages:o=[]}=t;let i=!1;return(e==null?void 0:e.navigationStyle)==="custom"?(i=!0,o.find(u=>{var a;return((a=u.style)==null?void 0:a.navigationStyle)==="default"})&&(i=!1)):o.every(u=>{var a;return((a=u.style)==null?void 0:a.navigationStyle)==="custom"})&&(i=!0),i}function D(n){var d;const t=M(n),e={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:o={}}=n,{globalStyle:i,pages:u=[]}=o;if(t)return e;e.navigationBar=!0;const a=(d=i==null?void 0:i.h5)==null?void 0:d.titleNView;return u.find(_=>{var s,r,p;return!!((p=(r=(s=_.style)==null?void 0:s.h5)==null?void 0:r.titleNView)!=null&&p.buttons.length)})&&(e.navigationBarButtons=!0),(a!=null&&a.searchInput||u.find(_=>{var s,r,p;return!!((p=(r=(s=_.style)==null?void 0:s.h5)==null?void 0:r.titleNView)!=null&&p.searchInput)}))&&(e.navigationBarSearchInput=!0),((a==null?void 0:a.type)==="transparent"||u.find(_=>{var s,r,p;return((p=(r=(s=_.style)==null?void 0:s.h5)==null?void 0:r.titleNView)==null?void 0:p.type)==="transparent"}))&&(e.navigationBarTransparent=!0),e}function C(n,t=window){var l,g,m,f;const{pagesJson:e={},manifestJson:o={}}=n,{topWindow:i,leftWindow:u,rightWindow:a}=j(e),{navigationBar:d,navigationBarButtons:_,navigationBarSearchInput:s,navigationBarTransparent:r}=D(n),p={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:W(o),__UNI_FEATURE_PAGES__:!!((l=e.pages)!=null&&l.length),__UNI_FEATURE_TABBAR__:!!((m=(g=e.tabBar)==null?void 0:g.list)!=null&&m.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((f=e.tabBar)!=null&&f.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:u,__UNI_FEATURE_RIGHTWINDOW__:a,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:d,__UNI_FEATURE_PULL_DOWN_REFRESH__:G(n),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:_,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:s,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:r};Object.entries(p).forEach(([X,Z])=>{t[X]=Z})}const J="4.57";function B(n,t=window){var p,l;const{pagesJson:e={},manifestJson:o={}}=n,{easycom:i={}}=e,{appid:u="",name:a="",versionCode:d="",versionName:_=""}=o,s=e.globalStyle,r=((p=o.h5)==null?void 0:p.router)||{};t.__uniConfig={easycom:i,globalStyle:{...R(s),navigationBar:A(s),isNVue:!1},compilerVersion:J,appId:u,appName:a,appVersion:_,appVersionCode:String(d),async:{loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0,...((l=o.h5)==null?void 0:l.async)||{}},debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4,...o.networkTimeout||{}},sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:{mode:"hash",base:"/",assets:"assets",routerBase:r.base||"/",...r},darkmode:!1,themeConfig:{},tabBar:e.tabBar?{position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0,...e.tabBar}:void 0}}function v(n,t=window){const{UniServiceJSBridge:e,UniViewJSBridge:o,getApp:i,uni:u,getCurrentPages:a,upx2px:d,setupPage:_}=n;t.UniServiceJSBridge=e,t.UniViewJSBridge=o,t.getApp=i,t.uni=u,t.wx=u,t.getCurrentPages=a,t.upx2px=d,t.__setupPage=s=>_(s)}function H(n,t,e){const{openBlock:o,createBlock:i,withCtx:u,createVNode:a}=n,{PageComponent:d,setupPage:_,getApp:s}=t;return{mpType:"page",async setup(){var f;const r=s(),p=((f=r==null?void 0:r.$route)==null?void 0:f.query)||{},{loader:l,component:g}=e,m=l?await l(e):g||{};return()=>(o(),i(d,null,{page:u(()=>[a(_(m),Object.assign({},p,{ref:"page"}),null,512)]),_:1}))}}}function x(n,t,e){var g;const{path:o,style:i={},meta:u={},home:a,id:d}=t,_=((g=n.tabBar)==null?void 0:g.list)||[],s=_.findIndex(m=>{var f;return m.pagePath===o||((f=m.pagePath)==null?void 0:f.endsWith(d))}),r=_[s],p=!!r,l=e===0;return{isTabBar:p,tabBarIndex:s,isQuit:a!=null?a:l,isEntry:a!=null?a:l,navigationBar:{type:"default",...A(i)},isNVue:!1,route:r?r.pagePath:o,...u}}function y(n,t,e,o,i=window){const u=e.map((a,d)=>{const _=x(o,a,d),s=H(n,t,a),{path:r}=a;return{path:r,alias:r,meta:_,component:{render(){return n.h(n.Suspense,[n.h(s)])}}}});i.__uniRoutes=u,i.__uniLayout={}}function F(n,t,e=window){E.adoptedStyleSheets(e,String(n),t)}function P(n,t){if(!t)return;["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(o=>{const i=t[o];n.component(o,i)})}function $(n){const t=w(n),{Vue:e,App:o,UniH5:i,routes:u=[],pagesJson:a={},manifestJson:d={},window:_,css:s=""}=t;if(!i)return e.createApp(o);const{plugin:r,setupApp:p}=i;C(t,_),B(t,_),v(i,_),y(e,i,u,a,_),F(d.appid||Date.now(),s,_);const l=e.createApp(p(o));return l.use(P,i),l.use(r),l}function q(n,t){const e={};return Object.entries(n).forEach(([o,i])=>{N.includes(o)&&i&&(e[o]=t(i))}),e}function U(n,t){return async()=>{const e=await n.getDsl(t);if(e){const{renderer:o}=n.createDslRenderer(e);return o}return null}}async function K(n,t=!1,e=S){var a,d,_;const o=((a=n.project)==null?void 0:a.pages)||[],i=[];for(const s of o){const r=((d=n.project)==null?void 0:d.homepage)===s.id;i.push({id:s.id,path:`${e}/${s.id}`,loader:U(n,s.id),style:{navigationBarTitleText:s.title,...s.style},needLogin:s.needLogin,home:r})}const u=i.find(s=>!!s.home)||i[0];if(u){const s=e===S?"/":e;i.unshift({...u,path:s})}if(t){const s=((_=n.project)==null?void 0:_.blocks)||[];for(const r of s)i.push({id:r.id,path:`${e}/${r.id}`,loader:U(n,r.id),style:{navigationStyle:"custom"}})}return i}function Y(){var n;if((n=window.uni)!=null&&n.showLoading)return window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function b(n,t="",e="warning"){var o;(o=window.uni)!=null&&o.showModal&&window.uni.showModal({title:t,content:n,showCancel:!1})}function z(n){b(n)}c.APP_LIFE_CYCLE=N,c.MANIFEST_JSON=I,c.PAGES_JSON=h,c.PAGE_LIFE_CYCLES_LIST=L,c.ROUTE_PAGE_BASE_PATH=S,c.alert=z,c.createUniAppComponent=q,c.createUniLoader=U,c.createUniRoutes=K,c.getFileId=V,c.getGobalStyle=R,c.getNavigationBar=A,c.injectUniCSS=F,c.injectUniConfig=B,c.injectUniFeatures=C,c.injectUniGlobal=v,c.injectUniRoutes=y,c.install=P,c.loading=Y,c.mergeOptions=w,c.navigationBarMaps=T,c.notify=b,c.setupUniApp=$,c.toKebabCase=k,c.version=O,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
7
|
+
*/const L="0.12.32",I=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],U=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted"],k=["onLoad","onShow","onReady","onHide","onUnload","onResize","onPullDownRefresh","onReachBottom","onTabItemTap","onShareAppMessage","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onShareTimeline","onAddToFavorites",...U],S="/pages",h={name:"VTJ",appid:"__UNI__1FC118B",description:"VTJ移动跨端项目",versionName:"1.0.0",versionCode:"100",transformPx:!1,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:{},"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:{enable:!1},vueVersion:"3"},C={pages:[],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},easycom:{autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}}};function V(e){const[t,...n]=e;return[t.toLowerCase(),...n].join("").replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`)}function w(e){let{manifestJson:t={},pagesJson:n={},routes:o=[]}=e;const i=o.map(u=>{const{path:a,style:d,needLogin:_}=u;return{path:a,style:d,needLogin:_}});return{...e,manifestJson:Object.assign({},h,t),pagesJson:Object.assign({},C,n,{pages:i})}}const T={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function A(e){const t={},n={black:"#000000",white:"#ffffff"};for(const o in e)T[o]&&(t[T[o]]=o==="navigationBarTextStyle"?n[e[o]]||n.black:e[o]);return t}function R(e){const t={};for(const n in e)T[n]||(t[n]=e[n]);return t}function W(e){var o;const n=e.split("?")[0].match(/\#\/pages\/([\w\W]*)/i);return(o=n==null?void 0:n[1])!=null?o:""}function j(e){var n;const t=e.h5;return((n=t==null?void 0:t.router)==null?void 0:n.mode)||"hash"}function G(e){var t,n,o;return{topWindow:!!((t=e.topWindow)!=null&&t.path),leftWindow:!!((n=e.leftWindow)!=null&&n.path),rightWindow:!!((o=e.rightWindow)!=null&&o.path)}}function M(e){const{pagesJson:t={}}=e,{globalStyle:n,pages:o=[]}=t;return!!(n!=null&&n.enablePullDownRefresh||o.find(i=>{var u;return!!((u=i.style)!=null&&u.enablePullDownRefresh)}))}function D(e){const{pagesJson:t={}}=e,{globalStyle:n,pages:o=[]}=t;let i=!1;return(n==null?void 0:n.navigationStyle)==="custom"?(i=!0,o.find(u=>{var a;return((a=u.style)==null?void 0:a.navigationStyle)==="default"})&&(i=!1)):o.every(u=>{var a;return((a=u.style)==null?void 0:a.navigationStyle)==="custom"})&&(i=!0),i}function J(e){var d;const t=D(e),n={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:o={}}=e,{globalStyle:i,pages:u=[]}=o;if(t)return n;n.navigationBar=!0;const a=(d=i==null?void 0:i.h5)==null?void 0:d.titleNView;return u.find(_=>{var s,c,p;return!!((p=(c=(s=_.style)==null?void 0:s.h5)==null?void 0:c.titleNView)!=null&&p.buttons.length)})&&(n.navigationBarButtons=!0),(a!=null&&a.searchInput||u.find(_=>{var s,c,p;return!!((p=(c=(s=_.style)==null?void 0:s.h5)==null?void 0:c.titleNView)!=null&&p.searchInput)}))&&(n.navigationBarSearchInput=!0),((a==null?void 0:a.type)==="transparent"||u.find(_=>{var s,c,p;return((p=(c=(s=_.style)==null?void 0:s.h5)==null?void 0:c.titleNView)==null?void 0:p.type)==="transparent"}))&&(n.navigationBarTransparent=!0),n}function B(e,t=window){var l,g,E,f;const{pagesJson:n={},manifestJson:o={}}=e,{topWindow:i,leftWindow:u,rightWindow:a}=G(n),{navigationBar:d,navigationBarButtons:_,navigationBarSearchInput:s,navigationBarTransparent:c}=J(e),p={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:j(o),__UNI_FEATURE_PAGES__:!!((l=n.pages)!=null&&l.length),__UNI_FEATURE_TABBAR__:!!((E=(g=n.tabBar)==null?void 0:g.list)!=null&&E.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((f=n.tabBar)!=null&&f.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:u,__UNI_FEATURE_RIGHTWINDOW__:a,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:d,__UNI_FEATURE_PULL_DOWN_REFRESH__:M(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:_,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:s,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(p).forEach(([Z,Q])=>{t[Z]=Q})}const H="4.57";function v(e,t=window){var p,l;const{pagesJson:n={},manifestJson:o={}}=e,{easycom:i={}}=n,{appid:u="",name:a="",versionCode:d="",versionName:_=""}=o,s=n.globalStyle,c=((p=o.h5)==null?void 0:p.router)||{};t.__uniConfig={easycom:i,globalStyle:{...R(s),navigationBar:A(s),isNVue:!1},compilerVersion:H,appId:u,appName:a,appVersion:_,appVersionCode:String(d),async:{loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0,...((l=o.h5)==null?void 0:l.async)||{}},debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4,...o.networkTimeout||{}},sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:{mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/",...c},darkmode:!1,themeConfig:{},tabBar:n.tabBar?{position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0,...n.tabBar}:void 0}}function y(e,t=window){const{UniServiceJSBridge:n,UniViewJSBridge:o,getApp:i,uni:u,getCurrentPages:a,upx2px:d,setupPage:_}=e;t.UniServiceJSBridge=n,t.UniViewJSBridge=o,t.getApp=i,t.uni=u,t.wx=u,t.getCurrentPages=a,t.upx2px=d,t.__setupPage=s=>_(s)}function x(e,t,n){const{openBlock:o,createBlock:i,withCtx:u,createVNode:a}=e,{PageComponent:d,setupPage:_,getApp:s}=t;return{mpType:"page",async setup(){var f;const c=s(),p=((f=c==null?void 0:c.$route)==null?void 0:f.query)||{},{loader:l,component:g}=n,E=l?await l(n):g||{};return()=>(o(),i(d,null,{page:u(()=>[a(_(E),Object.assign({},p,{ref:"page"}),null,512)]),_:1}))}}}function $(e,t,n){var g;const{path:o,style:i={},meta:u={},home:a,id:d}=t,_=((g=e.tabBar)==null?void 0:g.list)||[],s=_.findIndex(E=>{var f;return E.pagePath===o||((f=E.pagePath)==null?void 0:f.endsWith(d))}),c=_[s],p=!!c,l=n===0;return{isTabBar:p,tabBarIndex:s,isQuit:a!=null?a:l,isEntry:a!=null?a:l,navigationBar:{type:"default",...A(i)},isNVue:!1,route:c?c.pagePath:o,...u}}function F(e,t,n,o,i=window){const u=n.map((a,d)=>{const _=$(o,a,d),s=x(e,t,a),{path:c}=a;return{path:c,alias:c,meta:_,component:{render(){return e.h(e.Suspense,[e.h(s)])}}}});i.__uniRoutes=u,i.__uniLayout={}}function P(e,t,n=window){m.adoptedStyleSheets(n,String(e),t)}function b(e,t){if(!t)return;["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(o=>{const i=t[o];e.component(o,i)})}function Y(e){const t=w(e),{Vue:n,App:o,UniH5:i,routes:u=[],pagesJson:a={},manifestJson:d={},window:_,css:s=""}=t;if(!i)return n.createApp(o);const{plugin:c,setupApp:p}=i;B(t,_),v(t,_),y(i,_),F(n,i,u,a,_),P(d.appid||Date.now(),s,_);const l=n.createApp(p(o));return l.use(b,i),l.use(c),l}function q(e,t){const n={};return Object.entries(e).forEach(([o,i])=>{I.includes(o)&&i&&(n[o]=t(i))}),n}function N(e,t){return async()=>{const n=await e.getDsl(t);if(n){const{renderer:o}=e.createDslRenderer(n);return o}return null}}async function K(e,t=!1,n=S){var a,d,_;const o=((a=e.project)==null?void 0:a.pages)||[],i=[];for(const s of o){const c=((d=e.project)==null?void 0:d.homepage)===s.id;i.push({id:s.id,path:`${n}/${s.id}`,loader:N(e,s.id),style:{navigationBarTitleText:s.title,...s.style},needLogin:s.needLogin,home:c})}const u=i.find(s=>!!s.home)||i[0];if(u){const s=n===S?"/":n;i.unshift({...u,path:s})}if(t){const s=((_=e.project)==null?void 0:_.blocks)||[];for(const c of s)i.push({id:c.id,path:`${n}/${c.id}`,loader:N(e,c.id),style:{navigationStyle:"custom"}})}return i}function z(){var e;if((e=window.uni)!=null&&e.showLoading)return window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function O(e,t="",n="warning"){var o;(o=window.uni)!=null&&o.showModal&&window.uni.showModal({title:t,content:e,showCancel:!1})}function X(e){O(e)}r.APP_LIFE_CYCLE=I,r.COMPONENT_LIFE_CYCLES_LIST=U,r.MANIFEST_JSON=h,r.PAGES_JSON=C,r.PAGE_LIFE_CYCLES_LIST=k,r.ROUTE_PAGE_BASE_PATH=S,r.alert=X,r.createUniAppComponent=q,r.createUniLoader=N,r.createUniRoutes=K,r.getFileId=W,r.getGobalStyle=R,r.getNavigationBar=A,r.injectUniCSS=P,r.injectUniConfig=v,r.injectUniFeatures=B,r.injectUniGlobal=y,r.injectUniRoutes=F,r.install=b,r.loading=z,r.mergeOptions=w,r.navigationBarMaps=T,r.notify=O,r.setupUniApp=Y,r.toKebabCase=V,r.version=L,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vtj/uni",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.12.
|
4
|
+
"version": "0.12.32",
|
5
5
|
"type": "module",
|
6
6
|
"sideEffects": false,
|
7
7
|
"keywords": [
|
@@ -22,10 +22,10 @@
|
|
22
22
|
"author": "chenhuachun",
|
23
23
|
"license": "MIT",
|
24
24
|
"dependencies": {
|
25
|
-
"@vtj/
|
26
|
-
"@vtj/icons": "~0.12.
|
27
|
-
"@vtj/
|
28
|
-
"@vtj/utils": "~0.12.
|
25
|
+
"@vtj/renderer": "~0.12.32",
|
26
|
+
"@vtj/icons": "~0.12.32",
|
27
|
+
"@vtj/core": "~0.12.32",
|
28
|
+
"@vtj/utils": "~0.12.32"
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
31
|
"@dcloudio/uni-app": "3.0.0-4050720250324001",
|
package/types/constants.d.ts
CHANGED
package/types/version.d.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
3
3
|
* @name @vtj/uni
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
5
|
-
* @version 0.12.
|
5
|
+
* @version 0.12.31
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
7
7
|
*/
|
8
|
-
export declare const version = "0.12.
|
8
|
+
export declare const version = "0.12.31";
|