@uni-helper/pages-json-schema 0.4.9 → 0.5.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 +24 -1
- package/package.json +9 -9
- package/schema.json +441 -178
package/README.md
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
# @uni-helper/pages-json-schema
|
|
2
2
|
|
|
3
|
+
<p style="text-align: center">
|
|
4
|
+
<a href="https://github.com/uni-helper/vite-plugin-uni-pages/stargazers"><img src="https://img.shields.io/github/stars/uni-helper/vite-plugin-uni-pages?colorA=005947&colorB=eee&style=for-the-badge" alt="Stars"></a>
|
|
5
|
+
<a href="https://npmx.dev/package/@uni-helper/pages-json-schema"><img src="https://img.shields.io/npm/dm/@uni-helper/pages-json-schema?colorA=005947&colorB=eee&style=for-the-badge" alt="Downloads"></a>
|
|
6
|
+
<a href="https://npmx.dev/package/@uni-helper/pages-json-schema"><img src="https://img.shields.io/npm/v/@uni-helper/pages-json-schema?colorA=005947&colorB=eee&style=for-the-badge" alt="NPM Version"></a>
|
|
7
|
+
</p>
|
|
8
|
+
<p style="text-align: center">
|
|
9
|
+
<a href="https://github.com/kejunmao"><img src="https://img.shields.io/badge/Author-KeJun-blue?style=for-the-badge" alt="Author"></a>
|
|
10
|
+
<a href="https://github.com/ModyQyW"><img src="https://img.shields.io/badge/Maintainer-ModyQyW-blue?style=for-the-badge" alt="Author"></a>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
3
13
|
为 uni-app 的 `pages.json` 提供 schema。
|
|
4
14
|
|
|
5
|
-
不想看文档?直接问 AI 🤖 <a href="https://deepwiki.com/uni-helper/vite-plugin-uni-pages"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>
|
|
15
|
+
不想看文档?直接问 AI 🤖 <a href="https://deepwiki.com/uni-helper/vite-plugin-uni-pages"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>
|
|
16
|
+
|
|
17
|
+
> **请考虑持续[赞助](https://github.com/ModyQyW/sponsors)以维持该项目的持续健康发展,非常感谢!🙏**
|
|
6
18
|
|
|
7
19
|
## 安装
|
|
8
20
|
|
|
@@ -23,3 +35,14 @@ console.log(PagesSchema)
|
|
|
23
35
|
// "definitions": {...}
|
|
24
36
|
// }
|
|
25
37
|
```
|
|
38
|
+
|
|
39
|
+
## 关联项目
|
|
40
|
+
|
|
41
|
+
- [@uni-helper/vite-plugin-uni-pages](https://github.com/uni-helper/vite-plugin-uni-pages/tree/main/packages/core) - 使用 TypeScript 编写 uni-app 的 pages.json,支持约定式路由
|
|
42
|
+
- [@uni-helper/pages-json-schema](https://github.com/uni-helper/vite-plugin-uni-pages/tree/main/packages/schema) - 为 uni-app 的 pages.json 提供 schema
|
|
43
|
+
- [@uni-helper/uni-pages-types](https://github.com/uni-helper/vite-plugin-uni-pages/tree/main/packages/types) - 为 uni-app 的 pages.json 提供 TypeScript 类型
|
|
44
|
+
- [uni-helper/vite-plugin-uni-manifest](https://github.com/uni-helper/vite-plugin-uni-manifest) - 使用 TypeScript 来编写 uni-app 的 manifest.json
|
|
45
|
+
- [uni-helper/vite-plugin-uni-platform](https://github.com/uni-helper/vite-plugin-uni-platform) - 基于文件名 (*.<h5|mp-weixin|app>.*) 的按平台编译插件
|
|
46
|
+
- [uni-helper/vite-plugin-uni-platform-modifier](https://github.com/uni-helper/vite-plugin-uni-platform-modifier) - 为属性、指令提供平台修饰符并按需编译
|
|
47
|
+
- [uni-helper/vite-plugin-uni-layouts](https://github.com/uni-helper/vite-plugin-uni-layouts) - 为 Vite 下的 uni-app 提供类 nuxt 的 layouts 系统
|
|
48
|
+
- [uni-ku/root](https://github.com/uni-ku/root) - 解决 uni-app 无法使用根部组件问题
|
package/package.json
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uni-helper/pages-json-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Schema for uni-app pages.json",
|
|
5
5
|
"author": "KeJun",
|
|
6
|
-
"maintainers": [
|
|
7
|
-
{
|
|
8
|
-
"email": "wurui.dev@gmail.com",
|
|
9
|
-
"name": "ModyQyW",
|
|
10
|
-
"url": "https://modyyw.top"
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
6
|
"license": "MIT",
|
|
14
7
|
"funding": [
|
|
15
8
|
"https://afdian.net/a/kejun",
|
|
@@ -24,11 +17,18 @@
|
|
|
24
17
|
"keywords": [
|
|
25
18
|
"jsonschema"
|
|
26
19
|
],
|
|
20
|
+
"maintainers": [
|
|
21
|
+
{
|
|
22
|
+
"name": "ModyQyW",
|
|
23
|
+
"email": "wurui.dev@gmail.com",
|
|
24
|
+
"url": "https://modyyw.top"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"ts-json-schema-generator": "^2.9.0"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"build": "ts-json-schema-generator -p \"../types/src/
|
|
31
|
+
"build": "ts-json-schema-generator -p \"../types/src/index.ts\" -t \"PagesConfig\" -o \"schema.json\" --no-type-check",
|
|
32
32
|
"build-post": "exit 0",
|
|
33
33
|
"dev": "pnpm build"
|
|
34
34
|
}
|
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": [
|
|
@@ -1138,18 +1138,15 @@
|
|
|
1138
1138
|
"type": "object"
|
|
1139
1139
|
},
|
|
1140
1140
|
"Condition": {
|
|
1141
|
-
"
|
|
1141
|
+
"description": "启动模式配置",
|
|
1142
1142
|
"properties": {
|
|
1143
1143
|
"current": {
|
|
1144
1144
|
"description": "当前激活的模式,list 节点的索引值",
|
|
1145
1145
|
"type": "number"
|
|
1146
1146
|
},
|
|
1147
1147
|
"list": {
|
|
1148
|
-
"
|
|
1149
|
-
"
|
|
1150
|
-
"$ref": "#/definitions/ConditionItem"
|
|
1151
|
-
},
|
|
1152
|
-
"type": "array"
|
|
1148
|
+
"$ref": "#/definitions/ConditionList",
|
|
1149
|
+
"description": "启动模式列表"
|
|
1153
1150
|
}
|
|
1154
1151
|
},
|
|
1155
1152
|
"required": [
|
|
@@ -1158,8 +1155,13 @@
|
|
|
1158
1155
|
],
|
|
1159
1156
|
"type": "object"
|
|
1160
1157
|
},
|
|
1161
|
-
"
|
|
1162
|
-
"
|
|
1158
|
+
"ConditionList": {
|
|
1159
|
+
"items": {
|
|
1160
|
+
"$ref": "#/definitions/ConditionListItem"
|
|
1161
|
+
},
|
|
1162
|
+
"type": "array"
|
|
1163
|
+
},
|
|
1164
|
+
"ConditionListItem": {
|
|
1163
1165
|
"properties": {
|
|
1164
1166
|
"name": {
|
|
1165
1167
|
"description": "启动模式名称",
|
|
@@ -1182,6 +1184,7 @@
|
|
|
1182
1184
|
},
|
|
1183
1185
|
"EasyCom": {
|
|
1184
1186
|
"additionalProperties": false,
|
|
1187
|
+
"description": "组件自动引入规则",
|
|
1185
1188
|
"properties": {
|
|
1186
1189
|
"autoscan": {
|
|
1187
1190
|
"default": true,
|
|
@@ -1199,6 +1202,7 @@
|
|
|
1199
1202
|
"type": "object"
|
|
1200
1203
|
},
|
|
1201
1204
|
"GlobalStyle": {
|
|
1205
|
+
"description": "globalStyle 节点的类型,用于设置应用的状态栏、导航条、标题、窗口背景色等",
|
|
1202
1206
|
"properties": {
|
|
1203
1207
|
"allowsBounceVertical": {
|
|
1204
1208
|
"default": "YES",
|
|
@@ -1250,7 +1254,19 @@
|
|
|
1250
1254
|
}
|
|
1251
1255
|
],
|
|
1252
1256
|
"default": "#ffffff",
|
|
1253
|
-
"description": "底部窗口的背景色(bounce
|
|
1257
|
+
"description": "底部窗口的背景色(bounce 回弹区域),支持 HEX 颜色",
|
|
1258
|
+
"format": "color"
|
|
1259
|
+
},
|
|
1260
|
+
"backgroundColorContent": {
|
|
1261
|
+
"anyOf": [
|
|
1262
|
+
{
|
|
1263
|
+
"$ref": "#/definitions/HEXColor"
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1267
|
+
}
|
|
1268
|
+
],
|
|
1269
|
+
"description": "页面容器背景色,支持 HEX 颜色",
|
|
1254
1270
|
"format": "color"
|
|
1255
1271
|
},
|
|
1256
1272
|
"backgroundColorTop": {
|
|
@@ -1263,7 +1279,7 @@
|
|
|
1263
1279
|
}
|
|
1264
1280
|
],
|
|
1265
1281
|
"default": "#ffffff",
|
|
1266
|
-
"description": "顶部窗口的背景色(bounce
|
|
1282
|
+
"description": "顶部窗口的背景色(bounce 回弹区域),支持 HEX 颜色",
|
|
1267
1283
|
"format": "color"
|
|
1268
1284
|
},
|
|
1269
1285
|
"backgroundTextStyle": {
|
|
@@ -1283,16 +1299,6 @@
|
|
|
1283
1299
|
"default": "dark",
|
|
1284
1300
|
"description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
|
|
1285
1301
|
},
|
|
1286
|
-
"disableScroll": {
|
|
1287
|
-
"default": false,
|
|
1288
|
-
"description": "设置为 true 则页面整体不能上下滚动(bounce 效果),只在页面配置中有效,在 globalStyle 中设置无效",
|
|
1289
|
-
"type": "boolean"
|
|
1290
|
-
},
|
|
1291
|
-
"disableSwipeBack": {
|
|
1292
|
-
"default": false,
|
|
1293
|
-
"description": "是否禁用滑动返回",
|
|
1294
|
-
"type": "boolean"
|
|
1295
|
-
},
|
|
1296
1302
|
"dynamicRpx": {
|
|
1297
1303
|
"default": false,
|
|
1298
1304
|
"description": "是否使用动态 rpx,屏幕大小变化会重新渲染 rpx",
|
|
@@ -1318,11 +1324,11 @@
|
|
|
1318
1324
|
},
|
|
1319
1325
|
"mp-alipay": {
|
|
1320
1326
|
"$ref": "#/definitions/MpAlipay",
|
|
1321
|
-
"description": "设置编译到 mp-alipay 平台的特定样式,配置项参考 [MP-ALIPAY](https://uniapp.dcloud.net.cn/collocation/pages#mp-alipay)
|
|
1327
|
+
"description": "设置编译到 mp-alipay 平台的特定样式,配置项参考 [MP-ALIPAY](https://uniapp.dcloud.net.cn/collocation/pages#mp-alipay)\n\n相应的类型是 MpAlipay"
|
|
1322
1328
|
},
|
|
1323
1329
|
"mp-baidu": {
|
|
1324
1330
|
"$ref": "#/definitions/MpBaidu",
|
|
1325
|
-
"description": "设置编译到 mp-baidu 平台的特定样式,配置项参考 [MP-BAIDU](https://uniapp.dcloud.net.cn/collocation/pages.html#mp-baidu)
|
|
1331
|
+
"description": "设置编译到 mp-baidu 平台的特定样式,配置项参考 [MP-BAIDU](https://uniapp.dcloud.net.cn/collocation/pages.html#mp-baidu)\n\n相应的类型是 MpBaidu"
|
|
1326
1332
|
},
|
|
1327
1333
|
"mp-harmony": {
|
|
1328
1334
|
"$ref": "#/definitions/MpHarmony",
|
|
@@ -1346,11 +1352,11 @@
|
|
|
1346
1352
|
},
|
|
1347
1353
|
"mp-toutiao": {
|
|
1348
1354
|
"$ref": "#/definitions/MpToutiao",
|
|
1349
|
-
"description": "设置编译到 mp-toutiao
|
|
1355
|
+
"description": "设置编译到 mp-toutiao 平台的特定样式\n\n相应的类型是 MpToutiao"
|
|
1350
1356
|
},
|
|
1351
1357
|
"mp-weixin": {
|
|
1352
1358
|
"$ref": "#/definitions/MpWeixin",
|
|
1353
|
-
"description": "设置编译到 mp-weixin 平台的特定样式,配置项参考 [MP-WEIXIN](https://uniapp.dcloud.net.cn/collocation/pages#mp-weixin)
|
|
1359
|
+
"description": "设置编译到 mp-weixin 平台的特定样式,配置项参考 [MP-WEIXIN](https://uniapp.dcloud.net.cn/collocation/pages#mp-weixin)\n\n相应的类型是 MpWeixin"
|
|
1354
1360
|
},
|
|
1355
1361
|
"mp-xhs": {
|
|
1356
1362
|
"$ref": "#/definitions/MpXhs",
|
|
@@ -1368,25 +1374,6 @@
|
|
|
1368
1374
|
"description": "导航栏背景颜色(同状态栏背景色),支持 HEX 颜色",
|
|
1369
1375
|
"format": "color"
|
|
1370
1376
|
},
|
|
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
1377
|
"navigationBarTextStyle": {
|
|
1391
1378
|
"anyOf": [
|
|
1392
1379
|
{
|
|
@@ -1476,7 +1463,7 @@
|
|
|
1476
1463
|
},
|
|
1477
1464
|
"transparentTitle": {
|
|
1478
1465
|
"default": "none",
|
|
1479
|
-
"description": "导航栏整体(前景、背景)透明设置,仅支持 \"always\" / \"auto\" / \"none\n\n\"always\" 一直透明\n\n\"auto\" 滑动自适应\n\n\"none\" 不透明",
|
|
1466
|
+
"description": "导航栏整体(前景、背景)透明设置,仅支持 \"always\" / \"auto\" / \"none\"\n\n\"always\" 一直透明\n\n\"auto\" 滑动自适应\n\n\"none\" 不透明",
|
|
1480
1467
|
"enum": [
|
|
1481
1468
|
"always",
|
|
1482
1469
|
"auto",
|
|
@@ -1497,12 +1484,13 @@
|
|
|
1497
1484
|
"H5": {
|
|
1498
1485
|
"properties": {
|
|
1499
1486
|
"pullToRefresh": {
|
|
1500
|
-
"description": "下拉刷新,详见 [下拉刷新](https://uniapp.dcloud.net.cn/collocation/pages#h5-pulltorefresh)",
|
|
1487
|
+
"description": "下拉刷新,详见 [下拉刷新](https://uniapp.dcloud.net.cn/collocation/pages#h5-pulltorefresh)\n\nh5 平台下拉刷新动画,只有 circle 类型",
|
|
1501
1488
|
"properties": {
|
|
1502
1489
|
"color": {
|
|
1503
1490
|
"$ref": "#/definitions/HEXColor",
|
|
1504
1491
|
"default": "#2BD009",
|
|
1505
|
-
"description": "下拉刷新控件颜色,支持 HEX 颜色"
|
|
1492
|
+
"description": "下拉刷新控件颜色,支持 HEX 颜色",
|
|
1493
|
+
"format": "color"
|
|
1506
1494
|
},
|
|
1507
1495
|
"offset": {
|
|
1508
1496
|
"anyOf": [
|
|
@@ -1514,7 +1502,7 @@
|
|
|
1514
1502
|
}
|
|
1515
1503
|
],
|
|
1516
1504
|
"default": "0px",
|
|
1517
|
-
"description": "
|
|
1505
|
+
"description": "下拉刷新控件的起始位置,支持单位为 px 的逻辑像素值或百分比"
|
|
1518
1506
|
}
|
|
1519
1507
|
},
|
|
1520
1508
|
"type": "object"
|
|
@@ -1534,7 +1522,7 @@
|
|
|
1534
1522
|
"format": "color"
|
|
1535
1523
|
},
|
|
1536
1524
|
"buttons": {
|
|
1537
|
-
"description": "自定义按钮,详见 [自定义按钮](https://uniapp.dcloud.net.cn/collocation/pages#
|
|
1525
|
+
"description": "自定义按钮,详见 [自定义按钮](https://uniapp.dcloud.net.cn/collocation/pages#h5-titlenview-buttons)",
|
|
1538
1526
|
"items": {
|
|
1539
1527
|
"$ref": "#/definitions/TitleNViewButton"
|
|
1540
1528
|
},
|
|
@@ -1629,8 +1617,20 @@
|
|
|
1629
1617
|
"HEXColor": {
|
|
1630
1618
|
"type": "string"
|
|
1631
1619
|
},
|
|
1620
|
+
"MatchMedia": {
|
|
1621
|
+
"additionalProperties": false,
|
|
1622
|
+
"description": "配置显示该窗口的规则",
|
|
1623
|
+
"properties": {
|
|
1624
|
+
"minWidth": {
|
|
1625
|
+
"default": 768,
|
|
1626
|
+
"description": "当设备可见区域宽度 >= minWidth 时,显示该 window",
|
|
1627
|
+
"type": "number"
|
|
1628
|
+
}
|
|
1629
|
+
},
|
|
1630
|
+
"type": "object"
|
|
1631
|
+
},
|
|
1632
1632
|
"MpAlipay": {
|
|
1633
|
-
"description": "设置编译到 mp-alipay 平台的特定样式,配置项参考
|
|
1633
|
+
"description": "设置编译到 mp-alipay 平台的特定样式,配置项参考 <https://opendocs.alipay.com/mini/framework/app-json#window>\n\n相应的类型是 MpAlipay",
|
|
1634
1634
|
"properties": {
|
|
1635
1635
|
"allowsBounceVertical": {
|
|
1636
1636
|
"default": "YES",
|
|
@@ -1659,7 +1659,7 @@
|
|
|
1659
1659
|
"format": "color"
|
|
1660
1660
|
},
|
|
1661
1661
|
"backgroundImageUrl": {
|
|
1662
|
-
"description": "
|
|
1662
|
+
"description": "下拉露出显示背景图的链接",
|
|
1663
1663
|
"type": "string"
|
|
1664
1664
|
},
|
|
1665
1665
|
"defaultTitle": {
|
|
@@ -1716,11 +1716,19 @@
|
|
|
1716
1716
|
"type": "string"
|
|
1717
1717
|
},
|
|
1718
1718
|
"titleBarColor": {
|
|
1719
|
-
"
|
|
1720
|
-
|
|
1719
|
+
"anyOf": [
|
|
1720
|
+
{
|
|
1721
|
+
"$ref": "#/definitions/HEXColor"
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1725
|
+
}
|
|
1726
|
+
],
|
|
1727
|
+
"description": "导航栏背景色,支持 HEX 颜色",
|
|
1728
|
+
"format": "color"
|
|
1721
1729
|
},
|
|
1722
1730
|
"titleImage": {
|
|
1723
|
-
"description": "
|
|
1731
|
+
"description": "导航栏图片地址",
|
|
1724
1732
|
"type": "string"
|
|
1725
1733
|
},
|
|
1726
1734
|
"titlePenetrate": {
|
|
@@ -1746,7 +1754,7 @@
|
|
|
1746
1754
|
"type": "object"
|
|
1747
1755
|
},
|
|
1748
1756
|
"MpBaidu": {
|
|
1749
|
-
"description": "设置编译到 mp-baidu 平台的特定样式,配置项参考
|
|
1757
|
+
"description": "设置编译到 mp-baidu 平台的特定样式,配置项参考 <https://smartprogram.baidu.com/docs/develop/framework/process/#window>\n\n相应的类型是 MpBaidu",
|
|
1750
1758
|
"properties": {
|
|
1751
1759
|
"backgroundColor": {
|
|
1752
1760
|
"anyOf": [
|
|
@@ -1770,7 +1778,8 @@
|
|
|
1770
1778
|
}
|
|
1771
1779
|
],
|
|
1772
1780
|
"default": "#FFFFFF",
|
|
1773
|
-
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
1781
|
+
"description": "底部窗口的背景色,仅 iOS 支持",
|
|
1782
|
+
"format": "color"
|
|
1774
1783
|
},
|
|
1775
1784
|
"backgroundColorTop": {
|
|
1776
1785
|
"anyOf": [
|
|
@@ -1782,7 +1791,8 @@
|
|
|
1782
1791
|
}
|
|
1783
1792
|
],
|
|
1784
1793
|
"default": "#FFFFFF",
|
|
1785
|
-
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
1794
|
+
"description": "顶部窗口的背景色,仅 iOS 支持",
|
|
1795
|
+
"format": "color"
|
|
1786
1796
|
},
|
|
1787
1797
|
"backgroundTextStyle": {
|
|
1788
1798
|
"anyOf": [
|
|
@@ -1889,7 +1899,8 @@
|
|
|
1889
1899
|
}
|
|
1890
1900
|
],
|
|
1891
1901
|
"default": "#FFFFFF",
|
|
1892
|
-
"description": "窗口的背景色,支持 HEX 颜色"
|
|
1902
|
+
"description": "窗口的背景色,支持 HEX 颜色",
|
|
1903
|
+
"format": "color"
|
|
1893
1904
|
},
|
|
1894
1905
|
"backgroundTextStyle": {
|
|
1895
1906
|
"anyOf": [
|
|
@@ -1968,7 +1979,8 @@
|
|
|
1968
1979
|
}
|
|
1969
1980
|
],
|
|
1970
1981
|
"default": "#FFFFFF",
|
|
1971
|
-
"description": "下拉窗口的背景色,不是页面的背景颜色"
|
|
1982
|
+
"description": "下拉窗口的背景色,不是页面的背景颜色",
|
|
1983
|
+
"format": "color"
|
|
1972
1984
|
},
|
|
1973
1985
|
"backgroundColorBottom": {
|
|
1974
1986
|
"anyOf": [
|
|
@@ -1980,7 +1992,8 @@
|
|
|
1980
1992
|
}
|
|
1981
1993
|
],
|
|
1982
1994
|
"default": "#FFFFFF",
|
|
1983
|
-
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
1995
|
+
"description": "底部窗口的背景色,仅 iOS 支持",
|
|
1996
|
+
"format": "color"
|
|
1984
1997
|
},
|
|
1985
1998
|
"backgroundColorTop": {
|
|
1986
1999
|
"anyOf": [
|
|
@@ -1992,7 +2005,8 @@
|
|
|
1992
2005
|
}
|
|
1993
2006
|
],
|
|
1994
2007
|
"default": "#FFFFFF",
|
|
1995
|
-
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
2008
|
+
"description": "顶部窗口的背景色,仅 iOS 支持",
|
|
2009
|
+
"format": "color"
|
|
1996
2010
|
},
|
|
1997
2011
|
"backgroundTextStyle": {
|
|
1998
2012
|
"anyOf": [
|
|
@@ -2080,7 +2094,8 @@
|
|
|
2080
2094
|
}
|
|
2081
2095
|
],
|
|
2082
2096
|
"default": "#FFFFFF",
|
|
2083
|
-
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2097
|
+
"description": "窗口的背景色,支持 HEX 颜色",
|
|
2098
|
+
"format": "color"
|
|
2084
2099
|
},
|
|
2085
2100
|
"backgroundColorBottom": {
|
|
2086
2101
|
"anyOf": [
|
|
@@ -2092,7 +2107,8 @@
|
|
|
2092
2107
|
}
|
|
2093
2108
|
],
|
|
2094
2109
|
"default": "#FFFFFF",
|
|
2095
|
-
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
2110
|
+
"description": "底部窗口的背景色,仅 iOS 支持",
|
|
2111
|
+
"format": "color"
|
|
2096
2112
|
},
|
|
2097
2113
|
"backgroundColorTop": {
|
|
2098
2114
|
"anyOf": [
|
|
@@ -2104,7 +2120,8 @@
|
|
|
2104
2120
|
}
|
|
2105
2121
|
],
|
|
2106
2122
|
"default": "#FFFFFF",
|
|
2107
|
-
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
2123
|
+
"description": "顶部窗口的背景色,仅 iOS 支持",
|
|
2124
|
+
"format": "color"
|
|
2108
2125
|
},
|
|
2109
2126
|
"backgroundTextStyle": {
|
|
2110
2127
|
"anyOf": [
|
|
@@ -2137,7 +2154,7 @@
|
|
|
2137
2154
|
"$ref": "#/definitions/ThemeVar"
|
|
2138
2155
|
}
|
|
2139
2156
|
],
|
|
2140
|
-
"default": "#
|
|
2157
|
+
"default": "#ffffff",
|
|
2141
2158
|
"description": "导航栏背景颜色,支持 HEX 颜色",
|
|
2142
2159
|
"format": "color"
|
|
2143
2160
|
},
|
|
@@ -2207,7 +2224,8 @@
|
|
|
2207
2224
|
}
|
|
2208
2225
|
],
|
|
2209
2226
|
"default": "#FFFFFF",
|
|
2210
|
-
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2227
|
+
"description": "窗口的背景色,支持 HEX 颜色",
|
|
2228
|
+
"format": "color"
|
|
2211
2229
|
},
|
|
2212
2230
|
"backgroundColorBottom": {
|
|
2213
2231
|
"anyOf": [
|
|
@@ -2219,7 +2237,8 @@
|
|
|
2219
2237
|
}
|
|
2220
2238
|
],
|
|
2221
2239
|
"default": "#FFFFFF",
|
|
2222
|
-
"description": "底部窗口的背景色"
|
|
2240
|
+
"description": "底部窗口的背景色",
|
|
2241
|
+
"format": "color"
|
|
2223
2242
|
},
|
|
2224
2243
|
"backgroundColorTop": {
|
|
2225
2244
|
"anyOf": [
|
|
@@ -2231,7 +2250,8 @@
|
|
|
2231
2250
|
}
|
|
2232
2251
|
],
|
|
2233
2252
|
"default": "#FFFFFF",
|
|
2234
|
-
"description": "顶部窗口的背景色"
|
|
2253
|
+
"description": "顶部窗口的背景色",
|
|
2254
|
+
"format": "color"
|
|
2235
2255
|
},
|
|
2236
2256
|
"backgroundTextStyle": {
|
|
2237
2257
|
"anyOf": [
|
|
@@ -2329,7 +2349,8 @@
|
|
|
2329
2349
|
}
|
|
2330
2350
|
],
|
|
2331
2351
|
"default": "#FFFFFF",
|
|
2332
|
-
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2352
|
+
"description": "窗口的背景色,支持 HEX 颜色",
|
|
2353
|
+
"format": "color"
|
|
2333
2354
|
},
|
|
2334
2355
|
"backgroundColorBottom": {
|
|
2335
2356
|
"anyOf": [
|
|
@@ -2341,7 +2362,8 @@
|
|
|
2341
2362
|
}
|
|
2342
2363
|
],
|
|
2343
2364
|
"default": "#FFFFFF",
|
|
2344
|
-
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
2365
|
+
"description": "底部窗口的背景色,仅 iOS 支持",
|
|
2366
|
+
"format": "color"
|
|
2345
2367
|
},
|
|
2346
2368
|
"backgroundColorTop": {
|
|
2347
2369
|
"anyOf": [
|
|
@@ -2353,7 +2375,8 @@
|
|
|
2353
2375
|
}
|
|
2354
2376
|
],
|
|
2355
2377
|
"default": "#FFFFFF",
|
|
2356
|
-
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
2378
|
+
"description": "顶部窗口的背景色,仅 iOS 支持",
|
|
2379
|
+
"format": "color"
|
|
2357
2380
|
},
|
|
2358
2381
|
"backgroundTextStyle": {
|
|
2359
2382
|
"anyOf": [
|
|
@@ -2451,7 +2474,8 @@
|
|
|
2451
2474
|
}
|
|
2452
2475
|
],
|
|
2453
2476
|
"default": "#FFFFFF",
|
|
2454
|
-
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2477
|
+
"description": "窗口的背景色,支持 HEX 颜色",
|
|
2478
|
+
"format": "color"
|
|
2455
2479
|
},
|
|
2456
2480
|
"backgroundColorBottom": {
|
|
2457
2481
|
"anyOf": [
|
|
@@ -2463,7 +2487,8 @@
|
|
|
2463
2487
|
}
|
|
2464
2488
|
],
|
|
2465
2489
|
"default": "同 backgroundColor",
|
|
2466
|
-
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
2490
|
+
"description": "底部窗口的背景色,仅 iOS 支持",
|
|
2491
|
+
"format": "color"
|
|
2467
2492
|
},
|
|
2468
2493
|
"backgroundColorTop": {
|
|
2469
2494
|
"anyOf": [
|
|
@@ -2475,7 +2500,8 @@
|
|
|
2475
2500
|
}
|
|
2476
2501
|
],
|
|
2477
2502
|
"default": "同 backgroundColor",
|
|
2478
|
-
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
2503
|
+
"description": "顶部窗口的背景色,仅 iOS 支持",
|
|
2504
|
+
"format": "color"
|
|
2479
2505
|
},
|
|
2480
2506
|
"backgroundTextStyle": {
|
|
2481
2507
|
"anyOf": [
|
|
@@ -2535,7 +2561,7 @@
|
|
|
2535
2561
|
},
|
|
2536
2562
|
"navigationStyle": {
|
|
2537
2563
|
"default": "default",
|
|
2538
|
-
"description": "
|
|
2564
|
+
"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
2565
|
"enum": [
|
|
2540
2566
|
"default",
|
|
2541
2567
|
"custom"
|
|
@@ -2666,7 +2692,7 @@
|
|
|
2666
2692
|
"type": "object"
|
|
2667
2693
|
},
|
|
2668
2694
|
"MpWeixin": {
|
|
2669
|
-
"description": "设置编译到 mp-weixin 平台的特定样式,配置项参考
|
|
2695
|
+
"description": "设置编译到 mp-weixin 平台的特定样式,配置项参考 <https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#window>\n\n相应的类型是 MpWeixin",
|
|
2670
2696
|
"properties": {
|
|
2671
2697
|
"backgroundColor": {
|
|
2672
2698
|
"anyOf": [
|
|
@@ -2678,7 +2704,8 @@
|
|
|
2678
2704
|
}
|
|
2679
2705
|
],
|
|
2680
2706
|
"default": "#FFFFFF",
|
|
2681
|
-
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2707
|
+
"description": "窗口的背景色,支持 HEX 颜色",
|
|
2708
|
+
"format": "color"
|
|
2682
2709
|
},
|
|
2683
2710
|
"backgroundColorBottom": {
|
|
2684
2711
|
"anyOf": [
|
|
@@ -2690,7 +2717,8 @@
|
|
|
2690
2717
|
}
|
|
2691
2718
|
],
|
|
2692
2719
|
"default": "#FFFFFF",
|
|
2693
|
-
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
2720
|
+
"description": "底部窗口的背景色,仅 iOS 支持",
|
|
2721
|
+
"format": "color"
|
|
2694
2722
|
},
|
|
2695
2723
|
"backgroundColorTop": {
|
|
2696
2724
|
"anyOf": [
|
|
@@ -2702,7 +2730,8 @@
|
|
|
2702
2730
|
}
|
|
2703
2731
|
],
|
|
2704
2732
|
"default": "#FFFFFF",
|
|
2705
|
-
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
2733
|
+
"description": "顶部窗口的背景色,仅 iOS 支持",
|
|
2734
|
+
"format": "color"
|
|
2706
2735
|
},
|
|
2707
2736
|
"backgroundTextStyle": {
|
|
2708
2737
|
"anyOf": [
|
|
@@ -2828,7 +2857,7 @@
|
|
|
2828
2857
|
"type": "object"
|
|
2829
2858
|
},
|
|
2830
2859
|
"MpXhs": {
|
|
2831
|
-
"description": "设置编译到 mp-xhs 平台的特定样式,配置项参考 <https://miniapp.xiaohongshu.com/doc/DC813994
|
|
2860
|
+
"description": "设置编译到 mp-xhs 平台的特定样式,配置项参考 <https://miniapp.xiaohongshu.com/doc/DC813994#anchorId-window>>\n\n相应的类型是 MpXhs",
|
|
2832
2861
|
"properties": {
|
|
2833
2862
|
"backgroundColor": {
|
|
2834
2863
|
"anyOf": [
|
|
@@ -2840,7 +2869,8 @@
|
|
|
2840
2869
|
}
|
|
2841
2870
|
],
|
|
2842
2871
|
"default": "#FFFFFF",
|
|
2843
|
-
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2872
|
+
"description": "窗口的背景色,支持 HEX 颜色",
|
|
2873
|
+
"format": "color"
|
|
2844
2874
|
},
|
|
2845
2875
|
"backgroundTextStyle": {
|
|
2846
2876
|
"anyOf": [
|
|
@@ -2925,9 +2955,11 @@
|
|
|
2925
2955
|
},
|
|
2926
2956
|
"type": "object"
|
|
2927
2957
|
},
|
|
2928
|
-
"
|
|
2958
|
+
"PageItem": {
|
|
2959
|
+
"description": "pages 数组的元素类型",
|
|
2929
2960
|
"properties": {
|
|
2930
2961
|
"needLogin": {
|
|
2962
|
+
"default": false,
|
|
2931
2963
|
"description": "当前页面是否需要登录才可以访问,此配置优先级高于 uniIdRouter 下的 needLogin",
|
|
2932
2964
|
"type": "boolean"
|
|
2933
2965
|
},
|
|
@@ -2936,11 +2968,8 @@
|
|
|
2936
2968
|
"type": "string"
|
|
2937
2969
|
},
|
|
2938
2970
|
"style": {
|
|
2939
|
-
"$ref": "#/definitions/
|
|
2940
|
-
"description": "
|
|
2941
|
-
},
|
|
2942
|
-
"type": {
|
|
2943
|
-
"type": "string"
|
|
2971
|
+
"$ref": "#/definitions/PageStyle",
|
|
2972
|
+
"description": "配置页面窗口表现,配置项参考 [pageStyle](https://uniapp.dcloud.net.cn/collocation/pages#style)"
|
|
2944
2973
|
}
|
|
2945
2974
|
},
|
|
2946
2975
|
"required": [
|
|
@@ -2948,6 +2977,266 @@
|
|
|
2948
2977
|
],
|
|
2949
2978
|
"type": "object"
|
|
2950
2979
|
},
|
|
2980
|
+
"PageStyle": {
|
|
2981
|
+
"description": "pages 每个页面 style 节点的类型,用于设置每个页面的状态栏、导航条、标题、窗口背景色等\n\n页面中配置项会覆盖 globalStyle 中相同的配置项",
|
|
2982
|
+
"properties": {
|
|
2983
|
+
"allowsBounceVertical": {
|
|
2984
|
+
"default": "YES",
|
|
2985
|
+
"description": "是否允许向下拉拽",
|
|
2986
|
+
"enum": [
|
|
2987
|
+
"YES",
|
|
2988
|
+
"NO"
|
|
2989
|
+
],
|
|
2990
|
+
"type": "string"
|
|
2991
|
+
},
|
|
2992
|
+
"app-harmony": {
|
|
2993
|
+
"$ref": "#/definitions/AppHarmony",
|
|
2994
|
+
"description": "设置编译到 App(Harmony)平台的特定样式,配置项参考 [app-harmony](https://uniapp.dcloud.net.cn/collocation/pages#app-harmony)\n\n相应的类型是 AppHarmony"
|
|
2995
|
+
},
|
|
2996
|
+
"app-plus": {
|
|
2997
|
+
"$ref": "#/definitions/AppPlus",
|
|
2998
|
+
"description": "设置编译到 App 平台的特定样式,配置项参考 [app-plus](https://uniapp.dcloud.net.cn/collocation/pages#app-plus)\n\n相应的类型是 AppPlus"
|
|
2999
|
+
},
|
|
3000
|
+
"backgroundColor": {
|
|
3001
|
+
"anyOf": [
|
|
3002
|
+
{
|
|
3003
|
+
"$ref": "#/definitions/HEXColor"
|
|
3004
|
+
},
|
|
3005
|
+
{
|
|
3006
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3007
|
+
}
|
|
3008
|
+
],
|
|
3009
|
+
"default": "#ffffff",
|
|
3010
|
+
"description": "下拉显示出来的窗口的背景色,支持 HEX 颜色",
|
|
3011
|
+
"format": "color"
|
|
3012
|
+
},
|
|
3013
|
+
"backgroundColorBottom": {
|
|
3014
|
+
"anyOf": [
|
|
3015
|
+
{
|
|
3016
|
+
"$ref": "#/definitions/HEXColor"
|
|
3017
|
+
},
|
|
3018
|
+
{
|
|
3019
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3020
|
+
}
|
|
3021
|
+
],
|
|
3022
|
+
"default": "#ffffff",
|
|
3023
|
+
"description": "底部窗口的背景色(bounce 回弹区域),支持 HEX 颜色",
|
|
3024
|
+
"format": "color"
|
|
3025
|
+
},
|
|
3026
|
+
"backgroundColorTop": {
|
|
3027
|
+
"anyOf": [
|
|
3028
|
+
{
|
|
3029
|
+
"$ref": "#/definitions/HEXColor"
|
|
3030
|
+
},
|
|
3031
|
+
{
|
|
3032
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3033
|
+
}
|
|
3034
|
+
],
|
|
3035
|
+
"default": "#ffffff",
|
|
3036
|
+
"description": "顶部窗口的背景色(bounce 回弹区域),支持 HEX 颜色",
|
|
3037
|
+
"format": "color"
|
|
3038
|
+
},
|
|
3039
|
+
"backgroundTextStyle": {
|
|
3040
|
+
"anyOf": [
|
|
3041
|
+
{
|
|
3042
|
+
"const": "dark",
|
|
3043
|
+
"type": "string"
|
|
3044
|
+
},
|
|
3045
|
+
{
|
|
3046
|
+
"const": "light",
|
|
3047
|
+
"type": "string"
|
|
3048
|
+
},
|
|
3049
|
+
{
|
|
3050
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3051
|
+
}
|
|
3052
|
+
],
|
|
3053
|
+
"default": "dark",
|
|
3054
|
+
"description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
|
|
3055
|
+
},
|
|
3056
|
+
"disableScroll": {
|
|
3057
|
+
"default": false,
|
|
3058
|
+
"description": "设置为 true 则页面整体不能上下滚动(bounce 效果),只在页面配置中有效,在 globalStyle 中设置无效",
|
|
3059
|
+
"type": "boolean"
|
|
3060
|
+
},
|
|
3061
|
+
"disableSwipeBack": {
|
|
3062
|
+
"default": false,
|
|
3063
|
+
"description": "是否禁用滑动返回",
|
|
3064
|
+
"type": "boolean"
|
|
3065
|
+
},
|
|
3066
|
+
"enablePullDownRefresh": {
|
|
3067
|
+
"default": false,
|
|
3068
|
+
"description": "是否开启下拉刷新,详见 [页面生命周期](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)",
|
|
3069
|
+
"type": "boolean"
|
|
3070
|
+
},
|
|
3071
|
+
"h5": {
|
|
3072
|
+
"$ref": "#/definitions/H5",
|
|
3073
|
+
"description": "设置编译到 H5 平台的特定样式,配置项参考 [H5](https://uniapp.dcloud.net.cn/collocation/pages#h5)\n\n相应的类型是 H5"
|
|
3074
|
+
},
|
|
3075
|
+
"leftWindow": {
|
|
3076
|
+
"default": true,
|
|
3077
|
+
"description": "当存在 leftWindow 时,默认是否显示 leftWindow,详见 [topWindow](https://uniapp.dcloud.net.cn/collocation/pages.html#topwindow)",
|
|
3078
|
+
"type": "boolean"
|
|
3079
|
+
},
|
|
3080
|
+
"maxWidth": {
|
|
3081
|
+
"description": "当浏览器可见区域宽度大于 maxWidth 时两侧留白,当小于等于 maxWidth 时页面铺满,单位为 px\n\n不同页面支持配置不同的 maxWidth\n\nmaxWidth = leftWindow(可选)+ page(页面主体)+ rightWindow(可选)\n\n使用时,页面内 fixed 元素需要使用 --window-left 和 --window-right 来保证布局位置正确",
|
|
3082
|
+
"type": "number"
|
|
3083
|
+
},
|
|
3084
|
+
"mp-alipay": {
|
|
3085
|
+
"$ref": "#/definitions/MpAlipay",
|
|
3086
|
+
"description": "设置编译到 mp-alipay 平台的特定样式,配置项参考 [MP-ALIPAY](https://uniapp.dcloud.net.cn/collocation/pages#mp-alipay)\n\n相应的类型是 MpAlipay"
|
|
3087
|
+
},
|
|
3088
|
+
"mp-baidu": {
|
|
3089
|
+
"$ref": "#/definitions/MpBaidu",
|
|
3090
|
+
"description": "设置编译到 mp-baidu 平台的特定样式,配置项参考 [MP-BAIDU](https://uniapp.dcloud.net.cn/collocation/pages.html#mp-baidu)\n\n相应的类型是 MpBaidu"
|
|
3091
|
+
},
|
|
3092
|
+
"mp-harmony": {
|
|
3093
|
+
"$ref": "#/definitions/MpHarmony",
|
|
3094
|
+
"description": "设置编译到 mp-harmony 平台的特定样式\n\n相应的类型是 MpHarmony"
|
|
3095
|
+
},
|
|
3096
|
+
"mp-jd": {
|
|
3097
|
+
"$ref": "#/definitions/MpJd",
|
|
3098
|
+
"description": "设置编译到 mp-jd 平台的特定样式\n\n相应的类型是 MpJd"
|
|
3099
|
+
},
|
|
3100
|
+
"mp-kuaishou": {
|
|
3101
|
+
"$ref": "#/definitions/MpKuaishou",
|
|
3102
|
+
"description": "设置编译到 mp-kuaishou 平台的特定样式\n\n相应的类型是 MpKuaishou"
|
|
3103
|
+
},
|
|
3104
|
+
"mp-lark": {
|
|
3105
|
+
"$ref": "#/definitions/MpLark",
|
|
3106
|
+
"description": "设置编译到 mp-lark 平台的特定样式\n\n相应的类型是 MpLark"
|
|
3107
|
+
},
|
|
3108
|
+
"mp-qq": {
|
|
3109
|
+
"$ref": "#/definitions/MpQq",
|
|
3110
|
+
"description": "设置编译到 mp-qq 平台的特定样式\n\n相应的类型是 MpQq"
|
|
3111
|
+
},
|
|
3112
|
+
"mp-toutiao": {
|
|
3113
|
+
"$ref": "#/definitions/MpToutiao",
|
|
3114
|
+
"description": "设置编译到 mp-toutiao 平台的特定样式\n\n相应的类型是 MpToutiao"
|
|
3115
|
+
},
|
|
3116
|
+
"mp-weixin": {
|
|
3117
|
+
"$ref": "#/definitions/MpWeixin",
|
|
3118
|
+
"description": "设置编译到 mp-weixin 平台的特定样式,配置项参考 [MP-WEIXIN](https://uniapp.dcloud.net.cn/collocation/pages#mp-weixin)\n\n相应的类型是 MpWeixin"
|
|
3119
|
+
},
|
|
3120
|
+
"mp-xhs": {
|
|
3121
|
+
"$ref": "#/definitions/MpXhs",
|
|
3122
|
+
"description": "设置编译到 mp-xhs 平台的特定样式\n\n相应的类型是 MpXhs"
|
|
3123
|
+
},
|
|
3124
|
+
"navigationBarBackgroundColor": {
|
|
3125
|
+
"anyOf": [
|
|
3126
|
+
{
|
|
3127
|
+
"$ref": "#/definitions/HEXColor"
|
|
3128
|
+
},
|
|
3129
|
+
{
|
|
3130
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3131
|
+
}
|
|
3132
|
+
],
|
|
3133
|
+
"description": "导航栏背景颜色(同状态栏背景色),支持 HEX 颜色",
|
|
3134
|
+
"format": "color"
|
|
3135
|
+
},
|
|
3136
|
+
"navigationBarShadow": {
|
|
3137
|
+
"additionalProperties": false,
|
|
3138
|
+
"description": "导航栏阴影,配置参考 [导航栏阴影](https://uniapp.dcloud.net.cn/collocation/pages#navigationbarshadow)\n\n微信/百度/头条小程序需要配置: \"disableScroll\": true\n\n支付宝小程序需要配置 \"allowsBounceVertical\": \"NO\"",
|
|
3139
|
+
"properties": {
|
|
3140
|
+
"colorType": {
|
|
3141
|
+
"description": "阴影颜色\n\n支持 grey、blue、green、orange、red、yellow",
|
|
3142
|
+
"enum": [
|
|
3143
|
+
"grey",
|
|
3144
|
+
"blue",
|
|
3145
|
+
"green",
|
|
3146
|
+
"orange",
|
|
3147
|
+
"red",
|
|
3148
|
+
"yellow"
|
|
3149
|
+
],
|
|
3150
|
+
"type": "string"
|
|
3151
|
+
}
|
|
3152
|
+
},
|
|
3153
|
+
"type": "object"
|
|
3154
|
+
},
|
|
3155
|
+
"navigationBarTextStyle": {
|
|
3156
|
+
"anyOf": [
|
|
3157
|
+
{
|
|
3158
|
+
"const": "black",
|
|
3159
|
+
"type": "string"
|
|
3160
|
+
},
|
|
3161
|
+
{
|
|
3162
|
+
"const": "white",
|
|
3163
|
+
"type": "string"
|
|
3164
|
+
},
|
|
3165
|
+
{
|
|
3166
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3167
|
+
}
|
|
3168
|
+
],
|
|
3169
|
+
"default": "black",
|
|
3170
|
+
"description": "导航栏标题颜色及状态栏前景颜色,仅支持 \"black\" / \"white\""
|
|
3171
|
+
},
|
|
3172
|
+
"navigationBarTitleText": {
|
|
3173
|
+
"description": "导航栏标题文字内容",
|
|
3174
|
+
"type": "string"
|
|
3175
|
+
},
|
|
3176
|
+
"navigationStyle": {
|
|
3177
|
+
"default": "default",
|
|
3178
|
+
"description": "导航栏样式,仅支持 \"default\" / \"custom\"\n\n\"custom\" 即取消默认的原生导航栏,详看 [使用注意](https://uniapp.dcloud.net.cn/collocation/pages#customnav)",
|
|
3179
|
+
"enum": [
|
|
3180
|
+
"default",
|
|
3181
|
+
"custom"
|
|
3182
|
+
],
|
|
3183
|
+
"type": "string"
|
|
3184
|
+
},
|
|
3185
|
+
"onReachBottomDistance": {
|
|
3186
|
+
"default": 50,
|
|
3187
|
+
"description": "页面上拉触底事件触发时距页面底部距离,单位为 px,详见 [页面生命周期](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)",
|
|
3188
|
+
"type": "number"
|
|
3189
|
+
},
|
|
3190
|
+
"rightWindow": {
|
|
3191
|
+
"default": true,
|
|
3192
|
+
"description": "当存在 rightWindow 时,默认是否显示 rightWindow,详见 [topWindow](https://uniapp.dcloud.net.cn/collocation/pages.html#topwindow)",
|
|
3193
|
+
"type": "boolean"
|
|
3194
|
+
},
|
|
3195
|
+
"titleImage": {
|
|
3196
|
+
"description": "导航栏图片地址(替换当前文字标题)\n\n支付宝小程序内必须使用 https 图片链接地址",
|
|
3197
|
+
"type": "string"
|
|
3198
|
+
},
|
|
3199
|
+
"titlePenetrate": {
|
|
3200
|
+
"default": "NO",
|
|
3201
|
+
"description": "导航栏点击穿透",
|
|
3202
|
+
"enum": [
|
|
3203
|
+
"YES",
|
|
3204
|
+
"NO"
|
|
3205
|
+
],
|
|
3206
|
+
"type": "string"
|
|
3207
|
+
},
|
|
3208
|
+
"topWindow": {
|
|
3209
|
+
"default": true,
|
|
3210
|
+
"description": "当存在 topWindow 时,默认是否显示 topWindow,详见 [topWindow](https://uniapp.dcloud.net.cn/collocation/pages.html#topwindow)",
|
|
3211
|
+
"type": "boolean"
|
|
3212
|
+
},
|
|
3213
|
+
"transparentTitle": {
|
|
3214
|
+
"default": "none",
|
|
3215
|
+
"description": "导航栏整体(前景、背景)透明设置,仅支持 \"always\" / \"auto\" / \"none\"\n\n\"always\" 一直透明\n\n\"auto\" 滑动自适应\n\n\"none\" 不透明",
|
|
3216
|
+
"enum": [
|
|
3217
|
+
"always",
|
|
3218
|
+
"auto",
|
|
3219
|
+
"none"
|
|
3220
|
+
],
|
|
3221
|
+
"type": "string"
|
|
3222
|
+
},
|
|
3223
|
+
"usingComponents": {
|
|
3224
|
+
"additionalProperties": {
|
|
3225
|
+
"type": "string"
|
|
3226
|
+
},
|
|
3227
|
+
"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)",
|
|
3228
|
+
"type": "object"
|
|
3229
|
+
}
|
|
3230
|
+
},
|
|
3231
|
+
"type": "object"
|
|
3232
|
+
},
|
|
3233
|
+
"Pages": {
|
|
3234
|
+
"description": "设置页面路径及窗口表现\n\n文档中为必填,类型上保持可选,插件可由文件扫描自动生成",
|
|
3235
|
+
"items": {
|
|
3236
|
+
"$ref": "#/definitions/PageItem"
|
|
3237
|
+
},
|
|
3238
|
+
"type": "array"
|
|
3239
|
+
},
|
|
2951
3240
|
"PagesConfig": {
|
|
2952
3241
|
"description": "对 uni-app 进行全局配置,决定页面文件的路径、窗口样式、原生的导航栏、底部的原生 tabBar 等,类似微信小程序中 app.json 的页面管理部分\n\n注意定位权限申请等原属于 app.json 的内容,需要在 manifest 中配置",
|
|
2953
3242
|
"properties": {
|
|
@@ -2972,41 +3261,12 @@
|
|
|
2972
3261
|
"description": "大屏左侧窗口"
|
|
2973
3262
|
},
|
|
2974
3263
|
"pages": {
|
|
2975
|
-
"
|
|
2976
|
-
"
|
|
2977
|
-
"$ref": "#/definitions/PageMetaDatum"
|
|
2978
|
-
},
|
|
2979
|
-
"type": "array"
|
|
3264
|
+
"$ref": "#/definitions/Pages",
|
|
3265
|
+
"description": "设置页面路径及窗口表现\n\n文档中为必填,类型上保持可选,插件可由文件扫描自动生成"
|
|
2980
3266
|
},
|
|
2981
3267
|
"preloadRule": {
|
|
2982
|
-
"
|
|
2983
|
-
|
|
2984
|
-
"description": "页面路径",
|
|
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
|
-
}
|
|
3002
|
-
},
|
|
3003
|
-
"required": [
|
|
3004
|
-
"packages"
|
|
3005
|
-
],
|
|
3006
|
-
"type": "object"
|
|
3007
|
-
},
|
|
3008
|
-
"description": "分包预下载规则",
|
|
3009
|
-
"type": "object"
|
|
3268
|
+
"$ref": "#/definitions/PreloadRule",
|
|
3269
|
+
"description": "分包预下载规则"
|
|
3010
3270
|
},
|
|
3011
3271
|
"rightWindow": {
|
|
3012
3272
|
"$ref": "#/definitions/TheWindow",
|
|
@@ -3038,11 +3298,10 @@
|
|
|
3038
3298
|
"properties": {
|
|
3039
3299
|
"isSubpackage": {
|
|
3040
3300
|
"default": false,
|
|
3041
|
-
"description": "
|
|
3301
|
+
"description": "是否把 worker 打包为分包",
|
|
3042
3302
|
"type": "boolean"
|
|
3043
3303
|
},
|
|
3044
3304
|
"path": {
|
|
3045
|
-
"description": "`Worker` 代码放置的目录",
|
|
3046
3305
|
"type": "string"
|
|
3047
3306
|
}
|
|
3048
3307
|
},
|
|
@@ -3052,7 +3311,7 @@
|
|
|
3052
3311
|
"type": "object"
|
|
3053
3312
|
}
|
|
3054
3313
|
],
|
|
3055
|
-
"description": "
|
|
3314
|
+
"description": "worker 代码目录"
|
|
3056
3315
|
}
|
|
3057
3316
|
},
|
|
3058
3317
|
"type": "object"
|
|
@@ -3060,6 +3319,38 @@
|
|
|
3060
3319
|
"PercentageSize": {
|
|
3061
3320
|
"type": "string"
|
|
3062
3321
|
},
|
|
3322
|
+
"PreloadRule": {
|
|
3323
|
+
"additionalProperties": {
|
|
3324
|
+
"$ref": "#/definitions/PreloadRuleItem"
|
|
3325
|
+
},
|
|
3326
|
+
"description": "分包预下载规则",
|
|
3327
|
+
"type": "object"
|
|
3328
|
+
},
|
|
3329
|
+
"PreloadRuleItem": {
|
|
3330
|
+
"description": "进入页面后预下载分包的规则",
|
|
3331
|
+
"properties": {
|
|
3332
|
+
"network": {
|
|
3333
|
+
"default": "wifi",
|
|
3334
|
+
"description": "在指定网络下预下载\n\n\"all\" 不限网络\n\n\"wifi\" 仅 wifi 下预下载",
|
|
3335
|
+
"enum": [
|
|
3336
|
+
"all",
|
|
3337
|
+
"wifi"
|
|
3338
|
+
],
|
|
3339
|
+
"type": "string"
|
|
3340
|
+
},
|
|
3341
|
+
"packages": {
|
|
3342
|
+
"description": "进入页面后预下载分包的 root 或 name\n\n__APP__ 表示主包",
|
|
3343
|
+
"items": {
|
|
3344
|
+
"type": "string"
|
|
3345
|
+
},
|
|
3346
|
+
"type": "array"
|
|
3347
|
+
}
|
|
3348
|
+
},
|
|
3349
|
+
"required": [
|
|
3350
|
+
"packages"
|
|
3351
|
+
],
|
|
3352
|
+
"type": "object"
|
|
3353
|
+
},
|
|
3063
3354
|
"PxSize": {
|
|
3064
3355
|
"type": "string"
|
|
3065
3356
|
},
|
|
@@ -3067,35 +3358,14 @@
|
|
|
3067
3358
|
"type": "string"
|
|
3068
3359
|
},
|
|
3069
3360
|
"SubPackage": {
|
|
3070
|
-
"
|
|
3361
|
+
"description": "subPackages 数组的元素类型,即应用的子包",
|
|
3071
3362
|
"properties": {
|
|
3072
3363
|
"pages": {
|
|
3073
|
-
"
|
|
3074
|
-
"
|
|
3075
|
-
"$ref": "#/definitions/PageMetaDatum"
|
|
3076
|
-
},
|
|
3077
|
-
"type": "array"
|
|
3364
|
+
"$ref": "#/definitions/Pages",
|
|
3365
|
+
"description": "子包由哪些页面组成,参数同 pages"
|
|
3078
3366
|
},
|
|
3079
3367
|
"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": "分包插件",
|
|
3368
|
+
"description": "子包的插件",
|
|
3099
3369
|
"type": "object"
|
|
3100
3370
|
},
|
|
3101
3371
|
"root": {
|
|
@@ -3110,12 +3380,14 @@
|
|
|
3110
3380
|
"type": "object"
|
|
3111
3381
|
},
|
|
3112
3382
|
"SubPackages": {
|
|
3383
|
+
"description": "分包加载配置,H5 不支持",
|
|
3113
3384
|
"items": {
|
|
3114
3385
|
"$ref": "#/definitions/SubPackage"
|
|
3115
3386
|
},
|
|
3116
3387
|
"type": "array"
|
|
3117
3388
|
},
|
|
3118
3389
|
"TabBar": {
|
|
3390
|
+
"description": "设置底部 tab 的表现",
|
|
3119
3391
|
"properties": {
|
|
3120
3392
|
"backgroundColor": {
|
|
3121
3393
|
"anyOf": [
|
|
@@ -3146,7 +3418,7 @@
|
|
|
3146
3418
|
},
|
|
3147
3419
|
"blurEffect": {
|
|
3148
3420
|
"default": "none",
|
|
3149
|
-
"description": "iOS 高斯模糊效果,参考 [使用说明](https://
|
|
3421
|
+
"description": "iOS 高斯模糊效果,参考 [使用说明](https://uniapp.dcloud.net.cn/tutorial/app-blureffect.html)",
|
|
3150
3422
|
"enum": [
|
|
3151
3423
|
"dark",
|
|
3152
3424
|
"extralight",
|
|
@@ -3268,7 +3540,8 @@
|
|
|
3268
3540
|
"properties": {
|
|
3269
3541
|
"color": {
|
|
3270
3542
|
"$ref": "#/definitions/HEXColor",
|
|
3271
|
-
"description": "字体图标颜色"
|
|
3543
|
+
"description": "字体图标颜色",
|
|
3544
|
+
"format": "color"
|
|
3272
3545
|
},
|
|
3273
3546
|
"fontSize": {
|
|
3274
3547
|
"description": "字体图标字号,单位为 px",
|
|
@@ -3276,7 +3549,8 @@
|
|
|
3276
3549
|
},
|
|
3277
3550
|
"selectedColor": {
|
|
3278
3551
|
"$ref": "#/definitions/HEXColor",
|
|
3279
|
-
"description": "字体图标选中颜色"
|
|
3552
|
+
"description": "字体图标选中颜色",
|
|
3553
|
+
"format": "color"
|
|
3280
3554
|
},
|
|
3281
3555
|
"selectedText": {
|
|
3282
3556
|
"description": "选中后字库 Unicode 码",
|
|
@@ -3300,7 +3574,7 @@
|
|
|
3300
3574
|
"$ref": "#/definitions/ThemeVar"
|
|
3301
3575
|
}
|
|
3302
3576
|
],
|
|
3303
|
-
"description": "图片路径,icon 大小限制为 40 kb,建议尺寸为 81px * 81px\n\n当 position 为 \"top\" 时,此参数无效\n\n
|
|
3577
|
+
"description": "图片路径,icon 大小限制为 40 kb,建议尺寸为 81px * 81px\n\n当 position 为 \"top\" 时,此参数无效\n\n不支持网络图片,不支持字体图标\n\n支持 `@xxx` 主题变量:微信小程序 darkmode(themeLocation)下可按主题切换图标, uni-app 会原样透传该字段(官方文档表格只标注 String,但 darkmode 场景依赖主题变量)"
|
|
3304
3578
|
},
|
|
3305
3579
|
"iconfont": {
|
|
3306
3580
|
"$ref": "#/definitions/TabBarIconFont",
|
|
@@ -3319,14 +3593,15 @@
|
|
|
3319
3593
|
"$ref": "#/definitions/ThemeVar"
|
|
3320
3594
|
}
|
|
3321
3595
|
],
|
|
3322
|
-
"description": "选中时的图片路径,icon 大小限制为 40 kb,建议尺寸为 81px * 81px\n\n当 position 为 \"top\" 时,此参数无效\n\n
|
|
3596
|
+
"description": "选中时的图片路径,icon 大小限制为 40 kb,建议尺寸为 81px * 81px\n\n当 position 为 \"top\" 时,此参数无效\n\n不支持网络图片,不支持字体图标\n\n支持 `@xxx` 主题变量,同 iconPath 的 darkmode 说明"
|
|
3323
3597
|
},
|
|
3324
3598
|
"text": {
|
|
3325
3599
|
"description": "tab 上按钮文字,在 App 和 H5 平台为非必填,例如中间可放一个没有文字的 + 号图标",
|
|
3326
3600
|
"type": "string"
|
|
3327
3601
|
},
|
|
3328
3602
|
"visible": {
|
|
3329
|
-
"
|
|
3603
|
+
"default": true,
|
|
3604
|
+
"description": "该项是否显示",
|
|
3330
3605
|
"type": "boolean"
|
|
3331
3606
|
}
|
|
3332
3607
|
},
|
|
@@ -3365,33 +3640,25 @@
|
|
|
3365
3640
|
},
|
|
3366
3641
|
"width": {
|
|
3367
3642
|
"default": "80px",
|
|
3368
|
-
"description": "中间按钮的宽度,tabBar
|
|
3643
|
+
"description": "中间按钮的宽度,tabBar 其它项为减去此宽度后平分",
|
|
3369
3644
|
"type": "string"
|
|
3370
3645
|
}
|
|
3371
3646
|
},
|
|
3372
3647
|
"type": "object"
|
|
3373
3648
|
},
|
|
3374
3649
|
"TheWindow": {
|
|
3375
|
-
"
|
|
3650
|
+
"description": "leftWindow / topWindow / rightWindow 的类型",
|
|
3376
3651
|
"properties": {
|
|
3377
3652
|
"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"
|
|
3653
|
+
"$ref": "#/definitions/MatchMedia",
|
|
3654
|
+
"description": "配置显示该窗口的规则,配置项参考 [matchMedia](https://uniapp.dcloud.net.cn/collocation/pages#matchmedia)"
|
|
3388
3655
|
},
|
|
3389
3656
|
"path": {
|
|
3390
3657
|
"description": "配置页面路径",
|
|
3391
3658
|
"type": "string"
|
|
3392
3659
|
},
|
|
3393
3660
|
"style": {
|
|
3394
|
-
"$ref": "#/definitions/
|
|
3661
|
+
"$ref": "#/definitions/PageStyle",
|
|
3395
3662
|
"description": "配置页面窗口表现,配置项参考 [pageStyle](https://uniapp.dcloud.net.cn/collocation/pages#style)"
|
|
3396
3663
|
}
|
|
3397
3664
|
},
|
|
@@ -3505,7 +3772,7 @@
|
|
|
3505
3772
|
"type": "object"
|
|
3506
3773
|
},
|
|
3507
3774
|
"UniIdRouter": {
|
|
3508
|
-
"
|
|
3775
|
+
"description": "自动跳转相关配置,新增于 HBuilderX 3.5.0",
|
|
3509
3776
|
"properties": {
|
|
3510
3777
|
"loginPage": {
|
|
3511
3778
|
"description": "登录页面路径",
|
|
@@ -3515,7 +3782,7 @@
|
|
|
3515
3782
|
"type": "string"
|
|
3516
3783
|
},
|
|
3517
3784
|
"needLogin": {
|
|
3518
|
-
"description": "
|
|
3785
|
+
"description": "需要登录才可访问的页面列表,可以使用正则语法",
|
|
3519
3786
|
"examples": [
|
|
3520
3787
|
[
|
|
3521
3788
|
"pages/detail/.*"
|
|
@@ -3528,14 +3795,10 @@
|
|
|
3528
3795
|
},
|
|
3529
3796
|
"resToLogin": {
|
|
3530
3797
|
"default": true,
|
|
3531
|
-
"description": "
|
|
3798
|
+
"description": "是否自动解析云对象及 clientDB 的错误码,如果是客户端 token 不正确或 token 过期则自动跳转配置的登录页面,",
|
|
3532
3799
|
"type": "boolean"
|
|
3533
3800
|
}
|
|
3534
3801
|
},
|
|
3535
|
-
"required": [
|
|
3536
|
-
"loginPage",
|
|
3537
|
-
"needLogin"
|
|
3538
|
-
],
|
|
3539
3802
|
"type": "object"
|
|
3540
3803
|
}
|
|
3541
3804
|
}
|