@uni-helper/pages-json-schema 0.4.9 → 0.6.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/README.md +26 -1
- package/package.json +9 -9
- package/schema.json +740 -194
package/schema.json
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"AppHarmony": {
|
|
21
21
|
"description": "设置编译到 App(Harmony)平台的特定样式\n\n相应的类型是 AppHarmony",
|
|
22
22
|
"properties": {
|
|
23
|
-
"
|
|
23
|
+
"softinputMode": {
|
|
24
24
|
"default": "adjustPan",
|
|
25
|
-
"description": "
|
|
25
|
+
"description": "软键盘弹出模式\n\n\"adjustResize\" 重新测量并压缩布局尺寸\n\n\"adjustPan\" 整体平移窗口而不改变布局大小",
|
|
26
26
|
"enum": [
|
|
27
27
|
"adjustResize",
|
|
28
28
|
"adjustPan"
|
|
@@ -156,16 +156,16 @@
|
|
|
156
156
|
"description": "滚动条显示策略,设置为 \"none\" 时不显示滚动条",
|
|
157
157
|
"type": "string"
|
|
158
158
|
},
|
|
159
|
-
"
|
|
159
|
+
"softinputMode": {
|
|
160
160
|
"default": "adjustPan",
|
|
161
|
-
"description": "软键盘弹出模式,仅支持 \"adjustResize\" / \"adjustPan\"",
|
|
161
|
+
"description": "软键盘弹出模式,仅支持 \"adjustResize\" / \"adjustPan\"\n\n\"adjustResize\" 重新测量并压缩布局尺寸\n\n\"adjustPan\" 整体平移窗口而不改变布局大小",
|
|
162
162
|
"enum": [
|
|
163
163
|
"adjustResize",
|
|
164
164
|
"adjustPan"
|
|
165
165
|
],
|
|
166
166
|
"type": "string"
|
|
167
167
|
},
|
|
168
|
-
"
|
|
168
|
+
"softinputNavBar": {
|
|
169
169
|
"default": "auto",
|
|
170
170
|
"description": "iOS 软键盘上完成工具栏的显示模式,设置为 \"none\" 时关闭工具栏",
|
|
171
171
|
"enum": [
|
|
@@ -405,6 +405,7 @@
|
|
|
405
405
|
"type": "string"
|
|
406
406
|
},
|
|
407
407
|
"titleWeight": {
|
|
408
|
+
"default": "normal",
|
|
408
409
|
"description": "返回按钮上标题的粗细\n\n\"normal\" 正常\n\n\"bold\" 粗体",
|
|
409
410
|
"enum": [
|
|
410
411
|
"normal",
|
|
@@ -1138,18 +1139,15 @@
|
|
|
1138
1139
|
"type": "object"
|
|
1139
1140
|
},
|
|
1140
1141
|
"Condition": {
|
|
1141
|
-
"
|
|
1142
|
+
"description": "启动模式配置",
|
|
1142
1143
|
"properties": {
|
|
1143
1144
|
"current": {
|
|
1144
1145
|
"description": "当前激活的模式,list 节点的索引值",
|
|
1145
1146
|
"type": "number"
|
|
1146
1147
|
},
|
|
1147
1148
|
"list": {
|
|
1148
|
-
"
|
|
1149
|
-
"
|
|
1150
|
-
"$ref": "#/definitions/ConditionItem"
|
|
1151
|
-
},
|
|
1152
|
-
"type": "array"
|
|
1149
|
+
"$ref": "#/definitions/ConditionList",
|
|
1150
|
+
"description": "启动模式列表"
|
|
1153
1151
|
}
|
|
1154
1152
|
},
|
|
1155
1153
|
"required": [
|
|
@@ -1158,8 +1156,13 @@
|
|
|
1158
1156
|
],
|
|
1159
1157
|
"type": "object"
|
|
1160
1158
|
},
|
|
1161
|
-
"
|
|
1162
|
-
"
|
|
1159
|
+
"ConditionList": {
|
|
1160
|
+
"items": {
|
|
1161
|
+
"$ref": "#/definitions/ConditionListItem"
|
|
1162
|
+
},
|
|
1163
|
+
"type": "array"
|
|
1164
|
+
},
|
|
1165
|
+
"ConditionListItem": {
|
|
1163
1166
|
"properties": {
|
|
1164
1167
|
"name": {
|
|
1165
1168
|
"description": "启动模式名称",
|
|
@@ -1182,6 +1185,7 @@
|
|
|
1182
1185
|
},
|
|
1183
1186
|
"EasyCom": {
|
|
1184
1187
|
"additionalProperties": false,
|
|
1188
|
+
"description": "组件自动引入规则",
|
|
1185
1189
|
"properties": {
|
|
1186
1190
|
"autoscan": {
|
|
1187
1191
|
"default": true,
|
|
@@ -1199,6 +1203,7 @@
|
|
|
1199
1203
|
"type": "object"
|
|
1200
1204
|
},
|
|
1201
1205
|
"GlobalStyle": {
|
|
1206
|
+
"description": "globalStyle 节点的类型,用于设置应用的状态栏、导航条、标题、窗口背景色等",
|
|
1202
1207
|
"properties": {
|
|
1203
1208
|
"allowsBounceVertical": {
|
|
1204
1209
|
"default": "YES",
|
|
@@ -1209,6 +1214,52 @@
|
|
|
1209
1214
|
],
|
|
1210
1215
|
"type": "string"
|
|
1211
1216
|
},
|
|
1217
|
+
"androidOverscroll": {
|
|
1218
|
+
"default": false,
|
|
1219
|
+
"description": "Android 平台是否开启弹簧回弹效果",
|
|
1220
|
+
"type": "boolean"
|
|
1221
|
+
},
|
|
1222
|
+
"androidRefresherColor": {
|
|
1223
|
+
"anyOf": [
|
|
1224
|
+
{
|
|
1225
|
+
"$ref": "#/definitions/HEXColor"
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1229
|
+
}
|
|
1230
|
+
],
|
|
1231
|
+
"description": "Android 平台下拉刷新前景颜色,支持 HEX 颜色",
|
|
1232
|
+
"format": "color"
|
|
1233
|
+
},
|
|
1234
|
+
"androidThreeButtonNavigationBackgroundColor": {
|
|
1235
|
+
"anyOf": [
|
|
1236
|
+
{
|
|
1237
|
+
"$ref": "#/definitions/HEXColor"
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1241
|
+
}
|
|
1242
|
+
],
|
|
1243
|
+
"description": "虚拟按键区域背景色,支持 HEX 颜色",
|
|
1244
|
+
"format": "color"
|
|
1245
|
+
},
|
|
1246
|
+
"androidThreeButtonNavigationStyle": {
|
|
1247
|
+
"anyOf": [
|
|
1248
|
+
{
|
|
1249
|
+
"$ref": "#/definitions/HEXColor"
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1253
|
+
}
|
|
1254
|
+
],
|
|
1255
|
+
"description": "虚拟按键区域前景色",
|
|
1256
|
+
"format": "color"
|
|
1257
|
+
},
|
|
1258
|
+
"androidThreeButtonNavigationTranslucent": {
|
|
1259
|
+
"default": false,
|
|
1260
|
+
"description": "页面内容是否可以渲染到虚拟按键区域",
|
|
1261
|
+
"type": "boolean"
|
|
1262
|
+
},
|
|
1212
1263
|
"animationDuration": {
|
|
1213
1264
|
"default": 300,
|
|
1214
1265
|
"description": "窗口显示动画的持续时间,单位为 ms",
|
|
@@ -1250,7 +1301,19 @@
|
|
|
1250
1301
|
}
|
|
1251
1302
|
],
|
|
1252
1303
|
"default": "#ffffff",
|
|
1253
|
-
"description": "底部窗口的背景色(bounce
|
|
1304
|
+
"description": "底部窗口的背景色(bounce 回弹区域),支持 HEX 颜色",
|
|
1305
|
+
"format": "color"
|
|
1306
|
+
},
|
|
1307
|
+
"backgroundColorContent": {
|
|
1308
|
+
"anyOf": [
|
|
1309
|
+
{
|
|
1310
|
+
"$ref": "#/definitions/HEXColor"
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1314
|
+
}
|
|
1315
|
+
],
|
|
1316
|
+
"description": "页面容器背景色,支持 HEX 颜色",
|
|
1254
1317
|
"format": "color"
|
|
1255
1318
|
},
|
|
1256
1319
|
"backgroundColorTop": {
|
|
@@ -1263,7 +1326,7 @@
|
|
|
1263
1326
|
}
|
|
1264
1327
|
],
|
|
1265
1328
|
"default": "#ffffff",
|
|
1266
|
-
"description": "顶部窗口的背景色(bounce
|
|
1329
|
+
"description": "顶部窗口的背景色(bounce 回弹区域),支持 HEX 颜色",
|
|
1267
1330
|
"format": "color"
|
|
1268
1331
|
},
|
|
1269
1332
|
"backgroundTextStyle": {
|
|
@@ -1283,19 +1346,19 @@
|
|
|
1283
1346
|
"default": "dark",
|
|
1284
1347
|
"description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
|
|
1285
1348
|
},
|
|
1286
|
-
"
|
|
1349
|
+
"bounces": {
|
|
1287
1350
|
"default": false,
|
|
1288
|
-
"description": "
|
|
1351
|
+
"description": "是否开启回弹效果,优先级高于 allowsBounceVertical",
|
|
1289
1352
|
"type": "boolean"
|
|
1290
1353
|
},
|
|
1291
|
-
"
|
|
1354
|
+
"dynamicRpx": {
|
|
1292
1355
|
"default": false,
|
|
1293
|
-
"description": "
|
|
1356
|
+
"description": "是否使用动态 rpx,屏幕大小变化会重新渲染 rpx",
|
|
1294
1357
|
"type": "boolean"
|
|
1295
1358
|
},
|
|
1296
|
-
"
|
|
1359
|
+
"enableBackToTop": {
|
|
1297
1360
|
"default": false,
|
|
1298
|
-
"description": "
|
|
1361
|
+
"description": "点击系统状态栏滚动条是否返回顶部",
|
|
1299
1362
|
"type": "boolean"
|
|
1300
1363
|
},
|
|
1301
1364
|
"enablePullDownRefresh": {
|
|
@@ -1303,10 +1366,25 @@
|
|
|
1303
1366
|
"description": "是否开启下拉刷新,详见 [页面生命周期](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)",
|
|
1304
1367
|
"type": "boolean"
|
|
1305
1368
|
},
|
|
1369
|
+
"enableUcssReset": {
|
|
1370
|
+
"default": true,
|
|
1371
|
+
"description": "是否启用 ucss 样式覆盖",
|
|
1372
|
+
"type": "boolean"
|
|
1373
|
+
},
|
|
1306
1374
|
"h5": {
|
|
1307
1375
|
"$ref": "#/definitions/H5",
|
|
1308
1376
|
"description": "设置编译到 H5 平台的特定样式,配置项参考 [H5](https://uniapp.dcloud.net.cn/collocation/pages#h5)\n\n相应的类型是 H5"
|
|
1309
1377
|
},
|
|
1378
|
+
"hideBottomNavigationIndicator": {
|
|
1379
|
+
"default": false,
|
|
1380
|
+
"description": "是否隐藏系统底部导航栏\n\n与 hideStatusBar 同时开启可实现页面全屏",
|
|
1381
|
+
"type": "boolean"
|
|
1382
|
+
},
|
|
1383
|
+
"hideStatusBar": {
|
|
1384
|
+
"default": false,
|
|
1385
|
+
"description": "是否隐藏系统顶部状态栏",
|
|
1386
|
+
"type": "boolean"
|
|
1387
|
+
},
|
|
1310
1388
|
"leftWindow": {
|
|
1311
1389
|
"default": true,
|
|
1312
1390
|
"description": "当存在 leftWindow 时,默认是否显示 leftWindow,详见 [topWindow](https://uniapp.dcloud.net.cn/collocation/pages.html#topwindow)",
|
|
@@ -1318,11 +1396,11 @@
|
|
|
1318
1396
|
},
|
|
1319
1397
|
"mp-alipay": {
|
|
1320
1398
|
"$ref": "#/definitions/MpAlipay",
|
|
1321
|
-
"description": "设置编译到 mp-alipay 平台的特定样式,配置项参考 [MP-ALIPAY](https://uniapp.dcloud.net.cn/collocation/pages#mp-alipay)
|
|
1399
|
+
"description": "设置编译到 mp-alipay 平台的特定样式,配置项参考 [MP-ALIPAY](https://uniapp.dcloud.net.cn/collocation/pages#mp-alipay)\n\n相应的类型是 MpAlipay"
|
|
1322
1400
|
},
|
|
1323
1401
|
"mp-baidu": {
|
|
1324
1402
|
"$ref": "#/definitions/MpBaidu",
|
|
1325
|
-
"description": "设置编译到 mp-baidu 平台的特定样式,配置项参考 [MP-BAIDU](https://uniapp.dcloud.net.cn/collocation/pages.html#mp-baidu)
|
|
1403
|
+
"description": "设置编译到 mp-baidu 平台的特定样式,配置项参考 [MP-BAIDU](https://uniapp.dcloud.net.cn/collocation/pages.html#mp-baidu)\n\n相应的类型是 MpBaidu"
|
|
1326
1404
|
},
|
|
1327
1405
|
"mp-harmony": {
|
|
1328
1406
|
"$ref": "#/definitions/MpHarmony",
|
|
@@ -1346,11 +1424,11 @@
|
|
|
1346
1424
|
},
|
|
1347
1425
|
"mp-toutiao": {
|
|
1348
1426
|
"$ref": "#/definitions/MpToutiao",
|
|
1349
|
-
"description": "设置编译到 mp-toutiao
|
|
1427
|
+
"description": "设置编译到 mp-toutiao 平台的特定样式\n\n相应的类型是 MpToutiao"
|
|
1350
1428
|
},
|
|
1351
1429
|
"mp-weixin": {
|
|
1352
1430
|
"$ref": "#/definitions/MpWeixin",
|
|
1353
|
-
"description": "设置编译到 mp-weixin 平台的特定样式,配置项参考 [MP-WEIXIN](https://uniapp.dcloud.net.cn/collocation/pages#mp-weixin)
|
|
1431
|
+
"description": "设置编译到 mp-weixin 平台的特定样式,配置项参考 [MP-WEIXIN](https://uniapp.dcloud.net.cn/collocation/pages#mp-weixin)\n\n相应的类型是 MpWeixin"
|
|
1354
1432
|
},
|
|
1355
1433
|
"mp-xhs": {
|
|
1356
1434
|
"$ref": "#/definitions/MpXhs",
|
|
@@ -1368,25 +1446,6 @@
|
|
|
1368
1446
|
"description": "导航栏背景颜色(同状态栏背景色),支持 HEX 颜色",
|
|
1369
1447
|
"format": "color"
|
|
1370
1448
|
},
|
|
1371
|
-
"navigationBarShadow": {
|
|
1372
|
-
"additionalProperties": false,
|
|
1373
|
-
"description": "导航栏阴影",
|
|
1374
|
-
"properties": {
|
|
1375
|
-
"colorType": {
|
|
1376
|
-
"description": "阴影颜色",
|
|
1377
|
-
"enum": [
|
|
1378
|
-
"grey",
|
|
1379
|
-
"blue",
|
|
1380
|
-
"green",
|
|
1381
|
-
"orange",
|
|
1382
|
-
"red",
|
|
1383
|
-
"yellow"
|
|
1384
|
-
],
|
|
1385
|
-
"type": "string"
|
|
1386
|
-
}
|
|
1387
|
-
},
|
|
1388
|
-
"type": "object"
|
|
1389
|
-
},
|
|
1390
1449
|
"navigationBarTextStyle": {
|
|
1391
1450
|
"anyOf": [
|
|
1392
1451
|
{
|
|
@@ -1476,7 +1535,7 @@
|
|
|
1476
1535
|
},
|
|
1477
1536
|
"transparentTitle": {
|
|
1478
1537
|
"default": "none",
|
|
1479
|
-
"description": "导航栏整体(前景、背景)透明设置,仅支持 \"always\" / \"auto\" / \"none\n\n\"always\" 一直透明\n\n\"auto\" 滑动自适应\n\n\"none\" 不透明",
|
|
1538
|
+
"description": "导航栏整体(前景、背景)透明设置,仅支持 \"always\" / \"auto\" / \"none\"\n\n\"always\" 一直透明\n\n\"auto\" 滑动自适应\n\n\"none\" 不透明",
|
|
1480
1539
|
"enum": [
|
|
1481
1540
|
"always",
|
|
1482
1541
|
"auto",
|
|
@@ -1497,12 +1556,54 @@
|
|
|
1497
1556
|
"H5": {
|
|
1498
1557
|
"properties": {
|
|
1499
1558
|
"pullToRefresh": {
|
|
1500
|
-
"description": "下拉刷新,详见 [下拉刷新](https://uniapp.dcloud.net.cn/collocation/pages#h5-pulltorefresh)",
|
|
1559
|
+
"description": "下拉刷新,详见 [下拉刷新](https://uniapp.dcloud.net.cn/collocation/pages#h5-pulltorefresh)\n\nh5 平台下拉刷新动画,只有 circle 类型",
|
|
1501
1560
|
"properties": {
|
|
1502
1561
|
"color": {
|
|
1503
1562
|
"$ref": "#/definitions/HEXColor",
|
|
1504
1563
|
"default": "#2BD009",
|
|
1505
|
-
"description": "下拉刷新控件颜色,支持 HEX 颜色"
|
|
1564
|
+
"description": "下拉刷新控件颜色,支持 HEX 颜色",
|
|
1565
|
+
"format": "color"
|
|
1566
|
+
},
|
|
1567
|
+
"contentdown": {
|
|
1568
|
+
"description": "下拉可刷新状态时下拉刷新控件显示的内容,仅 style 为 \"default\" 时有效",
|
|
1569
|
+
"properties": {
|
|
1570
|
+
"caption": {
|
|
1571
|
+
"description": "下拉刷新控件上显示的标题内容",
|
|
1572
|
+
"type": "string"
|
|
1573
|
+
}
|
|
1574
|
+
},
|
|
1575
|
+
"type": "object"
|
|
1576
|
+
},
|
|
1577
|
+
"contentover": {
|
|
1578
|
+
"description": "释放可刷新状态时下拉刷新控件显示的内容,仅 style 为 \"default\" 时有效",
|
|
1579
|
+
"properties": {
|
|
1580
|
+
"caption": {
|
|
1581
|
+
"description": "下拉刷新控件上显示的标题内容",
|
|
1582
|
+
"type": "string"
|
|
1583
|
+
}
|
|
1584
|
+
},
|
|
1585
|
+
"type": "object"
|
|
1586
|
+
},
|
|
1587
|
+
"contentrefresh": {
|
|
1588
|
+
"description": "正在刷新状态时下拉刷新控件显示的内容,仅 style 为 \"default\" 时有效",
|
|
1589
|
+
"properties": {
|
|
1590
|
+
"caption": {
|
|
1591
|
+
"description": "下拉刷新控件上显示的标题内容",
|
|
1592
|
+
"type": "string"
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
"type": "object"
|
|
1596
|
+
},
|
|
1597
|
+
"height": {
|
|
1598
|
+
"anyOf": [
|
|
1599
|
+
{
|
|
1600
|
+
"$ref": "#/definitions/PxSize"
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
"$ref": "#/definitions/PercentageSize"
|
|
1604
|
+
}
|
|
1605
|
+
],
|
|
1606
|
+
"description": "下拉刷新控件进入刷新状态的拉拽高度,支持单位为 px 的逻辑像素值或百分比"
|
|
1506
1607
|
},
|
|
1507
1608
|
"offset": {
|
|
1508
1609
|
"anyOf": [
|
|
@@ -1514,7 +1615,30 @@
|
|
|
1514
1615
|
}
|
|
1515
1616
|
],
|
|
1516
1617
|
"default": "0px",
|
|
1517
|
-
"description": "
|
|
1618
|
+
"description": "下拉刷新控件的起始位置,支持单位为 px 的逻辑像素值或百分比"
|
|
1619
|
+
},
|
|
1620
|
+
"range": {
|
|
1621
|
+
"anyOf": [
|
|
1622
|
+
{
|
|
1623
|
+
"$ref": "#/definitions/PxSize"
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"$ref": "#/definitions/PercentageSize"
|
|
1627
|
+
}
|
|
1628
|
+
],
|
|
1629
|
+
"description": "可下拉拖拽的范围,支持单位为 px 的逻辑像素值或百分比"
|
|
1630
|
+
},
|
|
1631
|
+
"style": {
|
|
1632
|
+
"description": "下拉刷新控件样式,h5 平台只有 \"circle\" 类型",
|
|
1633
|
+
"enum": [
|
|
1634
|
+
"default",
|
|
1635
|
+
"circle"
|
|
1636
|
+
],
|
|
1637
|
+
"type": "string"
|
|
1638
|
+
},
|
|
1639
|
+
"support": {
|
|
1640
|
+
"description": "是否开启窗口的下拉刷新功能",
|
|
1641
|
+
"type": "boolean"
|
|
1518
1642
|
}
|
|
1519
1643
|
},
|
|
1520
1644
|
"type": "object"
|
|
@@ -1534,7 +1658,7 @@
|
|
|
1534
1658
|
"format": "color"
|
|
1535
1659
|
},
|
|
1536
1660
|
"buttons": {
|
|
1537
|
-
"description": "自定义按钮,详见 [自定义按钮](https://uniapp.dcloud.net.cn/collocation/pages#
|
|
1661
|
+
"description": "自定义按钮,详见 [自定义按钮](https://uniapp.dcloud.net.cn/collocation/pages#h5-titlenview-buttons)",
|
|
1538
1662
|
"items": {
|
|
1539
1663
|
"$ref": "#/definitions/TitleNViewButton"
|
|
1540
1664
|
},
|
|
@@ -1629,8 +1753,20 @@
|
|
|
1629
1753
|
"HEXColor": {
|
|
1630
1754
|
"type": "string"
|
|
1631
1755
|
},
|
|
1756
|
+
"MatchMedia": {
|
|
1757
|
+
"additionalProperties": false,
|
|
1758
|
+
"description": "配置显示该窗口的规则",
|
|
1759
|
+
"properties": {
|
|
1760
|
+
"minWidth": {
|
|
1761
|
+
"default": 768,
|
|
1762
|
+
"description": "当设备可见区域宽度 >= minWidth 时,显示该 window",
|
|
1763
|
+
"type": "number"
|
|
1764
|
+
}
|
|
1765
|
+
},
|
|
1766
|
+
"type": "object"
|
|
1767
|
+
},
|
|
1632
1768
|
"MpAlipay": {
|
|
1633
|
-
"description": "设置编译到 mp-alipay 平台的特定样式,配置项参考
|
|
1769
|
+
"description": "设置编译到 mp-alipay 平台的特定样式,配置项参考 <https://opendocs.alipay.com/mini/framework/app-json#window>\n\n相应的类型是 MpAlipay",
|
|
1634
1770
|
"properties": {
|
|
1635
1771
|
"allowsBounceVertical": {
|
|
1636
1772
|
"default": "YES",
|
|
@@ -1659,7 +1795,7 @@
|
|
|
1659
1795
|
"format": "color"
|
|
1660
1796
|
},
|
|
1661
1797
|
"backgroundImageUrl": {
|
|
1662
|
-
"description": "
|
|
1798
|
+
"description": "下拉露出显示背景图的链接",
|
|
1663
1799
|
"type": "string"
|
|
1664
1800
|
},
|
|
1665
1801
|
"defaultTitle": {
|
|
@@ -1676,7 +1812,7 @@
|
|
|
1676
1812
|
"type": "string"
|
|
1677
1813
|
},
|
|
1678
1814
|
"gestureBack": {
|
|
1679
|
-
"default": "
|
|
1815
|
+
"default": "NO",
|
|
1680
1816
|
"description": "仅支持 iOS,是否支持手势返回",
|
|
1681
1817
|
"enum": [
|
|
1682
1818
|
"YES",
|
|
@@ -1716,11 +1852,19 @@
|
|
|
1716
1852
|
"type": "string"
|
|
1717
1853
|
},
|
|
1718
1854
|
"titleBarColor": {
|
|
1719
|
-
"
|
|
1720
|
-
|
|
1855
|
+
"anyOf": [
|
|
1856
|
+
{
|
|
1857
|
+
"$ref": "#/definitions/HEXColor"
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1861
|
+
}
|
|
1862
|
+
],
|
|
1863
|
+
"description": "导航栏背景色,支持 HEX 颜色",
|
|
1864
|
+
"format": "color"
|
|
1721
1865
|
},
|
|
1722
1866
|
"titleImage": {
|
|
1723
|
-
"description": "
|
|
1867
|
+
"description": "导航栏图片地址",
|
|
1724
1868
|
"type": "string"
|
|
1725
1869
|
},
|
|
1726
1870
|
"titlePenetrate": {
|
|
@@ -1746,7 +1890,7 @@
|
|
|
1746
1890
|
"type": "object"
|
|
1747
1891
|
},
|
|
1748
1892
|
"MpBaidu": {
|
|
1749
|
-
"description": "设置编译到 mp-baidu 平台的特定样式,配置项参考
|
|
1893
|
+
"description": "设置编译到 mp-baidu 平台的特定样式,配置项参考 <https://smartprogram.baidu.com/docs/develop/framework/process/#window>\n\n相应的类型是 MpBaidu",
|
|
1750
1894
|
"properties": {
|
|
1751
1895
|
"backgroundColor": {
|
|
1752
1896
|
"anyOf": [
|
|
@@ -1770,7 +1914,8 @@
|
|
|
1770
1914
|
}
|
|
1771
1915
|
],
|
|
1772
1916
|
"default": "#FFFFFF",
|
|
1773
|
-
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
1917
|
+
"description": "底部窗口的背景色,仅 iOS 支持",
|
|
1918
|
+
"format": "color"
|
|
1774
1919
|
},
|
|
1775
1920
|
"backgroundColorTop": {
|
|
1776
1921
|
"anyOf": [
|
|
@@ -1782,7 +1927,8 @@
|
|
|
1782
1927
|
}
|
|
1783
1928
|
],
|
|
1784
1929
|
"default": "#FFFFFF",
|
|
1785
|
-
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
1930
|
+
"description": "顶部窗口的背景色,仅 iOS 支持",
|
|
1931
|
+
"format": "color"
|
|
1786
1932
|
},
|
|
1787
1933
|
"backgroundTextStyle": {
|
|
1788
1934
|
"anyOf": [
|
|
@@ -1889,7 +2035,8 @@
|
|
|
1889
2035
|
}
|
|
1890
2036
|
],
|
|
1891
2037
|
"default": "#FFFFFF",
|
|
1892
|
-
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2038
|
+
"description": "窗口的背景色,支持 HEX 颜色",
|
|
2039
|
+
"format": "color"
|
|
1893
2040
|
},
|
|
1894
2041
|
"backgroundTextStyle": {
|
|
1895
2042
|
"anyOf": [
|
|
@@ -1968,7 +2115,8 @@
|
|
|
1968
2115
|
}
|
|
1969
2116
|
],
|
|
1970
2117
|
"default": "#FFFFFF",
|
|
1971
|
-
"description": "下拉窗口的背景色,不是页面的背景颜色"
|
|
2118
|
+
"description": "下拉窗口的背景色,不是页面的背景颜色",
|
|
2119
|
+
"format": "color"
|
|
1972
2120
|
},
|
|
1973
2121
|
"backgroundColorBottom": {
|
|
1974
2122
|
"anyOf": [
|
|
@@ -1980,7 +2128,8 @@
|
|
|
1980
2128
|
}
|
|
1981
2129
|
],
|
|
1982
2130
|
"default": "#FFFFFF",
|
|
1983
|
-
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
2131
|
+
"description": "底部窗口的背景色,仅 iOS 支持",
|
|
2132
|
+
"format": "color"
|
|
1984
2133
|
},
|
|
1985
2134
|
"backgroundColorTop": {
|
|
1986
2135
|
"anyOf": [
|
|
@@ -1992,7 +2141,8 @@
|
|
|
1992
2141
|
}
|
|
1993
2142
|
],
|
|
1994
2143
|
"default": "#FFFFFF",
|
|
1995
|
-
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
2144
|
+
"description": "顶部窗口的背景色,仅 iOS 支持",
|
|
2145
|
+
"format": "color"
|
|
1996
2146
|
},
|
|
1997
2147
|
"backgroundTextStyle": {
|
|
1998
2148
|
"anyOf": [
|
|
@@ -2080,7 +2230,8 @@
|
|
|
2080
2230
|
}
|
|
2081
2231
|
],
|
|
2082
2232
|
"default": "#FFFFFF",
|
|
2083
|
-
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2233
|
+
"description": "窗口的背景色,支持 HEX 颜色",
|
|
2234
|
+
"format": "color"
|
|
2084
2235
|
},
|
|
2085
2236
|
"backgroundColorBottom": {
|
|
2086
2237
|
"anyOf": [
|
|
@@ -2092,7 +2243,8 @@
|
|
|
2092
2243
|
}
|
|
2093
2244
|
],
|
|
2094
2245
|
"default": "#FFFFFF",
|
|
2095
|
-
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
2246
|
+
"description": "底部窗口的背景色,仅 iOS 支持",
|
|
2247
|
+
"format": "color"
|
|
2096
2248
|
},
|
|
2097
2249
|
"backgroundColorTop": {
|
|
2098
2250
|
"anyOf": [
|
|
@@ -2104,7 +2256,8 @@
|
|
|
2104
2256
|
}
|
|
2105
2257
|
],
|
|
2106
2258
|
"default": "#FFFFFF",
|
|
2107
|
-
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
2259
|
+
"description": "顶部窗口的背景色,仅 iOS 支持",
|
|
2260
|
+
"format": "color"
|
|
2108
2261
|
},
|
|
2109
2262
|
"backgroundTextStyle": {
|
|
2110
2263
|
"anyOf": [
|
|
@@ -2137,7 +2290,7 @@
|
|
|
2137
2290
|
"$ref": "#/definitions/ThemeVar"
|
|
2138
2291
|
}
|
|
2139
2292
|
],
|
|
2140
|
-
"default": "#
|
|
2293
|
+
"default": "#ffffff",
|
|
2141
2294
|
"description": "导航栏背景颜色,支持 HEX 颜色",
|
|
2142
2295
|
"format": "color"
|
|
2143
2296
|
},
|
|
@@ -2207,7 +2360,8 @@
|
|
|
2207
2360
|
}
|
|
2208
2361
|
],
|
|
2209
2362
|
"default": "#FFFFFF",
|
|
2210
|
-
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2363
|
+
"description": "窗口的背景色,支持 HEX 颜色",
|
|
2364
|
+
"format": "color"
|
|
2211
2365
|
},
|
|
2212
2366
|
"backgroundColorBottom": {
|
|
2213
2367
|
"anyOf": [
|
|
@@ -2219,7 +2373,8 @@
|
|
|
2219
2373
|
}
|
|
2220
2374
|
],
|
|
2221
2375
|
"default": "#FFFFFF",
|
|
2222
|
-
"description": "底部窗口的背景色"
|
|
2376
|
+
"description": "底部窗口的背景色",
|
|
2377
|
+
"format": "color"
|
|
2223
2378
|
},
|
|
2224
2379
|
"backgroundColorTop": {
|
|
2225
2380
|
"anyOf": [
|
|
@@ -2231,7 +2386,8 @@
|
|
|
2231
2386
|
}
|
|
2232
2387
|
],
|
|
2233
2388
|
"default": "#FFFFFF",
|
|
2234
|
-
"description": "顶部窗口的背景色"
|
|
2389
|
+
"description": "顶部窗口的背景色",
|
|
2390
|
+
"format": "color"
|
|
2235
2391
|
},
|
|
2236
2392
|
"backgroundTextStyle": {
|
|
2237
2393
|
"anyOf": [
|
|
@@ -2329,7 +2485,8 @@
|
|
|
2329
2485
|
}
|
|
2330
2486
|
],
|
|
2331
2487
|
"default": "#FFFFFF",
|
|
2332
|
-
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2488
|
+
"description": "窗口的背景色,支持 HEX 颜色",
|
|
2489
|
+
"format": "color"
|
|
2333
2490
|
},
|
|
2334
2491
|
"backgroundColorBottom": {
|
|
2335
2492
|
"anyOf": [
|
|
@@ -2341,7 +2498,8 @@
|
|
|
2341
2498
|
}
|
|
2342
2499
|
],
|
|
2343
2500
|
"default": "#FFFFFF",
|
|
2344
|
-
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
2501
|
+
"description": "底部窗口的背景色,仅 iOS 支持",
|
|
2502
|
+
"format": "color"
|
|
2345
2503
|
},
|
|
2346
2504
|
"backgroundColorTop": {
|
|
2347
2505
|
"anyOf": [
|
|
@@ -2353,7 +2511,8 @@
|
|
|
2353
2511
|
}
|
|
2354
2512
|
],
|
|
2355
2513
|
"default": "#FFFFFF",
|
|
2356
|
-
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
2514
|
+
"description": "顶部窗口的背景色,仅 iOS 支持",
|
|
2515
|
+
"format": "color"
|
|
2357
2516
|
},
|
|
2358
2517
|
"backgroundTextStyle": {
|
|
2359
2518
|
"anyOf": [
|
|
@@ -2451,7 +2610,8 @@
|
|
|
2451
2610
|
}
|
|
2452
2611
|
],
|
|
2453
2612
|
"default": "#FFFFFF",
|
|
2454
|
-
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2613
|
+
"description": "窗口的背景色,支持 HEX 颜色",
|
|
2614
|
+
"format": "color"
|
|
2455
2615
|
},
|
|
2456
2616
|
"backgroundColorBottom": {
|
|
2457
2617
|
"anyOf": [
|
|
@@ -2463,7 +2623,8 @@
|
|
|
2463
2623
|
}
|
|
2464
2624
|
],
|
|
2465
2625
|
"default": "同 backgroundColor",
|
|
2466
|
-
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
2626
|
+
"description": "底部窗口的背景色,仅 iOS 支持",
|
|
2627
|
+
"format": "color"
|
|
2467
2628
|
},
|
|
2468
2629
|
"backgroundColorTop": {
|
|
2469
2630
|
"anyOf": [
|
|
@@ -2475,7 +2636,8 @@
|
|
|
2475
2636
|
}
|
|
2476
2637
|
],
|
|
2477
2638
|
"default": "同 backgroundColor",
|
|
2478
|
-
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
2639
|
+
"description": "顶部窗口的背景色,仅 iOS 支持",
|
|
2640
|
+
"format": "color"
|
|
2479
2641
|
},
|
|
2480
2642
|
"backgroundTextStyle": {
|
|
2481
2643
|
"anyOf": [
|
|
@@ -2535,7 +2697,7 @@
|
|
|
2535
2697
|
},
|
|
2536
2698
|
"navigationStyle": {
|
|
2537
2699
|
"default": "default",
|
|
2538
|
-
"description": "
|
|
2700
|
+
"description": "导航栏样式,导航栏样式,仅支持 \"default\" / \"custom\"\n\ncustom 模式可自定义导航栏,具体效果样式效果参照 [页面自定义结构文档](https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/open-capacity/basic-capacities/custom-page-structure/)\n\n具体申请入口在[「控制台」-「我的应用」](https://developer.open-douyin.com/console?type=1)-「具体小程序」-「能力」-「互动能力」中完成自定义导航栏权限申请\n\n注意:custom 需要申请权限,否则会阻碍代码包上传,2022 年 5 月 23 日会强制变动,详细参考[获取小程序页面结构自定义能力规范](https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/operation/platform-capabilities/custom-page-structure/custom/)\n\n\"default\" 默认样式\n\n\"custom\" 自定义导航栏,只保留右上角胶囊按钮",
|
|
2539
2701
|
"enum": [
|
|
2540
2702
|
"default",
|
|
2541
2703
|
"custom"
|
|
@@ -2666,7 +2828,7 @@
|
|
|
2666
2828
|
"type": "object"
|
|
2667
2829
|
},
|
|
2668
2830
|
"MpWeixin": {
|
|
2669
|
-
"description": "设置编译到 mp-weixin 平台的特定样式,配置项参考
|
|
2831
|
+
"description": "设置编译到 mp-weixin 平台的特定样式,配置项参考 <https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#window>\n\n相应的类型是 MpWeixin",
|
|
2670
2832
|
"properties": {
|
|
2671
2833
|
"backgroundColor": {
|
|
2672
2834
|
"anyOf": [
|
|
@@ -2678,7 +2840,8 @@
|
|
|
2678
2840
|
}
|
|
2679
2841
|
],
|
|
2680
2842
|
"default": "#FFFFFF",
|
|
2681
|
-
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2843
|
+
"description": "窗口的背景色,支持 HEX 颜色",
|
|
2844
|
+
"format": "color"
|
|
2682
2845
|
},
|
|
2683
2846
|
"backgroundColorBottom": {
|
|
2684
2847
|
"anyOf": [
|
|
@@ -2690,7 +2853,8 @@
|
|
|
2690
2853
|
}
|
|
2691
2854
|
],
|
|
2692
2855
|
"default": "#FFFFFF",
|
|
2693
|
-
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
2856
|
+
"description": "底部窗口的背景色,仅 iOS 支持",
|
|
2857
|
+
"format": "color"
|
|
2694
2858
|
},
|
|
2695
2859
|
"backgroundColorTop": {
|
|
2696
2860
|
"anyOf": [
|
|
@@ -2702,7 +2866,8 @@
|
|
|
2702
2866
|
}
|
|
2703
2867
|
],
|
|
2704
2868
|
"default": "#FFFFFF",
|
|
2705
|
-
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
2869
|
+
"description": "顶部窗口的背景色,仅 iOS 支持",
|
|
2870
|
+
"format": "color"
|
|
2706
2871
|
},
|
|
2707
2872
|
"backgroundTextStyle": {
|
|
2708
2873
|
"anyOf": [
|
|
@@ -2726,6 +2891,11 @@
|
|
|
2726
2891
|
"description": "是否开启全局的下拉刷新,详见 [Page.onPullDownRefresh](https://developers.weixin.qq.com/miniprogram/dev/reference/api/Page.html#onpulldownrefresh)",
|
|
2727
2892
|
"type": "boolean"
|
|
2728
2893
|
},
|
|
2894
|
+
"enableUcssReset": {
|
|
2895
|
+
"default": true,
|
|
2896
|
+
"description": "是否启用 ucss 样式覆盖",
|
|
2897
|
+
"type": "boolean"
|
|
2898
|
+
},
|
|
2729
2899
|
"handleWebviewPreload": {
|
|
2730
2900
|
"default": "static",
|
|
2731
2901
|
"description": "控制预加载下个页面的时机,详见 [控制预加载下个页面的时机](https://developers.weixin.qq.com/miniprogram/dev/framework/performance/tips/runtime_nav.html#_2-4-%E6%8E%A7%E5%88%B6%E9%A2%84%E5%8A%A0%E8%BD%BD%E4%B8%8B%E4%B8%AA%E9%A1%B5%E9%9D%A2%E7%9A%84%E6%97%B6%E6%9C%BA)\n\n\"static\" 在当前页面 onReady 触发 200ms 后触发预加载\n\n\"auto\" 渲染线程空闲时进行预加载,由基础库根据一段时间内 requestAnimationFrame 的触发频率算法判断\n\n\"manual\" 由开发者通过调用 [wx.preloadWebview](https://developers.weixin.qq.com/miniprogram/dev/api/base/performance/wx.preloadWebview.html) 触发,开发者可以在页面主要内容的 setData 结束后手动触发",
|
|
@@ -2808,6 +2978,7 @@
|
|
|
2808
2978
|
"type": "string"
|
|
2809
2979
|
},
|
|
2810
2980
|
"restartStrategy": {
|
|
2981
|
+
"default": "homePage",
|
|
2811
2982
|
"description": "重新启动策略配置\n\n\"homePage\" 如果从这个页面退出小程序,下次将从首页冷启动\n\n\"homePageAndLatestPage\" 如果从这个页面退出小程序,下次冷启动后立刻加载这个页面,页面的参数保持不变(不可用于 tab 页)",
|
|
2812
2983
|
"enum": [
|
|
2813
2984
|
"homePage",
|
|
@@ -2828,7 +2999,7 @@
|
|
|
2828
2999
|
"type": "object"
|
|
2829
3000
|
},
|
|
2830
3001
|
"MpXhs": {
|
|
2831
|
-
"description": "设置编译到 mp-xhs 平台的特定样式,配置项参考 <https://miniapp.xiaohongshu.com/doc/DC813994
|
|
3002
|
+
"description": "设置编译到 mp-xhs 平台的特定样式,配置项参考 <https://miniapp.xiaohongshu.com/doc/DC813994#anchorId-window>>\n\n相应的类型是 MpXhs",
|
|
2832
3003
|
"properties": {
|
|
2833
3004
|
"backgroundColor": {
|
|
2834
3005
|
"anyOf": [
|
|
@@ -2840,7 +3011,8 @@
|
|
|
2840
3011
|
}
|
|
2841
3012
|
],
|
|
2842
3013
|
"default": "#FFFFFF",
|
|
2843
|
-
"description": "窗口的背景色,支持 HEX 颜色"
|
|
3014
|
+
"description": "窗口的背景色,支持 HEX 颜色",
|
|
3015
|
+
"format": "color"
|
|
2844
3016
|
},
|
|
2845
3017
|
"backgroundTextStyle": {
|
|
2846
3018
|
"anyOf": [
|
|
@@ -2925,9 +3097,11 @@
|
|
|
2925
3097
|
},
|
|
2926
3098
|
"type": "object"
|
|
2927
3099
|
},
|
|
2928
|
-
"
|
|
3100
|
+
"PageItem": {
|
|
3101
|
+
"description": "pages 数组的元素类型",
|
|
2929
3102
|
"properties": {
|
|
2930
3103
|
"needLogin": {
|
|
3104
|
+
"default": false,
|
|
2931
3105
|
"description": "当前页面是否需要登录才可以访问,此配置优先级高于 uniIdRouter 下的 needLogin",
|
|
2932
3106
|
"type": "boolean"
|
|
2933
3107
|
},
|
|
@@ -2936,11 +3110,8 @@
|
|
|
2936
3110
|
"type": "string"
|
|
2937
3111
|
},
|
|
2938
3112
|
"style": {
|
|
2939
|
-
"$ref": "#/definitions/
|
|
2940
|
-
"description": "
|
|
2941
|
-
},
|
|
2942
|
-
"type": {
|
|
2943
|
-
"type": "string"
|
|
3113
|
+
"$ref": "#/definitions/PageStyle",
|
|
3114
|
+
"description": "配置页面窗口表现,配置项参考 [pageStyle](https://uniapp.dcloud.net.cn/collocation/pages#style)"
|
|
2944
3115
|
}
|
|
2945
3116
|
},
|
|
2946
3117
|
"required": [
|
|
@@ -2948,66 +3119,396 @@
|
|
|
2948
3119
|
],
|
|
2949
3120
|
"type": "object"
|
|
2950
3121
|
},
|
|
2951
|
-
"
|
|
2952
|
-
"description": "
|
|
3122
|
+
"PageStyle": {
|
|
3123
|
+
"description": "pages 每个页面 style 节点的类型,用于设置每个页面的状态栏、导航条、标题、窗口背景色等\n\n页面中配置项会覆盖 globalStyle 中相同的配置项",
|
|
2953
3124
|
"properties": {
|
|
2954
|
-
"
|
|
2955
|
-
"
|
|
2956
|
-
"description": "
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
},
|
|
2962
|
-
"entryPagePath": {
|
|
2963
|
-
"description": "默认启动首页,新增于 HBuilderX 3.7.0",
|
|
3125
|
+
"allowsBounceVertical": {
|
|
3126
|
+
"default": "YES",
|
|
3127
|
+
"description": "是否允许向下拉拽",
|
|
3128
|
+
"enum": [
|
|
3129
|
+
"YES",
|
|
3130
|
+
"NO"
|
|
3131
|
+
],
|
|
2964
3132
|
"type": "string"
|
|
2965
3133
|
},
|
|
2966
|
-
"
|
|
2967
|
-
"
|
|
2968
|
-
"description": "
|
|
2969
|
-
|
|
2970
|
-
"leftWindow": {
|
|
2971
|
-
"$ref": "#/definitions/TheWindow",
|
|
2972
|
-
"description": "大屏左侧窗口"
|
|
3134
|
+
"androidOverscroll": {
|
|
3135
|
+
"default": false,
|
|
3136
|
+
"description": "Android 平台是否开启弹簧回弹效果",
|
|
3137
|
+
"type": "boolean"
|
|
2973
3138
|
},
|
|
2974
|
-
"
|
|
2975
|
-
"
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
3139
|
+
"androidRefresherColor": {
|
|
3140
|
+
"anyOf": [
|
|
3141
|
+
{
|
|
3142
|
+
"$ref": "#/definitions/HEXColor"
|
|
3143
|
+
},
|
|
3144
|
+
{
|
|
3145
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3146
|
+
}
|
|
3147
|
+
],
|
|
3148
|
+
"description": "Android 平台下拉刷新前景颜色,支持 HEX 颜色",
|
|
3149
|
+
"format": "color"
|
|
2980
3150
|
},
|
|
2981
|
-
"
|
|
2982
|
-
"
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
"properties": {
|
|
2986
|
-
"network": {
|
|
2987
|
-
"default": "wifi",
|
|
2988
|
-
"description": "在指定网络下预下载\n\n\"all\" 不限网络\n\n\"wifi\" 仅 wifi 下预下载",
|
|
2989
|
-
"enum": [
|
|
2990
|
-
"all",
|
|
2991
|
-
"wifi"
|
|
2992
|
-
],
|
|
2993
|
-
"type": "string"
|
|
2994
|
-
},
|
|
2995
|
-
"packages": {
|
|
2996
|
-
"description": "进入页面后预下载分包的 root 或 name\n\n__APP__ 表示主包",
|
|
2997
|
-
"items": {
|
|
2998
|
-
"type": "string"
|
|
2999
|
-
},
|
|
3000
|
-
"type": "array"
|
|
3001
|
-
}
|
|
3151
|
+
"androidThreeButtonNavigationBackgroundColor": {
|
|
3152
|
+
"anyOf": [
|
|
3153
|
+
{
|
|
3154
|
+
"$ref": "#/definitions/HEXColor"
|
|
3002
3155
|
},
|
|
3003
|
-
|
|
3004
|
-
"
|
|
3005
|
-
|
|
3006
|
-
|
|
3156
|
+
{
|
|
3157
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3158
|
+
}
|
|
3159
|
+
],
|
|
3160
|
+
"description": "虚拟按键区域背景色,支持 HEX 颜色",
|
|
3161
|
+
"format": "color"
|
|
3162
|
+
},
|
|
3163
|
+
"androidThreeButtonNavigationStyle": {
|
|
3164
|
+
"anyOf": [
|
|
3165
|
+
{
|
|
3166
|
+
"$ref": "#/definitions/HEXColor"
|
|
3167
|
+
},
|
|
3168
|
+
{
|
|
3169
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3170
|
+
}
|
|
3171
|
+
],
|
|
3172
|
+
"description": "虚拟按键区域前景色",
|
|
3173
|
+
"format": "color"
|
|
3174
|
+
},
|
|
3175
|
+
"androidThreeButtonNavigationTranslucent": {
|
|
3176
|
+
"default": false,
|
|
3177
|
+
"description": "页面内容是否可以渲染到虚拟按键区域",
|
|
3178
|
+
"type": "boolean"
|
|
3179
|
+
},
|
|
3180
|
+
"app-harmony": {
|
|
3181
|
+
"$ref": "#/definitions/AppHarmony",
|
|
3182
|
+
"description": "设置编译到 App(Harmony)平台的特定样式,配置项参考 [app-harmony](https://uniapp.dcloud.net.cn/collocation/pages#app-harmony)\n\n相应的类型是 AppHarmony"
|
|
3183
|
+
},
|
|
3184
|
+
"app-plus": {
|
|
3185
|
+
"$ref": "#/definitions/AppPlus",
|
|
3186
|
+
"description": "设置编译到 App 平台的特定样式,配置项参考 [app-plus](https://uniapp.dcloud.net.cn/collocation/pages#app-plus)\n\n相应的类型是 AppPlus"
|
|
3187
|
+
},
|
|
3188
|
+
"backgroundColor": {
|
|
3189
|
+
"anyOf": [
|
|
3190
|
+
{
|
|
3191
|
+
"$ref": "#/definitions/HEXColor"
|
|
3192
|
+
},
|
|
3193
|
+
{
|
|
3194
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3195
|
+
}
|
|
3196
|
+
],
|
|
3197
|
+
"default": "#ffffff",
|
|
3198
|
+
"description": "下拉显示出来的窗口的背景色,支持 HEX 颜色",
|
|
3199
|
+
"format": "color"
|
|
3200
|
+
},
|
|
3201
|
+
"backgroundColorBottom": {
|
|
3202
|
+
"anyOf": [
|
|
3203
|
+
{
|
|
3204
|
+
"$ref": "#/definitions/HEXColor"
|
|
3205
|
+
},
|
|
3206
|
+
{
|
|
3207
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3208
|
+
}
|
|
3209
|
+
],
|
|
3210
|
+
"default": "#ffffff",
|
|
3211
|
+
"description": "底部窗口的背景色(bounce 回弹区域),支持 HEX 颜色",
|
|
3212
|
+
"format": "color"
|
|
3213
|
+
},
|
|
3214
|
+
"backgroundColorContent": {
|
|
3215
|
+
"anyOf": [
|
|
3216
|
+
{
|
|
3217
|
+
"$ref": "#/definitions/HEXColor"
|
|
3218
|
+
},
|
|
3219
|
+
{
|
|
3220
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3221
|
+
}
|
|
3222
|
+
],
|
|
3223
|
+
"default": "#ffffff",
|
|
3224
|
+
"description": "页面容器背景色,支持 HEX 颜色\n\n会覆盖窗口背景色 backgroundColor,backgroundColor 仅在页面设置下拉刷新时才可能看到",
|
|
3225
|
+
"format": "color"
|
|
3226
|
+
},
|
|
3227
|
+
"backgroundColorTop": {
|
|
3228
|
+
"anyOf": [
|
|
3229
|
+
{
|
|
3230
|
+
"$ref": "#/definitions/HEXColor"
|
|
3231
|
+
},
|
|
3232
|
+
{
|
|
3233
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3234
|
+
}
|
|
3235
|
+
],
|
|
3236
|
+
"default": "#ffffff",
|
|
3237
|
+
"description": "顶部窗口的背景色(bounce 回弹区域),支持 HEX 颜色",
|
|
3238
|
+
"format": "color"
|
|
3239
|
+
},
|
|
3240
|
+
"backgroundTextStyle": {
|
|
3241
|
+
"anyOf": [
|
|
3242
|
+
{
|
|
3243
|
+
"const": "dark",
|
|
3244
|
+
"type": "string"
|
|
3245
|
+
},
|
|
3246
|
+
{
|
|
3247
|
+
"const": "light",
|
|
3248
|
+
"type": "string"
|
|
3249
|
+
},
|
|
3250
|
+
{
|
|
3251
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3252
|
+
}
|
|
3253
|
+
],
|
|
3254
|
+
"default": "dark",
|
|
3255
|
+
"description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
|
|
3256
|
+
},
|
|
3257
|
+
"bounces": {
|
|
3258
|
+
"default": false,
|
|
3259
|
+
"description": "是否开启回弹效果,优先级高于 allowsBounceVertical",
|
|
3260
|
+
"type": "boolean"
|
|
3261
|
+
},
|
|
3262
|
+
"disableScroll": {
|
|
3263
|
+
"default": false,
|
|
3264
|
+
"description": "设置为 true 则页面整体不能上下滚动(bounce 效果),只在页面配置中有效,在 globalStyle 中设置无效",
|
|
3265
|
+
"type": "boolean"
|
|
3266
|
+
},
|
|
3267
|
+
"disableSwipeBack": {
|
|
3268
|
+
"default": false,
|
|
3269
|
+
"description": "是否禁用滑动返回",
|
|
3270
|
+
"type": "boolean"
|
|
3271
|
+
},
|
|
3272
|
+
"enableBackToTop": {
|
|
3273
|
+
"default": false,
|
|
3274
|
+
"description": "点击系统状态栏滚动条是否返回顶部",
|
|
3275
|
+
"type": "boolean"
|
|
3276
|
+
},
|
|
3277
|
+
"enablePullDownRefresh": {
|
|
3278
|
+
"default": false,
|
|
3279
|
+
"description": "是否开启下拉刷新,详见 [页面生命周期](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)",
|
|
3280
|
+
"type": "boolean"
|
|
3281
|
+
},
|
|
3282
|
+
"enableUcssReset": {
|
|
3283
|
+
"default": true,
|
|
3284
|
+
"description": "是否启用 ucss 样式覆盖",
|
|
3285
|
+
"type": "boolean"
|
|
3286
|
+
},
|
|
3287
|
+
"h5": {
|
|
3288
|
+
"$ref": "#/definitions/H5",
|
|
3289
|
+
"description": "设置编译到 H5 平台的特定样式,配置项参考 [H5](https://uniapp.dcloud.net.cn/collocation/pages#h5)\n\n相应的类型是 H5"
|
|
3290
|
+
},
|
|
3291
|
+
"hideBottomNavigationIndicator": {
|
|
3292
|
+
"default": false,
|
|
3293
|
+
"description": "是否隐藏系统底部导航栏\n\n与 hideStatusBar 同时开启可实现页面全屏",
|
|
3294
|
+
"type": "boolean"
|
|
3295
|
+
},
|
|
3296
|
+
"hideStatusBar": {
|
|
3297
|
+
"default": false,
|
|
3298
|
+
"description": "是否隐藏系统顶部状态栏",
|
|
3299
|
+
"type": "boolean"
|
|
3300
|
+
},
|
|
3301
|
+
"leftWindow": {
|
|
3302
|
+
"default": true,
|
|
3303
|
+
"description": "当存在 leftWindow 时,默认是否显示 leftWindow,详见 [topWindow](https://uniapp.dcloud.net.cn/collocation/pages.html#topwindow)",
|
|
3304
|
+
"type": "boolean"
|
|
3305
|
+
},
|
|
3306
|
+
"maxWidth": {
|
|
3307
|
+
"description": "当浏览器可见区域宽度大于 maxWidth 时两侧留白,当小于等于 maxWidth 时页面铺满,单位为 px\n\n不同页面支持配置不同的 maxWidth\n\nmaxWidth = leftWindow(可选)+ page(页面主体)+ rightWindow(可选)\n\n使用时,页面内 fixed 元素需要使用 --window-left 和 --window-right 来保证布局位置正确",
|
|
3308
|
+
"type": "number"
|
|
3309
|
+
},
|
|
3310
|
+
"mp-alipay": {
|
|
3311
|
+
"$ref": "#/definitions/MpAlipay",
|
|
3312
|
+
"description": "设置编译到 mp-alipay 平台的特定样式,配置项参考 [MP-ALIPAY](https://uniapp.dcloud.net.cn/collocation/pages#mp-alipay)\n\n相应的类型是 MpAlipay"
|
|
3313
|
+
},
|
|
3314
|
+
"mp-baidu": {
|
|
3315
|
+
"$ref": "#/definitions/MpBaidu",
|
|
3316
|
+
"description": "设置编译到 mp-baidu 平台的特定样式,配置项参考 [MP-BAIDU](https://uniapp.dcloud.net.cn/collocation/pages.html#mp-baidu)\n\n相应的类型是 MpBaidu"
|
|
3317
|
+
},
|
|
3318
|
+
"mp-harmony": {
|
|
3319
|
+
"$ref": "#/definitions/MpHarmony",
|
|
3320
|
+
"description": "设置编译到 mp-harmony 平台的特定样式\n\n相应的类型是 MpHarmony"
|
|
3321
|
+
},
|
|
3322
|
+
"mp-jd": {
|
|
3323
|
+
"$ref": "#/definitions/MpJd",
|
|
3324
|
+
"description": "设置编译到 mp-jd 平台的特定样式\n\n相应的类型是 MpJd"
|
|
3325
|
+
},
|
|
3326
|
+
"mp-kuaishou": {
|
|
3327
|
+
"$ref": "#/definitions/MpKuaishou",
|
|
3328
|
+
"description": "设置编译到 mp-kuaishou 平台的特定样式\n\n相应的类型是 MpKuaishou"
|
|
3329
|
+
},
|
|
3330
|
+
"mp-lark": {
|
|
3331
|
+
"$ref": "#/definitions/MpLark",
|
|
3332
|
+
"description": "设置编译到 mp-lark 平台的特定样式\n\n相应的类型是 MpLark"
|
|
3333
|
+
},
|
|
3334
|
+
"mp-qq": {
|
|
3335
|
+
"$ref": "#/definitions/MpQq",
|
|
3336
|
+
"description": "设置编译到 mp-qq 平台的特定样式\n\n相应的类型是 MpQq"
|
|
3337
|
+
},
|
|
3338
|
+
"mp-toutiao": {
|
|
3339
|
+
"$ref": "#/definitions/MpToutiao",
|
|
3340
|
+
"description": "设置编译到 mp-toutiao 平台的特定样式\n\n相应的类型是 MpToutiao"
|
|
3341
|
+
},
|
|
3342
|
+
"mp-weixin": {
|
|
3343
|
+
"$ref": "#/definitions/MpWeixin",
|
|
3344
|
+
"description": "设置编译到 mp-weixin 平台的特定样式,配置项参考 [MP-WEIXIN](https://uniapp.dcloud.net.cn/collocation/pages#mp-weixin)\n\n相应的类型是 MpWeixin"
|
|
3345
|
+
},
|
|
3346
|
+
"mp-xhs": {
|
|
3347
|
+
"$ref": "#/definitions/MpXhs",
|
|
3348
|
+
"description": "设置编译到 mp-xhs 平台的特定样式\n\n相应的类型是 MpXhs"
|
|
3349
|
+
},
|
|
3350
|
+
"navigationBarBackgroundColor": {
|
|
3351
|
+
"anyOf": [
|
|
3352
|
+
{
|
|
3353
|
+
"$ref": "#/definitions/HEXColor"
|
|
3354
|
+
},
|
|
3355
|
+
{
|
|
3356
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3357
|
+
}
|
|
3358
|
+
],
|
|
3359
|
+
"description": "导航栏背景颜色(同状态栏背景色),支持 HEX 颜色",
|
|
3360
|
+
"format": "color"
|
|
3361
|
+
},
|
|
3362
|
+
"navigationBarShadow": {
|
|
3363
|
+
"additionalProperties": false,
|
|
3364
|
+
"description": "导航栏阴影,配置参考 [导航栏阴影](https://uniapp.dcloud.net.cn/collocation/pages#navigationbarshadow)\n\n微信/百度/头条小程序需要配置: \"disableScroll\": true\n\n支付宝小程序需要配置 \"allowsBounceVertical\": \"NO\"",
|
|
3365
|
+
"properties": {
|
|
3366
|
+
"colorType": {
|
|
3367
|
+
"description": "阴影颜色\n\n支持 grey、blue、green、orange、red、yellow",
|
|
3368
|
+
"enum": [
|
|
3369
|
+
"grey",
|
|
3370
|
+
"blue",
|
|
3371
|
+
"green",
|
|
3372
|
+
"orange",
|
|
3373
|
+
"red",
|
|
3374
|
+
"yellow"
|
|
3375
|
+
],
|
|
3376
|
+
"type": "string"
|
|
3377
|
+
}
|
|
3007
3378
|
},
|
|
3008
|
-
"description": "分包预下载规则",
|
|
3009
3379
|
"type": "object"
|
|
3010
3380
|
},
|
|
3381
|
+
"navigationBarTextStyle": {
|
|
3382
|
+
"anyOf": [
|
|
3383
|
+
{
|
|
3384
|
+
"const": "black",
|
|
3385
|
+
"type": "string"
|
|
3386
|
+
},
|
|
3387
|
+
{
|
|
3388
|
+
"const": "white",
|
|
3389
|
+
"type": "string"
|
|
3390
|
+
},
|
|
3391
|
+
{
|
|
3392
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3393
|
+
}
|
|
3394
|
+
],
|
|
3395
|
+
"default": "black",
|
|
3396
|
+
"description": "导航栏标题颜色及状态栏前景颜色,仅支持 \"black\" / \"white\""
|
|
3397
|
+
},
|
|
3398
|
+
"navigationBarTitleText": {
|
|
3399
|
+
"description": "导航栏标题文字内容",
|
|
3400
|
+
"type": "string"
|
|
3401
|
+
},
|
|
3402
|
+
"navigationStyle": {
|
|
3403
|
+
"default": "default",
|
|
3404
|
+
"description": "导航栏样式,仅支持 \"default\" / \"custom\"\n\n\"custom\" 即取消默认的原生导航栏,详看 [使用注意](https://uniapp.dcloud.net.cn/collocation/pages#customnav)",
|
|
3405
|
+
"enum": [
|
|
3406
|
+
"default",
|
|
3407
|
+
"custom"
|
|
3408
|
+
],
|
|
3409
|
+
"type": "string"
|
|
3410
|
+
},
|
|
3411
|
+
"onReachBottomDistance": {
|
|
3412
|
+
"default": 50,
|
|
3413
|
+
"description": "页面上拉触底事件触发时距页面底部距离,单位为 px,详见 [页面生命周期](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)",
|
|
3414
|
+
"type": "number"
|
|
3415
|
+
},
|
|
3416
|
+
"pageOrientation": {
|
|
3417
|
+
"default": "portrait",
|
|
3418
|
+
"description": "页面旋转设置\n\n\"auto\" 设备自适应\n\n\"portrait\" 竖向\n\n\"landscape\" 横向",
|
|
3419
|
+
"enum": [
|
|
3420
|
+
"auto",
|
|
3421
|
+
"portrait",
|
|
3422
|
+
"landscape"
|
|
3423
|
+
],
|
|
3424
|
+
"type": "string"
|
|
3425
|
+
},
|
|
3426
|
+
"rightWindow": {
|
|
3427
|
+
"default": true,
|
|
3428
|
+
"description": "当存在 rightWindow 时,默认是否显示 rightWindow,详见 [topWindow](https://uniapp.dcloud.net.cn/collocation/pages.html#topwindow)",
|
|
3429
|
+
"type": "boolean"
|
|
3430
|
+
},
|
|
3431
|
+
"swipeBackAsBackPress": {
|
|
3432
|
+
"default": false,
|
|
3433
|
+
"description": "是否将侧滑返回手势转为页面 onBackPress 事件\n\n仅在 disableSwipeBack 为 false 时生效",
|
|
3434
|
+
"type": "boolean"
|
|
3435
|
+
},
|
|
3436
|
+
"titleImage": {
|
|
3437
|
+
"description": "导航栏图片地址(替换当前文字标题)\n\n支付宝小程序内必须使用 https 图片链接地址",
|
|
3438
|
+
"type": "string"
|
|
3439
|
+
},
|
|
3440
|
+
"titlePenetrate": {
|
|
3441
|
+
"default": "NO",
|
|
3442
|
+
"description": "导航栏点击穿透",
|
|
3443
|
+
"enum": [
|
|
3444
|
+
"YES",
|
|
3445
|
+
"NO"
|
|
3446
|
+
],
|
|
3447
|
+
"type": "string"
|
|
3448
|
+
},
|
|
3449
|
+
"topWindow": {
|
|
3450
|
+
"default": true,
|
|
3451
|
+
"description": "当存在 topWindow 时,默认是否显示 topWindow,详见 [topWindow](https://uniapp.dcloud.net.cn/collocation/pages.html#topwindow)",
|
|
3452
|
+
"type": "boolean"
|
|
3453
|
+
},
|
|
3454
|
+
"transparentTitle": {
|
|
3455
|
+
"default": "none",
|
|
3456
|
+
"description": "导航栏整体(前景、背景)透明设置,仅支持 \"always\" / \"auto\" / \"none\"\n\n\"always\" 一直透明\n\n\"auto\" 滑动自适应\n\n\"none\" 不透明",
|
|
3457
|
+
"enum": [
|
|
3458
|
+
"always",
|
|
3459
|
+
"auto",
|
|
3460
|
+
"none"
|
|
3461
|
+
],
|
|
3462
|
+
"type": "string"
|
|
3463
|
+
},
|
|
3464
|
+
"usingComponents": {
|
|
3465
|
+
"additionalProperties": {
|
|
3466
|
+
"type": "string"
|
|
3467
|
+
},
|
|
3468
|
+
"description": "引用小程序组件,详见 [小程序组件](https://uniapp.dcloud.net.cn/tutorial/miniprogram-subject.html#%E5%B0%8F%E7%A8%8B%E5%BA%8F%E8%87%AA%E5%AE%9A%E4%B9%89%E7%BB%84%E4%BB%B6%E6%94%AF%E6%8C%81)",
|
|
3469
|
+
"type": "object"
|
|
3470
|
+
}
|
|
3471
|
+
},
|
|
3472
|
+
"type": "object"
|
|
3473
|
+
},
|
|
3474
|
+
"Pages": {
|
|
3475
|
+
"description": "设置页面路径及窗口表现\n\n文档中为必填,类型上保持可选,插件可由文件扫描自动生成",
|
|
3476
|
+
"items": {
|
|
3477
|
+
"$ref": "#/definitions/PageItem"
|
|
3478
|
+
},
|
|
3479
|
+
"type": "array"
|
|
3480
|
+
},
|
|
3481
|
+
"PagesConfig": {
|
|
3482
|
+
"description": "对 uni-app 进行全局配置,决定页面文件的路径、窗口样式、原生的导航栏、底部的原生 tabBar 等,类似微信小程序中 app.json 的页面管理部分\n\n注意定位权限申请等原属于 app.json 的内容,需要在 manifest 中配置",
|
|
3483
|
+
"properties": {
|
|
3484
|
+
"condition": {
|
|
3485
|
+
"$ref": "#/definitions/Condition",
|
|
3486
|
+
"description": "启动模式配置,仅开发期间生效"
|
|
3487
|
+
},
|
|
3488
|
+
"easycom": {
|
|
3489
|
+
"$ref": "#/definitions/EasyCom",
|
|
3490
|
+
"description": "组件自动引入规则"
|
|
3491
|
+
},
|
|
3492
|
+
"entryPagePath": {
|
|
3493
|
+
"description": "默认启动首页,新增于 HBuilderX 3.7.0",
|
|
3494
|
+
"type": "string"
|
|
3495
|
+
},
|
|
3496
|
+
"globalStyle": {
|
|
3497
|
+
"$ref": "#/definitions/GlobalStyle",
|
|
3498
|
+
"description": "设置默认页面的窗口表现"
|
|
3499
|
+
},
|
|
3500
|
+
"leftWindow": {
|
|
3501
|
+
"$ref": "#/definitions/TheWindow",
|
|
3502
|
+
"description": "大屏左侧窗口"
|
|
3503
|
+
},
|
|
3504
|
+
"pages": {
|
|
3505
|
+
"$ref": "#/definitions/Pages",
|
|
3506
|
+
"description": "设置页面路径及窗口表现\n\n文档中为必填,类型上保持可选,插件可由文件扫描自动生成"
|
|
3507
|
+
},
|
|
3508
|
+
"preloadRule": {
|
|
3509
|
+
"$ref": "#/definitions/PreloadRule",
|
|
3510
|
+
"description": "分包预下载规则"
|
|
3511
|
+
},
|
|
3011
3512
|
"rightWindow": {
|
|
3012
3513
|
"$ref": "#/definitions/TheWindow",
|
|
3013
3514
|
"description": "大屏右侧窗口"
|
|
@@ -3038,11 +3539,10 @@
|
|
|
3038
3539
|
"properties": {
|
|
3039
3540
|
"isSubpackage": {
|
|
3040
3541
|
"default": false,
|
|
3041
|
-
"description": "
|
|
3542
|
+
"description": "是否把 worker 打包为分包",
|
|
3042
3543
|
"type": "boolean"
|
|
3043
3544
|
},
|
|
3044
3545
|
"path": {
|
|
3045
|
-
"description": "`Worker` 代码放置的目录",
|
|
3046
3546
|
"type": "string"
|
|
3047
3547
|
}
|
|
3048
3548
|
},
|
|
@@ -3052,7 +3552,7 @@
|
|
|
3052
3552
|
"type": "object"
|
|
3053
3553
|
}
|
|
3054
3554
|
],
|
|
3055
|
-
"description": "
|
|
3555
|
+
"description": "worker 代码目录"
|
|
3056
3556
|
}
|
|
3057
3557
|
},
|
|
3058
3558
|
"type": "object"
|
|
@@ -3060,6 +3560,38 @@
|
|
|
3060
3560
|
"PercentageSize": {
|
|
3061
3561
|
"type": "string"
|
|
3062
3562
|
},
|
|
3563
|
+
"PreloadRule": {
|
|
3564
|
+
"additionalProperties": {
|
|
3565
|
+
"$ref": "#/definitions/PreloadRuleItem"
|
|
3566
|
+
},
|
|
3567
|
+
"description": "分包预下载规则",
|
|
3568
|
+
"type": "object"
|
|
3569
|
+
},
|
|
3570
|
+
"PreloadRuleItem": {
|
|
3571
|
+
"description": "进入页面后预下载分包的规则",
|
|
3572
|
+
"properties": {
|
|
3573
|
+
"network": {
|
|
3574
|
+
"default": "wifi",
|
|
3575
|
+
"description": "在指定网络下预下载\n\n\"all\" 不限网络\n\n\"wifi\" 仅 wifi 下预下载",
|
|
3576
|
+
"enum": [
|
|
3577
|
+
"all",
|
|
3578
|
+
"wifi"
|
|
3579
|
+
],
|
|
3580
|
+
"type": "string"
|
|
3581
|
+
},
|
|
3582
|
+
"packages": {
|
|
3583
|
+
"description": "进入页面后预下载分包的 root 或 name\n\n__APP__ 表示主包",
|
|
3584
|
+
"items": {
|
|
3585
|
+
"type": "string"
|
|
3586
|
+
},
|
|
3587
|
+
"type": "array"
|
|
3588
|
+
}
|
|
3589
|
+
},
|
|
3590
|
+
"required": [
|
|
3591
|
+
"packages"
|
|
3592
|
+
],
|
|
3593
|
+
"type": "object"
|
|
3594
|
+
},
|
|
3063
3595
|
"PxSize": {
|
|
3064
3596
|
"type": "string"
|
|
3065
3597
|
},
|
|
@@ -3067,39 +3599,23 @@
|
|
|
3067
3599
|
"type": "string"
|
|
3068
3600
|
},
|
|
3069
3601
|
"SubPackage": {
|
|
3070
|
-
"
|
|
3602
|
+
"description": "subPackages 数组的元素类型,即应用的分包",
|
|
3071
3603
|
"properties": {
|
|
3604
|
+
"independent": {
|
|
3605
|
+
"default": false,
|
|
3606
|
+
"description": "是否声明对应分包为独立分包",
|
|
3607
|
+
"type": "boolean"
|
|
3608
|
+
},
|
|
3072
3609
|
"pages": {
|
|
3073
|
-
"
|
|
3074
|
-
"
|
|
3075
|
-
"$ref": "#/definitions/PageMetaDatum"
|
|
3076
|
-
},
|
|
3077
|
-
"type": "array"
|
|
3610
|
+
"$ref": "#/definitions/Pages",
|
|
3611
|
+
"description": "分包由哪些页面组成,参数同 pages"
|
|
3078
3612
|
},
|
|
3079
3613
|
"plugins": {
|
|
3080
|
-
"
|
|
3081
|
-
"properties": {
|
|
3082
|
-
"export": {
|
|
3083
|
-
"type": "string"
|
|
3084
|
-
},
|
|
3085
|
-
"provider": {
|
|
3086
|
-
"type": "string"
|
|
3087
|
-
},
|
|
3088
|
-
"version": {
|
|
3089
|
-
"type": "string"
|
|
3090
|
-
}
|
|
3091
|
-
},
|
|
3092
|
-
"required": [
|
|
3093
|
-
"version",
|
|
3094
|
-
"provider"
|
|
3095
|
-
],
|
|
3096
|
-
"type": "object"
|
|
3097
|
-
},
|
|
3098
|
-
"description": "分包插件",
|
|
3614
|
+
"description": "分包的插件",
|
|
3099
3615
|
"type": "object"
|
|
3100
3616
|
},
|
|
3101
3617
|
"root": {
|
|
3102
|
-
"description": "
|
|
3618
|
+
"description": "分包的根目录",
|
|
3103
3619
|
"type": "string"
|
|
3104
3620
|
}
|
|
3105
3621
|
},
|
|
@@ -3110,12 +3626,14 @@
|
|
|
3110
3626
|
"type": "object"
|
|
3111
3627
|
},
|
|
3112
3628
|
"SubPackages": {
|
|
3629
|
+
"description": "分包加载配置,H5 不支持",
|
|
3113
3630
|
"items": {
|
|
3114
3631
|
"$ref": "#/definitions/SubPackage"
|
|
3115
3632
|
},
|
|
3116
3633
|
"type": "array"
|
|
3117
3634
|
},
|
|
3118
3635
|
"TabBar": {
|
|
3636
|
+
"description": "设置底部 tab 的表现",
|
|
3119
3637
|
"properties": {
|
|
3120
3638
|
"backgroundColor": {
|
|
3121
3639
|
"anyOf": [
|
|
@@ -3146,7 +3664,7 @@
|
|
|
3146
3664
|
},
|
|
3147
3665
|
"blurEffect": {
|
|
3148
3666
|
"default": "none",
|
|
3149
|
-
"description": "iOS 高斯模糊效果,参考 [使用说明](https://
|
|
3667
|
+
"description": "iOS 高斯模糊效果,参考 [使用说明](https://uniapp.dcloud.net.cn/tutorial/app-blureffect.html)",
|
|
3150
3668
|
"enum": [
|
|
3151
3669
|
"dark",
|
|
3152
3670
|
"extralight",
|
|
@@ -3155,6 +3673,18 @@
|
|
|
3155
3673
|
],
|
|
3156
3674
|
"type": "string"
|
|
3157
3675
|
},
|
|
3676
|
+
"borderColor": {
|
|
3677
|
+
"anyOf": [
|
|
3678
|
+
{
|
|
3679
|
+
"$ref": "#/definitions/HEXColor"
|
|
3680
|
+
},
|
|
3681
|
+
{
|
|
3682
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3683
|
+
}
|
|
3684
|
+
],
|
|
3685
|
+
"description": "tabBar 上边框的颜色,优先级高于 borderStyle",
|
|
3686
|
+
"format": "color"
|
|
3687
|
+
},
|
|
3158
3688
|
"borderStyle": {
|
|
3159
3689
|
"anyOf": [
|
|
3160
3690
|
{
|
|
@@ -3196,11 +3726,32 @@
|
|
|
3196
3726
|
"description": "是否启用自定义 tabBar,启用后需要在项目根目录创建 custom-tab-bar 目录,参考 https://opendocs.alipay.com/mini/03jry7",
|
|
3197
3727
|
"type": "boolean"
|
|
3198
3728
|
},
|
|
3729
|
+
"disableGlassSafeAreaAutoFit": {
|
|
3730
|
+
"default": false,
|
|
3731
|
+
"description": "是否禁用玻璃效果 tabBar 自动上推页面滚动内容",
|
|
3732
|
+
"type": "boolean"
|
|
3733
|
+
},
|
|
3199
3734
|
"fontSize": {
|
|
3200
3735
|
"default": "10px",
|
|
3201
3736
|
"description": "文字默认大小",
|
|
3202
3737
|
"type": "string"
|
|
3203
3738
|
},
|
|
3739
|
+
"glassEffect": {
|
|
3740
|
+
"default": false,
|
|
3741
|
+
"description": "是否开启玻璃效果 tabBar\n\niOS 26 及以上使用系统液态玻璃效果,iOS 26 以下降级为系统毛玻璃效果,启用后仅支持图片图标,不支持 iconfont\n\n鸿蒙平台为开启沉浸光感效果并叠加在页面内容之上,启用后在 7.0.0(26) 之上为沉浸光感效果且为胶囊形态,在 6.1.0(23) 之上为毛玻璃效果且为胶囊形态,在更低版本为普通毛玻璃效果\n\n启用后 tabBar 以悬浮方式覆盖在页面内容上方,页面排版高度包含 tabBar 覆盖区域",
|
|
3742
|
+
"type": "boolean"
|
|
3743
|
+
},
|
|
3744
|
+
"glassEffectMaterialLevel": {
|
|
3745
|
+
"default": "adaptive",
|
|
3746
|
+
"description": "鸿蒙平台沉浸光感效果的材质等级",
|
|
3747
|
+
"enum": [
|
|
3748
|
+
"exquisite",
|
|
3749
|
+
"gentle",
|
|
3750
|
+
"smooth",
|
|
3751
|
+
"adaptive"
|
|
3752
|
+
],
|
|
3753
|
+
"type": "string"
|
|
3754
|
+
},
|
|
3204
3755
|
"height": {
|
|
3205
3756
|
"default": "50px",
|
|
3206
3757
|
"description": "tabBar 默认高度",
|
|
@@ -3268,7 +3819,8 @@
|
|
|
3268
3819
|
"properties": {
|
|
3269
3820
|
"color": {
|
|
3270
3821
|
"$ref": "#/definitions/HEXColor",
|
|
3271
|
-
"description": "字体图标颜色"
|
|
3822
|
+
"description": "字体图标颜色",
|
|
3823
|
+
"format": "color"
|
|
3272
3824
|
},
|
|
3273
3825
|
"fontSize": {
|
|
3274
3826
|
"description": "字体图标字号,单位为 px",
|
|
@@ -3276,7 +3828,8 @@
|
|
|
3276
3828
|
},
|
|
3277
3829
|
"selectedColor": {
|
|
3278
3830
|
"$ref": "#/definitions/HEXColor",
|
|
3279
|
-
"description": "字体图标选中颜色"
|
|
3831
|
+
"description": "字体图标选中颜色",
|
|
3832
|
+
"format": "color"
|
|
3280
3833
|
},
|
|
3281
3834
|
"selectedText": {
|
|
3282
3835
|
"description": "选中后字库 Unicode 码",
|
|
@@ -3300,7 +3853,7 @@
|
|
|
3300
3853
|
"$ref": "#/definitions/ThemeVar"
|
|
3301
3854
|
}
|
|
3302
3855
|
],
|
|
3303
|
-
"description": "图片路径,icon 大小限制为 40 kb,建议尺寸为 81px * 81px\n\n当 position 为 \"top\" 时,此参数无效\n\n
|
|
3856
|
+
"description": "图片路径,icon 大小限制为 40 kb,建议尺寸为 81px * 81px\n\n当 position 为 \"top\" 时,此参数无效\n\n不支持网络图片,不支持字体图标\n\n支持 `@xxx` 主题变量:微信小程序 darkmode(themeLocation)下可按主题切换图标, uni-app 会原样透传该字段(官方文档表格只标注 String,但 darkmode 场景依赖主题变量)"
|
|
3304
3857
|
},
|
|
3305
3858
|
"iconfont": {
|
|
3306
3859
|
"$ref": "#/definitions/TabBarIconFont",
|
|
@@ -3319,14 +3872,15 @@
|
|
|
3319
3872
|
"$ref": "#/definitions/ThemeVar"
|
|
3320
3873
|
}
|
|
3321
3874
|
],
|
|
3322
|
-
"description": "选中时的图片路径,icon 大小限制为 40 kb,建议尺寸为 81px * 81px\n\n当 position 为 \"top\" 时,此参数无效\n\n
|
|
3875
|
+
"description": "选中时的图片路径,icon 大小限制为 40 kb,建议尺寸为 81px * 81px\n\n当 position 为 \"top\" 时,此参数无效\n\n不支持网络图片,不支持字体图标\n\n支持 `@xxx` 主题变量,同 iconPath 的 darkmode 说明"
|
|
3323
3876
|
},
|
|
3324
3877
|
"text": {
|
|
3325
3878
|
"description": "tab 上按钮文字,在 App 和 H5 平台为非必填,例如中间可放一个没有文字的 + 号图标",
|
|
3326
3879
|
"type": "string"
|
|
3327
3880
|
},
|
|
3328
3881
|
"visible": {
|
|
3329
|
-
"
|
|
3882
|
+
"default": true,
|
|
3883
|
+
"description": "该项是否显示",
|
|
3330
3884
|
"type": "boolean"
|
|
3331
3885
|
}
|
|
3332
3886
|
},
|
|
@@ -3365,33 +3919,25 @@
|
|
|
3365
3919
|
},
|
|
3366
3920
|
"width": {
|
|
3367
3921
|
"default": "80px",
|
|
3368
|
-
"description": "中间按钮的宽度,tabBar
|
|
3922
|
+
"description": "中间按钮的宽度,tabBar 其它项为减去此宽度后平分",
|
|
3369
3923
|
"type": "string"
|
|
3370
3924
|
}
|
|
3371
3925
|
},
|
|
3372
3926
|
"type": "object"
|
|
3373
3927
|
},
|
|
3374
3928
|
"TheWindow": {
|
|
3375
|
-
"
|
|
3929
|
+
"description": "leftWindow / topWindow / rightWindow 的类型",
|
|
3376
3930
|
"properties": {
|
|
3377
3931
|
"matchMedia": {
|
|
3378
|
-
"
|
|
3379
|
-
"description": "配置显示该窗口的规则,配置项参考 [matchMedia](https://uniapp.dcloud.net.cn/collocation/pages#matchmedia)"
|
|
3380
|
-
"properties": {
|
|
3381
|
-
"minWidth": {
|
|
3382
|
-
"default": 768,
|
|
3383
|
-
"description": "当设备可见区域宽度 >= minWidth 时,显示该 window",
|
|
3384
|
-
"type": "number"
|
|
3385
|
-
}
|
|
3386
|
-
},
|
|
3387
|
-
"type": "object"
|
|
3932
|
+
"$ref": "#/definitions/MatchMedia",
|
|
3933
|
+
"description": "配置显示该窗口的规则,配置项参考 [matchMedia](https://uniapp.dcloud.net.cn/collocation/pages#matchmedia)"
|
|
3388
3934
|
},
|
|
3389
3935
|
"path": {
|
|
3390
3936
|
"description": "配置页面路径",
|
|
3391
3937
|
"type": "string"
|
|
3392
3938
|
},
|
|
3393
3939
|
"style": {
|
|
3394
|
-
"$ref": "#/definitions/
|
|
3940
|
+
"$ref": "#/definitions/PageStyle",
|
|
3395
3941
|
"description": "配置页面窗口表现,配置项参考 [pageStyle](https://uniapp.dcloud.net.cn/collocation/pages#style)"
|
|
3396
3942
|
}
|
|
3397
3943
|
},
|
|
@@ -3419,6 +3965,10 @@
|
|
|
3419
3965
|
"description": "自定义按钮背景色,仅在标题栏 type 为 \"transparent\" 时生效,支持 HEX 和 RGBA 颜色",
|
|
3420
3966
|
"format": "color"
|
|
3421
3967
|
},
|
|
3968
|
+
"badgeText": {
|
|
3969
|
+
"description": "自定义按钮上显示的角标文本,最多显示 3 个字符,超过则显示为 ...",
|
|
3970
|
+
"type": "string"
|
|
3971
|
+
},
|
|
3422
3972
|
"color": {
|
|
3423
3973
|
"$ref": "#/definitions/HEXColor",
|
|
3424
3974
|
"default": "与标题文字样式一样",
|
|
@@ -3505,7 +4055,7 @@
|
|
|
3505
4055
|
"type": "object"
|
|
3506
4056
|
},
|
|
3507
4057
|
"UniIdRouter": {
|
|
3508
|
-
"
|
|
4058
|
+
"description": "自动跳转相关配置,新增于 HBuilderX 3.5.0",
|
|
3509
4059
|
"properties": {
|
|
3510
4060
|
"loginPage": {
|
|
3511
4061
|
"description": "登录页面路径",
|
|
@@ -3515,7 +4065,7 @@
|
|
|
3515
4065
|
"type": "string"
|
|
3516
4066
|
},
|
|
3517
4067
|
"needLogin": {
|
|
3518
|
-
"description": "
|
|
4068
|
+
"description": "需要登录才可访问的页面列表,可以使用正则语法",
|
|
3519
4069
|
"examples": [
|
|
3520
4070
|
[
|
|
3521
4071
|
"pages/detail/.*"
|
|
@@ -3528,14 +4078,10 @@
|
|
|
3528
4078
|
},
|
|
3529
4079
|
"resToLogin": {
|
|
3530
4080
|
"default": true,
|
|
3531
|
-
"description": "
|
|
4081
|
+
"description": "是否自动解析云对象及 clientDB 的错误码,如果是客户端 token 不正确或 token 过期则自动跳转配置的登录页面,",
|
|
3532
4082
|
"type": "boolean"
|
|
3533
4083
|
}
|
|
3534
4084
|
},
|
|
3535
|
-
"required": [
|
|
3536
|
-
"loginPage",
|
|
3537
|
-
"needLogin"
|
|
3538
|
-
],
|
|
3539
4085
|
"type": "object"
|
|
3540
4086
|
}
|
|
3541
4087
|
}
|