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