@uni-helper/pages-json-schema 0.1.7

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +22 -0
  3. package/schema.json +710 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 KeJun <https://github.com/kejunmao>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@uni-helper/pages-json-schema",
3
+ "version": "0.1.7",
4
+ "description": "Schema for uni-app pages.json",
5
+ "author": "KeJun",
6
+ "license": "MIT",
7
+ "homepage": "https://github.com/uni-helper/vite-plugin-uni-pages#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/uni-helper/vite-plugin-uni-pages.git"
11
+ },
12
+ "bugs": "https://github.com/uni-helper/vite-plugin-uni-pages/issues",
13
+ "keywords": [
14
+ "jsonschema"
15
+ ],
16
+ "devDependencies": {
17
+ "ts-json-schema-generator": "^1.2.0"
18
+ },
19
+ "scripts": {
20
+ "generate": "ts-json-schema-generator -p \"../core/src/config/types/index.ts\" -t \"PagesConfig\" -o \"schema.json\" --no-type-check"
21
+ }
22
+ }
package/schema.json ADDED
@@ -0,0 +1,710 @@
1
+ {
2
+ "$ref": "#/definitions/PagesConfig",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "AppPlus": {
6
+ "properties": {
7
+ "animationDuration": {
8
+ "default": "300",
9
+ "description": "窗口显示动画的持续时间,单位为 ms。",
10
+ "type": "number"
11
+ },
12
+ "animationType": {
13
+ "default": "pop-in",
14
+ "description": "窗口显示的动画效果,详见:窗口动画。",
15
+ "type": "string"
16
+ },
17
+ "background": {
18
+ "$ref": "#/definitions/HEXColor",
19
+ "default": "#FFFFFF",
20
+ "description": "窗体背景色。无论vue页面还是nvue页面,在App上都有一个父级原生窗体,该窗体的背景色生效时间快于页面里的css生效时间"
21
+ },
22
+ "bounce": {
23
+ "description": "页面回弹效果,设置为 \"none\" 时关闭效果。",
24
+ "type": "string"
25
+ },
26
+ "popGesture": {
27
+ "default": "close",
28
+ "description": "侧滑返回功能,可选值:\"close\"(启用侧滑返回)、\"none\"(禁用侧滑返回)",
29
+ "type": "string"
30
+ },
31
+ "pullToRefresh": {
32
+ "description": "下拉刷新",
33
+ "type": "object"
34
+ },
35
+ "scrollIndicator": {
36
+ "description": "滚动条显示策略,设置为 \"none\" 时不显示滚动条。",
37
+ "type": "string"
38
+ },
39
+ "softInputMode": {
40
+ "default": "adjustPan",
41
+ "description": "软键盘弹出模式,支持 adjustResize、adjustPan 两种模式",
42
+ "type": "string"
43
+ },
44
+ "softInputNavBar": {
45
+ "default": "auto",
46
+ "description": "iOS软键盘上完成工具栏的显示模式,设置为 \"none\" 时关闭工具栏。",
47
+ "type": "string"
48
+ },
49
+ "subNVues": {
50
+ "description": "原生子窗体,详见?:原生子窗体",
51
+ "type": "object"
52
+ },
53
+ "titleNView": {
54
+ "description": "导航栏 ,详见?:导航栏",
55
+ "type": "object"
56
+ }
57
+ },
58
+ "type": "object"
59
+ },
60
+ "Color": {
61
+ "anyOf": [
62
+ {
63
+ "$ref": "#/definitions/RGBColor"
64
+ },
65
+ {
66
+ "$ref": "#/definitions/RGBAColor"
67
+ },
68
+ {
69
+ "$ref": "#/definitions/HEXColor"
70
+ }
71
+ ]
72
+ },
73
+ "Condition": {
74
+ "additionalProperties": false,
75
+ "properties": {
76
+ "current": {
77
+ "description": "当前激活的模式,list节点的索引值",
78
+ "type": "number"
79
+ },
80
+ "list": {
81
+ "description": "启动模式列表",
82
+ "items": {
83
+ "additionalProperties": false,
84
+ "properties": {
85
+ "name": {
86
+ "description": "启动模式名称",
87
+ "type": "string"
88
+ },
89
+ "path": {
90
+ "description": "启动页面路径",
91
+ "type": "string"
92
+ },
93
+ "query": {
94
+ "description": "启动参数,可在页面的 onLoad 函数里获得",
95
+ "type": "string"
96
+ }
97
+ },
98
+ "type": "object"
99
+ },
100
+ "type": "array"
101
+ }
102
+ },
103
+ "type": "object"
104
+ },
105
+ "EasyCom": {
106
+ "additionalProperties": false,
107
+ "properties": {
108
+ "autoscan": {
109
+ "type": "boolean"
110
+ },
111
+ "custom": {
112
+ "additionalProperties": {
113
+ "type": "string"
114
+ },
115
+ "type": "object"
116
+ }
117
+ },
118
+ "required": [
119
+ "autoscan",
120
+ "custom"
121
+ ],
122
+ "type": "object"
123
+ },
124
+ "GlobalStyle": {
125
+ "properties": {
126
+ "animationDuration": {
127
+ "default": "300",
128
+ "description": "窗口显示动画的持续时间,单位为 ms",
129
+ "type": "number"
130
+ },
131
+ "animationType": {
132
+ "default": "pop-in",
133
+ "description": "窗口显示的动画效果,详见:窗口动画",
134
+ "type": "string"
135
+ },
136
+ "app-plus": {
137
+ "$ref": "#/definitions/AppPlus",
138
+ "description": "设置编译到 App 平台的特定样式,配置项参考下方 app-plus"
139
+ },
140
+ "backgroundColor": {
141
+ "anyOf": [
142
+ {
143
+ "$ref": "#/definitions/HEXColor"
144
+ },
145
+ {
146
+ "$ref": "#/definitions/ThemeColor"
147
+ }
148
+ ],
149
+ "default": "#ffffff",
150
+ "description": "下拉显示出来的窗口的背景色"
151
+ },
152
+ "backgroundColorBottom": {
153
+ "anyOf": [
154
+ {
155
+ "$ref": "#/definitions/HEXColor"
156
+ },
157
+ {
158
+ "$ref": "#/definitions/ThemeColor"
159
+ }
160
+ ],
161
+ "default": "#ffffff",
162
+ "description": "底部窗口的背景色(bounce回弹区域)"
163
+ },
164
+ "backgroundColorTop": {
165
+ "anyOf": [
166
+ {
167
+ "$ref": "#/definitions/HEXColor"
168
+ },
169
+ {
170
+ "$ref": "#/definitions/ThemeColor"
171
+ }
172
+ ],
173
+ "default": "#ffffff",
174
+ "description": "顶部窗口的背景色(bounce回弹区域)"
175
+ },
176
+ "backgroundTextStyle": {
177
+ "default": "dark",
178
+ "description": "下拉 loading 的样式,仅支持 dark / light",
179
+ "type": "string"
180
+ },
181
+ "dynamicRpx": {
182
+ "default": "false",
183
+ "description": "动态 rpx,屏幕大小变化会重新渲染 rpx",
184
+ "type": "boolean"
185
+ },
186
+ "enablePullDownRefresh": {
187
+ "default": "false",
188
+ "description": "是否开启下拉刷新,详见页面生命周期。",
189
+ "type": "boolean"
190
+ },
191
+ "h5": {
192
+ "$ref": "#/definitions/H5",
193
+ "description": "设置编译到 H5 平台的特定样式,配置项参考下方 H5"
194
+ },
195
+ "leftWindow": {
196
+ "default": "true",
197
+ "description": "当存在 leftWindow 时,默认是否显示 leftWindow",
198
+ "type": "boolean"
199
+ },
200
+ "maxWidth": {
201
+ "description": "单位px,当浏览器可见区域宽度大于maxWidth时,两侧留白,当小于等于maxWidth时,页面铺满;不同页面支持配置不同的maxWidth;maxWidth = leftWindow(可选)+page(页面主体)+rightWindow(可选)",
202
+ "type": "number"
203
+ },
204
+ "mp-alipay": {
205
+ "description": "设置编译到 mp-alipay 平台的特定样式,配置项参考下方 MP-ALIPAY",
206
+ "type": "object"
207
+ },
208
+ "mp-baidu": {
209
+ "description": "设置编译到 mp-baidu 平台的特定样式",
210
+ "type": "object"
211
+ },
212
+ "mp-jd": {
213
+ "description": "设置编译到 mp-jd 平台的特定样式",
214
+ "type": "object"
215
+ },
216
+ "mp-kuaishou": {
217
+ "description": "设置编译到 mp-kuaishou 平台的特定样式",
218
+ "type": "object"
219
+ },
220
+ "mp-lark": {
221
+ "description": "设置编译到 mp-lark 平台的特定样式",
222
+ "type": "object"
223
+ },
224
+ "mp-qq": {
225
+ "description": "设置编译到 mp-qq 平台的特定样式",
226
+ "type": "object"
227
+ },
228
+ "mp-toutiao": {
229
+ "description": "设置编译到 mp-toutiao 平台的特定样式",
230
+ "type": "object"
231
+ },
232
+ "mp-weixin": {
233
+ "description": "设置编译到 mp-weixin 平台的特定样式",
234
+ "type": "object"
235
+ },
236
+ "navigationBarBackgroundColor": {
237
+ "anyOf": [
238
+ {
239
+ "$ref": "#/definitions/HEXColor"
240
+ },
241
+ {
242
+ "$ref": "#/definitions/ThemeColor"
243
+ }
244
+ ],
245
+ "default": "#F7F7F7",
246
+ "description": "导航栏背景颜色(同状态栏背景色)"
247
+ },
248
+ "navigationBarTextStyle": {
249
+ "default": "white",
250
+ "description": "导航栏标题颜色及状态栏前景颜色,仅支持 black/white",
251
+ "type": "string"
252
+ },
253
+ "navigationBarTitleText": {
254
+ "description": "导航栏标题文字内容",
255
+ "type": "string"
256
+ },
257
+ "navigationStyle": {
258
+ "default": "default",
259
+ "description": "导航栏样式,仅支持 default/custom。custom即取消默认的原生导航栏,需看使用注意",
260
+ "type": "string"
261
+ },
262
+ "onReachBottomDistance": {
263
+ "default": "50",
264
+ "description": "页面上拉触底事件触发时距页面底部距离,单位只支持px,详见页面生命周期",
265
+ "type": "number"
266
+ },
267
+ "pageOrientation": {
268
+ "default": "portrait",
269
+ "description": "横屏配置,屏幕旋转设置,仅支持 auto / portrait / landscape 详见 响应显示区域变化",
270
+ "type": "string"
271
+ },
272
+ "renderingMode": {
273
+ "description": "同层渲染,webrtc(实时音视频) 无法正常时尝试配置 seperated 强制关掉同层",
274
+ "type": "string"
275
+ },
276
+ "rightWindow": {
277
+ "default": "true",
278
+ "description": "当存在 rightWindow 时,默认是否显示 rightWindow",
279
+ "type": "boolean"
280
+ },
281
+ "rpxCalcBaseDeviceWidth": {
282
+ "default": "375",
283
+ "description": "rpx 计算使用的基准设备宽度,设备实际宽度超出 rpx 计算所支持的最大设备宽度时将按基准宽度计算,单位 px",
284
+ "type": "number"
285
+ },
286
+ "rpxCalcIncludeWidth": {
287
+ "default": "750",
288
+ "description": "rpx 计算特殊处理的值,始终按实际的设备宽度计算,单位 rpx",
289
+ "type": "number"
290
+ },
291
+ "rpxCalcMaxDeviceWidth": {
292
+ "default": "960",
293
+ "description": "rpx 计算所支持的最大设备宽度,单位 px",
294
+ "type": "number"
295
+ },
296
+ "titleImage": {
297
+ "description": "导航栏图片地址(替换当前文字标题),支付宝小程序内必须使用https的图片链接地址",
298
+ "type": "string"
299
+ },
300
+ "titlePenetrate": {
301
+ "default": "NO",
302
+ "description": "导航栏点击穿透",
303
+ "type": "string"
304
+ },
305
+ "topWindow": {
306
+ "default": "true",
307
+ "description": "当存在 topWindow 时,默认是否显示 topWindow",
308
+ "type": "boolean"
309
+ },
310
+ "transparentTitle": {
311
+ "default": "none",
312
+ "description": "导航栏整体(前景、背景)透明设置。支持 always 一直透明 / auto 滑动自适应 / none 不透明",
313
+ "type": "string"
314
+ },
315
+ "usingComponents": {
316
+ "additionalProperties": {
317
+ "type": "string"
318
+ },
319
+ "description": "引用小程序组件,参考 小程序组件",
320
+ "type": "object"
321
+ }
322
+ },
323
+ "type": "object"
324
+ },
325
+ "H5": {
326
+ "properties": {
327
+ "backgroundColor": {
328
+ "$ref": "#/definitions/HEXColor",
329
+ "default": "#F7F7F7",
330
+ "description": "背景颜色,颜色值格式为\"#RRGGBB\"。"
331
+ },
332
+ "buttons": {
333
+ "description": "自定义按钮,参考 buttons",
334
+ "items": {},
335
+ "type": "array"
336
+ },
337
+ "searchInput": {
338
+ "description": "导航栏上的搜索框样式,详见:searchInput",
339
+ "type": "object"
340
+ },
341
+ "titleColor": {
342
+ "$ref": "#/definitions/HEXColor",
343
+ "default": "#000000",
344
+ "description": "标题文字颜色"
345
+ },
346
+ "titleSize": {
347
+ "description": "标题文字字体大小",
348
+ "type": "string"
349
+ },
350
+ "titleText": {
351
+ "description": "标题文字内容",
352
+ "type": "string"
353
+ },
354
+ "type": {
355
+ "default": "default",
356
+ "description": "导航栏样式。\"default\"-默认样式;\"transparent\"-透明渐变。",
357
+ "type": "string"
358
+ }
359
+ },
360
+ "type": "object"
361
+ },
362
+ "HEXColor": {
363
+ "type": "string"
364
+ },
365
+ "IconFont": {
366
+ "additionalProperties": false,
367
+ "properties": {
368
+ "color": {
369
+ "description": "字体图标颜色",
370
+ "type": "string"
371
+ },
372
+ "fontSize": {
373
+ "description": "字体图标字号(px)",
374
+ "type": "string"
375
+ },
376
+ "selectedColor": {
377
+ "description": "字体图标选中颜色",
378
+ "type": "string"
379
+ },
380
+ "selectedText": {
381
+ "description": "选中后字库 Unicode 码",
382
+ "type": "string"
383
+ },
384
+ "text": {
385
+ "description": "字库 Unicode 码",
386
+ "type": "string"
387
+ }
388
+ },
389
+ "type": "object"
390
+ },
391
+ "MidButton": {
392
+ "additionalProperties": false,
393
+ "properties": {
394
+ "backgroundImage": {
395
+ "description": "中间按钮的背景图片路径",
396
+ "type": "string"
397
+ },
398
+ "height": {
399
+ "default": "50px",
400
+ "description": "中间按钮的高度,可以大于 tabBar 高度,达到中间凸起的效果",
401
+ "type": "string"
402
+ },
403
+ "iconPath": {
404
+ "description": "中间按钮的图片路径",
405
+ "type": "string"
406
+ },
407
+ "iconWidth": {
408
+ "default": "24px",
409
+ "description": "图片宽度(高度等比例缩放)",
410
+ "type": "string"
411
+ },
412
+ "iconfont": {
413
+ "$ref": "#/definitions/IconFont",
414
+ "description": "字体图标,优先级高于 iconPath"
415
+ },
416
+ "text": {
417
+ "description": "中间按钮的文字",
418
+ "type": "string"
419
+ },
420
+ "width": {
421
+ "default": "80px",
422
+ "description": "中间按钮的宽度,tabBar 其它项为减去此宽度后平分,默认值为与其它项平分宽度",
423
+ "type": "string"
424
+ }
425
+ },
426
+ "type": "object"
427
+ },
428
+ "PageMetaDatum": {
429
+ "properties": {
430
+ "needLogin": {
431
+ "description": "当前页面是否需要登录才可以访问,此配置优先级高于 uniIdRouter 下的 needLogin",
432
+ "type": "boolean"
433
+ },
434
+ "path": {
435
+ "description": "配置页面路径",
436
+ "type": "string"
437
+ },
438
+ "style": {
439
+ "$ref": "#/definitions/GlobalStyle",
440
+ "description": "配置页面窗口表现,配置项参考下方 pageStyle"
441
+ },
442
+ "type": {
443
+ "type": "string"
444
+ }
445
+ },
446
+ "required": [
447
+ "path"
448
+ ],
449
+ "type": "object"
450
+ },
451
+ "PagesConfig": {
452
+ "properties": {
453
+ "condition": {
454
+ "$ref": "#/definitions/Condition",
455
+ "description": "启动模式配置"
456
+ },
457
+ "easycom": {
458
+ "$ref": "#/definitions/EasyCom",
459
+ "description": "组件自动引入规则"
460
+ },
461
+ "entryPagePath": {
462
+ "description": "默认启动首页,新增于 HBuilderX 3.7.0",
463
+ "type": "string"
464
+ },
465
+ "globalStyle": {
466
+ "$ref": "#/definitions/GlobalStyle",
467
+ "description": "设置默认页面的窗口表现"
468
+ },
469
+ "leftWindow": {
470
+ "$ref": "#/definitions/TheWindow",
471
+ "description": "大屏左侧窗口"
472
+ },
473
+ "pages": {
474
+ "description": "设置页面路径及窗口表现",
475
+ "items": {
476
+ "$ref": "#/definitions/PageMetaDatum"
477
+ },
478
+ "type": "array"
479
+ },
480
+ "preloadRule": {
481
+ "additionalProperties": {
482
+ "$ref": "#/definitions/PreloadRule"
483
+ },
484
+ "description": "分包预下载规则",
485
+ "type": "object"
486
+ },
487
+ "rightWindow": {
488
+ "$ref": "#/definitions/TheWindow",
489
+ "description": "大屏右侧窗口"
490
+ },
491
+ "subPackages": {
492
+ "description": "分包加载配置",
493
+ "items": {
494
+ "$ref": "#/definitions/SubPackage"
495
+ },
496
+ "type": "array"
497
+ },
498
+ "tabBar": {
499
+ "$ref": "#/definitions/TabBar",
500
+ "description": "设置底部 tab 的表现"
501
+ },
502
+ "topWindow": {
503
+ "$ref": "#/definitions/TheWindow",
504
+ "description": "大屏顶部窗口"
505
+ },
506
+ "uniIdRouter": {
507
+ "$ref": "#/definitions/UniIdRouter",
508
+ "description": "自动跳转相关配置,新增于 HBuilderX 3.5.0"
509
+ },
510
+ "workers": {
511
+ "description": "`Worker` 代码放置的目录"
512
+ }
513
+ },
514
+ "type": "object"
515
+ },
516
+ "PreloadRule": {
517
+ "additionalProperties": false,
518
+ "properties": {
519
+ "network": {
520
+ "default": "wifi",
521
+ "description": "在指定网络下预下载,可选值为:all(不限网络)、wifi(仅wifi下预下载)",
522
+ "type": "string"
523
+ },
524
+ "packages": {
525
+ "description": "进入页面后预下载分包的 root 或 name。__APP__ 表示主包。",
526
+ "items": {
527
+ "type": "string"
528
+ },
529
+ "type": "array"
530
+ }
531
+ },
532
+ "type": "object"
533
+ },
534
+ "RGBAColor": {
535
+ "type": "string"
536
+ },
537
+ "RGBColor": {
538
+ "type": "string"
539
+ },
540
+ "SubPackage": {
541
+ "additionalProperties": false,
542
+ "properties": {
543
+ "pages": {
544
+ "description": "子包由哪些页面组成,参数同 pages",
545
+ "items": {},
546
+ "type": "array"
547
+ },
548
+ "root": {
549
+ "description": "子包的根目录",
550
+ "type": "string"
551
+ }
552
+ },
553
+ "type": "object"
554
+ },
555
+ "TabBar": {
556
+ "properties": {
557
+ "backgroundColor": {
558
+ "$ref": "#/definitions/Color",
559
+ "description": "tab 的背景色"
560
+ },
561
+ "blurEffect": {
562
+ "default": "none",
563
+ "description": "iOS 高斯模糊效果,可选值 dark/extralight/light/none(参考?:使用说明)",
564
+ "type": "string"
565
+ },
566
+ "borderStyle": {
567
+ "default": "black",
568
+ "description": "tabbar 上边框的颜色,可选值 black/white,也支持其他颜色值",
569
+ "type": "string"
570
+ },
571
+ "color": {
572
+ "$ref": "#/definitions/Color",
573
+ "description": "tab 上的文字默认颜色"
574
+ },
575
+ "fontSize": {
576
+ "default": "10px",
577
+ "description": "文字默认大小",
578
+ "type": "string"
579
+ },
580
+ "height": {
581
+ "default": "50px",
582
+ "description": "tabBar 默认高度",
583
+ "type": "string"
584
+ },
585
+ "iconWidth": {
586
+ "default": "24px",
587
+ "description": "图标默认宽度(高度等比例缩放)",
588
+ "type": "string"
589
+ },
590
+ "iconfontSrc": {
591
+ "description": "list设置 iconfont 属性时,需要指定字体文件路径",
592
+ "type": "string"
593
+ },
594
+ "list": {
595
+ "description": "tab 的列表,详见 list 属性说明,最少2个、最多5个 tab",
596
+ "items": {
597
+ "$ref": "#/definitions/TabBarItem"
598
+ },
599
+ "type": "array"
600
+ },
601
+ "midButton": {
602
+ "$ref": "#/definitions/MidButton",
603
+ "description": "中间按钮 仅在 list 项为偶数时有效"
604
+ },
605
+ "position": {
606
+ "default": "bottom",
607
+ "description": "可选值 bottom、top",
608
+ "type": "string"
609
+ },
610
+ "selectedColor": {
611
+ "$ref": "#/definitions/Color",
612
+ "description": "tab 上的文字选中时的颜色"
613
+ },
614
+ "spacing": {
615
+ "default": "3px",
616
+ "description": "图标和文字的间距",
617
+ "type": "string"
618
+ }
619
+ },
620
+ "type": "object"
621
+ },
622
+ "TabBarItem": {
623
+ "properties": {
624
+ "iconPath": {
625
+ "description": "图片路径,icon 大小限制为40kb,建议尺寸为 81px * 81px, 当 position 为 top 时,此参数无效,不支持网络图片,不支持字体图标",
626
+ "type": "string"
627
+ },
628
+ "iconfont": {
629
+ "$ref": "#/definitions/IconFont",
630
+ "description": "字体图标,优先级高于 iconPath"
631
+ },
632
+ "pagePath": {
633
+ "description": "页面路径,必须在 pages 中先定义",
634
+ "type": "string"
635
+ },
636
+ "selectedIconPath": {
637
+ "description": "选中时的图片路径,icon 大小限制为40kb,建议尺寸为 81px * 81px ,当 position 为 top 时,此参数无效",
638
+ "type": "string"
639
+ },
640
+ "text": {
641
+ "description": "tab 上按钮文字,在 App 和 H5 平台为非必填。例如中间可放一个没有文字的+号图标",
642
+ "type": "string"
643
+ },
644
+ "visible": {
645
+ "description": "该项是否显示,默认显示",
646
+ "type": "boolean"
647
+ }
648
+ },
649
+ "type": "object"
650
+ },
651
+ "TheWindow": {
652
+ "additionalProperties": false,
653
+ "properties": {
654
+ "matchMedia": {
655
+ "additionalProperties": false,
656
+ "description": "配置显示该窗口的规则,配置项参考下方 matchMedia",
657
+ "properties": {
658
+ "minWidth": {
659
+ "default": "768",
660
+ "description": "当设备可见区域宽度 >= minWidth 时,显示该 window",
661
+ "type": "number"
662
+ }
663
+ },
664
+ "type": "object"
665
+ },
666
+ "path": {
667
+ "description": "配置页面路径",
668
+ "type": "string"
669
+ },
670
+ "style": {
671
+ "$ref": "#/definitions/GlobalStyle",
672
+ "description": "配置页面窗口表现,配置项参考下方 pageStyle"
673
+ }
674
+ },
675
+ "required": [
676
+ "path"
677
+ ],
678
+ "type": "object"
679
+ },
680
+ "ThemeColor": {
681
+ "type": "string"
682
+ },
683
+ "UniIdRouter": {
684
+ "additionalProperties": false,
685
+ "properties": {
686
+ "loginPage": {
687
+ "description": "登录页面路径",
688
+ "type": "string"
689
+ },
690
+ "needLogin": {
691
+ "description": "需要登录才可以访问的页面列表,可以使用正则语法",
692
+ "items": {
693
+ "type": "string"
694
+ },
695
+ "type": "array"
696
+ },
697
+ "resToLogin": {
698
+ "default": true,
699
+ "description": "是否自动解析云对象及 clientDB 的错误码,如果是客户端 token 不正确或 token 过期则自动跳转配置的登录页面",
700
+ "type": "boolean"
701
+ }
702
+ },
703
+ "required": [
704
+ "loginPage",
705
+ "needLogin"
706
+ ],
707
+ "type": "object"
708
+ }
709
+ }
710
+ }