@uni-helper/pages-json-schema 0.2.17 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schema.json +536 -136
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uni-helper/pages-json-schema",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "description": "Schema for uni-app pages.json",
5
5
  "author": "KeJun",
6
6
  "license": "MIT",
package/schema.json CHANGED
@@ -1193,31 +1193,60 @@
1193
1193
  "description": "设置编译到 App 平台的特定样式,配置项参考 [app-plus](https://uniapp.dcloud.net.cn/collocation/pages#app-plus)\n\n相应的类型是 AppPlus"
1194
1194
  },
1195
1195
  "backgroundColor": {
1196
- "$ref": "#/definitions/HEXColor",
1196
+ "anyOf": [
1197
+ {
1198
+ "$ref": "#/definitions/HEXColor"
1199
+ },
1200
+ {
1201
+ "$ref": "#/definitions/ThemeVar"
1202
+ }
1203
+ ],
1197
1204
  "default": "#ffffff",
1198
1205
  "description": "下拉显示出来的窗口的背景色,支持 HEX 颜色",
1199
1206
  "format": "color"
1200
1207
  },
1201
1208
  "backgroundColorBottom": {
1202
- "$ref": "#/definitions/HEXColor",
1209
+ "anyOf": [
1210
+ {
1211
+ "$ref": "#/definitions/HEXColor"
1212
+ },
1213
+ {
1214
+ "$ref": "#/definitions/ThemeVar"
1215
+ }
1216
+ ],
1203
1217
  "default": "#ffffff",
1204
1218
  "description": "底部窗口的背景色(bounce回弹区域)",
1205
1219
  "format": "color"
1206
1220
  },
1207
1221
  "backgroundColorTop": {
1208
- "$ref": "#/definitions/HEXColor",
1222
+ "anyOf": [
1223
+ {
1224
+ "$ref": "#/definitions/HEXColor"
1225
+ },
1226
+ {
1227
+ "$ref": "#/definitions/ThemeVar"
1228
+ }
1229
+ ],
1209
1230
  "default": "#ffffff",
1210
1231
  "description": "顶部窗口的背景色(bounce回弹区域)",
1211
1232
  "format": "color"
1212
1233
  },
1213
1234
  "backgroundTextStyle": {
1214
- "default": "dark",
1215
- "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\"",
1216
- "enum": [
1217
- "dark",
1218
- "light"
1235
+ "anyOf": [
1236
+ {
1237
+ "const": "dark",
1238
+ "type": "string"
1239
+ },
1240
+ {
1241
+ "const": "light",
1242
+ "type": "string"
1243
+ },
1244
+ {
1245
+ "$ref": "#/definitions/ThemeVar"
1246
+ }
1219
1247
  ],
1220
- "type": "string"
1248
+ "default": "dark",
1249
+ "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
1221
1250
  },
1222
1251
  "dynamicRpx": {
1223
1252
  "default": false,
@@ -1275,7 +1304,14 @@
1275
1304
  "description": "设置编译到 mp-weixin 平台的特定样式,配置项参考 [MP-WEIXIN](https://uniapp.dcloud.net.cn/collocation/pages#mp-weixin) 和 <https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#window>\n\n相应的类型是 MpWeixin"
1276
1305
  },
1277
1306
  "navigationBarBackgroundColor": {
1278
- "$ref": "#/definitions/HEXColor",
1307
+ "anyOf": [
1308
+ {
1309
+ "$ref": "#/definitions/HEXColor"
1310
+ },
1311
+ {
1312
+ "$ref": "#/definitions/ThemeVar"
1313
+ }
1314
+ ],
1279
1315
  "description": "导航栏背景颜色(同状态栏背景色),支持 HEX 颜色",
1280
1316
  "format": "color"
1281
1317
  },
@@ -1299,13 +1335,21 @@
1299
1335
  "type": "object"
1300
1336
  },
1301
1337
  "navigationBarTextStyle": {
1302
- "default": "black",
1303
- "description": "导航栏标题颜色及状态栏前景颜色,仅支持 \"black\" / \"white\"",
1304
- "enum": [
1305
- "black",
1306
- "white"
1338
+ "anyOf": [
1339
+ {
1340
+ "const": "black",
1341
+ "type": "string"
1342
+ },
1343
+ {
1344
+ "const": "white",
1345
+ "type": "string"
1346
+ },
1347
+ {
1348
+ "$ref": "#/definitions/ThemeVar"
1349
+ }
1307
1350
  ],
1308
- "type": "string"
1351
+ "default": "black",
1352
+ "description": "导航栏标题颜色及状态栏前景颜色,仅支持 \"black\" / \"white\""
1309
1353
  },
1310
1354
  "navigationBarTitleText": {
1311
1355
  "description": "导航栏标题文字内容",
@@ -1540,7 +1584,14 @@
1540
1584
  "type": "string"
1541
1585
  },
1542
1586
  "backgroundColor": {
1543
- "$ref": "#/definitions/HEXColor",
1587
+ "anyOf": [
1588
+ {
1589
+ "$ref": "#/definitions/HEXColor"
1590
+ },
1591
+ {
1592
+ "$ref": "#/definitions/ThemeVar"
1593
+ }
1594
+ ],
1544
1595
  "description": "窗口的背景色,支持 HEX 颜色",
1545
1596
  "format": "color"
1546
1597
  },
@@ -1640,28 +1691,57 @@
1640
1691
  "description": "设置编译到 mp-baidu 平台的特定样式,配置项参考 [MP-BAIDU](https://uniapp.dcloud.net.cn/collocation/pages.html#mp-baidu) 和 <https://smartprogram.baidu.com/docs/develop/framework/process/#window>\n\n相应的类型是 MpBaidu",
1641
1692
  "properties": {
1642
1693
  "backgroundColor": {
1643
- "$ref": "#/definitions/HEXColor",
1694
+ "anyOf": [
1695
+ {
1696
+ "$ref": "#/definitions/HEXColor"
1697
+ },
1698
+ {
1699
+ "$ref": "#/definitions/ThemeVar"
1700
+ }
1701
+ ],
1644
1702
  "default": "#FFFFFF",
1645
1703
  "description": "窗口的背景色,支持 HEX 颜色"
1646
1704
  },
1647
1705
  "backgroundColorBottom": {
1648
- "$ref": "#/definitions/HEXColor",
1706
+ "anyOf": [
1707
+ {
1708
+ "$ref": "#/definitions/HEXColor"
1709
+ },
1710
+ {
1711
+ "$ref": "#/definitions/ThemeVar"
1712
+ }
1713
+ ],
1649
1714
  "default": "#FFFFFF",
1650
1715
  "description": "底部窗口的背景色,仅 iOS 支持"
1651
1716
  },
1652
1717
  "backgroundColorTop": {
1653
- "$ref": "#/definitions/HEXColor",
1718
+ "anyOf": [
1719
+ {
1720
+ "$ref": "#/definitions/HEXColor"
1721
+ },
1722
+ {
1723
+ "$ref": "#/definitions/ThemeVar"
1724
+ }
1725
+ ],
1654
1726
  "default": "#FFFFFF",
1655
1727
  "description": "顶部窗口的背景色,仅 iOS 支持"
1656
1728
  },
1657
1729
  "backgroundTextStyle": {
1658
- "default": "dark",
1659
- "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\"",
1660
- "enum": [
1661
- "dark",
1662
- "light"
1730
+ "anyOf": [
1731
+ {
1732
+ "const": "dark",
1733
+ "type": "string"
1734
+ },
1735
+ {
1736
+ "const": "light",
1737
+ "type": "string"
1738
+ },
1739
+ {
1740
+ "$ref": "#/definitions/ThemeVar"
1741
+ }
1663
1742
  ],
1664
- "type": "string"
1743
+ "default": "dark",
1744
+ "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
1665
1745
  },
1666
1746
  "enablePullDownRefresh": {
1667
1747
  "default": false,
@@ -1669,19 +1749,34 @@
1669
1749
  "type": "boolean"
1670
1750
  },
1671
1751
  "navigationBarBackgroundColor": {
1672
- "$ref": "#/definitions/HEXColor",
1752
+ "anyOf": [
1753
+ {
1754
+ "$ref": "#/definitions/HEXColor"
1755
+ },
1756
+ {
1757
+ "$ref": "#/definitions/ThemeVar"
1758
+ }
1759
+ ],
1673
1760
  "default": "#000000",
1674
1761
  "description": "导航栏背景颜色,支持 HEX 颜色",
1675
1762
  "format": "color"
1676
1763
  },
1677
1764
  "navigationBarTextStyle": {
1678
- "default": "white",
1679
- "description": "导航栏标题、状态栏颜色",
1680
- "enum": [
1681
- "black",
1682
- "white"
1765
+ "anyOf": [
1766
+ {
1767
+ "const": "black",
1768
+ "type": "string"
1769
+ },
1770
+ {
1771
+ "const": "white",
1772
+ "type": "string"
1773
+ },
1774
+ {
1775
+ "$ref": "#/definitions/ThemeVar"
1776
+ }
1683
1777
  ],
1684
- "type": "string"
1778
+ "default": "white",
1779
+ "description": "导航栏标题、状态栏颜色"
1685
1780
  },
1686
1781
  "navigationBarTitleText": {
1687
1782
  "description": "导航栏标题文字内容",
@@ -1727,28 +1822,57 @@
1727
1822
  "description": "设置编译到 mp-jd 平台的特定样式,配置项参考 <https://mp-docs.jd.com/doc/dev/framework/504#heading-3>\n\n相应的类型是 MpJd",
1728
1823
  "properties": {
1729
1824
  "backgroundColor": {
1730
- "$ref": "#/definitions/HEXColor",
1825
+ "anyOf": [
1826
+ {
1827
+ "$ref": "#/definitions/HEXColor"
1828
+ },
1829
+ {
1830
+ "$ref": "#/definitions/ThemeVar"
1831
+ }
1832
+ ],
1731
1833
  "default": "#FFFFFF",
1732
1834
  "description": "下拉窗口的背景色,不是页面的背景颜色"
1733
1835
  },
1734
1836
  "backgroundColorBottom": {
1735
- "$ref": "#/definitions/HEXColor",
1837
+ "anyOf": [
1838
+ {
1839
+ "$ref": "#/definitions/HEXColor"
1840
+ },
1841
+ {
1842
+ "$ref": "#/definitions/ThemeVar"
1843
+ }
1844
+ ],
1736
1845
  "default": "#FFFFFF",
1737
1846
  "description": "底部窗口的背景色,仅 iOS 支持"
1738
1847
  },
1739
1848
  "backgroundColorTop": {
1740
- "$ref": "#/definitions/HEXColor",
1849
+ "anyOf": [
1850
+ {
1851
+ "$ref": "#/definitions/HEXColor"
1852
+ },
1853
+ {
1854
+ "$ref": "#/definitions/ThemeVar"
1855
+ }
1856
+ ],
1741
1857
  "default": "#FFFFFF",
1742
1858
  "description": "顶部窗口的背景色,仅 iOS 支持"
1743
1859
  },
1744
1860
  "backgroundTextStyle": {
1745
- "default": "dark",
1746
- "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\"",
1747
- "enum": [
1748
- "dark",
1749
- "light"
1861
+ "anyOf": [
1862
+ {
1863
+ "const": "dark",
1864
+ "type": "string"
1865
+ },
1866
+ {
1867
+ "const": "light",
1868
+ "type": "string"
1869
+ },
1870
+ {
1871
+ "$ref": "#/definitions/ThemeVar"
1872
+ }
1750
1873
  ],
1751
- "type": "string"
1874
+ "default": "dark",
1875
+ "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
1752
1876
  },
1753
1877
  "enablePullDownRefresh": {
1754
1878
  "default": false,
@@ -1756,19 +1880,34 @@
1756
1880
  "type": "boolean"
1757
1881
  },
1758
1882
  "navigationBarBackgroundColor": {
1759
- "$ref": "#/definitions/HEXColor",
1883
+ "anyOf": [
1884
+ {
1885
+ "$ref": "#/definitions/HEXColor"
1886
+ },
1887
+ {
1888
+ "$ref": "#/definitions/ThemeVar"
1889
+ }
1890
+ ],
1760
1891
  "default": "#000000",
1761
1892
  "description": "导航栏背景颜色,支持 HEX 颜色",
1762
1893
  "format": "color"
1763
1894
  },
1764
1895
  "navigationBarTextStyle": {
1765
- "default": "white",
1766
- "description": "导航栏标题、状态栏颜色",
1767
- "enum": [
1768
- "black",
1769
- "white"
1896
+ "anyOf": [
1897
+ {
1898
+ "const": "black",
1899
+ "type": "string"
1900
+ },
1901
+ {
1902
+ "const": "white",
1903
+ "type": "string"
1904
+ },
1905
+ {
1906
+ "$ref": "#/definitions/ThemeVar"
1907
+ }
1770
1908
  ],
1771
- "type": "string"
1909
+ "default": "white",
1910
+ "description": "导航栏标题、状态栏颜色"
1772
1911
  },
1773
1912
  "navigationBarTitleText": {
1774
1913
  "description": "导航栏标题文字内容",
@@ -1790,28 +1929,57 @@
1790
1929
  "description": "设置编译到 mp-kuaishou 平台的特定样式,配置项参考 <https://mp.kuaishou.com/docs/develop/frame/config/conf_appjson.html#window>\n\n相应的类型是 MpKuaishou",
1791
1930
  "properties": {
1792
1931
  "backgroundColor": {
1793
- "$ref": "#/definitions/HEXColor",
1932
+ "anyOf": [
1933
+ {
1934
+ "$ref": "#/definitions/HEXColor"
1935
+ },
1936
+ {
1937
+ "$ref": "#/definitions/ThemeVar"
1938
+ }
1939
+ ],
1794
1940
  "default": "#FFFFFF",
1795
1941
  "description": "窗口的背景色,支持 HEX 颜色"
1796
1942
  },
1797
1943
  "backgroundColorBottom": {
1798
- "$ref": "#/definitions/HEXColor",
1944
+ "anyOf": [
1945
+ {
1946
+ "$ref": "#/definitions/HEXColor"
1947
+ },
1948
+ {
1949
+ "$ref": "#/definitions/ThemeVar"
1950
+ }
1951
+ ],
1799
1952
  "default": "#FFFFFF",
1800
1953
  "description": "底部窗口的背景色,仅 iOS 支持"
1801
1954
  },
1802
1955
  "backgroundColorTop": {
1803
- "$ref": "#/definitions/HEXColor",
1956
+ "anyOf": [
1957
+ {
1958
+ "$ref": "#/definitions/HEXColor"
1959
+ },
1960
+ {
1961
+ "$ref": "#/definitions/ThemeVar"
1962
+ }
1963
+ ],
1804
1964
  "default": "#FFFFFF",
1805
1965
  "description": "顶部窗口的背景色,仅 iOS 支持"
1806
1966
  },
1807
1967
  "backgroundTextStyle": {
1808
- "default": "dark",
1809
- "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\"",
1810
- "enum": [
1811
- "dark",
1812
- "light"
1968
+ "anyOf": [
1969
+ {
1970
+ "const": "dark",
1971
+ "type": "string"
1972
+ },
1973
+ {
1974
+ "const": "light",
1975
+ "type": "string"
1976
+ },
1977
+ {
1978
+ "$ref": "#/definitions/ThemeVar"
1979
+ }
1813
1980
  ],
1814
- "type": "string"
1981
+ "default": "dark",
1982
+ "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
1815
1983
  },
1816
1984
  "enablePullDownRefresh": {
1817
1985
  "default": false,
@@ -1819,19 +1987,34 @@
1819
1987
  "type": "boolean"
1820
1988
  },
1821
1989
  "navigationBarBackgroundColor": {
1822
- "$ref": "#/definitions/HEXColor",
1990
+ "anyOf": [
1991
+ {
1992
+ "$ref": "#/definitions/HEXColor"
1993
+ },
1994
+ {
1995
+ "$ref": "#/definitions/ThemeVar"
1996
+ }
1997
+ ],
1823
1998
  "default": "#000000",
1824
1999
  "description": "导航栏背景颜色,支持 HEX 颜色",
1825
2000
  "format": "color"
1826
2001
  },
1827
2002
  "navigationBarTextStyle": {
1828
- "default": "white",
1829
- "description": "导航栏标题、状态栏颜色",
1830
- "enum": [
1831
- "black",
1832
- "white"
2003
+ "anyOf": [
2004
+ {
2005
+ "const": "black",
2006
+ "type": "string"
2007
+ },
2008
+ {
2009
+ "const": "white",
2010
+ "type": "string"
2011
+ },
2012
+ {
2013
+ "$ref": "#/definitions/ThemeVar"
2014
+ }
1833
2015
  ],
1834
- "type": "string"
2016
+ "default": "white",
2017
+ "description": "导航栏标题、状态栏颜色"
1835
2018
  },
1836
2019
  "navigationBarTitleText": {
1837
2020
  "description": "导航栏标题文字内容",
@@ -1873,28 +2056,57 @@
1873
2056
  "type": "object"
1874
2057
  },
1875
2058
  "backgroundColor": {
1876
- "$ref": "#/definitions/HEXColor",
2059
+ "anyOf": [
2060
+ {
2061
+ "$ref": "#/definitions/HEXColor"
2062
+ },
2063
+ {
2064
+ "$ref": "#/definitions/ThemeVar"
2065
+ }
2066
+ ],
1877
2067
  "default": "#FFFFFF",
1878
2068
  "description": "窗口的背景色,支持 HEX 颜色"
1879
2069
  },
1880
2070
  "backgroundColorBottom": {
1881
- "$ref": "#/definitions/HEXColor",
2071
+ "anyOf": [
2072
+ {
2073
+ "$ref": "#/definitions/HEXColor"
2074
+ },
2075
+ {
2076
+ "$ref": "#/definitions/ThemeVar"
2077
+ }
2078
+ ],
1882
2079
  "default": "#FFFFFF",
1883
2080
  "description": "底部窗口的背景色"
1884
2081
  },
1885
2082
  "backgroundColorTop": {
1886
- "$ref": "#/definitions/HEXColor",
2083
+ "anyOf": [
2084
+ {
2085
+ "$ref": "#/definitions/HEXColor"
2086
+ },
2087
+ {
2088
+ "$ref": "#/definitions/ThemeVar"
2089
+ }
2090
+ ],
1887
2091
  "default": "#FFFFFF",
1888
2092
  "description": "顶部窗口的背景色"
1889
2093
  },
1890
2094
  "backgroundTextStyle": {
1891
- "default": "dark",
1892
- "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\"",
1893
- "enum": [
1894
- "dark",
1895
- "light"
2095
+ "anyOf": [
2096
+ {
2097
+ "const": "dark",
2098
+ "type": "string"
2099
+ },
2100
+ {
2101
+ "const": "light",
2102
+ "type": "string"
2103
+ },
2104
+ {
2105
+ "$ref": "#/definitions/ThemeVar"
2106
+ }
1896
2107
  ],
1897
- "type": "string"
2108
+ "default": "dark",
2109
+ "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
1898
2110
  },
1899
2111
  "enablePullDownRefresh": {
1900
2112
  "default": false,
@@ -1902,19 +2114,34 @@
1902
2114
  "type": "boolean"
1903
2115
  },
1904
2116
  "navigationBarBackgroundColor": {
1905
- "$ref": "#/definitions/HEXColor",
2117
+ "anyOf": [
2118
+ {
2119
+ "$ref": "#/definitions/HEXColor"
2120
+ },
2121
+ {
2122
+ "$ref": "#/definitions/ThemeVar"
2123
+ }
2124
+ ],
1906
2125
  "default": "#000000",
1907
2126
  "description": "导航栏背景颜色,支持 HEX 颜色",
1908
2127
  "format": "color"
1909
2128
  },
1910
2129
  "navigationBarTextStyle": {
1911
- "default": "white",
1912
- "description": "导航栏标题、状态栏颜色",
1913
- "enum": [
1914
- "black",
1915
- "white"
2130
+ "anyOf": [
2131
+ {
2132
+ "const": "black",
2133
+ "type": "string"
2134
+ },
2135
+ {
2136
+ "const": "white",
2137
+ "type": "string"
2138
+ },
2139
+ {
2140
+ "$ref": "#/definitions/ThemeVar"
2141
+ }
1916
2142
  ],
1917
- "type": "string"
2143
+ "default": "white",
2144
+ "description": "导航栏标题、状态栏颜色"
1918
2145
  },
1919
2146
  "navigationBarTitleText": {
1920
2147
  "description": "导航栏标题文字内容",
@@ -1951,28 +2178,57 @@
1951
2178
  "description": "设置编译到 mp-qq 平台的特定样式,配置项参考 <https://q.qq.com/wiki/develop/miniprogram/frame/dispose.html#window>\n\n相应的类型是 MpQq",
1952
2179
  "properties": {
1953
2180
  "backgroundColor": {
1954
- "$ref": "#/definitions/HEXColor",
2181
+ "anyOf": [
2182
+ {
2183
+ "$ref": "#/definitions/HEXColor"
2184
+ },
2185
+ {
2186
+ "$ref": "#/definitions/ThemeVar"
2187
+ }
2188
+ ],
1955
2189
  "default": "#FFFFFF",
1956
2190
  "description": "窗口的背景色,支持 HEX 颜色"
1957
2191
  },
1958
2192
  "backgroundColorBottom": {
1959
- "$ref": "#/definitions/HEXColor",
2193
+ "anyOf": [
2194
+ {
2195
+ "$ref": "#/definitions/HEXColor"
2196
+ },
2197
+ {
2198
+ "$ref": "#/definitions/ThemeVar"
2199
+ }
2200
+ ],
1960
2201
  "default": "#FFFFFF",
1961
2202
  "description": "底部窗口的背景色,仅 iOS 支持"
1962
2203
  },
1963
2204
  "backgroundColorTop": {
1964
- "$ref": "#/definitions/HEXColor",
2205
+ "anyOf": [
2206
+ {
2207
+ "$ref": "#/definitions/HEXColor"
2208
+ },
2209
+ {
2210
+ "$ref": "#/definitions/ThemeVar"
2211
+ }
2212
+ ],
1965
2213
  "default": "#FFFFFF",
1966
2214
  "description": "顶部窗口的背景色,仅 iOS 支持"
1967
2215
  },
1968
2216
  "backgroundTextStyle": {
1969
- "default": "dark",
1970
- "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\"",
1971
- "enum": [
1972
- "dark",
1973
- "light"
2217
+ "anyOf": [
2218
+ {
2219
+ "const": "dark",
2220
+ "type": "string"
2221
+ },
2222
+ {
2223
+ "const": "light",
2224
+ "type": "string"
2225
+ },
2226
+ {
2227
+ "$ref": "#/definitions/ThemeVar"
2228
+ }
1974
2229
  ],
1975
- "type": "string"
2230
+ "default": "dark",
2231
+ "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
1976
2232
  },
1977
2233
  "enablePullDownRefresh": {
1978
2234
  "default": false,
@@ -1980,19 +2236,34 @@
1980
2236
  "type": "boolean"
1981
2237
  },
1982
2238
  "navigationBarBackgroundColor": {
1983
- "$ref": "#/definitions/HEXColor",
2239
+ "anyOf": [
2240
+ {
2241
+ "$ref": "#/definitions/HEXColor"
2242
+ },
2243
+ {
2244
+ "$ref": "#/definitions/ThemeVar"
2245
+ }
2246
+ ],
1984
2247
  "default": "#000000",
1985
2248
  "description": "导航栏背景颜色,支持 HEX 颜色",
1986
2249
  "format": "color"
1987
2250
  },
1988
2251
  "navigationBarTextStyle": {
1989
- "default": "white",
1990
- "description": "导航栏标题、状态栏颜色",
1991
- "enum": [
1992
- "black",
1993
- "white"
2252
+ "anyOf": [
2253
+ {
2254
+ "const": "black",
2255
+ "type": "string"
2256
+ },
2257
+ {
2258
+ "const": "white",
2259
+ "type": "string"
2260
+ },
2261
+ {
2262
+ "$ref": "#/definitions/ThemeVar"
2263
+ }
1994
2264
  ],
1995
- "type": "string"
2265
+ "default": "white",
2266
+ "description": "导航栏标题、状态栏颜色"
1996
2267
  },
1997
2268
  "navigationBarTitleText": {
1998
2269
  "description": "导航栏标题文字内容",
@@ -2024,28 +2295,57 @@
2024
2295
  "description": "设置编译到 mp-toutiao 平台的特定样式,配置项参考 <https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/framework/general-configuration#window>\n\n相应的类型是 MpToutiao",
2025
2296
  "properties": {
2026
2297
  "backgroundColor": {
2027
- "$ref": "#/definitions/HEXColor",
2298
+ "anyOf": [
2299
+ {
2300
+ "$ref": "#/definitions/HEXColor"
2301
+ },
2302
+ {
2303
+ "$ref": "#/definitions/ThemeVar"
2304
+ }
2305
+ ],
2028
2306
  "default": "#FFFFFF",
2029
2307
  "description": "窗口的背景色,支持 HEX 颜色"
2030
2308
  },
2031
2309
  "backgroundColorBottom": {
2032
- "$ref": "#/definitions/HEXColor",
2310
+ "anyOf": [
2311
+ {
2312
+ "$ref": "#/definitions/HEXColor"
2313
+ },
2314
+ {
2315
+ "$ref": "#/definitions/ThemeVar"
2316
+ }
2317
+ ],
2033
2318
  "default": "同 backgroundColor",
2034
2319
  "description": "底部窗口的背景色,仅 iOS 支持"
2035
2320
  },
2036
2321
  "backgroundColorTop": {
2037
- "$ref": "#/definitions/HEXColor",
2322
+ "anyOf": [
2323
+ {
2324
+ "$ref": "#/definitions/HEXColor"
2325
+ },
2326
+ {
2327
+ "$ref": "#/definitions/ThemeVar"
2328
+ }
2329
+ ],
2038
2330
  "default": "同 backgroundColor",
2039
2331
  "description": "顶部窗口的背景色,仅 iOS 支持"
2040
2332
  },
2041
2333
  "backgroundTextStyle": {
2042
- "default": "dark",
2043
- "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\"",
2044
- "enum": [
2045
- "dark",
2046
- "light"
2334
+ "anyOf": [
2335
+ {
2336
+ "const": "dark",
2337
+ "type": "string"
2338
+ },
2339
+ {
2340
+ "const": "light",
2341
+ "type": "string"
2342
+ },
2343
+ {
2344
+ "$ref": "#/definitions/ThemeVar"
2345
+ }
2047
2346
  ],
2048
- "type": "string"
2347
+ "default": "dark",
2348
+ "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
2049
2349
  },
2050
2350
  "enablePullDownRefresh": {
2051
2351
  "default": false,
@@ -2053,19 +2353,34 @@
2053
2353
  "type": "boolean"
2054
2354
  },
2055
2355
  "navigationBarBackgroundColor": {
2056
- "$ref": "#/definitions/HEXColor",
2356
+ "anyOf": [
2357
+ {
2358
+ "$ref": "#/definitions/HEXColor"
2359
+ },
2360
+ {
2361
+ "$ref": "#/definitions/ThemeVar"
2362
+ }
2363
+ ],
2057
2364
  "default": "#000000",
2058
2365
  "description": "导航栏背景颜色,支持 HEX 颜色",
2059
2366
  "format": "color"
2060
2367
  },
2061
2368
  "navigationBarTextStyle": {
2062
- "default": "white",
2063
- "description": "导航栏标题颜色,同时影响标题颜色、右胶囊颜色、左返回箭头颜色",
2064
- "enum": [
2065
- "black",
2066
- "white"
2369
+ "anyOf": [
2370
+ {
2371
+ "const": "black",
2372
+ "type": "string"
2373
+ },
2374
+ {
2375
+ "const": "white",
2376
+ "type": "string"
2377
+ },
2378
+ {
2379
+ "$ref": "#/definitions/ThemeVar"
2380
+ }
2067
2381
  ],
2068
- "type": "string"
2382
+ "default": "white",
2383
+ "description": "导航栏标题颜色,同时影响标题颜色、右胶囊颜色、左返回箭头颜色"
2069
2384
  },
2070
2385
  "navigationBarTitleText": {
2071
2386
  "description": "导航栏标题文字内容",
@@ -2207,28 +2522,57 @@
2207
2522
  "description": "设置编译到 mp-weixin 平台的特定样式,配置项参考 [MP-WEIXIN](https://uniapp.dcloud.net.cn/collocation/pages#mp-weixin) 和 <https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#window>\n\n相应的类型是 MpWeixin",
2208
2523
  "properties": {
2209
2524
  "backgroundColor": {
2210
- "$ref": "#/definitions/HEXColor",
2525
+ "anyOf": [
2526
+ {
2527
+ "$ref": "#/definitions/HEXColor"
2528
+ },
2529
+ {
2530
+ "$ref": "#/definitions/ThemeVar"
2531
+ }
2532
+ ],
2211
2533
  "default": "#FFFFFF",
2212
2534
  "description": "窗口的背景色,支持 HEX 颜色"
2213
2535
  },
2214
2536
  "backgroundColorBottom": {
2215
- "$ref": "#/definitions/HEXColor",
2537
+ "anyOf": [
2538
+ {
2539
+ "$ref": "#/definitions/HEXColor"
2540
+ },
2541
+ {
2542
+ "$ref": "#/definitions/ThemeVar"
2543
+ }
2544
+ ],
2216
2545
  "default": "#FFFFFF",
2217
2546
  "description": "底部窗口的背景色,仅 iOS 支持"
2218
2547
  },
2219
2548
  "backgroundColorTop": {
2220
- "$ref": "#/definitions/HEXColor",
2549
+ "anyOf": [
2550
+ {
2551
+ "$ref": "#/definitions/HEXColor"
2552
+ },
2553
+ {
2554
+ "$ref": "#/definitions/ThemeVar"
2555
+ }
2556
+ ],
2221
2557
  "default": "#FFFFFF",
2222
2558
  "description": "顶部窗口的背景色,仅 iOS 支持"
2223
2559
  },
2224
2560
  "backgroundTextStyle": {
2225
- "default": "dark",
2226
- "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\"",
2227
- "enum": [
2228
- "dark",
2229
- "light"
2561
+ "anyOf": [
2562
+ {
2563
+ "const": "dark",
2564
+ "type": "string"
2565
+ },
2566
+ {
2567
+ "const": "light",
2568
+ "type": "string"
2569
+ },
2570
+ {
2571
+ "$ref": "#/definitions/ThemeVar"
2572
+ }
2230
2573
  ],
2231
- "type": "string"
2574
+ "default": "dark",
2575
+ "description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
2232
2576
  },
2233
2577
  "enablePullDownRefresh": {
2234
2578
  "default": false,
@@ -2259,19 +2603,34 @@
2259
2603
  "type": "string"
2260
2604
  },
2261
2605
  "navigationBarBackgroundColor": {
2262
- "$ref": "#/definitions/HEXColor",
2606
+ "anyOf": [
2607
+ {
2608
+ "$ref": "#/definitions/HEXColor"
2609
+ },
2610
+ {
2611
+ "$ref": "#/definitions/ThemeVar"
2612
+ }
2613
+ ],
2263
2614
  "default": "#000000",
2264
2615
  "description": "导航栏背景颜色,支持 HEX 颜色",
2265
2616
  "format": "color"
2266
2617
  },
2267
2618
  "navigationBarTextStyle": {
2268
- "default": "white",
2269
- "description": "导航栏标题、状态栏颜色",
2270
- "enum": [
2271
- "black",
2272
- "white"
2619
+ "anyOf": [
2620
+ {
2621
+ "const": "black",
2622
+ "type": "string"
2623
+ },
2624
+ {
2625
+ "const": "white",
2626
+ "type": "string"
2627
+ },
2628
+ {
2629
+ "$ref": "#/definitions/ThemeVar"
2630
+ }
2273
2631
  ],
2274
- "type": "string"
2632
+ "default": "white",
2633
+ "description": "导航栏标题、状态栏颜色"
2275
2634
  },
2276
2635
  "navigationBarTitleText": {
2277
2636
  "description": "导航栏标题文字内容",
@@ -2492,7 +2851,14 @@
2492
2851
  "TabBar": {
2493
2852
  "properties": {
2494
2853
  "backgroundColor": {
2495
- "$ref": "#/definitions/HEXColor",
2854
+ "anyOf": [
2855
+ {
2856
+ "$ref": "#/definitions/HEXColor"
2857
+ },
2858
+ {
2859
+ "$ref": "#/definitions/ThemeVar"
2860
+ }
2861
+ ],
2496
2862
  "description": "tab 的背景色",
2497
2863
  "format": "color"
2498
2864
  },
@@ -2534,6 +2900,9 @@
2534
2900
  },
2535
2901
  {
2536
2902
  "$ref": "#/definitions/HEXColor"
2903
+ },
2904
+ {
2905
+ "$ref": "#/definitions/ThemeVar"
2537
2906
  }
2538
2907
  ],
2539
2908
  "default": "black",
@@ -2541,7 +2910,14 @@
2541
2910
  "format": "color"
2542
2911
  },
2543
2912
  "color": {
2544
- "$ref": "#/definitions/HEXColor",
2913
+ "anyOf": [
2914
+ {
2915
+ "$ref": "#/definitions/HEXColor"
2916
+ },
2917
+ {
2918
+ "$ref": "#/definitions/ThemeVar"
2919
+ }
2920
+ ],
2545
2921
  "description": "tab 上的文字默认颜色",
2546
2922
  "format": "color"
2547
2923
  },
@@ -2592,7 +2968,14 @@
2592
2968
  "type": "string"
2593
2969
  },
2594
2970
  "selectedColor": {
2595
- "$ref": "#/definitions/HEXColor",
2971
+ "anyOf": [
2972
+ {
2973
+ "$ref": "#/definitions/HEXColor"
2974
+ },
2975
+ {
2976
+ "$ref": "#/definitions/ThemeVar"
2977
+ }
2978
+ ],
2596
2979
  "description": "tab 上的文字选中时的颜色",
2597
2980
  "format": "color"
2598
2981
  },
@@ -2637,8 +3020,15 @@
2637
3020
  "TabBarItem": {
2638
3021
  "properties": {
2639
3022
  "iconPath": {
2640
- "description": "图片路径,icon 大小限制为 40 kb,建议尺寸为 81px * 81px\n\n当 position 为 \"top\" 时,此参数无效\n\n不支持网络图片,不支持字体图标",
2641
- "type": "string"
3023
+ "anyOf": [
3024
+ {
3025
+ "type": "string"
3026
+ },
3027
+ {
3028
+ "$ref": "#/definitions/ThemeVar"
3029
+ }
3030
+ ],
3031
+ "description": "图片路径,icon 大小限制为 40 kb,建议尺寸为 81px * 81px\n\n当 position 为 \"top\" 时,此参数无效\n\n不支持网络图片,不支持字体图标"
2642
3032
  },
2643
3033
  "iconfont": {
2644
3034
  "$ref": "#/definitions/TabBarIconFont",
@@ -2649,8 +3039,15 @@
2649
3039
  "type": "string"
2650
3040
  },
2651
3041
  "selectedIconPath": {
2652
- "description": "选中时的图片路径,icon 大小限制为 40 kb,建议尺寸为 81px * 81px\n\n当 position 为 \"top\" 时,此参数无效\n\n不支持网络图片,不支持字体图标",
2653
- "type": "string"
3042
+ "anyOf": [
3043
+ {
3044
+ "type": "string"
3045
+ },
3046
+ {
3047
+ "$ref": "#/definitions/ThemeVar"
3048
+ }
3049
+ ],
3050
+ "description": "选中时的图片路径,icon 大小限制为 40 kb,建议尺寸为 81px * 81px\n\n当 position 为 \"top\" 时,此参数无效\n\n不支持网络图片,不支持字体图标"
2654
3051
  },
2655
3052
  "text": {
2656
3053
  "description": "tab 上按钮文字,在 App 和 H5 平台为非必填,例如中间可放一个没有文字的 + 号图标",
@@ -2731,6 +3128,9 @@
2731
3128
  ],
2732
3129
  "type": "object"
2733
3130
  },
3131
+ "ThemeVar": {
3132
+ "type": "string"
3133
+ },
2734
3134
  "TitleNViewButton": {
2735
3135
  "additionalProperties": false,
2736
3136
  "properties": {