@weapp-core/schematics 6.1.0 → 6.2.1
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 +31 -4
- package/dist/index.d.cts +21 -5
- package/dist/index.d.ts +21 -5
- package/dist/index.js +31 -4
- package/package.json +1 -1
- package/schemas/app.json +10 -1
- package/schemas/component.json +4 -0
- package/schemas/page.json +10 -1
- package/schemas/plugin.json +13 -0
package/dist/index.cjs
CHANGED
|
@@ -26,7 +26,7 @@ node_process = __toESM(node_process, 1);
|
|
|
26
26
|
let zod = require("zod");
|
|
27
27
|
zod = __toESM(zod, 1);
|
|
28
28
|
//#region src/constants.ts
|
|
29
|
-
const SCHEMA_BASE = (node_process.default.env.WEAPP_SCHEMA_BASE ?? "https://vite.
|
|
29
|
+
const SCHEMA_BASE = (node_process.default.env.WEAPP_SCHEMA_BASE ?? "https://vite.weapp.dev").replace(/\/$/, "");
|
|
30
30
|
function schemaUrl(filename) {
|
|
31
31
|
return `${SCHEMA_BASE}/${filename}`;
|
|
32
32
|
}
|
|
@@ -288,7 +288,8 @@ var app_default = {
|
|
|
288
288
|
},
|
|
289
289
|
"componentFramework": {
|
|
290
290
|
"type": "string",
|
|
291
|
-
"description": "
|
|
291
|
+
"description": "组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。",
|
|
292
|
+
"enum": ["exparser", "glass-easel"]
|
|
292
293
|
},
|
|
293
294
|
"miniApp": {
|
|
294
295
|
"type": "object",
|
|
@@ -307,6 +308,11 @@ var app_default = {
|
|
|
307
308
|
"description": "聊天工具分包配置",
|
|
308
309
|
"x-wechat-min-version": "3.7.8"
|
|
309
310
|
},
|
|
311
|
+
"glassEaselWebview": {
|
|
312
|
+
"type": "boolean",
|
|
313
|
+
"description": "显式启用 WebView glass-easel,最低基础库为 3.8.12,默认不启用;需与 componentFramework: glass-easel 配套使用。",
|
|
314
|
+
"x-wechat-min-version": "3.8.12"
|
|
315
|
+
},
|
|
310
316
|
"subPackages": {
|
|
311
317
|
"type": "object[]",
|
|
312
318
|
"description": "分包结构配置(兼容别名)。"
|
|
@@ -347,6 +353,7 @@ var component_default = {
|
|
|
347
353
|
},
|
|
348
354
|
"componentFramework": {
|
|
349
355
|
"type": "string",
|
|
356
|
+
"enum": ["exparser", "glass-easel"],
|
|
350
357
|
"description": "组件框架。"
|
|
351
358
|
},
|
|
352
359
|
"usingComponents": {
|
|
@@ -496,7 +503,13 @@ var page_default = {
|
|
|
496
503
|
},
|
|
497
504
|
"componentFramework": {
|
|
498
505
|
"type": "string",
|
|
499
|
-
"description": "
|
|
506
|
+
"description": "组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。",
|
|
507
|
+
"enum": ["exparser", "glass-easel"]
|
|
508
|
+
},
|
|
509
|
+
"glassEaselWebview": {
|
|
510
|
+
"type": "boolean",
|
|
511
|
+
"description": "显式启用 WebView glass-easel,最低基础库为 3.8.12,默认不启用;需与 componentFramework: glass-easel 配套使用。",
|
|
512
|
+
"x-wechat-min-version": "3.8.12"
|
|
500
513
|
},
|
|
501
514
|
"styleIsolation": {
|
|
502
515
|
"type": "string",
|
|
@@ -514,6 +527,16 @@ var page_default = {
|
|
|
514
527
|
var plugin_default = {
|
|
515
528
|
source: "https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/development.html",
|
|
516
529
|
fields: {
|
|
530
|
+
"componentFramework": {
|
|
531
|
+
"type": "string",
|
|
532
|
+
"enum": ["exparser", "glass-easel"],
|
|
533
|
+
"description": "插件组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。"
|
|
534
|
+
},
|
|
535
|
+
"glassEaselWebview": {
|
|
536
|
+
"type": "boolean",
|
|
537
|
+
"description": "显式启用 WebView glass-easel,最低基础库为 3.8.12,默认不启用;需与 componentFramework: glass-easel 配套使用。",
|
|
538
|
+
"x-wechat-min-version": "3.8.12"
|
|
539
|
+
},
|
|
517
540
|
"publicComponents": {
|
|
518
541
|
"type": "object",
|
|
519
542
|
"description": "插件对外提供的自定义组件。"
|
|
@@ -592,12 +615,14 @@ function createJsonSchema(schema, metadata) {
|
|
|
592
615
|
return enrichJsonSchema(zod.toJSONSchema(schema), metadata);
|
|
593
616
|
}
|
|
594
617
|
const metaSchema = zod.object({ $schema: zod.string() }).partial();
|
|
618
|
+
const componentFrameworkSchema = zod.enum(["exparser", "glass-easel"]);
|
|
595
619
|
const sharedSchema = zod.object({
|
|
596
620
|
usingComponents: zod.record(zod.string(), zod.string()),
|
|
597
|
-
componentFramework:
|
|
621
|
+
componentFramework: componentFrameworkSchema
|
|
598
622
|
}).partial().extend(metaSchema.shape);
|
|
599
623
|
const pageAndComponentSharedSchema = zod.looseObject({ componentPlaceholder: zod.looseObject({}) }).partial().extend(sharedSchema.shape);
|
|
600
624
|
const appAndPageSharedSchema = zod.looseObject({
|
|
625
|
+
glassEaselWebview: zod.boolean(),
|
|
601
626
|
style: zod.string(),
|
|
602
627
|
singlePage: zod.looseObject({}),
|
|
603
628
|
enablePassiveEvent: zod.looseObject({}).or(zod.boolean()),
|
|
@@ -757,6 +782,8 @@ const SitemapSchema = zod.looseObject({ rules: zod.object({
|
|
|
757
782
|
const ThemeJsonSchema = createJsonSchema(ThemeSchema, theme_default);
|
|
758
783
|
const SitemapJsonSchema = createJsonSchema(SitemapSchema, sitemap_default);
|
|
759
784
|
const PluginJsonSchema = createJsonSchema(zod.looseObject({
|
|
785
|
+
componentFramework: componentFrameworkSchema,
|
|
786
|
+
glassEaselWebview: zod.boolean(),
|
|
760
787
|
publicComponents: zod.record(zod.string(), zod.string()),
|
|
761
788
|
pages: zod.record(zod.string(), zod.string()),
|
|
762
789
|
main: zod.string()
|
package/dist/index.d.cts
CHANGED
|
@@ -31,9 +31,9 @@ interface App$1 {
|
|
|
31
31
|
[k: string]: unknown;
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* 组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。
|
|
35
35
|
*/
|
|
36
|
-
componentFramework?:
|
|
36
|
+
componentFramework?: "exparser" | "glass-easel";
|
|
37
37
|
/**
|
|
38
38
|
* 是否将 rpx 单位转换为 vw 单位。
|
|
39
39
|
*/
|
|
@@ -76,6 +76,10 @@ interface App$1 {
|
|
|
76
76
|
* 是否启用插件功能页。
|
|
77
77
|
*/
|
|
78
78
|
functionalPages?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* 显式启用 WebView glass-easel,最低基础库为 3.8.12,默认不启用;需与 componentFramework: glass-easel 配套使用。
|
|
81
|
+
*/
|
|
82
|
+
glassEaselWebview?: boolean;
|
|
79
83
|
/**
|
|
80
84
|
* 视频号直播半屏场景设置。
|
|
81
85
|
*/
|
|
@@ -375,7 +379,7 @@ interface Component$1 {
|
|
|
375
379
|
/**
|
|
376
380
|
* 组件框架。
|
|
377
381
|
*/
|
|
378
|
-
componentFramework?:
|
|
382
|
+
componentFramework?: "exparser" | "glass-easel";
|
|
379
383
|
/**
|
|
380
384
|
* 组件泛型配置。
|
|
381
385
|
*/
|
|
@@ -430,9 +434,9 @@ interface Page$1 {
|
|
|
430
434
|
*/
|
|
431
435
|
backgroundTextStyle?: "dark" | "light";
|
|
432
436
|
/**
|
|
433
|
-
*
|
|
437
|
+
* 组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。
|
|
434
438
|
*/
|
|
435
|
-
componentFramework?:
|
|
439
|
+
componentFramework?: "exparser" | "glass-easel";
|
|
436
440
|
componentPlaceholder?: {
|
|
437
441
|
[k: string]: unknown;
|
|
438
442
|
};
|
|
@@ -450,6 +454,10 @@ interface Page$1 {
|
|
|
450
454
|
* 是否开启当前页面下拉刷新。详见 Page.onPullDownRefresh
|
|
451
455
|
*/
|
|
452
456
|
enablePullDownRefresh?: boolean;
|
|
457
|
+
/**
|
|
458
|
+
* 显式启用 WebView glass-easel,最低基础库为 3.8.12,默认不启用;需与 componentFramework: glass-easel 配套使用。
|
|
459
|
+
*/
|
|
460
|
+
glassEaselWebview?: boolean;
|
|
453
461
|
/**
|
|
454
462
|
* 控制预加载下个页面的时机。支持 static / manual / auto
|
|
455
463
|
*/
|
|
@@ -572,6 +580,14 @@ interface Theme$1 {
|
|
|
572
580
|
* https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/development.html#%E6%8F%92%E4%BB%B6%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6
|
|
573
581
|
*/
|
|
574
582
|
interface Plugin$1 {
|
|
583
|
+
/**
|
|
584
|
+
* 插件组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。
|
|
585
|
+
*/
|
|
586
|
+
componentFramework?: "exparser" | "glass-easel";
|
|
587
|
+
/**
|
|
588
|
+
* 显式启用 WebView glass-easel,最低基础库为 3.8.12,默认不启用;需与 componentFramework: glass-easel 配套使用。
|
|
589
|
+
*/
|
|
590
|
+
glassEaselWebview?: boolean;
|
|
575
591
|
/**
|
|
576
592
|
* 插件主入口文件。
|
|
577
593
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -31,9 +31,9 @@ interface App$1 {
|
|
|
31
31
|
[k: string]: unknown;
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* 组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。
|
|
35
35
|
*/
|
|
36
|
-
componentFramework?:
|
|
36
|
+
componentFramework?: "exparser" | "glass-easel";
|
|
37
37
|
/**
|
|
38
38
|
* 是否将 rpx 单位转换为 vw 单位。
|
|
39
39
|
*/
|
|
@@ -76,6 +76,10 @@ interface App$1 {
|
|
|
76
76
|
* 是否启用插件功能页。
|
|
77
77
|
*/
|
|
78
78
|
functionalPages?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* 显式启用 WebView glass-easel,最低基础库为 3.8.12,默认不启用;需与 componentFramework: glass-easel 配套使用。
|
|
81
|
+
*/
|
|
82
|
+
glassEaselWebview?: boolean;
|
|
79
83
|
/**
|
|
80
84
|
* 视频号直播半屏场景设置。
|
|
81
85
|
*/
|
|
@@ -375,7 +379,7 @@ interface Component$1 {
|
|
|
375
379
|
/**
|
|
376
380
|
* 组件框架。
|
|
377
381
|
*/
|
|
378
|
-
componentFramework?:
|
|
382
|
+
componentFramework?: "exparser" | "glass-easel";
|
|
379
383
|
/**
|
|
380
384
|
* 组件泛型配置。
|
|
381
385
|
*/
|
|
@@ -430,9 +434,9 @@ interface Page$1 {
|
|
|
430
434
|
*/
|
|
431
435
|
backgroundTextStyle?: "dark" | "light";
|
|
432
436
|
/**
|
|
433
|
-
*
|
|
437
|
+
* 组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。
|
|
434
438
|
*/
|
|
435
|
-
componentFramework?:
|
|
439
|
+
componentFramework?: "exparser" | "glass-easel";
|
|
436
440
|
componentPlaceholder?: {
|
|
437
441
|
[k: string]: unknown;
|
|
438
442
|
};
|
|
@@ -450,6 +454,10 @@ interface Page$1 {
|
|
|
450
454
|
* 是否开启当前页面下拉刷新。详见 Page.onPullDownRefresh
|
|
451
455
|
*/
|
|
452
456
|
enablePullDownRefresh?: boolean;
|
|
457
|
+
/**
|
|
458
|
+
* 显式启用 WebView glass-easel,最低基础库为 3.8.12,默认不启用;需与 componentFramework: glass-easel 配套使用。
|
|
459
|
+
*/
|
|
460
|
+
glassEaselWebview?: boolean;
|
|
453
461
|
/**
|
|
454
462
|
* 控制预加载下个页面的时机。支持 static / manual / auto
|
|
455
463
|
*/
|
|
@@ -572,6 +580,14 @@ interface Theme$1 {
|
|
|
572
580
|
* https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/development.html#%E6%8F%92%E4%BB%B6%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6
|
|
573
581
|
*/
|
|
574
582
|
interface Plugin$1 {
|
|
583
|
+
/**
|
|
584
|
+
* 插件组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。
|
|
585
|
+
*/
|
|
586
|
+
componentFramework?: "exparser" | "glass-easel";
|
|
587
|
+
/**
|
|
588
|
+
* 显式启用 WebView glass-easel,最低基础库为 3.8.12,默认不启用;需与 componentFramework: glass-easel 配套使用。
|
|
589
|
+
*/
|
|
590
|
+
glassEaselWebview?: boolean;
|
|
575
591
|
/**
|
|
576
592
|
* 插件主入口文件。
|
|
577
593
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import process from "node:process";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
//#region src/constants.ts
|
|
4
|
-
const SCHEMA_BASE = (process.env.WEAPP_SCHEMA_BASE ?? "https://vite.
|
|
4
|
+
const SCHEMA_BASE = (process.env.WEAPP_SCHEMA_BASE ?? "https://vite.weapp.dev").replace(/\/$/, "");
|
|
5
5
|
function schemaUrl(filename) {
|
|
6
6
|
return `${SCHEMA_BASE}/${filename}`;
|
|
7
7
|
}
|
|
@@ -263,7 +263,8 @@ var app_default = {
|
|
|
263
263
|
},
|
|
264
264
|
"componentFramework": {
|
|
265
265
|
"type": "string",
|
|
266
|
-
"description": "
|
|
266
|
+
"description": "组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。",
|
|
267
|
+
"enum": ["exparser", "glass-easel"]
|
|
267
268
|
},
|
|
268
269
|
"miniApp": {
|
|
269
270
|
"type": "object",
|
|
@@ -282,6 +283,11 @@ var app_default = {
|
|
|
282
283
|
"description": "聊天工具分包配置",
|
|
283
284
|
"x-wechat-min-version": "3.7.8"
|
|
284
285
|
},
|
|
286
|
+
"glassEaselWebview": {
|
|
287
|
+
"type": "boolean",
|
|
288
|
+
"description": "显式启用 WebView glass-easel,最低基础库为 3.8.12,默认不启用;需与 componentFramework: glass-easel 配套使用。",
|
|
289
|
+
"x-wechat-min-version": "3.8.12"
|
|
290
|
+
},
|
|
285
291
|
"subPackages": {
|
|
286
292
|
"type": "object[]",
|
|
287
293
|
"description": "分包结构配置(兼容别名)。"
|
|
@@ -322,6 +328,7 @@ var component_default = {
|
|
|
322
328
|
},
|
|
323
329
|
"componentFramework": {
|
|
324
330
|
"type": "string",
|
|
331
|
+
"enum": ["exparser", "glass-easel"],
|
|
325
332
|
"description": "组件框架。"
|
|
326
333
|
},
|
|
327
334
|
"usingComponents": {
|
|
@@ -471,7 +478,13 @@ var page_default = {
|
|
|
471
478
|
},
|
|
472
479
|
"componentFramework": {
|
|
473
480
|
"type": "string",
|
|
474
|
-
"description": "
|
|
481
|
+
"description": "组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。",
|
|
482
|
+
"enum": ["exparser", "glass-easel"]
|
|
483
|
+
},
|
|
484
|
+
"glassEaselWebview": {
|
|
485
|
+
"type": "boolean",
|
|
486
|
+
"description": "显式启用 WebView glass-easel,最低基础库为 3.8.12,默认不启用;需与 componentFramework: glass-easel 配套使用。",
|
|
487
|
+
"x-wechat-min-version": "3.8.12"
|
|
475
488
|
},
|
|
476
489
|
"styleIsolation": {
|
|
477
490
|
"type": "string",
|
|
@@ -489,6 +502,16 @@ var page_default = {
|
|
|
489
502
|
var plugin_default = {
|
|
490
503
|
source: "https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/development.html",
|
|
491
504
|
fields: {
|
|
505
|
+
"componentFramework": {
|
|
506
|
+
"type": "string",
|
|
507
|
+
"enum": ["exparser", "glass-easel"],
|
|
508
|
+
"description": "插件组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。"
|
|
509
|
+
},
|
|
510
|
+
"glassEaselWebview": {
|
|
511
|
+
"type": "boolean",
|
|
512
|
+
"description": "显式启用 WebView glass-easel,最低基础库为 3.8.12,默认不启用;需与 componentFramework: glass-easel 配套使用。",
|
|
513
|
+
"x-wechat-min-version": "3.8.12"
|
|
514
|
+
},
|
|
492
515
|
"publicComponents": {
|
|
493
516
|
"type": "object",
|
|
494
517
|
"description": "插件对外提供的自定义组件。"
|
|
@@ -567,12 +590,14 @@ function createJsonSchema(schema, metadata) {
|
|
|
567
590
|
return enrichJsonSchema(z.toJSONSchema(schema), metadata);
|
|
568
591
|
}
|
|
569
592
|
const metaSchema = z.object({ $schema: z.string() }).partial();
|
|
593
|
+
const componentFrameworkSchema = z.enum(["exparser", "glass-easel"]);
|
|
570
594
|
const sharedSchema = z.object({
|
|
571
595
|
usingComponents: z.record(z.string(), z.string()),
|
|
572
|
-
componentFramework:
|
|
596
|
+
componentFramework: componentFrameworkSchema
|
|
573
597
|
}).partial().extend(metaSchema.shape);
|
|
574
598
|
const pageAndComponentSharedSchema = z.looseObject({ componentPlaceholder: z.looseObject({}) }).partial().extend(sharedSchema.shape);
|
|
575
599
|
const appAndPageSharedSchema = z.looseObject({
|
|
600
|
+
glassEaselWebview: z.boolean(),
|
|
576
601
|
style: z.string(),
|
|
577
602
|
singlePage: z.looseObject({}),
|
|
578
603
|
enablePassiveEvent: z.looseObject({}).or(z.boolean()),
|
|
@@ -732,6 +757,8 @@ const SitemapSchema = z.looseObject({ rules: z.object({
|
|
|
732
757
|
const ThemeJsonSchema = createJsonSchema(ThemeSchema, theme_default);
|
|
733
758
|
const SitemapJsonSchema = createJsonSchema(SitemapSchema, sitemap_default);
|
|
734
759
|
const PluginJsonSchema = createJsonSchema(z.looseObject({
|
|
760
|
+
componentFramework: componentFrameworkSchema,
|
|
761
|
+
glassEaselWebview: z.boolean(),
|
|
735
762
|
publicComponents: z.record(z.string(), z.string()),
|
|
736
763
|
pages: z.record(z.string(), z.string()),
|
|
737
764
|
main: z.string()
|
package/package.json
CHANGED
package/schemas/app.json
CHANGED
|
@@ -20,7 +20,11 @@
|
|
|
20
20
|
"x-wechat-min-version": "3.7.8"
|
|
21
21
|
},
|
|
22
22
|
"componentFramework": {
|
|
23
|
-
"description": "
|
|
23
|
+
"description": "组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。",
|
|
24
|
+
"enum": [
|
|
25
|
+
"exparser",
|
|
26
|
+
"glass-easel"
|
|
27
|
+
],
|
|
24
28
|
"type": "string"
|
|
25
29
|
},
|
|
26
30
|
"convertRpxToVw": {
|
|
@@ -77,6 +81,11 @@
|
|
|
77
81
|
"type": "boolean",
|
|
78
82
|
"x-wechat-min-version": "2.1.0"
|
|
79
83
|
},
|
|
84
|
+
"glassEaselWebview": {
|
|
85
|
+
"description": "显式启用 WebView glass-easel,最低基础库为 3.8.12,默认不启用;需与 componentFramework: glass-easel 配套使用。",
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"x-wechat-min-version": "3.8.12"
|
|
88
|
+
},
|
|
80
89
|
"halfPage": {
|
|
81
90
|
"additionalProperties": {},
|
|
82
91
|
"description": "视频号直播半屏场景设置。",
|
package/schemas/component.json
CHANGED
package/schemas/page.json
CHANGED
|
@@ -38,7 +38,11 @@
|
|
|
38
38
|
"type": "string"
|
|
39
39
|
},
|
|
40
40
|
"componentFramework": {
|
|
41
|
-
"description": "
|
|
41
|
+
"description": "组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。",
|
|
42
|
+
"enum": [
|
|
43
|
+
"exparser",
|
|
44
|
+
"glass-easel"
|
|
45
|
+
],
|
|
42
46
|
"type": "string"
|
|
43
47
|
},
|
|
44
48
|
"componentPlaceholder": {
|
|
@@ -71,6 +75,11 @@
|
|
|
71
75
|
"description": "是否开启当前页面下拉刷新。详见 Page.onPullDownRefresh",
|
|
72
76
|
"type": "boolean"
|
|
73
77
|
},
|
|
78
|
+
"glassEaselWebview": {
|
|
79
|
+
"description": "显式启用 WebView glass-easel,最低基础库为 3.8.12,默认不启用;需与 componentFramework: glass-easel 配套使用。",
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"x-wechat-min-version": "3.8.12"
|
|
82
|
+
},
|
|
74
83
|
"handleWebviewPreload": {
|
|
75
84
|
"default": "static",
|
|
76
85
|
"description": "控制预加载下个页面的时机。支持 static / manual / auto",
|
package/schemas/plugin.json
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
"additionalProperties": {},
|
|
4
4
|
"description": "https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/development.html#%E6%8F%92%E4%BB%B6%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6",
|
|
5
5
|
"properties": {
|
|
6
|
+
"componentFramework": {
|
|
7
|
+
"description": "插件组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。",
|
|
8
|
+
"enum": [
|
|
9
|
+
"exparser",
|
|
10
|
+
"glass-easel"
|
|
11
|
+
],
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"glassEaselWebview": {
|
|
15
|
+
"description": "显式启用 WebView glass-easel,最低基础库为 3.8.12,默认不启用;需与 componentFramework: glass-easel 配套使用。",
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"x-wechat-min-version": "3.8.12"
|
|
18
|
+
},
|
|
6
19
|
"main": {
|
|
7
20
|
"description": "插件主入口文件。",
|
|
8
21
|
"type": "string"
|