@weapp-core/schematics 6.0.4 → 6.2.0
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 +493 -14
- package/dist/index.d.cts +256 -19
- package/dist/index.d.ts +256 -19
- package/dist/index.js +490 -11
- package/package.json +7 -3
- package/schemas/app.json +72 -11
- package/schemas/component.json +12 -1
- package/schemas/page.json +67 -14
- package/schemas/plugin.json +18 -1
- package/schemas/sitemap.json +3 -1
- package/schemas/theme.json +4 -1
package/schemas/app.json
CHANGED
|
@@ -8,27 +8,45 @@
|
|
|
8
8
|
},
|
|
9
9
|
"appBar": {
|
|
10
10
|
"additionalProperties": {},
|
|
11
|
+
"description": "AppBar 配置。",
|
|
11
12
|
"properties": {},
|
|
12
13
|
"type": "object"
|
|
13
14
|
},
|
|
15
|
+
"chatTools": {
|
|
16
|
+
"additionalProperties": {},
|
|
17
|
+
"description": "聊天工具分包配置",
|
|
18
|
+
"properties": {},
|
|
19
|
+
"type": "object",
|
|
20
|
+
"x-wechat-min-version": "3.7.8"
|
|
21
|
+
},
|
|
14
22
|
"componentFramework": {
|
|
23
|
+
"description": "组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。",
|
|
24
|
+
"enum": [
|
|
25
|
+
"exparser",
|
|
26
|
+
"glass-easel"
|
|
27
|
+
],
|
|
15
28
|
"type": "string"
|
|
16
29
|
},
|
|
17
30
|
"convertRpxToVw": {
|
|
31
|
+
"description": "是否将 rpx 单位转换为 vw 单位。",
|
|
18
32
|
"type": "boolean"
|
|
19
33
|
},
|
|
20
34
|
"darkmode": {
|
|
35
|
+
"description": "小程序支持 DarkMode。",
|
|
21
36
|
"type": "boolean"
|
|
22
37
|
},
|
|
23
38
|
"debug": {
|
|
39
|
+
"description": "是否开启 debug 模式。",
|
|
24
40
|
"type": "boolean"
|
|
25
41
|
},
|
|
26
42
|
"debugOptions": {
|
|
27
43
|
"additionalProperties": {},
|
|
44
|
+
"description": "调试相关配置。",
|
|
28
45
|
"properties": {},
|
|
29
46
|
"type": "object"
|
|
30
47
|
},
|
|
31
48
|
"embeddedAppIdList": {
|
|
49
|
+
"description": "半屏小程序 appId 列表。",
|
|
32
50
|
"items": {
|
|
33
51
|
"type": "string"
|
|
34
52
|
},
|
|
@@ -44,35 +62,49 @@
|
|
|
44
62
|
{
|
|
45
63
|
"type": "boolean"
|
|
46
64
|
}
|
|
47
|
-
]
|
|
65
|
+
],
|
|
66
|
+
"description": "touch 事件监听是否为 passive",
|
|
67
|
+
"x-wechat-min-version": "2.24.1"
|
|
48
68
|
},
|
|
49
69
|
"entranceDeclare": {
|
|
50
70
|
"additionalProperties": {},
|
|
71
|
+
"description": "微信消息用小程序打开。",
|
|
51
72
|
"properties": {},
|
|
52
73
|
"type": "object"
|
|
53
74
|
},
|
|
54
75
|
"entryPagePath": {
|
|
55
|
-
"description": "
|
|
76
|
+
"description": "小程序默认启动首页。",
|
|
56
77
|
"type": "string"
|
|
57
78
|
},
|
|
58
79
|
"functionalPages": {
|
|
59
|
-
"
|
|
80
|
+
"description": "是否启用插件功能页。",
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"x-wechat-min-version": "2.1.0"
|
|
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"
|
|
60
88
|
},
|
|
61
89
|
"halfPage": {
|
|
62
90
|
"additionalProperties": {},
|
|
91
|
+
"description": "视频号直播半屏场景设置。",
|
|
63
92
|
"properties": {},
|
|
64
93
|
"type": "object"
|
|
65
94
|
},
|
|
66
95
|
"lazyCodeLoading": {
|
|
96
|
+
"description": "配置自定义组件代码按需注入。",
|
|
67
97
|
"type": "string"
|
|
68
98
|
},
|
|
69
99
|
"miniApp": {
|
|
70
100
|
"additionalProperties": {},
|
|
101
|
+
"description": "多端模式场景接入身份管理服务时开启小程序授权页相关配置,详见相关文档",
|
|
71
102
|
"properties": {},
|
|
72
103
|
"type": "object"
|
|
73
104
|
},
|
|
74
105
|
"networkTimeout": {
|
|
75
106
|
"additionalProperties": {},
|
|
107
|
+
"description": "网络超时时间。",
|
|
76
108
|
"properties": {
|
|
77
109
|
"connectSocket": {
|
|
78
110
|
"default": 60000,
|
|
@@ -94,7 +126,7 @@
|
|
|
94
126
|
"type": "object"
|
|
95
127
|
},
|
|
96
128
|
"pages": {
|
|
97
|
-
"description": "
|
|
129
|
+
"description": "页面路径列表。",
|
|
98
130
|
"items": {
|
|
99
131
|
"type": "string"
|
|
100
132
|
},
|
|
@@ -102,21 +134,25 @@
|
|
|
102
134
|
},
|
|
103
135
|
"permission": {
|
|
104
136
|
"additionalProperties": {},
|
|
137
|
+
"description": "小程序接口权限相关设置。",
|
|
105
138
|
"properties": {},
|
|
106
139
|
"type": "object"
|
|
107
140
|
},
|
|
108
141
|
"plugins": {
|
|
109
142
|
"additionalProperties": {},
|
|
143
|
+
"description": "使用到的插件。",
|
|
110
144
|
"properties": {},
|
|
111
145
|
"type": "object"
|
|
112
146
|
},
|
|
113
147
|
"preloadRule": {
|
|
114
148
|
"additionalProperties": {},
|
|
149
|
+
"description": "分包预下载规则。",
|
|
115
150
|
"properties": {},
|
|
116
151
|
"type": "object"
|
|
117
152
|
},
|
|
118
153
|
"renderer": {
|
|
119
154
|
"default": "webview",
|
|
155
|
+
"description": "全局默认的渲染后端。",
|
|
120
156
|
"enum": [
|
|
121
157
|
"webview",
|
|
122
158
|
"skyline"
|
|
@@ -125,6 +161,7 @@
|
|
|
125
161
|
},
|
|
126
162
|
"rendererOptions": {
|
|
127
163
|
"additionalProperties": {},
|
|
164
|
+
"description": "渲染后端选项。",
|
|
128
165
|
"properties": {
|
|
129
166
|
"skyline": {
|
|
130
167
|
"additionalProperties": {},
|
|
@@ -148,45 +185,58 @@
|
|
|
148
185
|
"type": "object"
|
|
149
186
|
},
|
|
150
187
|
"requiredBackgroundModes": {
|
|
188
|
+
"description": "需要在后台使用的能力。",
|
|
151
189
|
"items": {
|
|
152
190
|
"type": "string"
|
|
153
191
|
},
|
|
154
192
|
"type": "array"
|
|
155
193
|
},
|
|
156
194
|
"requiredPrivateInfos": {
|
|
195
|
+
"description": "调用的地理位置相关隐私接口。",
|
|
157
196
|
"items": {
|
|
158
197
|
"type": "string"
|
|
159
198
|
},
|
|
160
199
|
"type": "array"
|
|
161
200
|
},
|
|
162
201
|
"resizable": {
|
|
163
|
-
"
|
|
202
|
+
"description": "PC 小程序是否支持用户任意改变窗口大小(包括最大化窗口);iPad 小程序是否支持屏幕旋转。默认关闭",
|
|
203
|
+
"type": "boolean",
|
|
204
|
+
"x-wechat-min-version": "2.3.0"
|
|
164
205
|
},
|
|
165
206
|
"resolveAlias": {
|
|
166
207
|
"additionalProperties": {},
|
|
208
|
+
"description": "自定义模块映射规则。",
|
|
167
209
|
"properties": {},
|
|
168
210
|
"type": "object"
|
|
169
211
|
},
|
|
170
212
|
"serviceProviderTicket": {
|
|
213
|
+
"description": "定制化型服务商票据",
|
|
171
214
|
"type": "string"
|
|
172
215
|
},
|
|
173
216
|
"singlePage": {
|
|
174
217
|
"additionalProperties": {},
|
|
218
|
+
"description": "单页模式相关配置",
|
|
175
219
|
"properties": {},
|
|
176
|
-
"type": "object"
|
|
220
|
+
"type": "object",
|
|
221
|
+
"x-wechat-min-version": "2.12.0"
|
|
177
222
|
},
|
|
178
223
|
"sitemapLocation": {
|
|
224
|
+
"description": "指明 sitemap.json 的位置。",
|
|
179
225
|
"type": "string"
|
|
180
226
|
},
|
|
181
227
|
"static": {
|
|
182
228
|
"additionalProperties": {},
|
|
229
|
+
"description": "正常情况下默认所有资源文件都被打包发布到所有平台,可以通过 static 字段配置特定每个目录/文件只能发布到特定的平台(多端场景) 相关文档",
|
|
183
230
|
"properties": {},
|
|
184
231
|
"type": "object"
|
|
185
232
|
},
|
|
186
233
|
"style": {
|
|
187
|
-
"
|
|
234
|
+
"description": "指定使用升级后的weui样式",
|
|
235
|
+
"type": "string",
|
|
236
|
+
"x-wechat-min-version": "2.8.0"
|
|
188
237
|
},
|
|
189
238
|
"subPackages": {
|
|
239
|
+
"description": "分包结构配置(兼容别名)。",
|
|
190
240
|
"items": {
|
|
191
241
|
"additionalProperties": {},
|
|
192
242
|
"properties": {
|
|
@@ -214,6 +264,7 @@
|
|
|
214
264
|
"type": "array"
|
|
215
265
|
},
|
|
216
266
|
"subpackages": {
|
|
267
|
+
"description": "分包结构配置。",
|
|
217
268
|
"items": {
|
|
218
269
|
"additionalProperties": {},
|
|
219
270
|
"properties": {
|
|
@@ -238,15 +289,18 @@
|
|
|
238
289
|
},
|
|
239
290
|
"type": "object"
|
|
240
291
|
},
|
|
241
|
-
"type": "array"
|
|
292
|
+
"type": "array",
|
|
293
|
+
"x-wechat-min-version": "1.7.3"
|
|
242
294
|
},
|
|
243
295
|
"supportedMaterials": {
|
|
244
296
|
"additionalProperties": {},
|
|
297
|
+
"description": "聊天素材小程序打开相关配置。",
|
|
245
298
|
"properties": {},
|
|
246
299
|
"type": "object"
|
|
247
300
|
},
|
|
248
301
|
"tabBar": {
|
|
249
302
|
"additionalProperties": {},
|
|
303
|
+
"description": "底部 tab 栏的表现。",
|
|
250
304
|
"properties": {
|
|
251
305
|
"backgroundColor": {
|
|
252
306
|
"type": "string"
|
|
@@ -313,10 +367,12 @@
|
|
|
313
367
|
"type": "object"
|
|
314
368
|
},
|
|
315
369
|
"themeLocation": {
|
|
370
|
+
"description": "指明 theme.json 的位置。",
|
|
316
371
|
"type": "string"
|
|
317
372
|
},
|
|
318
373
|
"useExtendedLib": {
|
|
319
374
|
"additionalProperties": {},
|
|
375
|
+
"description": "指定需要引用的扩展库。",
|
|
320
376
|
"properties": {},
|
|
321
377
|
"type": "object"
|
|
322
378
|
},
|
|
@@ -324,6 +380,7 @@
|
|
|
324
380
|
"additionalProperties": {
|
|
325
381
|
"type": "string"
|
|
326
382
|
},
|
|
383
|
+
"description": "全局自定义组件配置。",
|
|
327
384
|
"propertyNames": {
|
|
328
385
|
"type": "string"
|
|
329
386
|
},
|
|
@@ -331,6 +388,7 @@
|
|
|
331
388
|
},
|
|
332
389
|
"window": {
|
|
333
390
|
"additionalProperties": {},
|
|
391
|
+
"description": "全局的默认窗口表现。",
|
|
334
392
|
"properties": {
|
|
335
393
|
"backgroundColor": {
|
|
336
394
|
"default": "#ffffff",
|
|
@@ -372,7 +430,8 @@
|
|
|
372
430
|
"initialRenderingCache": {
|
|
373
431
|
"enum": [
|
|
374
432
|
"static",
|
|
375
|
-
"dynamic"
|
|
433
|
+
"dynamic",
|
|
434
|
+
"capture"
|
|
376
435
|
],
|
|
377
436
|
"type": "string"
|
|
378
437
|
},
|
|
@@ -444,11 +503,13 @@
|
|
|
444
503
|
},
|
|
445
504
|
"type": "object"
|
|
446
505
|
}
|
|
447
|
-
]
|
|
506
|
+
],
|
|
507
|
+
"description": "Worker 代码放置的目录。"
|
|
448
508
|
}
|
|
449
509
|
},
|
|
450
510
|
"required": [
|
|
451
511
|
"pages"
|
|
452
512
|
],
|
|
453
|
-
"type": "object"
|
|
513
|
+
"type": "object",
|
|
514
|
+
"x-wechat-doc": "https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html"
|
|
454
515
|
}
|
package/schemas/component.json
CHANGED
|
@@ -8,23 +8,32 @@
|
|
|
8
8
|
},
|
|
9
9
|
"component": {
|
|
10
10
|
"default": true,
|
|
11
|
+
"description": "声明当前配置对应自定义组件。",
|
|
11
12
|
"type": "boolean"
|
|
12
13
|
},
|
|
13
14
|
"componentFramework": {
|
|
15
|
+
"description": "组件框架。",
|
|
16
|
+
"enum": [
|
|
17
|
+
"exparser",
|
|
18
|
+
"glass-easel"
|
|
19
|
+
],
|
|
14
20
|
"type": "string"
|
|
15
21
|
},
|
|
16
22
|
"componentGenerics": {
|
|
17
23
|
"additionalProperties": {},
|
|
24
|
+
"description": "组件泛型配置。",
|
|
18
25
|
"properties": {},
|
|
19
26
|
"type": "object"
|
|
20
27
|
},
|
|
21
28
|
"componentPlaceholder": {
|
|
22
29
|
"additionalProperties": {},
|
|
30
|
+
"description": "组件占位配置。",
|
|
23
31
|
"properties": {},
|
|
24
32
|
"type": "object"
|
|
25
33
|
},
|
|
26
34
|
"styleIsolation": {
|
|
27
35
|
"default": "isolated",
|
|
36
|
+
"description": "组件样式隔离策略。",
|
|
28
37
|
"enum": [
|
|
29
38
|
"isolated",
|
|
30
39
|
"apply-shared",
|
|
@@ -36,11 +45,13 @@
|
|
|
36
45
|
"additionalProperties": {
|
|
37
46
|
"type": "string"
|
|
38
47
|
},
|
|
48
|
+
"description": "组件依赖的自定义组件配置。",
|
|
39
49
|
"propertyNames": {
|
|
40
50
|
"type": "string"
|
|
41
51
|
},
|
|
42
52
|
"type": "object"
|
|
43
53
|
}
|
|
44
54
|
},
|
|
45
|
-
"type": "object"
|
|
55
|
+
"type": "object",
|
|
56
|
+
"x-wechat-doc": "https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/"
|
|
46
57
|
}
|
package/schemas/page.json
CHANGED
|
@@ -8,22 +8,29 @@
|
|
|
8
8
|
},
|
|
9
9
|
"backgroundColor": {
|
|
10
10
|
"default": "#ffffff",
|
|
11
|
+
"description": "窗口的背景色",
|
|
11
12
|
"type": "string"
|
|
12
13
|
},
|
|
13
14
|
"backgroundColorBottom": {
|
|
14
15
|
"default": "#ffffff",
|
|
15
|
-
"
|
|
16
|
+
"description": "底部窗口的背景色,仅 iOS 支持",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"x-wechat-min-version": "6.5.16"
|
|
16
19
|
},
|
|
17
20
|
"backgroundColorContent": {
|
|
18
21
|
"default": "#RRGGBBAA",
|
|
22
|
+
"description": "页面容器背景色。",
|
|
19
23
|
"type": "string"
|
|
20
24
|
},
|
|
21
25
|
"backgroundColorTop": {
|
|
22
26
|
"default": "#ffffff",
|
|
23
|
-
"
|
|
27
|
+
"description": "顶部窗口的背景色,仅 iOS 支持",
|
|
28
|
+
"type": "string",
|
|
29
|
+
"x-wechat-min-version": "6.5.16"
|
|
24
30
|
},
|
|
25
31
|
"backgroundTextStyle": {
|
|
26
32
|
"default": "dark",
|
|
33
|
+
"description": "下拉 loading 的样式,仅支持 dark / light",
|
|
27
34
|
"enum": [
|
|
28
35
|
"dark",
|
|
29
36
|
"light"
|
|
@@ -31,6 +38,11 @@
|
|
|
31
38
|
"type": "string"
|
|
32
39
|
},
|
|
33
40
|
"componentFramework": {
|
|
41
|
+
"description": "组件框架。仅在主动启用 WebView glass-easel 时需同时开启 glassEaselWebview。",
|
|
42
|
+
"enum": [
|
|
43
|
+
"exparser",
|
|
44
|
+
"glass-easel"
|
|
45
|
+
],
|
|
34
46
|
"type": "string"
|
|
35
47
|
},
|
|
36
48
|
"componentPlaceholder": {
|
|
@@ -40,6 +52,7 @@
|
|
|
40
52
|
},
|
|
41
53
|
"disableScroll": {
|
|
42
54
|
"default": false,
|
|
55
|
+
"description": "设置为 true 时页面整体不能上下滚动。",
|
|
43
56
|
"type": "boolean"
|
|
44
57
|
},
|
|
45
58
|
"enablePassiveEvent": {
|
|
@@ -52,66 +65,90 @@
|
|
|
52
65
|
{
|
|
53
66
|
"type": "boolean"
|
|
54
67
|
}
|
|
55
|
-
]
|
|
68
|
+
],
|
|
69
|
+
"default": "否",
|
|
70
|
+
"description": "事件监听是否为 passive,若对页面单独设置则会覆盖全局的配置,详见 全局配置",
|
|
71
|
+
"x-wechat-min-version": "2.24.1"
|
|
56
72
|
},
|
|
57
73
|
"enablePullDownRefresh": {
|
|
58
74
|
"default": false,
|
|
75
|
+
"description": "是否开启当前页面下拉刷新。详见 Page.onPullDownRefresh",
|
|
59
76
|
"type": "boolean"
|
|
60
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
|
+
},
|
|
61
83
|
"handleWebviewPreload": {
|
|
62
84
|
"default": "static",
|
|
85
|
+
"description": "控制预加载下个页面的时机。支持 static / manual / auto",
|
|
63
86
|
"enum": [
|
|
64
87
|
"static",
|
|
65
88
|
"manual",
|
|
66
89
|
"auto"
|
|
67
90
|
],
|
|
68
|
-
"type": "string"
|
|
91
|
+
"type": "string",
|
|
92
|
+
"x-wechat-min-version": "2.15.0"
|
|
69
93
|
},
|
|
70
94
|
"homeButton": {
|
|
71
95
|
"default": false,
|
|
72
|
-
"
|
|
96
|
+
"description": "在非首页、非页面栈最底层页面或非tabbar内页面中的导航栏展示home键",
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"x-wechat-min-version": "8.0.24"
|
|
73
99
|
},
|
|
74
100
|
"initialRenderingCache": {
|
|
101
|
+
"description": "页面初始渲染缓存配置。",
|
|
75
102
|
"enum": [
|
|
76
103
|
"static",
|
|
77
|
-
"dynamic"
|
|
104
|
+
"dynamic",
|
|
105
|
+
"capture"
|
|
78
106
|
],
|
|
79
107
|
"type": "string"
|
|
80
108
|
},
|
|
81
109
|
"navigationBarBackgroundColor": {
|
|
82
110
|
"default": "#000000",
|
|
111
|
+
"description": "导航栏背景颜色,如 #000000",
|
|
83
112
|
"type": "string"
|
|
84
113
|
},
|
|
85
114
|
"navigationBarTextStyle": {
|
|
86
115
|
"default": "white",
|
|
116
|
+
"description": "导航栏标题、状态栏颜色,仅支持 black / white",
|
|
87
117
|
"type": "string"
|
|
88
118
|
},
|
|
89
119
|
"navigationBarTitleText": {
|
|
120
|
+
"description": "导航栏标题文字内容",
|
|
90
121
|
"type": "string"
|
|
91
122
|
},
|
|
92
123
|
"navigationStyle": {
|
|
93
124
|
"default": "default",
|
|
125
|
+
"description": "导航栏样式,仅支持以下值:default 默认样式 custom 自定义导航栏,只保留右上角胶囊按钮。",
|
|
94
126
|
"enum": [
|
|
95
127
|
"default",
|
|
96
128
|
"custom"
|
|
97
129
|
],
|
|
98
|
-
"type": "string"
|
|
130
|
+
"type": "string",
|
|
131
|
+
"x-wechat-min-version": "7.0.0"
|
|
99
132
|
},
|
|
100
133
|
"onReachBottomDistance": {
|
|
101
134
|
"default": 50,
|
|
135
|
+
"description": "页面上拉触底事件触发时距页面底部距离,单位为px。详见 Page.onReachBottom",
|
|
102
136
|
"type": "number"
|
|
103
137
|
},
|
|
104
138
|
"pageOrientation": {
|
|
105
139
|
"default": "portrait",
|
|
140
|
+
"description": "屏幕旋转设置,支持 auto / portrait / landscape 详见 响应显示区域变化",
|
|
106
141
|
"enum": [
|
|
107
142
|
"portrait",
|
|
108
143
|
"auto",
|
|
109
144
|
"landscape"
|
|
110
145
|
],
|
|
111
|
-
"type": "string"
|
|
146
|
+
"type": "string",
|
|
147
|
+
"x-wechat-min-version": "2.4.0"
|
|
112
148
|
},
|
|
113
149
|
"renderer": {
|
|
114
150
|
"default": "webview",
|
|
151
|
+
"description": "页面渲染后端。",
|
|
115
152
|
"enum": [
|
|
116
153
|
"webview",
|
|
117
154
|
"skyline"
|
|
@@ -120,6 +157,8 @@
|
|
|
120
157
|
},
|
|
121
158
|
"rendererOptions": {
|
|
122
159
|
"additionalProperties": {},
|
|
160
|
+
"default": "否",
|
|
161
|
+
"description": "渲染后端选项,详情相关文档",
|
|
123
162
|
"properties": {
|
|
124
163
|
"skyline": {
|
|
125
164
|
"additionalProperties": {},
|
|
@@ -140,25 +179,35 @@
|
|
|
140
179
|
"type": "object"
|
|
141
180
|
}
|
|
142
181
|
},
|
|
143
|
-
"type": "object"
|
|
182
|
+
"type": "object",
|
|
183
|
+
"x-wechat-min-version": "3.1.0"
|
|
144
184
|
},
|
|
145
185
|
"restartStrategy": {
|
|
146
186
|
"default": "homePage",
|
|
187
|
+
"description": "重新启动策略配置",
|
|
147
188
|
"enum": [
|
|
148
189
|
"homePage",
|
|
149
190
|
"homePageAndLatestPage"
|
|
150
191
|
],
|
|
151
|
-
"type": "string"
|
|
192
|
+
"type": "string",
|
|
193
|
+
"x-wechat-min-version": "2.8.0"
|
|
152
194
|
},
|
|
153
195
|
"singlePage": {
|
|
154
196
|
"additionalProperties": {},
|
|
197
|
+
"default": "否",
|
|
198
|
+
"description": "单页模式相关配置",
|
|
155
199
|
"properties": {},
|
|
156
|
-
"type": "object"
|
|
200
|
+
"type": "object",
|
|
201
|
+
"x-wechat-min-version": "2.12.0"
|
|
157
202
|
},
|
|
158
203
|
"style": {
|
|
159
|
-
"
|
|
204
|
+
"default": "default",
|
|
205
|
+
"description": "启用新版的组件样式",
|
|
206
|
+
"type": "string",
|
|
207
|
+
"x-wechat-min-version": "2.10.2"
|
|
160
208
|
},
|
|
161
209
|
"styleIsolation": {
|
|
210
|
+
"description": "页面样式隔离策略。",
|
|
162
211
|
"enum": [
|
|
163
212
|
"page-isolated",
|
|
164
213
|
"page-apply-shared",
|
|
@@ -170,6 +219,7 @@
|
|
|
170
219
|
"additionalProperties": {
|
|
171
220
|
"type": "string"
|
|
172
221
|
},
|
|
222
|
+
"description": "页面自定义组件配置。",
|
|
173
223
|
"propertyNames": {
|
|
174
224
|
"type": "string"
|
|
175
225
|
},
|
|
@@ -177,12 +227,15 @@
|
|
|
177
227
|
},
|
|
178
228
|
"visualEffectInBackground": {
|
|
179
229
|
"default": "none",
|
|
230
|
+
"description": "切入系统后台时,隐藏页面内容,保护用户隐私。支持 hidden / none,若对页面单独设置则会覆盖全局的配置,详见 全局配置",
|
|
180
231
|
"enum": [
|
|
181
232
|
"none",
|
|
182
233
|
"hidden"
|
|
183
234
|
],
|
|
184
|
-
"type": "string"
|
|
235
|
+
"type": "string",
|
|
236
|
+
"x-wechat-min-version": "2.15.0"
|
|
185
237
|
}
|
|
186
238
|
},
|
|
187
|
-
"type": "object"
|
|
239
|
+
"type": "object",
|
|
240
|
+
"x-wechat-doc": "https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/page.html"
|
|
188
241
|
}
|
package/schemas/plugin.json
CHANGED
|
@@ -3,13 +3,28 @@
|
|
|
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": {
|
|
20
|
+
"description": "插件主入口文件。",
|
|
7
21
|
"type": "string"
|
|
8
22
|
},
|
|
9
23
|
"pages": {
|
|
10
24
|
"additionalProperties": {
|
|
11
25
|
"type": "string"
|
|
12
26
|
},
|
|
27
|
+
"description": "插件页面映射。",
|
|
13
28
|
"propertyNames": {
|
|
14
29
|
"type": "string"
|
|
15
30
|
},
|
|
@@ -19,11 +34,13 @@
|
|
|
19
34
|
"additionalProperties": {
|
|
20
35
|
"type": "string"
|
|
21
36
|
},
|
|
37
|
+
"description": "插件对外提供的自定义组件。",
|
|
22
38
|
"propertyNames": {
|
|
23
39
|
"type": "string"
|
|
24
40
|
},
|
|
25
41
|
"type": "object"
|
|
26
42
|
}
|
|
27
43
|
},
|
|
28
|
-
"type": "object"
|
|
44
|
+
"type": "object",
|
|
45
|
+
"x-wechat-doc": "https://developers.weixin.qq.com/miniprogram/dev/framework/plugin/development.html"
|
|
29
46
|
}
|
package/schemas/sitemap.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"type": "string"
|
|
8
8
|
},
|
|
9
9
|
"rules": {
|
|
10
|
+
"description": "sitemap 匹配规则列表。",
|
|
10
11
|
"items": {
|
|
11
12
|
"additionalProperties": false,
|
|
12
13
|
"properties": {
|
|
@@ -52,5 +53,6 @@
|
|
|
52
53
|
"required": [
|
|
53
54
|
"rules"
|
|
54
55
|
],
|
|
55
|
-
"type": "object"
|
|
56
|
+
"type": "object",
|
|
57
|
+
"x-wechat-doc": "https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html"
|
|
56
58
|
}
|
package/schemas/theme.json
CHANGED
|
@@ -7,11 +7,13 @@
|
|
|
7
7
|
},
|
|
8
8
|
"dark": {
|
|
9
9
|
"additionalProperties": {},
|
|
10
|
+
"description": "深色主题配置。",
|
|
10
11
|
"properties": {},
|
|
11
12
|
"type": "object"
|
|
12
13
|
},
|
|
13
14
|
"light": {
|
|
14
15
|
"additionalProperties": {},
|
|
16
|
+
"description": "浅色主题配置。",
|
|
15
17
|
"properties": {},
|
|
16
18
|
"type": "object"
|
|
17
19
|
}
|
|
@@ -20,5 +22,6 @@
|
|
|
20
22
|
"light",
|
|
21
23
|
"dark"
|
|
22
24
|
],
|
|
23
|
-
"type": "object"
|
|
25
|
+
"type": "object",
|
|
26
|
+
"x-wechat-doc": "https://developers.weixin.qq.com/miniprogram/dev/framework/view/theme.html"
|
|
24
27
|
}
|