@uni-helper/pages-json-schema 0.5.0 → 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 +3 -1
- package/package.json +1 -1
- package/schema.json +288 -5
package/README.md
CHANGED
|
@@ -7,11 +7,13 @@
|
|
|
7
7
|
</p>
|
|
8
8
|
<p style="text-align: center">
|
|
9
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="
|
|
10
|
+
<a href="https://github.com/ModyQyW"><img src="https://img.shields.io/badge/Maintainer-ModyQyW-blue?style=for-the-badge" alt="Maintainer"></a>
|
|
11
11
|
</p>
|
|
12
12
|
|
|
13
13
|
为 uni-app 的 `pages.json` 提供 schema。
|
|
14
14
|
|
|
15
|
+
完整文档见 [uni-helper.js.org](https://uni-helper.js.org/vite-plugin-uni-pages),另有 [Netlify](https://vite-plugin-uni-pages.netlify.app) 和 [Cloudflare Pages](https://vite-plugin-uni-pages.pages.dev) 镜像。
|
|
16
|
+
|
|
15
17
|
不想看文档?直接问 AI 🤖 <a href="https://deepwiki.com/uni-helper/vite-plugin-uni-pages"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>
|
|
16
18
|
|
|
17
19
|
> **请考虑持续[赞助](https://github.com/ModyQyW/sponsors)以维持该项目的持续健康发展,非常感谢!🙏**
|
package/package.json
CHANGED
package/schema.json
CHANGED
|
@@ -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",
|
|
@@ -1213,6 +1214,52 @@
|
|
|
1213
1214
|
],
|
|
1214
1215
|
"type": "string"
|
|
1215
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
|
+
},
|
|
1216
1263
|
"animationDuration": {
|
|
1217
1264
|
"default": 300,
|
|
1218
1265
|
"description": "窗口显示动画的持续时间,单位为 ms",
|
|
@@ -1299,20 +1346,45 @@
|
|
|
1299
1346
|
"default": "dark",
|
|
1300
1347
|
"description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
|
|
1301
1348
|
},
|
|
1349
|
+
"bounces": {
|
|
1350
|
+
"default": false,
|
|
1351
|
+
"description": "是否开启回弹效果,优先级高于 allowsBounceVertical",
|
|
1352
|
+
"type": "boolean"
|
|
1353
|
+
},
|
|
1302
1354
|
"dynamicRpx": {
|
|
1303
1355
|
"default": false,
|
|
1304
1356
|
"description": "是否使用动态 rpx,屏幕大小变化会重新渲染 rpx",
|
|
1305
1357
|
"type": "boolean"
|
|
1306
1358
|
},
|
|
1359
|
+
"enableBackToTop": {
|
|
1360
|
+
"default": false,
|
|
1361
|
+
"description": "点击系统状态栏滚动条是否返回顶部",
|
|
1362
|
+
"type": "boolean"
|
|
1363
|
+
},
|
|
1307
1364
|
"enablePullDownRefresh": {
|
|
1308
1365
|
"default": false,
|
|
1309
1366
|
"description": "是否开启下拉刷新,详见 [页面生命周期](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)",
|
|
1310
1367
|
"type": "boolean"
|
|
1311
1368
|
},
|
|
1369
|
+
"enableUcssReset": {
|
|
1370
|
+
"default": true,
|
|
1371
|
+
"description": "是否启用 ucss 样式覆盖",
|
|
1372
|
+
"type": "boolean"
|
|
1373
|
+
},
|
|
1312
1374
|
"h5": {
|
|
1313
1375
|
"$ref": "#/definitions/H5",
|
|
1314
1376
|
"description": "设置编译到 H5 平台的特定样式,配置项参考 [H5](https://uniapp.dcloud.net.cn/collocation/pages#h5)\n\n相应的类型是 H5"
|
|
1315
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
|
+
},
|
|
1316
1388
|
"leftWindow": {
|
|
1317
1389
|
"default": true,
|
|
1318
1390
|
"description": "当存在 leftWindow 时,默认是否显示 leftWindow,详见 [topWindow](https://uniapp.dcloud.net.cn/collocation/pages.html#topwindow)",
|
|
@@ -1492,6 +1564,47 @@
|
|
|
1492
1564
|
"description": "下拉刷新控件颜色,支持 HEX 颜色",
|
|
1493
1565
|
"format": "color"
|
|
1494
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 的逻辑像素值或百分比"
|
|
1607
|
+
},
|
|
1495
1608
|
"offset": {
|
|
1496
1609
|
"anyOf": [
|
|
1497
1610
|
{
|
|
@@ -1503,6 +1616,29 @@
|
|
|
1503
1616
|
],
|
|
1504
1617
|
"default": "0px",
|
|
1505
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"
|
|
1506
1642
|
}
|
|
1507
1643
|
},
|
|
1508
1644
|
"type": "object"
|
|
@@ -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",
|
|
@@ -2755,6 +2891,11 @@
|
|
|
2755
2891
|
"description": "是否开启全局的下拉刷新,详见 [Page.onPullDownRefresh](https://developers.weixin.qq.com/miniprogram/dev/reference/api/Page.html#onpulldownrefresh)",
|
|
2756
2892
|
"type": "boolean"
|
|
2757
2893
|
},
|
|
2894
|
+
"enableUcssReset": {
|
|
2895
|
+
"default": true,
|
|
2896
|
+
"description": "是否启用 ucss 样式覆盖",
|
|
2897
|
+
"type": "boolean"
|
|
2898
|
+
},
|
|
2758
2899
|
"handleWebviewPreload": {
|
|
2759
2900
|
"default": "static",
|
|
2760
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 结束后手动触发",
|
|
@@ -2837,6 +2978,7 @@
|
|
|
2837
2978
|
"type": "string"
|
|
2838
2979
|
},
|
|
2839
2980
|
"restartStrategy": {
|
|
2981
|
+
"default": "homePage",
|
|
2840
2982
|
"description": "重新启动策略配置\n\n\"homePage\" 如果从这个页面退出小程序,下次将从首页冷启动\n\n\"homePageAndLatestPage\" 如果从这个页面退出小程序,下次冷启动后立刻加载这个页面,页面的参数保持不变(不可用于 tab 页)",
|
|
2841
2983
|
"enum": [
|
|
2842
2984
|
"homePage",
|
|
@@ -2989,6 +3131,52 @@
|
|
|
2989
3131
|
],
|
|
2990
3132
|
"type": "string"
|
|
2991
3133
|
},
|
|
3134
|
+
"androidOverscroll": {
|
|
3135
|
+
"default": false,
|
|
3136
|
+
"description": "Android 平台是否开启弹簧回弹效果",
|
|
3137
|
+
"type": "boolean"
|
|
3138
|
+
},
|
|
3139
|
+
"androidRefresherColor": {
|
|
3140
|
+
"anyOf": [
|
|
3141
|
+
{
|
|
3142
|
+
"$ref": "#/definitions/HEXColor"
|
|
3143
|
+
},
|
|
3144
|
+
{
|
|
3145
|
+
"$ref": "#/definitions/ThemeVar"
|
|
3146
|
+
}
|
|
3147
|
+
],
|
|
3148
|
+
"description": "Android 平台下拉刷新前景颜色,支持 HEX 颜色",
|
|
3149
|
+
"format": "color"
|
|
3150
|
+
},
|
|
3151
|
+
"androidThreeButtonNavigationBackgroundColor": {
|
|
3152
|
+
"anyOf": [
|
|
3153
|
+
{
|
|
3154
|
+
"$ref": "#/definitions/HEXColor"
|
|
3155
|
+
},
|
|
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
|
+
},
|
|
2992
3180
|
"app-harmony": {
|
|
2993
3181
|
"$ref": "#/definitions/AppHarmony",
|
|
2994
3182
|
"description": "设置编译到 App(Harmony)平台的特定样式,配置项参考 [app-harmony](https://uniapp.dcloud.net.cn/collocation/pages#app-harmony)\n\n相应的类型是 AppHarmony"
|
|
@@ -3023,6 +3211,19 @@
|
|
|
3023
3211
|
"description": "底部窗口的背景色(bounce 回弹区域),支持 HEX 颜色",
|
|
3024
3212
|
"format": "color"
|
|
3025
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
|
+
},
|
|
3026
3227
|
"backgroundColorTop": {
|
|
3027
3228
|
"anyOf": [
|
|
3028
3229
|
{
|
|
@@ -3053,6 +3254,11 @@
|
|
|
3053
3254
|
"default": "dark",
|
|
3054
3255
|
"description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
|
|
3055
3256
|
},
|
|
3257
|
+
"bounces": {
|
|
3258
|
+
"default": false,
|
|
3259
|
+
"description": "是否开启回弹效果,优先级高于 allowsBounceVertical",
|
|
3260
|
+
"type": "boolean"
|
|
3261
|
+
},
|
|
3056
3262
|
"disableScroll": {
|
|
3057
3263
|
"default": false,
|
|
3058
3264
|
"description": "设置为 true 则页面整体不能上下滚动(bounce 效果),只在页面配置中有效,在 globalStyle 中设置无效",
|
|
@@ -3063,15 +3269,35 @@
|
|
|
3063
3269
|
"description": "是否禁用滑动返回",
|
|
3064
3270
|
"type": "boolean"
|
|
3065
3271
|
},
|
|
3272
|
+
"enableBackToTop": {
|
|
3273
|
+
"default": false,
|
|
3274
|
+
"description": "点击系统状态栏滚动条是否返回顶部",
|
|
3275
|
+
"type": "boolean"
|
|
3276
|
+
},
|
|
3066
3277
|
"enablePullDownRefresh": {
|
|
3067
3278
|
"default": false,
|
|
3068
3279
|
"description": "是否开启下拉刷新,详见 [页面生命周期](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)",
|
|
3069
3280
|
"type": "boolean"
|
|
3070
3281
|
},
|
|
3282
|
+
"enableUcssReset": {
|
|
3283
|
+
"default": true,
|
|
3284
|
+
"description": "是否启用 ucss 样式覆盖",
|
|
3285
|
+
"type": "boolean"
|
|
3286
|
+
},
|
|
3071
3287
|
"h5": {
|
|
3072
3288
|
"$ref": "#/definitions/H5",
|
|
3073
3289
|
"description": "设置编译到 H5 平台的特定样式,配置项参考 [H5](https://uniapp.dcloud.net.cn/collocation/pages#h5)\n\n相应的类型是 H5"
|
|
3074
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
|
+
},
|
|
3075
3301
|
"leftWindow": {
|
|
3076
3302
|
"default": true,
|
|
3077
3303
|
"description": "当存在 leftWindow 时,默认是否显示 leftWindow,详见 [topWindow](https://uniapp.dcloud.net.cn/collocation/pages.html#topwindow)",
|
|
@@ -3187,11 +3413,26 @@
|
|
|
3187
3413
|
"description": "页面上拉触底事件触发时距页面底部距离,单位为 px,详见 [页面生命周期](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)",
|
|
3188
3414
|
"type": "number"
|
|
3189
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
|
+
},
|
|
3190
3426
|
"rightWindow": {
|
|
3191
3427
|
"default": true,
|
|
3192
3428
|
"description": "当存在 rightWindow 时,默认是否显示 rightWindow,详见 [topWindow](https://uniapp.dcloud.net.cn/collocation/pages.html#topwindow)",
|
|
3193
3429
|
"type": "boolean"
|
|
3194
3430
|
},
|
|
3431
|
+
"swipeBackAsBackPress": {
|
|
3432
|
+
"default": false,
|
|
3433
|
+
"description": "是否将侧滑返回手势转为页面 onBackPress 事件\n\n仅在 disableSwipeBack 为 false 时生效",
|
|
3434
|
+
"type": "boolean"
|
|
3435
|
+
},
|
|
3195
3436
|
"titleImage": {
|
|
3196
3437
|
"description": "导航栏图片地址(替换当前文字标题)\n\n支付宝小程序内必须使用 https 图片链接地址",
|
|
3197
3438
|
"type": "string"
|
|
@@ -3358,18 +3599,23 @@
|
|
|
3358
3599
|
"type": "string"
|
|
3359
3600
|
},
|
|
3360
3601
|
"SubPackage": {
|
|
3361
|
-
"description": "subPackages
|
|
3602
|
+
"description": "subPackages 数组的元素类型,即应用的分包",
|
|
3362
3603
|
"properties": {
|
|
3604
|
+
"independent": {
|
|
3605
|
+
"default": false,
|
|
3606
|
+
"description": "是否声明对应分包为独立分包",
|
|
3607
|
+
"type": "boolean"
|
|
3608
|
+
},
|
|
3363
3609
|
"pages": {
|
|
3364
3610
|
"$ref": "#/definitions/Pages",
|
|
3365
|
-
"description": "
|
|
3611
|
+
"description": "分包由哪些页面组成,参数同 pages"
|
|
3366
3612
|
},
|
|
3367
3613
|
"plugins": {
|
|
3368
|
-
"description": "
|
|
3614
|
+
"description": "分包的插件",
|
|
3369
3615
|
"type": "object"
|
|
3370
3616
|
},
|
|
3371
3617
|
"root": {
|
|
3372
|
-
"description": "
|
|
3618
|
+
"description": "分包的根目录",
|
|
3373
3619
|
"type": "string"
|
|
3374
3620
|
}
|
|
3375
3621
|
},
|
|
@@ -3427,6 +3673,18 @@
|
|
|
3427
3673
|
],
|
|
3428
3674
|
"type": "string"
|
|
3429
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
|
+
},
|
|
3430
3688
|
"borderStyle": {
|
|
3431
3689
|
"anyOf": [
|
|
3432
3690
|
{
|
|
@@ -3468,11 +3726,32 @@
|
|
|
3468
3726
|
"description": "是否启用自定义 tabBar,启用后需要在项目根目录创建 custom-tab-bar 目录,参考 https://opendocs.alipay.com/mini/03jry7",
|
|
3469
3727
|
"type": "boolean"
|
|
3470
3728
|
},
|
|
3729
|
+
"disableGlassSafeAreaAutoFit": {
|
|
3730
|
+
"default": false,
|
|
3731
|
+
"description": "是否禁用玻璃效果 tabBar 自动上推页面滚动内容",
|
|
3732
|
+
"type": "boolean"
|
|
3733
|
+
},
|
|
3471
3734
|
"fontSize": {
|
|
3472
3735
|
"default": "10px",
|
|
3473
3736
|
"description": "文字默认大小",
|
|
3474
3737
|
"type": "string"
|
|
3475
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
|
+
},
|
|
3476
3755
|
"height": {
|
|
3477
3756
|
"default": "50px",
|
|
3478
3757
|
"description": "tabBar 默认高度",
|
|
@@ -3686,6 +3965,10 @@
|
|
|
3686
3965
|
"description": "自定义按钮背景色,仅在标题栏 type 为 \"transparent\" 时生效,支持 HEX 和 RGBA 颜色",
|
|
3687
3966
|
"format": "color"
|
|
3688
3967
|
},
|
|
3968
|
+
"badgeText": {
|
|
3969
|
+
"description": "自定义按钮上显示的角标文本,最多显示 3 个字符,超过则显示为 ...",
|
|
3970
|
+
"type": "string"
|
|
3971
|
+
},
|
|
3689
3972
|
"color": {
|
|
3690
3973
|
"$ref": "#/definitions/HEXColor",
|
|
3691
3974
|
"default": "与标题文字样式一样",
|