@uni-helper/pages-json-schema 0.2.15 → 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.
- package/package.json +1 -1
- package/schema.json +2765 -242
package/schema.json
CHANGED
|
@@ -2,87 +2,1131 @@
|
|
|
2
2
|
"$ref": "#/definitions/PagesConfig",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"definitions": {
|
|
5
|
+
"AnimationType": {
|
|
6
|
+
"description": "窗口动画,详见 [窗口动画](https://uniapp.dcloud.net.cn/api/router.html#animation)",
|
|
7
|
+
"enum": [
|
|
8
|
+
"slide-in-right",
|
|
9
|
+
"slide-in-left",
|
|
10
|
+
"slide-in-top",
|
|
11
|
+
"slide-in-bottom",
|
|
12
|
+
"pop-in",
|
|
13
|
+
"fade-in",
|
|
14
|
+
"zoom-out",
|
|
15
|
+
"zoom-fade-out",
|
|
16
|
+
"none"
|
|
17
|
+
],
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
5
20
|
"AppPlus": {
|
|
6
21
|
"properties": {
|
|
7
22
|
"animationDuration": {
|
|
8
|
-
"default":
|
|
9
|
-
"description": "窗口显示动画的持续时间,单位为 ms
|
|
23
|
+
"default": 300,
|
|
24
|
+
"description": "窗口显示动画的持续时间,单位为 ms",
|
|
10
25
|
"type": "number"
|
|
11
26
|
},
|
|
12
27
|
"animationType": {
|
|
28
|
+
"$ref": "#/definitions/AnimationType",
|
|
13
29
|
"default": "pop-in",
|
|
14
|
-
"description": "
|
|
15
|
-
"type": "string"
|
|
30
|
+
"description": "窗口显示的动画效果,详见 [窗口动画](https://uniapp.dcloud.net.cn/api/router#animation)"
|
|
16
31
|
},
|
|
17
32
|
"background": {
|
|
18
33
|
"$ref": "#/definitions/HEXColor",
|
|
19
34
|
"default": "#FFFFFF",
|
|
20
|
-
"description": "
|
|
35
|
+
"description": "窗体背景色,支持 HEX 颜色\n\n无论 vue 页面还是 nvue 页面,在 App 上都有一个父级原生窗体,该窗体的背景色生效时间快于页面里的 css 生效时间",
|
|
36
|
+
"format": "color"
|
|
21
37
|
},
|
|
22
38
|
"bounce": {
|
|
23
|
-
"description": "页面回弹效果,设置为 \"none\"
|
|
39
|
+
"description": "页面回弹效果,设置为 \"none\" 时关闭效果",
|
|
24
40
|
"type": "string"
|
|
25
41
|
},
|
|
26
42
|
"popGesture": {
|
|
27
43
|
"default": "close",
|
|
28
|
-
"description": "
|
|
44
|
+
"description": "侧滑返回功能,仅支持 \"close\" / \"none\"\n\n\"close\" 启用侧滑返回\n\n\"none\" 禁用侧滑返回",
|
|
45
|
+
"enum": [
|
|
46
|
+
"close",
|
|
47
|
+
"none"
|
|
48
|
+
],
|
|
29
49
|
"type": "string"
|
|
30
50
|
},
|
|
31
51
|
"pullToRefresh": {
|
|
32
52
|
"description": "下拉刷新",
|
|
53
|
+
"properties": {
|
|
54
|
+
"color": {
|
|
55
|
+
"$ref": "#/definitions/HEXColor",
|
|
56
|
+
"default": "#2BD009",
|
|
57
|
+
"description": "下拉刷新控件颜色,仅 style 为 \"circle\" 时有效,支持 HEX 颜色",
|
|
58
|
+
"format": "color"
|
|
59
|
+
},
|
|
60
|
+
"contentdown": {
|
|
61
|
+
"description": "下拉可刷新状态时配置,仅 style 为 \"default\" 时有效",
|
|
62
|
+
"properties": {
|
|
63
|
+
"caption": {
|
|
64
|
+
"description": "下拉可刷新状态时下拉刷新控件标题内容",
|
|
65
|
+
"type": "string"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"type": "object"
|
|
69
|
+
},
|
|
70
|
+
"contentover": {
|
|
71
|
+
"description": "释放可刷新状态时配置,仅 style 为 \"default\" 时有效",
|
|
72
|
+
"properties": {
|
|
73
|
+
"caption": {
|
|
74
|
+
"description": "释放可刷新状态时下拉刷新控件标题内容",
|
|
75
|
+
"type": "string"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"type": "object"
|
|
79
|
+
},
|
|
80
|
+
"contentrefresh": {
|
|
81
|
+
"description": "正在刷新状态时配置,仅 style 为 \"default\" 时有效",
|
|
82
|
+
"properties": {
|
|
83
|
+
"caption": {
|
|
84
|
+
"description": "正在刷新状态时下拉刷新控件标题内容",
|
|
85
|
+
"type": "string"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"type": "object"
|
|
89
|
+
},
|
|
90
|
+
"height": {
|
|
91
|
+
"anyOf": [
|
|
92
|
+
{
|
|
93
|
+
"$ref": "#/definitions/PxSize"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"$ref": "#/definitions/PercentageSize"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"description": "下拉刷新控件进入刷新状态的拉拽高度,支持以 px 为单位的逻辑像素值或百分比"
|
|
100
|
+
},
|
|
101
|
+
"offset": {
|
|
102
|
+
"anyOf": [
|
|
103
|
+
{
|
|
104
|
+
"$ref": "#/definitions/PxSize"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"$ref": "#/definitions/PercentageSize"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"description": "下拉刷新控件的起始位置,仅 style 为 \"circle\" 时有效,用于定义刷新控件下拉时的起始位置,支持以 px 为单位的逻辑像素值或百分比\n\n如使用了非原生 title 且需要原生下拉刷新,一般都设置 style 为 \"circle\" 并将 offset 设置为自定义 title 的高度"
|
|
111
|
+
},
|
|
112
|
+
"range": {
|
|
113
|
+
"anyOf": [
|
|
114
|
+
{
|
|
115
|
+
"$ref": "#/definitions/PxSize"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"$ref": "#/definitions/PercentageSize"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"description": "窗口可下拉拖拽的范围,支持以 px 为单位的逻辑像素值或百分比"
|
|
122
|
+
},
|
|
123
|
+
"style": {
|
|
124
|
+
"default": "Android 为 \"circle\",iOS 为 \"default\"",
|
|
125
|
+
"description": "下拉刷新控件样式\n\n\"default\" 下拉拖动时页面内容跟随\n\n\"circle\" 下拉拖动时仅刷新控件跟随",
|
|
126
|
+
"enum": [
|
|
127
|
+
"default",
|
|
128
|
+
"circle"
|
|
129
|
+
],
|
|
130
|
+
"type": "string"
|
|
131
|
+
},
|
|
132
|
+
"support": {
|
|
133
|
+
"default": false,
|
|
134
|
+
"description": "是否开启窗口下拉刷新",
|
|
135
|
+
"type": "boolean"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
33
138
|
"type": "object"
|
|
34
139
|
},
|
|
35
140
|
"scrollIndicator": {
|
|
36
|
-
"description": "滚动条显示策略,设置为 \"none\"
|
|
141
|
+
"description": "滚动条显示策略,设置为 \"none\" 时不显示滚动条",
|
|
37
142
|
"type": "string"
|
|
38
143
|
},
|
|
39
144
|
"softInputMode": {
|
|
40
145
|
"default": "adjustPan",
|
|
41
|
-
"description": "
|
|
146
|
+
"description": "软键盘弹出模式,仅支持 \"adjustResize\" / \"adjustPan\"",
|
|
147
|
+
"enum": [
|
|
148
|
+
"adjustResize",
|
|
149
|
+
"adjustPan"
|
|
150
|
+
],
|
|
42
151
|
"type": "string"
|
|
43
152
|
},
|
|
44
153
|
"softInputNavBar": {
|
|
45
154
|
"default": "auto",
|
|
46
|
-
"description": "iOS软键盘上完成工具栏的显示模式,设置为 \"none\"
|
|
155
|
+
"description": "iOS 软键盘上完成工具栏的显示模式,设置为 \"none\" 时关闭工具栏",
|
|
156
|
+
"enum": [
|
|
157
|
+
"auto",
|
|
158
|
+
"none"
|
|
159
|
+
],
|
|
47
160
|
"type": "string"
|
|
48
161
|
},
|
|
49
162
|
"subNVues": {
|
|
50
|
-
"description": "
|
|
51
|
-
"
|
|
163
|
+
"description": "原生子窗体,详见 [原生子窗体](https://uniapp.dcloud.net.cn/collocation/pages#app-subNVues)",
|
|
164
|
+
"items": {
|
|
165
|
+
"properties": {
|
|
166
|
+
"id": {
|
|
167
|
+
"description": "原生子窗体的标识",
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
"path": {
|
|
171
|
+
"description": "配置 nvue 文件路径,nvue 文件需放置到使用 subNVue 的页面文件目录下,cli 项目需要去掉 .nvue 后缀,只保留文件名",
|
|
172
|
+
"type": "string"
|
|
173
|
+
},
|
|
174
|
+
"style": {
|
|
175
|
+
"description": "原生子窗体的样式",
|
|
176
|
+
"properties": {
|
|
177
|
+
"background": {
|
|
178
|
+
"anyOf": [
|
|
179
|
+
{
|
|
180
|
+
"$ref": "#/definitions/HEXColor"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"const": "transparent",
|
|
184
|
+
"type": "string"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"default": "#FFFFFF",
|
|
188
|
+
"description": "窗口的背景颜色,支持 Hex 颜色\n\nAndroid 平台 4.0 以上系统支持 \"transparent\" 背景透明样式,比如 subNVue 为圆角时需要设置为 \"transparent\" 才能看到正确的效果",
|
|
189
|
+
"format": "color"
|
|
190
|
+
},
|
|
191
|
+
"bottom": {
|
|
192
|
+
"anyOf": [
|
|
193
|
+
{
|
|
194
|
+
"$ref": "#/definitions/PxSize"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"$ref": "#/definitions/PercentageSize"
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"default": "根据 top 和 height 属性值自动计算",
|
|
201
|
+
"description": "原生子窗体垂直向上的偏移量,支持以 px 为单位的逻辑像素值或百分比\n\n同时设置了 top 和 height 值时,忽略此属性值\n\n未设置 height 时,通过 top 和 bottom 属性值来确定原生子窗体的高度"
|
|
202
|
+
},
|
|
203
|
+
"dock": {
|
|
204
|
+
"default": "bottom",
|
|
205
|
+
"description": "原生子窗体停靠位置,仅 position 为 \"dock\" 时生效\n\n\"top\" 原生子窗体停靠在页面顶部\n\n\"bottom\" 原生子窗体停靠在页面底部\n\n\"right\" 原生子窗体停靠在页面右侧\n\n\"left\" 原生子窗体停靠在页面左侧",
|
|
206
|
+
"enum": [
|
|
207
|
+
"top",
|
|
208
|
+
"bottom",
|
|
209
|
+
"right",
|
|
210
|
+
"left"
|
|
211
|
+
],
|
|
212
|
+
"type": "string"
|
|
213
|
+
},
|
|
214
|
+
"height": {
|
|
215
|
+
"anyOf": [
|
|
216
|
+
{
|
|
217
|
+
"$ref": "#/definitions/PxSize"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"$ref": "#/definitions/PercentageSize"
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"default": "100%",
|
|
224
|
+
"description": "原生子窗体的高度,支持以 px 为单位的逻辑像素值或百分比\n\n未设置时,可同时设置 top 和 bottom 属性值改变窗口的默认高度"
|
|
225
|
+
},
|
|
226
|
+
"left": {
|
|
227
|
+
"anyOf": [
|
|
228
|
+
{
|
|
229
|
+
"$ref": "#/definitions/PxSize"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"$ref": "#/definitions/PercentageSize"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"default": "0px",
|
|
236
|
+
"description": "原生子窗体水平向左的偏移量,支持以 px 为单位的逻辑像素值或百分比\n\n未设置 left 属性值时,优先通过 right 和 width 属性值来计算原生子窗体的 left 位置"
|
|
237
|
+
},
|
|
238
|
+
"margin": {
|
|
239
|
+
"description": "原生子窗体的边距,用于定位原生子窗体的位置,若设置了 left、right、top、bottom 则对应的边距值失效\n\n\"auto\" 居中",
|
|
240
|
+
"type": "string"
|
|
241
|
+
},
|
|
242
|
+
"mask": {
|
|
243
|
+
"$ref": "#/definitions/RGBAColor",
|
|
244
|
+
"default": "rgba(0,0,0,0.5)",
|
|
245
|
+
"description": "原生子窗体的遮罩层,仅当原生子窗体 type 为 \"popup\" 时生效,支持 RGBA 颜色",
|
|
246
|
+
"format": "color"
|
|
247
|
+
},
|
|
248
|
+
"position": {
|
|
249
|
+
"default": "absolute",
|
|
250
|
+
"description": "原生子窗体的排版位置,排版位置决定原生子窗体在父窗口中的定位方式\n\n\"static\" 原生子窗体在页面中正常定位,如果页面存在滚动条则随窗口内容滚动\n\n\"absolute\" 原生子窗体在页面中绝对定位,如果页面存在滚动条不随窗口内容滚动\n\n\"dock\" 原生子窗体在页面中停靠,停靠位置由 dock 属性值决定",
|
|
251
|
+
"enum": [
|
|
252
|
+
"static",
|
|
253
|
+
"absolute",
|
|
254
|
+
"dock"
|
|
255
|
+
],
|
|
256
|
+
"type": "string"
|
|
257
|
+
},
|
|
258
|
+
"right": {
|
|
259
|
+
"anyOf": [
|
|
260
|
+
{
|
|
261
|
+
"$ref": "#/definitions/PxSize"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"$ref": "#/definitions/PercentageSize"
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"default": "根据 left 和 width 属性值来自动计算",
|
|
268
|
+
"description": "原生子窗体水平向右的偏移量,支持以 px 为单位的逻辑像素值或百分比\n\n同时设置了 left 和 height 值时,忽略此属性值\n\n未设置 width 时,通过 left 和 bottom 属性值来确定原生子窗体的宽度"
|
|
269
|
+
},
|
|
270
|
+
"top": {
|
|
271
|
+
"anyOf": [
|
|
272
|
+
{
|
|
273
|
+
"$ref": "#/definitions/PxSize"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"$ref": "#/definitions/PercentageSize"
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"default": "0px",
|
|
280
|
+
"description": "原生子窗体垂直向下的偏移量,支持以 px 为单位的逻辑像素值或百分比\n\n未设置 top 属性值时,优先通过 bottom 和 height 属性值来计算原生子窗体的 top 位置"
|
|
281
|
+
},
|
|
282
|
+
"width": {
|
|
283
|
+
"anyOf": [
|
|
284
|
+
{
|
|
285
|
+
"$ref": "#/definitions/PxSize"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"$ref": "#/definitions/PercentageSize"
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
"default": "100%",
|
|
292
|
+
"description": "原生子窗体的宽度,支持以 px 为单位的逻辑像素值或百分比\n\n未设置时,可同时设置 left 和 right 属性值改变窗口的默认宽度"
|
|
293
|
+
},
|
|
294
|
+
"zindex": {
|
|
295
|
+
"description": "原生子窗体的窗口的堆叠顺序值,拥有更高堆叠顺序的窗口总是会处于堆叠顺序较低的窗口的前面,拥有相同堆叠顺序的窗口后调用 show 方法则在前面",
|
|
296
|
+
"type": "number"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"type": "object"
|
|
300
|
+
},
|
|
301
|
+
"type": {
|
|
302
|
+
"description": "原生子窗口内置样式\n\n\"popup\" 弹出层\n\n\"navigationBar\" 导航栏",
|
|
303
|
+
"type": "string"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"type": "object"
|
|
307
|
+
},
|
|
308
|
+
"type": "array"
|
|
52
309
|
},
|
|
53
310
|
"titleNView": {
|
|
54
311
|
"anyOf": [
|
|
55
|
-
{
|
|
56
|
-
"type": "object"
|
|
57
|
-
},
|
|
58
312
|
{
|
|
59
313
|
"const": false,
|
|
60
314
|
"type": "boolean"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"properties": {
|
|
318
|
+
"autoBackButton": {
|
|
319
|
+
"default": true,
|
|
320
|
+
"description": "标题栏控件是否显示左侧返回按钮",
|
|
321
|
+
"type": "boolean"
|
|
322
|
+
},
|
|
323
|
+
"backButton": {
|
|
324
|
+
"description": "返回按钮的样式,详见 [backButton](https://uniapp.dcloud.net.cn/collocation/pages#app-titlenview-backbuttonstyles)",
|
|
325
|
+
"properties": {
|
|
326
|
+
"background": {
|
|
327
|
+
"anyOf": [
|
|
328
|
+
{
|
|
329
|
+
"$ref": "#/definitions/HEXColor"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"$ref": "#/definitions/RGBAColor"
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"default": "灰色半透明",
|
|
336
|
+
"description": "背景颜色,仅在标题栏 type 为 \"transparent\" 时生效,当标题栏透明时按钮显示的背景颜色,支持 HEX 和 RGBA 颜色",
|
|
337
|
+
"format": "color"
|
|
338
|
+
},
|
|
339
|
+
"badgeText": {
|
|
340
|
+
"description": "角标文本,最多显示3个字符,超过则显示为 ...",
|
|
341
|
+
"type": "string"
|
|
342
|
+
},
|
|
343
|
+
"color": {
|
|
344
|
+
"anyOf": [
|
|
345
|
+
{
|
|
346
|
+
"$ref": "#/definitions/HEXColor"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"$ref": "#/definitions/RGBAColor"
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
"default": "窗口标题栏控件的标题文字颜色",
|
|
353
|
+
"description": "图标和标题颜色,支持 HEX 和 RGBA 颜色",
|
|
354
|
+
"format": "color"
|
|
355
|
+
},
|
|
356
|
+
"colorPressed": {
|
|
357
|
+
"anyOf": [
|
|
358
|
+
{
|
|
359
|
+
"$ref": "#/definitions/HEXColor"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"$ref": "#/definitions/RGBAColor"
|
|
363
|
+
}
|
|
364
|
+
],
|
|
365
|
+
"default": "color 属性值自动调整透明度为 0.3",
|
|
366
|
+
"description": "按下状态按钮文字颜色,支持 HEX 和 RGBA 颜色",
|
|
367
|
+
"format": "color"
|
|
368
|
+
},
|
|
369
|
+
"fontSize": {
|
|
370
|
+
"$ref": "#/definitions/PxSize",
|
|
371
|
+
"description": "返回图标文字大小,单位为 px\n\n窗口标题栏为透明样式 type 为 \"transparent\" 时,默认值为 \"22px\"\n\n窗口标题栏为默认样式 type 为 \"default\" 时,默认值为 \"27px\""
|
|
372
|
+
},
|
|
373
|
+
"fontWeight": {
|
|
374
|
+
"default": "normal",
|
|
375
|
+
"description": "返回图标的粗细\n\n\"normal\" 正常\n\n\"bold\" 粗体",
|
|
376
|
+
"enum": [
|
|
377
|
+
"normal",
|
|
378
|
+
"bold"
|
|
379
|
+
],
|
|
380
|
+
"type": "string"
|
|
381
|
+
},
|
|
382
|
+
"redDot": {
|
|
383
|
+
"default": false,
|
|
384
|
+
"description": "是否显示红点,当设置了角标文本时红点不显示",
|
|
385
|
+
"type": "boolean"
|
|
386
|
+
},
|
|
387
|
+
"title": {
|
|
388
|
+
"default": "",
|
|
389
|
+
"description": "返回按钮上的标题,显示在返回图标(字体图标)后",
|
|
390
|
+
"type": "string"
|
|
391
|
+
},
|
|
392
|
+
"titleWeight": {
|
|
393
|
+
"description": "返回按钮上标题的粗细\n\n\"normal\" 正常\n\n\"bold\" 粗体",
|
|
394
|
+
"enum": [
|
|
395
|
+
"normal",
|
|
396
|
+
"bold"
|
|
397
|
+
],
|
|
398
|
+
"type": "string"
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"type": "object"
|
|
402
|
+
},
|
|
403
|
+
"backgroundColor": {
|
|
404
|
+
"anyOf": [
|
|
405
|
+
{
|
|
406
|
+
"$ref": "#/definitions/HEXColor"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"$ref": "#/definitions/RGBAColor"
|
|
410
|
+
}
|
|
411
|
+
],
|
|
412
|
+
"default": "#F7F7F7",
|
|
413
|
+
"description": "背景颜色,支持 HEX 和 RGBA 颜色,App 端仅悬浮导航栏支持 RGBA 颜色",
|
|
414
|
+
"format": "color"
|
|
415
|
+
},
|
|
416
|
+
"backgroundImage": {
|
|
417
|
+
"description": "背景图片\n\n背景图片路径,如 \"/static/img.png\",仅支持本地文件绝对路径,根据实际标题栏宽高拉伸绘制\n\n渐变色,仅支持线性渐变,两种颜色的渐变,如 \"linear-gradient(to top, #a80077, #66ff00)\",其中第一个参数为渐变方向,可选 \"to right\"(从左向右渐变)/ \"to left\"(从右向左渐变)/ \"to bottom\"(从上到下渐变)/ \"to top\"(从下到上渐变)/ \"to bottom right\"(从左上到右下渐变)/\"to top left\"(从左上到右下渐变)",
|
|
418
|
+
"type": "string"
|
|
419
|
+
},
|
|
420
|
+
"backgroundRepeat": {
|
|
421
|
+
"default": "no-repeat",
|
|
422
|
+
"description": "仅在 backgroundImage 设置为图片路径时有效\n\n\"repeat\" 背景图片在垂直方向和水平方向平铺\n\n\"repeat-x\" 背景图片在水平方向平铺,垂直方向拉伸\n\n\"repeat-y\" 背景图片在垂直方向平铺,水平方向拉伸\n\n\"no-repeat\" 背景图片在垂直方向和水平方向都拉伸",
|
|
423
|
+
"enum": [
|
|
424
|
+
"repeat",
|
|
425
|
+
"repeat-x",
|
|
426
|
+
"repeat-y",
|
|
427
|
+
"no-repeat"
|
|
428
|
+
],
|
|
429
|
+
"type": "string"
|
|
430
|
+
},
|
|
431
|
+
"blurEffect": {
|
|
432
|
+
"default": "none",
|
|
433
|
+
"description": "高斯模糊效果,仅在 type 为 \"transparent\" 或 \"float\" 时有效\n\n使用模糊效果时应避免设置背景颜色,设置背景颜色可能覆盖模糊效果\n\n\"dark\" 暗风格模糊,对应 iOS 原生 UIBlurEffectStyleDark 效果\n\n\"extralight\" 高亮风格模糊,对应 iOS 原生 UIBlurEffectStyleExtraLight 效果\n\n\"light\" 亮风格模糊,对应 iOS 原生 UIBlurEffectStyleLight 效果\n\n\"none\" 无模糊效果",
|
|
434
|
+
"enum": [
|
|
435
|
+
"dark",
|
|
436
|
+
"extralight",
|
|
437
|
+
"light",
|
|
438
|
+
"none"
|
|
439
|
+
],
|
|
440
|
+
"type": "string"
|
|
441
|
+
},
|
|
442
|
+
"buttons": {
|
|
443
|
+
"description": "自定义按钮,详见 [自定义按钮](https://uniapp.dcloud.net.cn/collocation/pages#app-titlenview-buttons)",
|
|
444
|
+
"items": {
|
|
445
|
+
"$ref": "#/definitions/TitleNViewButton"
|
|
446
|
+
},
|
|
447
|
+
"type": "array"
|
|
448
|
+
},
|
|
449
|
+
"coverage": {
|
|
450
|
+
"anyOf": [
|
|
451
|
+
{
|
|
452
|
+
"$ref": "#/definitions/PxSize"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"$ref": "#/definitions/PercentageSize"
|
|
456
|
+
}
|
|
457
|
+
],
|
|
458
|
+
"default": "132px",
|
|
459
|
+
"description": "标题栏控件变化作用范围,仅在 type 为 \"transparent\" 时有效,页面滚动时标题栏背景透明度将发生变化\n\n当页面滚动到指定偏移量时标题栏背景变为完全不透明\n\n支持单位为 px 的逻辑像素值、百分比"
|
|
460
|
+
},
|
|
461
|
+
"homeButton": {
|
|
462
|
+
"default": false,
|
|
463
|
+
"description": "标题栏控件是否显示 Home 按钮",
|
|
464
|
+
"type": "boolean"
|
|
465
|
+
},
|
|
466
|
+
"searchInput": {
|
|
467
|
+
"description": "原生导航栏上的搜索框配置,详见 [searchInput](https://uniapp.dcloud.net.cn/collocation/pages#app-titlenview-searchinput)",
|
|
468
|
+
"properties": {
|
|
469
|
+
"align": {
|
|
470
|
+
"default": "center",
|
|
471
|
+
"description": "非输入状态下文本的对齐方式\n\n\"left\" 居左对齐\n\n\"right\" 居右对齐\n\n\"center\" 居中对齐",
|
|
472
|
+
"enum": [
|
|
473
|
+
"center",
|
|
474
|
+
"left",
|
|
475
|
+
"right"
|
|
476
|
+
],
|
|
477
|
+
"type": "string"
|
|
478
|
+
},
|
|
479
|
+
"autoFocus": {
|
|
480
|
+
"default": false,
|
|
481
|
+
"description": "是否自动获取焦点",
|
|
482
|
+
"type": "boolean"
|
|
483
|
+
},
|
|
484
|
+
"backgroundColor": {
|
|
485
|
+
"anyOf": [
|
|
486
|
+
{
|
|
487
|
+
"$ref": "#/definitions/HEXColor"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"$ref": "#/definitions/RGBAColor"
|
|
491
|
+
}
|
|
492
|
+
],
|
|
493
|
+
"default": "rgba(255,255,255,0.5)",
|
|
494
|
+
"description": "背景颜色,支持 HEX 和 RGBA 颜色",
|
|
495
|
+
"format": "color"
|
|
496
|
+
},
|
|
497
|
+
"borderRadius": {
|
|
498
|
+
"$ref": "#/definitions/PxSize",
|
|
499
|
+
"default": "0px",
|
|
500
|
+
"description": "输入框的圆角半径,单位为 px"
|
|
501
|
+
},
|
|
502
|
+
"disabled": {
|
|
503
|
+
"default": false,
|
|
504
|
+
"description": "是否禁止输入",
|
|
505
|
+
"type": "boolean"
|
|
506
|
+
},
|
|
507
|
+
"placeholder": {
|
|
508
|
+
"description": "提示文本",
|
|
509
|
+
"type": "string"
|
|
510
|
+
},
|
|
511
|
+
"placeholderColor": {
|
|
512
|
+
"$ref": "#/definitions/HEXColor",
|
|
513
|
+
"default": "#CCCCCC",
|
|
514
|
+
"description": "提示文本颜色,支持 HEX 颜色",
|
|
515
|
+
"format": "color"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
"type": "object"
|
|
519
|
+
},
|
|
520
|
+
"splitLine": {
|
|
521
|
+
"anyOf": [
|
|
522
|
+
{
|
|
523
|
+
"type": "boolean"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"properties": {
|
|
527
|
+
"color": {
|
|
528
|
+
"anyOf": [
|
|
529
|
+
{
|
|
530
|
+
"$ref": "#/definitions/HEXColor"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"$ref": "#/definitions/RGBAColor"
|
|
534
|
+
}
|
|
535
|
+
],
|
|
536
|
+
"default": "#CCCCCC",
|
|
537
|
+
"description": "底部分割线颜色,支持 HEX 和 RGBA 颜色",
|
|
538
|
+
"format": "color"
|
|
539
|
+
},
|
|
540
|
+
"height": {
|
|
541
|
+
"anyOf": [
|
|
542
|
+
{
|
|
543
|
+
"$ref": "#/definitions/PxSize"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"$ref": "#/definitions/PercentageSize"
|
|
547
|
+
}
|
|
548
|
+
],
|
|
549
|
+
"default": "1px",
|
|
550
|
+
"description": "底部分割线高度,支持单位为 px 的逻辑像素值、百分比"
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
"type": "object"
|
|
554
|
+
}
|
|
555
|
+
],
|
|
556
|
+
"default": false,
|
|
557
|
+
"description": "是否显示标题栏的底部分割线"
|
|
558
|
+
},
|
|
559
|
+
"subtitleColor": {
|
|
560
|
+
"anyOf": [
|
|
561
|
+
{
|
|
562
|
+
"$ref": "#/definitions/HEXColor"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"$ref": "#/definitions/RGBAColor"
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
"default": "与主标题文字颜色一致",
|
|
569
|
+
"description": "副标题文字颜色,支持 HEX 和 RGBA 颜色",
|
|
570
|
+
"format": "color"
|
|
571
|
+
},
|
|
572
|
+
"subtitleOverflow": {
|
|
573
|
+
"default": "ellipsis",
|
|
574
|
+
"description": "标题文字超出显示区域时处理方式\n\n\"clip\" 超出显示区域时内容裁剪\n\n\"ellipsis\" 超出显示区域时尾部显示省略标记(...)",
|
|
575
|
+
"enum": [
|
|
576
|
+
"clip",
|
|
577
|
+
"ellipsis"
|
|
578
|
+
],
|
|
579
|
+
"type": "string"
|
|
580
|
+
},
|
|
581
|
+
"subtitleSize": {
|
|
582
|
+
"anyOf": [
|
|
583
|
+
{
|
|
584
|
+
"$ref": "#/definitions/PxSize"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"const": "auto",
|
|
588
|
+
"type": "string"
|
|
589
|
+
}
|
|
590
|
+
],
|
|
591
|
+
"default": "auto",
|
|
592
|
+
"description": "副标题文字字体大小,单位为 px\n\n\"auto\" 自动计算,约为 12px"
|
|
593
|
+
},
|
|
594
|
+
"subtitleText": {
|
|
595
|
+
"description": "副标题文字内容,设置副标题后将显示两行标题,副标题显示在主标题(titleText)下方\n\n设置副标题后将居左显示",
|
|
596
|
+
"type": "string"
|
|
597
|
+
},
|
|
598
|
+
"tags": {
|
|
599
|
+
"description": "原生 View 增强,详见 [5+ View 控件](http://www.html5plus.org/doc/zh_cn/nativeobj.html#plus.nativeObj.ViewDrawTagStyles)",
|
|
600
|
+
"items": {
|
|
601
|
+
"properties": {
|
|
602
|
+
"color": {
|
|
603
|
+
"anyOf": [
|
|
604
|
+
{
|
|
605
|
+
"$ref": "#/definitions/HEXColor"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"$ref": "#/definitions/RGBAColor"
|
|
609
|
+
}
|
|
610
|
+
],
|
|
611
|
+
"default": "#FFFFFF",
|
|
612
|
+
"description": "矩形区域颜色,支持 HEX 和 RGBA 颜色\n\n不推荐使用,推荐使用 rectStyles\n\n当 tag 属性值为 \"rect\" 时有效,用于指定矩形区域颜色",
|
|
613
|
+
"format": "color"
|
|
614
|
+
},
|
|
615
|
+
"id": {
|
|
616
|
+
"description": "绘制操作标识\n\n可通过 view 对象的 drawBitmap / drawRect / drawText / clearRect 方法进行更新",
|
|
617
|
+
"type": "string"
|
|
618
|
+
},
|
|
619
|
+
"inputStyles": {
|
|
620
|
+
"description": "绘制输入框的样式\n\n当 tag 属性值为 \"input\" 时有效,用于指定绘制输入框的样式、大小位置等信息",
|
|
621
|
+
"properties": {
|
|
622
|
+
"borderColor": {
|
|
623
|
+
"$ref": "#/definitions/HEXColor",
|
|
624
|
+
"default": "#000000",
|
|
625
|
+
"description": "输入框的边框颜色,支持 HEX 颜色",
|
|
626
|
+
"format": "color"
|
|
627
|
+
},
|
|
628
|
+
"borderRadius": {
|
|
629
|
+
"$ref": "#/definitions/PxSize",
|
|
630
|
+
"default": "0px",
|
|
631
|
+
"description": "输入框的边框圆角半径,单位为 px"
|
|
632
|
+
},
|
|
633
|
+
"borderWidth": {
|
|
634
|
+
"$ref": "#/definitions/PxSize",
|
|
635
|
+
"default": "1px",
|
|
636
|
+
"description": "输入框的边框宽度,单位为 px"
|
|
637
|
+
},
|
|
638
|
+
"fontSize": {
|
|
639
|
+
"$ref": "#/definitions/PxSize",
|
|
640
|
+
"default": "16px",
|
|
641
|
+
"description": "输入框的字体大小,单位为 px"
|
|
642
|
+
},
|
|
643
|
+
"placeholder": {
|
|
644
|
+
"description": "输入框的提示文本\n\n当用户未输入内容时显示在编辑框中(灰色文字)。",
|
|
645
|
+
"type": "string"
|
|
646
|
+
},
|
|
647
|
+
"type": {
|
|
648
|
+
"default": "text",
|
|
649
|
+
"description": "输入框类型\n\n\"email\" 邮箱地址输入框\n\n\"number\" 数字输入框\n\n\"search\" 搜索文本输入框\n\n\"tel\" 电话号码输入框\n\n\"text\" 普通文本输入框\n\n\"url\" URL地址输入框",
|
|
650
|
+
"enum": [
|
|
651
|
+
"email",
|
|
652
|
+
"number",
|
|
653
|
+
"search",
|
|
654
|
+
"tel",
|
|
655
|
+
"text",
|
|
656
|
+
"url"
|
|
657
|
+
],
|
|
658
|
+
"type": "string"
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"type": "object"
|
|
662
|
+
},
|
|
663
|
+
"position": {
|
|
664
|
+
"default": {
|
|
665
|
+
"height": "100%",
|
|
666
|
+
"left": "0px",
|
|
667
|
+
"top": "0px",
|
|
668
|
+
"width": "100%"
|
|
669
|
+
},
|
|
670
|
+
"description": "绘制内容区域,相对于 View 控件的区域信息\n\n当 tag 属性值为 \"img\" 时,用于指定绘制图片的目标区域\n\n当 tag 属性值为 \"rect\" 时,用于指定绘制的矩形区域\n\n当 tag 属性值为 \"font\" 时,用于指定绘制文本的目标区域,此时 height 属性值支持设置为 \"wrap_content\",表示文本高度根据内容自动计算,此时通过 top 来定位文本绘制的起始位置",
|
|
671
|
+
"properties": {
|
|
672
|
+
"bottom": {
|
|
673
|
+
"anyOf": [
|
|
674
|
+
{
|
|
675
|
+
"$ref": "#/definitions/PxSize"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"$ref": "#/definitions/PercentageSize"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"const": "auto",
|
|
682
|
+
"type": "string"
|
|
683
|
+
}
|
|
684
|
+
],
|
|
685
|
+
"description": "区域顶部相对于作用对象或容器向上的偏移量,支持单位为 px 的逻辑像素值、百分比(相对于作用对象或容器的高度)或 \"auto\"\n\n当设置了 top 和 height 值时,忽略此属性值\n\n当未设置 top 值时,可通过 bottom 属性值来确定区域的垂直位置\n\n当未设置 height 值时,可通过 top 和 bottom 属性值来确定区域的高度"
|
|
686
|
+
},
|
|
687
|
+
"height": {
|
|
688
|
+
"anyOf": [
|
|
689
|
+
{
|
|
690
|
+
"$ref": "#/definitions/PxSize"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"$ref": "#/definitions/PercentageSize"
|
|
694
|
+
}
|
|
695
|
+
],
|
|
696
|
+
"default": "100%",
|
|
697
|
+
"description": "区域高度,相对于作用对象或容器的高度,支持单位为 px 的逻辑像素值或百分比"
|
|
698
|
+
},
|
|
699
|
+
"left": {
|
|
700
|
+
"anyOf": [
|
|
701
|
+
{
|
|
702
|
+
"$ref": "#/definitions/PxSize"
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"$ref": "#/definitions/PercentageSize"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"const": "auto",
|
|
709
|
+
"type": "string"
|
|
710
|
+
}
|
|
711
|
+
],
|
|
712
|
+
"default": "0px",
|
|
713
|
+
"description": "区域顶部相对于作用对象或容器向右的偏移量,支持单位为 px 的逻辑像素值、百分比(相对于作用对象或容器的高度)或 \"auto\""
|
|
714
|
+
},
|
|
715
|
+
"right": {
|
|
716
|
+
"anyOf": [
|
|
717
|
+
{
|
|
718
|
+
"$ref": "#/definitions/PxSize"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"$ref": "#/definitions/PercentageSize"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"const": "auto",
|
|
725
|
+
"type": "string"
|
|
726
|
+
}
|
|
727
|
+
],
|
|
728
|
+
"description": "区域顶部相对于作用对象或容器向左的偏移量,支持单位为 px 的逻辑像素值、百分比(相对于作用对象或容器的高度)或 \"auto\"\n\n当设置了 left 和 width 值时,忽略此属性值\n\n当未设置 left 值时,可通过 right 属性值来确定区域的水平位置\n\n当未设置 width 值时,可通过 left 和 right 属性值来确定区域的宽度"
|
|
729
|
+
},
|
|
730
|
+
"top": {
|
|
731
|
+
"anyOf": [
|
|
732
|
+
{
|
|
733
|
+
"$ref": "#/definitions/PxSize"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"$ref": "#/definitions/PercentageSize"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"const": "auto",
|
|
740
|
+
"type": "string"
|
|
741
|
+
}
|
|
742
|
+
],
|
|
743
|
+
"default": "0px",
|
|
744
|
+
"description": "区域顶部相对于作用对象或容器向下的偏移量,支持单位为 px 的逻辑像素值、百分比(相对于作用对象或容器的高度)或 \"auto\""
|
|
745
|
+
},
|
|
746
|
+
"width": {
|
|
747
|
+
"anyOf": [
|
|
748
|
+
{
|
|
749
|
+
"$ref": "#/definitions/PxSize"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"$ref": "#/definitions/PercentageSize"
|
|
753
|
+
}
|
|
754
|
+
],
|
|
755
|
+
"default": "100%",
|
|
756
|
+
"description": "区域宽度,相对于作用对象或容器的宽度,支持单位为 px 的逻辑像素值或百分比"
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
"type": "object"
|
|
760
|
+
},
|
|
761
|
+
"rectStyles": {
|
|
762
|
+
"description": "绘制区域的样式\n\n当 tag 属性值为 \"rect\" 时有效,用于指定绘制区域的样式、填充颜色、圆角大小等信息",
|
|
763
|
+
"properties": {
|
|
764
|
+
"borderColor": {
|
|
765
|
+
"anyOf": [
|
|
766
|
+
{
|
|
767
|
+
"$ref": "#/definitions/HEXColor"
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"$ref": "#/definitions/RGBAColor"
|
|
771
|
+
}
|
|
772
|
+
],
|
|
773
|
+
"default": "color 属性值",
|
|
774
|
+
"description": "矩形边框颜色,绘制矩形边框的颜色,支持 HEX 和 RGBA 颜色",
|
|
775
|
+
"format": "color"
|
|
776
|
+
},
|
|
777
|
+
"borderWidth": {
|
|
778
|
+
"$ref": "#/definitions/PxSize",
|
|
779
|
+
"default": "0px",
|
|
780
|
+
"description": "矩形边框宽度,单位为 px"
|
|
781
|
+
},
|
|
782
|
+
"color": {
|
|
783
|
+
"anyOf": [
|
|
784
|
+
{
|
|
785
|
+
"$ref": "#/definitions/HEXColor"
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
"$ref": "#/definitions/RGBAColor"
|
|
789
|
+
}
|
|
790
|
+
],
|
|
791
|
+
"default": "#FFFFFF",
|
|
792
|
+
"description": "绘制颜色,矩形填充区域的颜色,支持 HEX 和 RGBA 颜色",
|
|
793
|
+
"format": "color"
|
|
794
|
+
},
|
|
795
|
+
"radius": {
|
|
796
|
+
"$ref": "#/definitions/PxSize",
|
|
797
|
+
"default": "0px",
|
|
798
|
+
"description": "矩形区域的圆角半径,单位为 px"
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
"type": "object"
|
|
802
|
+
},
|
|
803
|
+
"richTextStyles": {
|
|
804
|
+
"description": "绘制富文本的样式\n\n当 tag 属性值为 \"richtext\" 时有效,用于指定绘制富文本内容的默认字体颜色、字体类型等信息",
|
|
805
|
+
"properties": {
|
|
806
|
+
"align": {
|
|
807
|
+
"default": "left",
|
|
808
|
+
"description": "富文本内容的水平对齐方式,对整体内容有效,无法单独控制每行的内容\n\n\"left\" 字体在指定的区域中水平居左对齐\n\n\"center\" 字体在指定的区域中水平居中对齐\n\n\"right\" 字体在指定的区域中水平居右对齐",
|
|
809
|
+
"enum": [
|
|
810
|
+
"left",
|
|
811
|
+
"right",
|
|
812
|
+
"center"
|
|
813
|
+
],
|
|
814
|
+
"type": "string"
|
|
815
|
+
},
|
|
816
|
+
"family": {
|
|
817
|
+
"description": "富文本默认使用的字体名称,如果指定名称的字体不存在,则使用默认字体",
|
|
818
|
+
"type": "string"
|
|
819
|
+
},
|
|
820
|
+
"fontSrc": {
|
|
821
|
+
"description": "富文本默认使用的字体文件路径,必须为本地路径,如果指定的文件路径无效,则使用系统默认字体",
|
|
822
|
+
"type": "string"
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
"type": "object"
|
|
826
|
+
},
|
|
827
|
+
"sprite": {
|
|
828
|
+
"default": {
|
|
829
|
+
"height": "100%",
|
|
830
|
+
"left": "0px",
|
|
831
|
+
"top": "0px",
|
|
832
|
+
"width": "100%"
|
|
833
|
+
},
|
|
834
|
+
"description": "图片源的绘制区域\n\n当 tag 属性值为 \"img\" 时有效,用于指定图片源的绘制区域,相对于图片的区域信息",
|
|
835
|
+
"properties": {
|
|
836
|
+
"bottom": {
|
|
837
|
+
"anyOf": [
|
|
838
|
+
{
|
|
839
|
+
"$ref": "#/definitions/PxSize"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"$ref": "#/definitions/PercentageSize"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"const": "auto",
|
|
846
|
+
"type": "string"
|
|
847
|
+
}
|
|
848
|
+
],
|
|
849
|
+
"description": "区域顶部相对于作用对象或容器向上的偏移量,支持单位为 px 的逻辑像素值、百分比(相对于作用对象或容器的高度)或 \"auto\"\n\n当设置了 top 和 height 值时,忽略此属性值\n\n当未设置 top 值时,可通过 bottom 属性值来确定区域的垂直位置\n\n当未设置 height 值时,可通过 top 和 bottom 属性值来确定区域的高度"
|
|
850
|
+
},
|
|
851
|
+
"height": {
|
|
852
|
+
"anyOf": [
|
|
853
|
+
{
|
|
854
|
+
"$ref": "#/definitions/PxSize"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"$ref": "#/definitions/PercentageSize"
|
|
858
|
+
}
|
|
859
|
+
],
|
|
860
|
+
"default": "100%",
|
|
861
|
+
"description": "区域高度,相对于作用对象或容器的高度,支持单位为 px 的逻辑像素值或百分比"
|
|
862
|
+
},
|
|
863
|
+
"left": {
|
|
864
|
+
"anyOf": [
|
|
865
|
+
{
|
|
866
|
+
"$ref": "#/definitions/PxSize"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"$ref": "#/definitions/PercentageSize"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"const": "auto",
|
|
873
|
+
"type": "string"
|
|
874
|
+
}
|
|
875
|
+
],
|
|
876
|
+
"default": "0px",
|
|
877
|
+
"description": "区域顶部相对于作用对象或容器向右的偏移量,支持单位为 px 的逻辑像素值、百分比(相对于作用对象或容器的高度)或 \"auto\""
|
|
878
|
+
},
|
|
879
|
+
"right": {
|
|
880
|
+
"anyOf": [
|
|
881
|
+
{
|
|
882
|
+
"$ref": "#/definitions/PxSize"
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"$ref": "#/definitions/PercentageSize"
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"const": "auto",
|
|
889
|
+
"type": "string"
|
|
890
|
+
}
|
|
891
|
+
],
|
|
892
|
+
"description": "区域顶部相对于作用对象或容器向左的偏移量,支持单位为 px 的逻辑像素值、百分比(相对于作用对象或容器的高度)或 \"auto\"\n\n当设置了 left 和 width 值时,忽略此属性值\n\n当未设置 left 值时,可通过 right 属性值来确定区域的水平位置\n\n当未设置 width 值时,可通过 left 和 right 属性值来确定区域的宽度"
|
|
893
|
+
},
|
|
894
|
+
"top": {
|
|
895
|
+
"anyOf": [
|
|
896
|
+
{
|
|
897
|
+
"$ref": "#/definitions/PxSize"
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"$ref": "#/definitions/PercentageSize"
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
"const": "auto",
|
|
904
|
+
"type": "string"
|
|
905
|
+
}
|
|
906
|
+
],
|
|
907
|
+
"default": "0px",
|
|
908
|
+
"description": "区域顶部相对于作用对象或容器向下的偏移量,支持单位为 px 的逻辑像素值、百分比(相对于作用对象或容器的高度)或 \"auto\""
|
|
909
|
+
},
|
|
910
|
+
"width": {
|
|
911
|
+
"anyOf": [
|
|
912
|
+
{
|
|
913
|
+
"$ref": "#/definitions/PxSize"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"$ref": "#/definitions/PercentageSize"
|
|
917
|
+
}
|
|
918
|
+
],
|
|
919
|
+
"default": "100%",
|
|
920
|
+
"description": "区域宽度,相对于作用对象或容器的宽度,支持单位为 px 的逻辑像素值或百分比"
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
"type": "object"
|
|
924
|
+
},
|
|
925
|
+
"src": {
|
|
926
|
+
"description": "绘制的图片资源\n\n当 tag 属性值为 \"img\" 时有效,可以是图片资源路径(字符串类型)或者图片对象(plus.nativeObj.Bitmap对象)\n\nsrc 路径支持 gif 图片,设置的图片路径文件使用 \".gif\" 后缀时则认为是 gif 图片,如\"_www/loading.gif\"",
|
|
927
|
+
"type": "string"
|
|
928
|
+
},
|
|
929
|
+
"tag": {
|
|
930
|
+
"description": "绘制操作类型\n\n\"img\" 绘制图片,与 drawBitmap 操作一致,此时 id、src、position、sprite 属性值有效\n\n\"rect\" 绘制矩形区域,与 drawRect 操作一致,此时 id、color、position、rectStyles 属性值有效\n\n\"font\" 绘制文本内容,与 drawText 操作一致,此时 id、position、text、textStyles 属性值有效\n\n\"richtext\" 绘制富文本内容,与 drawRichText 操作一致,此时 id、position、text、richTextStyles 属性值有效\n\n\"input\" 绘制输入框内容,此时 id、position、inputStyles 属性值有效",
|
|
931
|
+
"enum": [
|
|
932
|
+
"img",
|
|
933
|
+
"rect",
|
|
934
|
+
"font",
|
|
935
|
+
"richtext",
|
|
936
|
+
"input"
|
|
937
|
+
],
|
|
938
|
+
"type": "string"
|
|
939
|
+
},
|
|
940
|
+
"text": {
|
|
941
|
+
"description": "绘制的文本内容\n\n当 tag 属性值为 \"font\" 时有效,用于保存绘制的文本内容",
|
|
942
|
+
"type": "string"
|
|
943
|
+
},
|
|
944
|
+
"textStyles": {
|
|
945
|
+
"description": "绘制文本的样式\n\n当 tag 属性值为 \"font\" 时有效,用于指定绘制文本内容的字体大小、字体颜色、字体类型等信息",
|
|
946
|
+
"properties": {
|
|
947
|
+
"align": {
|
|
948
|
+
"default": "center",
|
|
949
|
+
"description": "水平对齐方式\n\n\"left\" 字体在指定的区域中水平居左对齐\n\n\"center\" 字体在指定的区域中水平居中对齐\n\n\"right\" 字体在指定的区域中水平居右对齐",
|
|
950
|
+
"enum": [
|
|
951
|
+
"left",
|
|
952
|
+
"right",
|
|
953
|
+
"center"
|
|
954
|
+
],
|
|
955
|
+
"type": "string"
|
|
956
|
+
},
|
|
957
|
+
"color": {
|
|
958
|
+
"anyOf": [
|
|
959
|
+
{
|
|
960
|
+
"$ref": "#/definitions/HEXColor"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"$ref": "#/definitions/RGBAColor"
|
|
964
|
+
}
|
|
965
|
+
],
|
|
966
|
+
"default": "#000000",
|
|
967
|
+
"description": "字体颜色,支持 HEX 和 RGBA 颜色",
|
|
968
|
+
"format": "color"
|
|
969
|
+
},
|
|
970
|
+
"decoration": {
|
|
971
|
+
"default": "none",
|
|
972
|
+
"description": "文本装饰\n\n\"none\" 无装饰效果\n\n\"underline\" 文本带下划线效果\n\n\"line-through\" 文本带贯穿线(删除线)效果",
|
|
973
|
+
"enum": [
|
|
974
|
+
"none",
|
|
975
|
+
"underline",
|
|
976
|
+
"line-through"
|
|
977
|
+
],
|
|
978
|
+
"type": "string"
|
|
979
|
+
},
|
|
980
|
+
"family": {
|
|
981
|
+
"description": "字体名称,如果指定名称的字体不存在,则使用默认字体",
|
|
982
|
+
"type": "string"
|
|
983
|
+
},
|
|
984
|
+
"fontSrc": {
|
|
985
|
+
"description": "字体文件路径",
|
|
986
|
+
"type": "string"
|
|
987
|
+
},
|
|
988
|
+
"lineSpacing": {
|
|
989
|
+
"anyOf": [
|
|
990
|
+
{
|
|
991
|
+
"$ref": "#/definitions/PxSize"
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"$ref": "#/definitions/PercentageSize"
|
|
995
|
+
}
|
|
996
|
+
],
|
|
997
|
+
"default": "20%",
|
|
998
|
+
"description": "文本行间距,支持单位为 px 的逻辑像素值或百分比"
|
|
999
|
+
},
|
|
1000
|
+
"margin": {
|
|
1001
|
+
"default": "0px",
|
|
1002
|
+
"description": "文本间距,用于设置字体在绘制目标区域四个方向(top / right / bottom / left)的边距,支持单位为 px 的逻辑像素值或百分比(相对于绘制目标区域)",
|
|
1003
|
+
"type": "string"
|
|
1004
|
+
},
|
|
1005
|
+
"overflow": {
|
|
1006
|
+
"default": "clip",
|
|
1007
|
+
"description": "文本内容超出显示区域时处理方式\n\n\"clip\" 超出显示区域时内容裁剪\n\n\"ellipsis\" 超出显示区域时尾部显示省略标记(...)",
|
|
1008
|
+
"enum": [
|
|
1009
|
+
"clip",
|
|
1010
|
+
"ellipsis"
|
|
1011
|
+
],
|
|
1012
|
+
"type": "string"
|
|
1013
|
+
},
|
|
1014
|
+
"size": {
|
|
1015
|
+
"$ref": "#/definitions/PxSize",
|
|
1016
|
+
"default": "16px",
|
|
1017
|
+
"description": "字体大小,单位为 px"
|
|
1018
|
+
},
|
|
1019
|
+
"style": {
|
|
1020
|
+
"default": "normal",
|
|
1021
|
+
"description": "字体样式\n\n\"normal\" 正常样式\n\n\"italic\" 斜体样式",
|
|
1022
|
+
"enum": [
|
|
1023
|
+
"normal",
|
|
1024
|
+
"italic"
|
|
1025
|
+
],
|
|
1026
|
+
"type": "string"
|
|
1027
|
+
},
|
|
1028
|
+
"verticalAlign": {
|
|
1029
|
+
"default": "middle",
|
|
1030
|
+
"description": "垂直对齐方式,文本内容在指定绘制区域中的垂直对齐方式\n\n\"top\" 垂直居顶对齐\n\n\"middle\" 垂直居中对齐\n\n\"bottom\" - 垂直居底对齐",
|
|
1031
|
+
"enum": [
|
|
1032
|
+
"top",
|
|
1033
|
+
"middle",
|
|
1034
|
+
"bottom"
|
|
1035
|
+
],
|
|
1036
|
+
"type": "string"
|
|
1037
|
+
},
|
|
1038
|
+
"weight": {
|
|
1039
|
+
"default": "normal",
|
|
1040
|
+
"description": "字体粗细\n\n\"normal\" 正常\n\n\"bold\" 粗体",
|
|
1041
|
+
"enum": [
|
|
1042
|
+
"normal",
|
|
1043
|
+
"bold"
|
|
1044
|
+
],
|
|
1045
|
+
"type": "string"
|
|
1046
|
+
},
|
|
1047
|
+
"whiteSpace": {
|
|
1048
|
+
"default": "nowrap",
|
|
1049
|
+
"description": "文本换行模式\n\n\"nowrap\" 不换行,将所有文本在一行中绘制,忽略换行符(\"\\n\")\n\n\"normal\" 自动换行,当指定的宽度无法绘制所有文本时自动换行绘制,碰到 \"\\n\" 字符时强制换行",
|
|
1050
|
+
"enum": [
|
|
1051
|
+
"normal",
|
|
1052
|
+
"nowrap"
|
|
1053
|
+
],
|
|
1054
|
+
"type": "string"
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
"type": "object"
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
"type": "object"
|
|
1061
|
+
},
|
|
1062
|
+
"type": "array"
|
|
1063
|
+
},
|
|
1064
|
+
"titleAlign": {
|
|
1065
|
+
"default": "auto",
|
|
1066
|
+
"description": "文本对齐方式\n\n\"center\" 居中对齐\n\n\"left\" 居左对齐\n\n\"auto\" 根据平台自动选择(Android 平台居左对齐,iOS 平台居中对齐)",
|
|
1067
|
+
"enum": [
|
|
1068
|
+
"auto",
|
|
1069
|
+
"center",
|
|
1070
|
+
"left"
|
|
1071
|
+
],
|
|
1072
|
+
"type": "string"
|
|
1073
|
+
},
|
|
1074
|
+
"titleColor": {
|
|
1075
|
+
"$ref": "#/definitions/HEXColor",
|
|
1076
|
+
"default": "#000000",
|
|
1077
|
+
"description": "标题文字颜色,支持 HEX 颜色",
|
|
1078
|
+
"format": "color"
|
|
1079
|
+
},
|
|
1080
|
+
"titleIcon": {
|
|
1081
|
+
"description": "标题图标,图标路径如 \"./img/t.png\",仅支持本地文件路径,相对路径,相对于当前页面的 host 位置,固定宽高为逻辑像素值 \"34px\"\n\n图片的宽高需要相同\n\n设置标题图标后标题将居左显示",
|
|
1082
|
+
"type": "string"
|
|
1083
|
+
},
|
|
1084
|
+
"titleIconRadius": {
|
|
1085
|
+
"$ref": "#/definitions/PxSize",
|
|
1086
|
+
"default": "0px",
|
|
1087
|
+
"description": "标题图标圆角,单位为 px"
|
|
1088
|
+
},
|
|
1089
|
+
"titleOverflow": {
|
|
1090
|
+
"default": "ellipsis",
|
|
1091
|
+
"description": "标题文字超出显示区域时处理方式\n\n\"ellipsis\" 超出显示区域时尾部显示省略标记(...)\n\n\"clip\" 超出显示区域时内容裁剪",
|
|
1092
|
+
"enum": [
|
|
1093
|
+
"ellipsis",
|
|
1094
|
+
"clip"
|
|
1095
|
+
],
|
|
1096
|
+
"type": "string"
|
|
1097
|
+
},
|
|
1098
|
+
"titleSize": {
|
|
1099
|
+
"description": "标题文字大小",
|
|
1100
|
+
"type": "string"
|
|
1101
|
+
},
|
|
1102
|
+
"titleText": {
|
|
1103
|
+
"description": "标题文字内容",
|
|
1104
|
+
"type": "string"
|
|
1105
|
+
},
|
|
1106
|
+
"type": {
|
|
1107
|
+
"default": "default",
|
|
1108
|
+
"description": "导航栏样式\n\n\"default\" 默认样式\n\n\"transparent\" 滚动透明渐变\n\n\"float\" 悬浮导航栏",
|
|
1109
|
+
"enum": [
|
|
1110
|
+
"default",
|
|
1111
|
+
"transparent",
|
|
1112
|
+
"float"
|
|
1113
|
+
],
|
|
1114
|
+
"type": "string"
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
"type": "object"
|
|
61
1118
|
}
|
|
62
1119
|
],
|
|
63
|
-
"description": "导航栏
|
|
1120
|
+
"description": "导航栏,详见 [导航栏](https://uniapp.dcloud.net.cn/collocation/pages#app-titlenview)\n\n当 navigationStyle 设为 \"custom\" 或 titleNView 设为 false时,原生导航栏不显示,详见 [自定义导航栏使用注意](https://uniapp.dcloud.net.cn/collocation/pages#customnav)"
|
|
64
1121
|
}
|
|
65
1122
|
},
|
|
66
1123
|
"type": "object"
|
|
67
1124
|
},
|
|
68
|
-
"Color": {
|
|
69
|
-
"anyOf": [
|
|
70
|
-
{
|
|
71
|
-
"$ref": "#/definitions/RGBColor"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"$ref": "#/definitions/RGBAColor"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"$ref": "#/definitions/HEXColor"
|
|
78
|
-
}
|
|
79
|
-
]
|
|
80
|
-
},
|
|
81
1125
|
"Condition": {
|
|
82
1126
|
"additionalProperties": false,
|
|
83
1127
|
"properties": {
|
|
84
1128
|
"current": {
|
|
85
|
-
"description": "当前激活的模式,list节点的索引值",
|
|
1129
|
+
"description": "当前激活的模式,list 节点的索引值",
|
|
86
1130
|
"type": "number"
|
|
87
1131
|
},
|
|
88
1132
|
"list": {
|
|
@@ -108,18 +1152,25 @@
|
|
|
108
1152
|
"type": "array"
|
|
109
1153
|
}
|
|
110
1154
|
},
|
|
1155
|
+
"required": [
|
|
1156
|
+
"current",
|
|
1157
|
+
"list"
|
|
1158
|
+
],
|
|
111
1159
|
"type": "object"
|
|
112
1160
|
},
|
|
113
1161
|
"EasyCom": {
|
|
114
1162
|
"additionalProperties": false,
|
|
115
1163
|
"properties": {
|
|
116
1164
|
"autoscan": {
|
|
1165
|
+
"default": true,
|
|
1166
|
+
"description": "是否开启自动扫描,开启后将会自动扫描符合 `components/组件名称/组件名称.vue` 目录结构的组件",
|
|
117
1167
|
"type": "boolean"
|
|
118
1168
|
},
|
|
119
1169
|
"custom": {
|
|
120
1170
|
"additionalProperties": {
|
|
121
1171
|
"type": "string"
|
|
122
1172
|
},
|
|
1173
|
+
"description": "以正则方式自定义组件匹配规则\n\n如果 `autoscan` 不能满足需求,可以使用 `custom` 自定义匹配规则",
|
|
123
1174
|
"type": "object"
|
|
124
1175
|
}
|
|
125
1176
|
},
|
|
@@ -128,18 +1179,18 @@
|
|
|
128
1179
|
"GlobalStyle": {
|
|
129
1180
|
"properties": {
|
|
130
1181
|
"animationDuration": {
|
|
131
|
-
"default":
|
|
1182
|
+
"default": 300,
|
|
132
1183
|
"description": "窗口显示动画的持续时间,单位为 ms",
|
|
133
1184
|
"type": "number"
|
|
134
1185
|
},
|
|
135
1186
|
"animationType": {
|
|
1187
|
+
"$ref": "#/definitions/AnimationType",
|
|
136
1188
|
"default": "pop-in",
|
|
137
|
-
"description": "
|
|
138
|
-
"type": "string"
|
|
1189
|
+
"description": "窗口显示的动画效果,详见 [窗口动画](https://uniapp.dcloud.net.cn/api/router#animation)"
|
|
139
1190
|
},
|
|
140
1191
|
"app-plus": {
|
|
141
1192
|
"$ref": "#/definitions/AppPlus",
|
|
142
|
-
"description": "设置编译到 App
|
|
1193
|
+
"description": "设置编译到 App 平台的特定样式,配置项参考 [app-plus](https://uniapp.dcloud.net.cn/collocation/pages#app-plus)\n\n相应的类型是 AppPlus"
|
|
143
1194
|
},
|
|
144
1195
|
"backgroundColor": {
|
|
145
1196
|
"anyOf": [
|
|
@@ -147,11 +1198,12 @@
|
|
|
147
1198
|
"$ref": "#/definitions/HEXColor"
|
|
148
1199
|
},
|
|
149
1200
|
{
|
|
150
|
-
"$ref": "#/definitions/
|
|
1201
|
+
"$ref": "#/definitions/ThemeVar"
|
|
151
1202
|
}
|
|
152
1203
|
],
|
|
153
1204
|
"default": "#ffffff",
|
|
154
|
-
"description": "
|
|
1205
|
+
"description": "下拉显示出来的窗口的背景色,支持 HEX 颜色",
|
|
1206
|
+
"format": "color"
|
|
155
1207
|
},
|
|
156
1208
|
"backgroundColorBottom": {
|
|
157
1209
|
"anyOf": [
|
|
@@ -159,11 +1211,12 @@
|
|
|
159
1211
|
"$ref": "#/definitions/HEXColor"
|
|
160
1212
|
},
|
|
161
1213
|
{
|
|
162
|
-
"$ref": "#/definitions/
|
|
1214
|
+
"$ref": "#/definitions/ThemeVar"
|
|
163
1215
|
}
|
|
164
1216
|
],
|
|
165
1217
|
"default": "#ffffff",
|
|
166
|
-
"description": "底部窗口的背景色(bounce回弹区域)"
|
|
1218
|
+
"description": "底部窗口的背景色(bounce回弹区域)",
|
|
1219
|
+
"format": "color"
|
|
167
1220
|
},
|
|
168
1221
|
"backgroundColorTop": {
|
|
169
1222
|
"anyOf": [
|
|
@@ -171,71 +1224,84 @@
|
|
|
171
1224
|
"$ref": "#/definitions/HEXColor"
|
|
172
1225
|
},
|
|
173
1226
|
{
|
|
174
|
-
"$ref": "#/definitions/
|
|
1227
|
+
"$ref": "#/definitions/ThemeVar"
|
|
175
1228
|
}
|
|
176
1229
|
],
|
|
177
1230
|
"default": "#ffffff",
|
|
178
|
-
"description": "顶部窗口的背景色(bounce回弹区域)"
|
|
1231
|
+
"description": "顶部窗口的背景色(bounce回弹区域)",
|
|
1232
|
+
"format": "color"
|
|
179
1233
|
},
|
|
180
1234
|
"backgroundTextStyle": {
|
|
1235
|
+
"anyOf": [
|
|
1236
|
+
{
|
|
1237
|
+
"const": "dark",
|
|
1238
|
+
"type": "string"
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
"const": "light",
|
|
1242
|
+
"type": "string"
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1246
|
+
}
|
|
1247
|
+
],
|
|
181
1248
|
"default": "dark",
|
|
182
|
-
"description": "下拉 loading 的样式,仅支持 dark / light"
|
|
183
|
-
"type": "string"
|
|
1249
|
+
"description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
|
|
184
1250
|
},
|
|
185
1251
|
"dynamicRpx": {
|
|
186
|
-
"default":
|
|
187
|
-
"description": "
|
|
1252
|
+
"default": false,
|
|
1253
|
+
"description": "是否使用动态 rpx,屏幕大小变化会重新渲染 rpx",
|
|
188
1254
|
"type": "boolean"
|
|
189
1255
|
},
|
|
190
1256
|
"enablePullDownRefresh": {
|
|
191
|
-
"default":
|
|
192
|
-
"description": "
|
|
1257
|
+
"default": false,
|
|
1258
|
+
"description": "是否开启下拉刷新,详见 [页面生命周期](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)",
|
|
193
1259
|
"type": "boolean"
|
|
194
1260
|
},
|
|
195
1261
|
"h5": {
|
|
196
1262
|
"$ref": "#/definitions/H5",
|
|
197
|
-
"description": "设置编译到 H5
|
|
1263
|
+
"description": "设置编译到 H5 平台的特定样式,配置项参考 [H5](https://uniapp.dcloud.net.cn/collocation/pages#h5)\n\n相应的类型是 H5"
|
|
198
1264
|
},
|
|
199
1265
|
"leftWindow": {
|
|
200
|
-
"default":
|
|
201
|
-
"description": "当存在 leftWindow 时,默认是否显示 leftWindow",
|
|
1266
|
+
"default": true,
|
|
1267
|
+
"description": "当存在 leftWindow 时,默认是否显示 leftWindow,详见 [topWindow](https://uniapp.dcloud.net.cn/collocation/pages.html#topwindow)",
|
|
202
1268
|
"type": "boolean"
|
|
203
1269
|
},
|
|
204
1270
|
"maxWidth": {
|
|
205
|
-
"description": "
|
|
1271
|
+
"description": "当浏览器可见区域宽度大于 maxWidth 时两侧留白,当小于等于 maxWidth 时页面铺满,单位为 px\n\n不同页面支持配置不同的 maxWidth\n\nmaxWidth = leftWindow(可选)+ page(页面主体)+ rightWindow(可选)\n\n使用时,页面内 fixed 元素需要使用 --window-left 和 --window-right 来保证布局位置正确",
|
|
206
1272
|
"type": "number"
|
|
207
1273
|
},
|
|
208
1274
|
"mp-alipay": {
|
|
209
|
-
"
|
|
210
|
-
"
|
|
1275
|
+
"$ref": "#/definitions/MpAlipay",
|
|
1276
|
+
"description": "设置编译到 mp-alipay 平台的特定样式,配置项参考 [MP-ALIPAY](https://uniapp.dcloud.net.cn/collocation/pages#mp-alipay) 和 <https://opendocs.alipay.com/mini/framework/app-json#window>\n\n相应的类型是 MpAlipay"
|
|
211
1277
|
},
|
|
212
1278
|
"mp-baidu": {
|
|
213
|
-
"
|
|
214
|
-
"
|
|
1279
|
+
"$ref": "#/definitions/MpBaidu",
|
|
1280
|
+
"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"
|
|
215
1281
|
},
|
|
216
1282
|
"mp-jd": {
|
|
217
|
-
"
|
|
218
|
-
"
|
|
1283
|
+
"$ref": "#/definitions/MpJd",
|
|
1284
|
+
"description": "设置编译到 mp-jd 平台的特定样式\n\n相应的类型是 MpJd"
|
|
219
1285
|
},
|
|
220
1286
|
"mp-kuaishou": {
|
|
221
|
-
"
|
|
222
|
-
"
|
|
1287
|
+
"$ref": "#/definitions/MpKuaishou",
|
|
1288
|
+
"description": "设置编译到 mp-kuaishou 平台的特定样式\n\n相应的类型是 MpKuaishou"
|
|
223
1289
|
},
|
|
224
1290
|
"mp-lark": {
|
|
225
|
-
"
|
|
226
|
-
"
|
|
1291
|
+
"$ref": "#/definitions/MpLark",
|
|
1292
|
+
"description": "设置编译到 mp-lark 平台的特定样式\n\n相应的类型是 MpLark"
|
|
227
1293
|
},
|
|
228
1294
|
"mp-qq": {
|
|
229
|
-
"
|
|
230
|
-
"
|
|
1295
|
+
"$ref": "#/definitions/MpQq",
|
|
1296
|
+
"description": "设置编译到 mp-qq 平台的特定样式\n\n相应的类型是 MpQq"
|
|
231
1297
|
},
|
|
232
1298
|
"mp-toutiao": {
|
|
233
|
-
"
|
|
234
|
-
"
|
|
1299
|
+
"$ref": "#/definitions/MpToutiao",
|
|
1300
|
+
"description": "设置编译到 mp-toutiao 平台的特定样式,配置项参考 <https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/framework/general-configuration#window>\n\n相应的类型是 MpToutiao"
|
|
235
1301
|
},
|
|
236
1302
|
"mp-weixin": {
|
|
237
|
-
"
|
|
238
|
-
"
|
|
1303
|
+
"$ref": "#/definitions/MpWeixin",
|
|
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"
|
|
239
1305
|
},
|
|
240
1306
|
"navigationBarBackgroundColor": {
|
|
241
1307
|
"anyOf": [
|
|
@@ -243,16 +1309,47 @@
|
|
|
243
1309
|
"$ref": "#/definitions/HEXColor"
|
|
244
1310
|
},
|
|
245
1311
|
{
|
|
246
|
-
"$ref": "#/definitions/
|
|
1312
|
+
"$ref": "#/definitions/ThemeVar"
|
|
247
1313
|
}
|
|
248
1314
|
],
|
|
249
|
-
"
|
|
250
|
-
"
|
|
1315
|
+
"description": "导航栏背景颜色(同状态栏背景色),支持 HEX 颜色",
|
|
1316
|
+
"format": "color"
|
|
1317
|
+
},
|
|
1318
|
+
"navigationBarShadow": {
|
|
1319
|
+
"additionalProperties": false,
|
|
1320
|
+
"description": "导航栏阴影",
|
|
1321
|
+
"properties": {
|
|
1322
|
+
"colorType": {
|
|
1323
|
+
"description": "阴影颜色",
|
|
1324
|
+
"enum": [
|
|
1325
|
+
"grey",
|
|
1326
|
+
"blue",
|
|
1327
|
+
"green",
|
|
1328
|
+
"orange",
|
|
1329
|
+
"red",
|
|
1330
|
+
"yellow"
|
|
1331
|
+
],
|
|
1332
|
+
"type": "string"
|
|
1333
|
+
}
|
|
1334
|
+
},
|
|
1335
|
+
"type": "object"
|
|
251
1336
|
},
|
|
252
1337
|
"navigationBarTextStyle": {
|
|
253
|
-
"
|
|
254
|
-
|
|
255
|
-
|
|
1338
|
+
"anyOf": [
|
|
1339
|
+
{
|
|
1340
|
+
"const": "black",
|
|
1341
|
+
"type": "string"
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
"const": "white",
|
|
1345
|
+
"type": "string"
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1349
|
+
}
|
|
1350
|
+
],
|
|
1351
|
+
"default": "black",
|
|
1352
|
+
"description": "导航栏标题颜色及状态栏前景颜色,仅支持 \"black\" / \"white\""
|
|
256
1353
|
},
|
|
257
1354
|
"navigationBarTitleText": {
|
|
258
1355
|
"description": "导航栏标题文字内容",
|
|
@@ -260,67 +1357,80 @@
|
|
|
260
1357
|
},
|
|
261
1358
|
"navigationStyle": {
|
|
262
1359
|
"default": "default",
|
|
263
|
-
"description": "导航栏样式,仅支持 default/custom
|
|
1360
|
+
"description": "导航栏样式,仅支持 \"default\" / \"custom\"\n\n\"custom\" 即取消默认的原生导航栏,详看 [使用注意](https://uniapp.dcloud.net.cn/collocation/pages#customnav)",
|
|
1361
|
+
"enum": [
|
|
1362
|
+
"default",
|
|
1363
|
+
"custom"
|
|
1364
|
+
],
|
|
264
1365
|
"type": "string"
|
|
265
1366
|
},
|
|
266
1367
|
"onReachBottomDistance": {
|
|
267
|
-
"default":
|
|
268
|
-
"description": "
|
|
1368
|
+
"default": 50,
|
|
1369
|
+
"description": "页面上拉触底事件触发时距页面底部距离,单位为 px,详见 [页面生命周期](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)",
|
|
269
1370
|
"type": "number"
|
|
270
1371
|
},
|
|
271
1372
|
"pageOrientation": {
|
|
272
1373
|
"default": "portrait",
|
|
273
|
-
"description": "横屏配置,屏幕旋转设置,仅支持 auto / portrait / landscape
|
|
1374
|
+
"description": "横屏配置,屏幕旋转设置,仅支持 \"auto\" / \"portrait\" / \"landscape\",详见 [响应显示区域变化](https://developers.weixin.qq.com/miniprogram/dev/framework/view/resizable.html)\n\n\"auto\" 自动\n\n\"portrait\" 竖屏\n\n\"landscape\" 横屏",
|
|
274
1375
|
"type": "string"
|
|
275
1376
|
},
|
|
276
1377
|
"renderingMode": {
|
|
277
|
-
"description": "同层渲染,webrtc
|
|
1378
|
+
"description": "同层渲染,webrtc(实时音视频)无法正常时尝试配置为 \"seperated\" 强制关掉同层渲染",
|
|
278
1379
|
"type": "string"
|
|
279
1380
|
},
|
|
280
1381
|
"rightWindow": {
|
|
281
|
-
"default":
|
|
282
|
-
"description": "当存在 rightWindow 时,默认是否显示 rightWindow",
|
|
1382
|
+
"default": true,
|
|
1383
|
+
"description": "当存在 rightWindow 时,默认是否显示 rightWindow,详见 [topWindow](https://uniapp.dcloud.net.cn/collocation/pages.html#topwindow)",
|
|
283
1384
|
"type": "boolean"
|
|
284
1385
|
},
|
|
285
1386
|
"rpxCalcBaseDeviceWidth": {
|
|
286
|
-
"default":
|
|
287
|
-
"description": "rpx 计算使用的基准设备宽度,设备实际宽度超出 rpx
|
|
1387
|
+
"default": 375,
|
|
1388
|
+
"description": "rpx 计算使用的基准设备宽度,设备实际宽度超出 rpx 计算所支持的最大设备宽度时将按基准宽度计算,单位为 px",
|
|
288
1389
|
"type": "number"
|
|
289
1390
|
},
|
|
290
1391
|
"rpxCalcIncludeWidth": {
|
|
291
|
-
"default":
|
|
292
|
-
"description": "rpx
|
|
1392
|
+
"default": 750,
|
|
1393
|
+
"description": "rpx 计算特殊处理的值,始终按实际的设备宽度计算,单位为 rpx",
|
|
293
1394
|
"type": "number"
|
|
294
1395
|
},
|
|
295
1396
|
"rpxCalcMaxDeviceWidth": {
|
|
296
|
-
"default":
|
|
297
|
-
"description": "rpx
|
|
1397
|
+
"default": 960,
|
|
1398
|
+
"description": "rpx 计算所支持的最大设备宽度,单位为 px",
|
|
298
1399
|
"type": "number"
|
|
299
1400
|
},
|
|
300
1401
|
"titleImage": {
|
|
301
|
-
"description": "
|
|
1402
|
+
"description": "导航栏图片地址(替换当前文字标题)\n\n支付宝小程序内必须使用 https 图片链接地址",
|
|
302
1403
|
"type": "string"
|
|
303
1404
|
},
|
|
304
1405
|
"titlePenetrate": {
|
|
305
1406
|
"default": "NO",
|
|
306
1407
|
"description": "导航栏点击穿透",
|
|
1408
|
+
"enum": [
|
|
1409
|
+
"YES",
|
|
1410
|
+
"NO"
|
|
1411
|
+
],
|
|
307
1412
|
"type": "string"
|
|
308
1413
|
},
|
|
309
1414
|
"topWindow": {
|
|
310
|
-
"default":
|
|
311
|
-
"description": "当存在 topWindow 时,默认是否显示 topWindow",
|
|
1415
|
+
"default": true,
|
|
1416
|
+
"description": "当存在 topWindow 时,默认是否显示 topWindow,详见 [topWindow](https://uniapp.dcloud.net.cn/collocation/pages.html#topwindow)",
|
|
312
1417
|
"type": "boolean"
|
|
313
1418
|
},
|
|
314
1419
|
"transparentTitle": {
|
|
315
1420
|
"default": "none",
|
|
316
|
-
"description": "
|
|
1421
|
+
"description": "导航栏整体(前景、背景)透明设置,仅支持 \"always\" / \"auto\" / \"none\n\n\"always\" 一直透明\n\n\"auto\" 滑动自适应\n\n\"none\" 不透明",
|
|
1422
|
+
"enum": [
|
|
1423
|
+
"always",
|
|
1424
|
+
"auto",
|
|
1425
|
+
"none"
|
|
1426
|
+
],
|
|
317
1427
|
"type": "string"
|
|
318
1428
|
},
|
|
319
1429
|
"usingComponents": {
|
|
320
1430
|
"additionalProperties": {
|
|
321
1431
|
"type": "string"
|
|
322
1432
|
},
|
|
323
|
-
"description": "
|
|
1433
|
+
"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)",
|
|
324
1434
|
"type": "object"
|
|
325
1435
|
}
|
|
326
1436
|
},
|
|
@@ -328,37 +1438,132 @@
|
|
|
328
1438
|
},
|
|
329
1439
|
"H5": {
|
|
330
1440
|
"properties": {
|
|
331
|
-
"
|
|
332
|
-
"
|
|
333
|
-
"
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
1441
|
+
"pullToRefresh": {
|
|
1442
|
+
"description": "下拉刷新,详见 [下拉刷新](https://uniapp.dcloud.net.cn/collocation/pages#h5-pulltorefresh)",
|
|
1443
|
+
"properties": {
|
|
1444
|
+
"color": {
|
|
1445
|
+
"$ref": "#/definitions/HEXColor",
|
|
1446
|
+
"default": "#2BD009",
|
|
1447
|
+
"description": "下拉刷新控件颜色,支持 HEX 颜色"
|
|
1448
|
+
},
|
|
1449
|
+
"offset": {
|
|
1450
|
+
"anyOf": [
|
|
1451
|
+
{
|
|
1452
|
+
"$ref": "#/definitions/PxSize"
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
"$ref": "#/definitions/PercentageSize"
|
|
1456
|
+
}
|
|
1457
|
+
],
|
|
1458
|
+
"default": "0px",
|
|
1459
|
+
"description": "下拉刷新控件起始位置,支持支持单位为 px 的逻辑像素值或百分比"
|
|
1460
|
+
}
|
|
1461
|
+
},
|
|
343
1462
|
"type": "object"
|
|
344
1463
|
},
|
|
345
|
-
"
|
|
346
|
-
"
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
1464
|
+
"titleNView": {
|
|
1465
|
+
"anyOf": [
|
|
1466
|
+
{
|
|
1467
|
+
"const": false,
|
|
1468
|
+
"type": "boolean"
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
"properties": {
|
|
1472
|
+
"backgroundColor": {
|
|
1473
|
+
"$ref": "#/definitions/HEXColor",
|
|
1474
|
+
"default": "#F7F7F7",
|
|
1475
|
+
"description": "背景颜色,支持 HEX 颜色",
|
|
1476
|
+
"format": "color"
|
|
1477
|
+
},
|
|
1478
|
+
"buttons": {
|
|
1479
|
+
"description": "自定义按钮,详见 [自定义按钮](https://uniapp.dcloud.net.cn/collocation/pages#app-titlenview-buttons)",
|
|
1480
|
+
"items": {
|
|
1481
|
+
"$ref": "#/definitions/TitleNViewButton"
|
|
1482
|
+
},
|
|
1483
|
+
"type": "array"
|
|
1484
|
+
},
|
|
1485
|
+
"searchInput": {
|
|
1486
|
+
"description": "导航栏上的搜索框配置,详见 [searchInput](https://uniapp.dcloud.net.cn/collocation/pages#h5-searchinput)",
|
|
1487
|
+
"properties": {
|
|
1488
|
+
"align": {
|
|
1489
|
+
"default": "center",
|
|
1490
|
+
"description": "非输入状态下文本的对齐方式\n\n\"left\" 居左对齐\n\n\"right\" 居右对齐\n\n\"center\" 居中对齐",
|
|
1491
|
+
"enum": [
|
|
1492
|
+
"center",
|
|
1493
|
+
"left",
|
|
1494
|
+
"right"
|
|
1495
|
+
],
|
|
1496
|
+
"type": "string"
|
|
1497
|
+
},
|
|
1498
|
+
"autoFocus": {
|
|
1499
|
+
"default": false,
|
|
1500
|
+
"description": "是否自动获取焦点",
|
|
1501
|
+
"type": "boolean"
|
|
1502
|
+
},
|
|
1503
|
+
"backgroundColor": {
|
|
1504
|
+
"anyOf": [
|
|
1505
|
+
{
|
|
1506
|
+
"$ref": "#/definitions/HEXColor"
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
"$ref": "#/definitions/RGBAColor"
|
|
1510
|
+
}
|
|
1511
|
+
],
|
|
1512
|
+
"default": "rgba(255,255,255,0.5)",
|
|
1513
|
+
"description": "背景颜色,支持 HEX 和 RGBA 颜色",
|
|
1514
|
+
"format": "color"
|
|
1515
|
+
},
|
|
1516
|
+
"borderRadius": {
|
|
1517
|
+
"$ref": "#/definitions/PxSize",
|
|
1518
|
+
"default": "0px",
|
|
1519
|
+
"description": "输入框的圆角半径,单位为 px"
|
|
1520
|
+
},
|
|
1521
|
+
"disabled": {
|
|
1522
|
+
"default": false,
|
|
1523
|
+
"description": "是否禁止输入",
|
|
1524
|
+
"type": "boolean"
|
|
1525
|
+
},
|
|
1526
|
+
"placeholder": {
|
|
1527
|
+
"description": "提示文本",
|
|
1528
|
+
"type": "string"
|
|
1529
|
+
},
|
|
1530
|
+
"placeholderColor": {
|
|
1531
|
+
"$ref": "#/definitions/HEXColor",
|
|
1532
|
+
"default": "#CCCCCC",
|
|
1533
|
+
"description": "提示文本颜色,支持 HEX 颜色",
|
|
1534
|
+
"format": "color"
|
|
1535
|
+
}
|
|
1536
|
+
},
|
|
1537
|
+
"type": "object"
|
|
1538
|
+
},
|
|
1539
|
+
"titleColor": {
|
|
1540
|
+
"$ref": "#/definitions/HEXColor",
|
|
1541
|
+
"default": "#000000",
|
|
1542
|
+
"description": "标题文字颜色,支持 HEX 颜色",
|
|
1543
|
+
"format": "color"
|
|
1544
|
+
},
|
|
1545
|
+
"titleSize": {
|
|
1546
|
+
"description": "标题文字大小",
|
|
1547
|
+
"type": "string"
|
|
1548
|
+
},
|
|
1549
|
+
"titleText": {
|
|
1550
|
+
"description": "标题文字内容",
|
|
1551
|
+
"type": "string"
|
|
1552
|
+
},
|
|
1553
|
+
"type": {
|
|
1554
|
+
"default": "default",
|
|
1555
|
+
"description": "导航栏样式\n\n\"default\" 默认样式\n\n\"transparent\" 滚动透明渐变",
|
|
1556
|
+
"enum": [
|
|
1557
|
+
"default",
|
|
1558
|
+
"transparent"
|
|
1559
|
+
],
|
|
1560
|
+
"type": "string"
|
|
1561
|
+
}
|
|
1562
|
+
},
|
|
1563
|
+
"type": "object"
|
|
1564
|
+
}
|
|
1565
|
+
],
|
|
1566
|
+
"description": "导航栏,详见 [导航栏](https://uniapp.dcloud.net.cn/collocation/pages#h5-titlenview)"
|
|
362
1567
|
}
|
|
363
1568
|
},
|
|
364
1569
|
"type": "object"
|
|
@@ -366,107 +1571,1154 @@
|
|
|
366
1571
|
"HEXColor": {
|
|
367
1572
|
"type": "string"
|
|
368
1573
|
},
|
|
369
|
-
"
|
|
370
|
-
"
|
|
1574
|
+
"MpAlipay": {
|
|
1575
|
+
"description": "设置编译到 mp-alipay 平台的特定样式,配置项参考 [MP-ALIPAY](https://uniapp.dcloud.net.cn/collocation/pages#mp-alipay) 和 <https://opendocs.alipay.com/mini/framework/app-json#window>\n\n相应的类型是 MpAlipay",
|
|
371
1576
|
"properties": {
|
|
372
|
-
"
|
|
373
|
-
"
|
|
1577
|
+
"allowsBounceVertical": {
|
|
1578
|
+
"default": "YES",
|
|
1579
|
+
"description": "是否允许向下拉拽",
|
|
1580
|
+
"enum": [
|
|
1581
|
+
"YES",
|
|
1582
|
+
"NO"
|
|
1583
|
+
],
|
|
374
1584
|
"type": "string"
|
|
375
1585
|
},
|
|
376
|
-
"
|
|
377
|
-
"
|
|
378
|
-
|
|
1586
|
+
"backgroundColor": {
|
|
1587
|
+
"anyOf": [
|
|
1588
|
+
{
|
|
1589
|
+
"$ref": "#/definitions/HEXColor"
|
|
1590
|
+
},
|
|
1591
|
+
{
|
|
1592
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1593
|
+
}
|
|
1594
|
+
],
|
|
1595
|
+
"description": "窗口的背景色,支持 HEX 颜色",
|
|
1596
|
+
"format": "color"
|
|
379
1597
|
},
|
|
380
|
-
"
|
|
381
|
-
"
|
|
382
|
-
"
|
|
1598
|
+
"backgroundImageColor": {
|
|
1599
|
+
"$ref": "#/definitions/HEXColor",
|
|
1600
|
+
"description": "下拉露出显示背景图的底色,仅 Android 有效,iOS 下页面背景图底色会使用 backgroundColor 的值",
|
|
1601
|
+
"format": "color"
|
|
383
1602
|
},
|
|
384
|
-
"
|
|
385
|
-
"description": "
|
|
1603
|
+
"backgroundImageUrl": {
|
|
1604
|
+
"description": "下拉露出显示背景图的链接,支持网络地址和本地地址,尽量使用绝对地址",
|
|
386
1605
|
"type": "string"
|
|
387
1606
|
},
|
|
388
|
-
"
|
|
389
|
-
"description": "
|
|
390
|
-
"type": "string"
|
|
391
|
-
}
|
|
392
|
-
},
|
|
393
|
-
"type": "object"
|
|
394
|
-
},
|
|
395
|
-
"MidButton": {
|
|
396
|
-
"additionalProperties": false,
|
|
397
|
-
"properties": {
|
|
398
|
-
"backgroundImage": {
|
|
399
|
-
"description": "中间按钮的背景图片路径",
|
|
1607
|
+
"defaultTitle": {
|
|
1608
|
+
"description": "页面默认标题",
|
|
400
1609
|
"type": "string"
|
|
401
1610
|
},
|
|
402
|
-
"
|
|
403
|
-
"default": "
|
|
404
|
-
"description": "
|
|
1611
|
+
"enableScrollBar": {
|
|
1612
|
+
"default": "YES",
|
|
1613
|
+
"description": "仅支持 Android,是否显示 WebView 滚动条",
|
|
1614
|
+
"enum": [
|
|
1615
|
+
"YES",
|
|
1616
|
+
"NO"
|
|
1617
|
+
],
|
|
405
1618
|
"type": "string"
|
|
406
1619
|
},
|
|
407
|
-
"
|
|
408
|
-
"
|
|
1620
|
+
"gestureBack": {
|
|
1621
|
+
"default": "YES",
|
|
1622
|
+
"description": "仅支持 iOS,是否支持手势返回",
|
|
1623
|
+
"enum": [
|
|
1624
|
+
"YES",
|
|
1625
|
+
"NO"
|
|
1626
|
+
],
|
|
409
1627
|
"type": "string"
|
|
410
1628
|
},
|
|
411
|
-
"
|
|
412
|
-
"
|
|
413
|
-
"
|
|
1629
|
+
"navigationBarFrontColor": {
|
|
1630
|
+
"description": "导航栏前景色",
|
|
1631
|
+
"enum": [
|
|
1632
|
+
"black",
|
|
1633
|
+
"white"
|
|
1634
|
+
],
|
|
414
1635
|
"type": "string"
|
|
415
1636
|
},
|
|
416
|
-
"
|
|
417
|
-
"
|
|
418
|
-
"
|
|
1637
|
+
"onReachBottomDistance": {
|
|
1638
|
+
"description": "页面上拉触底时触发时距离页面底部的距离,单位为 px,详情可查看 [页面事件处理函数](https://opendocs.alipay.com/mini/framework/page-detail#%E9%A1%B5%E9%9D%A2%E4%BA%8B%E4%BB%B6%E5%A4%84%E7%90%86%E5%87%BD%E6%95%B0)",
|
|
1639
|
+
"type": "number"
|
|
419
1640
|
},
|
|
420
|
-
"
|
|
421
|
-
"
|
|
422
|
-
"
|
|
1641
|
+
"pullRefresh": {
|
|
1642
|
+
"default": false,
|
|
1643
|
+
"description": "是否允许下拉刷新,allowsBounceVertical 值需要为 \"YES\",全局配置后全局生效,但是如果单个页面配置了该参数,以页面的配置为准",
|
|
1644
|
+
"type": "boolean"
|
|
423
1645
|
},
|
|
424
|
-
"
|
|
425
|
-
"default":
|
|
426
|
-
"description": "
|
|
427
|
-
"type": "string"
|
|
428
|
-
}
|
|
429
|
-
},
|
|
430
|
-
"type": "object"
|
|
431
|
-
},
|
|
432
|
-
"PageMetaDatum": {
|
|
433
|
-
"properties": {
|
|
434
|
-
"needLogin": {
|
|
435
|
-
"description": "当前页面是否需要登录才可以访问,此配置优先级高于 uniIdRouter 下的 needLogin",
|
|
1646
|
+
"responsive": {
|
|
1647
|
+
"default": true,
|
|
1648
|
+
"description": "rpx 单位是否宽度自适应\n\n当设置为 false 时,2 rpx 将恒等于 1 px,不再根据屏幕宽度进行自适应,此时 750 rpx 将不再等于 100% 宽度",
|
|
436
1649
|
"type": "boolean"
|
|
437
1650
|
},
|
|
438
|
-
"
|
|
439
|
-
"
|
|
1651
|
+
"showTitleLoading": {
|
|
1652
|
+
"default": "NO",
|
|
1653
|
+
"description": "是否进入时显示导航栏的 loading",
|
|
1654
|
+
"enum": [
|
|
1655
|
+
"YES",
|
|
1656
|
+
"NO"
|
|
1657
|
+
],
|
|
440
1658
|
"type": "string"
|
|
441
1659
|
},
|
|
442
|
-
"
|
|
443
|
-
"$ref": "#/definitions/
|
|
444
|
-
"description": "
|
|
1660
|
+
"titleBarColor": {
|
|
1661
|
+
"$ref": "#/definitions/HEXColor",
|
|
1662
|
+
"description": "导航栏背景色,支持 HEX 颜色"
|
|
445
1663
|
},
|
|
446
|
-
"
|
|
1664
|
+
"titleImage": {
|
|
1665
|
+
"description": "导航栏图片地址,会替换当前文字标题,只支持 https 图片链接",
|
|
1666
|
+
"type": "string"
|
|
1667
|
+
},
|
|
1668
|
+
"titlePenetrate": {
|
|
1669
|
+
"default": "NO",
|
|
1670
|
+
"description": "导航栏点击穿透",
|
|
1671
|
+
"enum": [
|
|
1672
|
+
"YES",
|
|
1673
|
+
"NO"
|
|
1674
|
+
],
|
|
1675
|
+
"type": "string"
|
|
1676
|
+
},
|
|
1677
|
+
"transparentTitle": {
|
|
1678
|
+
"default": "none",
|
|
1679
|
+
"description": "导航栏透明设置\n\nalways 一直透明\n\nauto 滑动自适应\n\nnone 不透明",
|
|
1680
|
+
"enum": [
|
|
1681
|
+
"always",
|
|
1682
|
+
"auto",
|
|
1683
|
+
"none"
|
|
1684
|
+
],
|
|
447
1685
|
"type": "string"
|
|
448
1686
|
}
|
|
449
1687
|
},
|
|
450
|
-
"required": [
|
|
451
|
-
"path"
|
|
452
|
-
],
|
|
453
1688
|
"type": "object"
|
|
454
1689
|
},
|
|
455
|
-
"
|
|
1690
|
+
"MpBaidu": {
|
|
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",
|
|
456
1692
|
"properties": {
|
|
457
|
-
"
|
|
458
|
-
"
|
|
459
|
-
|
|
1693
|
+
"backgroundColor": {
|
|
1694
|
+
"anyOf": [
|
|
1695
|
+
{
|
|
1696
|
+
"$ref": "#/definitions/HEXColor"
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1700
|
+
}
|
|
1701
|
+
],
|
|
1702
|
+
"default": "#FFFFFF",
|
|
1703
|
+
"description": "窗口的背景色,支持 HEX 颜色"
|
|
460
1704
|
},
|
|
461
|
-
"
|
|
462
|
-
"
|
|
463
|
-
|
|
1705
|
+
"backgroundColorBottom": {
|
|
1706
|
+
"anyOf": [
|
|
1707
|
+
{
|
|
1708
|
+
"$ref": "#/definitions/HEXColor"
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1712
|
+
}
|
|
1713
|
+
],
|
|
1714
|
+
"default": "#FFFFFF",
|
|
1715
|
+
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
464
1716
|
},
|
|
465
|
-
"
|
|
466
|
-
"
|
|
467
|
-
|
|
1717
|
+
"backgroundColorTop": {
|
|
1718
|
+
"anyOf": [
|
|
1719
|
+
{
|
|
1720
|
+
"$ref": "#/definitions/HEXColor"
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1724
|
+
}
|
|
1725
|
+
],
|
|
1726
|
+
"default": "#FFFFFF",
|
|
1727
|
+
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
468
1728
|
},
|
|
469
|
-
"
|
|
1729
|
+
"backgroundTextStyle": {
|
|
1730
|
+
"anyOf": [
|
|
1731
|
+
{
|
|
1732
|
+
"const": "dark",
|
|
1733
|
+
"type": "string"
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
"const": "light",
|
|
1737
|
+
"type": "string"
|
|
1738
|
+
},
|
|
1739
|
+
{
|
|
1740
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1741
|
+
}
|
|
1742
|
+
],
|
|
1743
|
+
"default": "dark",
|
|
1744
|
+
"description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
|
|
1745
|
+
},
|
|
1746
|
+
"enablePullDownRefresh": {
|
|
1747
|
+
"default": false,
|
|
1748
|
+
"description": "是否开启全局的下拉刷新",
|
|
1749
|
+
"type": "boolean"
|
|
1750
|
+
},
|
|
1751
|
+
"navigationBarBackgroundColor": {
|
|
1752
|
+
"anyOf": [
|
|
1753
|
+
{
|
|
1754
|
+
"$ref": "#/definitions/HEXColor"
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1758
|
+
}
|
|
1759
|
+
],
|
|
1760
|
+
"default": "#000000",
|
|
1761
|
+
"description": "导航栏背景颜色,支持 HEX 颜色",
|
|
1762
|
+
"format": "color"
|
|
1763
|
+
},
|
|
1764
|
+
"navigationBarTextStyle": {
|
|
1765
|
+
"anyOf": [
|
|
1766
|
+
{
|
|
1767
|
+
"const": "black",
|
|
1768
|
+
"type": "string"
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
"const": "white",
|
|
1772
|
+
"type": "string"
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1776
|
+
}
|
|
1777
|
+
],
|
|
1778
|
+
"default": "white",
|
|
1779
|
+
"description": "导航栏标题、状态栏颜色"
|
|
1780
|
+
},
|
|
1781
|
+
"navigationBarTitleText": {
|
|
1782
|
+
"description": "导航栏标题文字内容",
|
|
1783
|
+
"type": "string"
|
|
1784
|
+
},
|
|
1785
|
+
"navigationStyle": {
|
|
1786
|
+
"default": "default",
|
|
1787
|
+
"description": "导航栏样式\n\n\"default\" 默认样式\n\n\"custom\" 自定义导航栏,只保留右上角胶囊按钮",
|
|
1788
|
+
"enum": [
|
|
1789
|
+
"default",
|
|
1790
|
+
"custom"
|
|
1791
|
+
],
|
|
1792
|
+
"type": "string"
|
|
1793
|
+
},
|
|
1794
|
+
"onReachBottomDistance": {
|
|
1795
|
+
"default": 50,
|
|
1796
|
+
"description": "页面上拉触底事件触发时距页面底部距离,单位为 px",
|
|
1797
|
+
"type": "number"
|
|
1798
|
+
},
|
|
1799
|
+
"pageOrientation": {
|
|
1800
|
+
"default": "portrait",
|
|
1801
|
+
"description": "屏幕旋转设置,支持 auto / portrait / landscape\n\n\"auto\" 自动\n\n\"portrait\" 竖屏\n\n\"landscape\" 横屏",
|
|
1802
|
+
"enum": [
|
|
1803
|
+
"auto",
|
|
1804
|
+
"portrait",
|
|
1805
|
+
"landscape"
|
|
1806
|
+
],
|
|
1807
|
+
"type": "string"
|
|
1808
|
+
},
|
|
1809
|
+
"textSizeAdjust": {
|
|
1810
|
+
"default": "auto",
|
|
1811
|
+
"description": "小程序页面是否禁止响应字体大小的设置\n\n\"auto\" 默认响应\n\n\"none\" 不响应",
|
|
1812
|
+
"enum": [
|
|
1813
|
+
"auto",
|
|
1814
|
+
"none"
|
|
1815
|
+
],
|
|
1816
|
+
"type": "string"
|
|
1817
|
+
}
|
|
1818
|
+
},
|
|
1819
|
+
"type": "object"
|
|
1820
|
+
},
|
|
1821
|
+
"MpJd": {
|
|
1822
|
+
"description": "设置编译到 mp-jd 平台的特定样式,配置项参考 <https://mp-docs.jd.com/doc/dev/framework/504#heading-3>\n\n相应的类型是 MpJd",
|
|
1823
|
+
"properties": {
|
|
1824
|
+
"backgroundColor": {
|
|
1825
|
+
"anyOf": [
|
|
1826
|
+
{
|
|
1827
|
+
"$ref": "#/definitions/HEXColor"
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1831
|
+
}
|
|
1832
|
+
],
|
|
1833
|
+
"default": "#FFFFFF",
|
|
1834
|
+
"description": "下拉窗口的背景色,不是页面的背景颜色"
|
|
1835
|
+
},
|
|
1836
|
+
"backgroundColorBottom": {
|
|
1837
|
+
"anyOf": [
|
|
1838
|
+
{
|
|
1839
|
+
"$ref": "#/definitions/HEXColor"
|
|
1840
|
+
},
|
|
1841
|
+
{
|
|
1842
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1843
|
+
}
|
|
1844
|
+
],
|
|
1845
|
+
"default": "#FFFFFF",
|
|
1846
|
+
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
1847
|
+
},
|
|
1848
|
+
"backgroundColorTop": {
|
|
1849
|
+
"anyOf": [
|
|
1850
|
+
{
|
|
1851
|
+
"$ref": "#/definitions/HEXColor"
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1855
|
+
}
|
|
1856
|
+
],
|
|
1857
|
+
"default": "#FFFFFF",
|
|
1858
|
+
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
1859
|
+
},
|
|
1860
|
+
"backgroundTextStyle": {
|
|
1861
|
+
"anyOf": [
|
|
1862
|
+
{
|
|
1863
|
+
"const": "dark",
|
|
1864
|
+
"type": "string"
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
"const": "light",
|
|
1868
|
+
"type": "string"
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1872
|
+
}
|
|
1873
|
+
],
|
|
1874
|
+
"default": "dark",
|
|
1875
|
+
"description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
|
|
1876
|
+
},
|
|
1877
|
+
"enablePullDownRefresh": {
|
|
1878
|
+
"default": false,
|
|
1879
|
+
"description": "是否开启全局的下拉刷新,详见 [Page.onPullDownRefresh](https://mp-docs.jd.com/doc/dev/framework/520#heading-10)",
|
|
1880
|
+
"type": "boolean"
|
|
1881
|
+
},
|
|
1882
|
+
"navigationBarBackgroundColor": {
|
|
1883
|
+
"anyOf": [
|
|
1884
|
+
{
|
|
1885
|
+
"$ref": "#/definitions/HEXColor"
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1889
|
+
}
|
|
1890
|
+
],
|
|
1891
|
+
"default": "#000000",
|
|
1892
|
+
"description": "导航栏背景颜色,支持 HEX 颜色",
|
|
1893
|
+
"format": "color"
|
|
1894
|
+
},
|
|
1895
|
+
"navigationBarTextStyle": {
|
|
1896
|
+
"anyOf": [
|
|
1897
|
+
{
|
|
1898
|
+
"const": "black",
|
|
1899
|
+
"type": "string"
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
"const": "white",
|
|
1903
|
+
"type": "string"
|
|
1904
|
+
},
|
|
1905
|
+
{
|
|
1906
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1907
|
+
}
|
|
1908
|
+
],
|
|
1909
|
+
"default": "white",
|
|
1910
|
+
"description": "导航栏标题、状态栏颜色"
|
|
1911
|
+
},
|
|
1912
|
+
"navigationBarTitleText": {
|
|
1913
|
+
"description": "导航栏标题文字内容",
|
|
1914
|
+
"type": "string"
|
|
1915
|
+
},
|
|
1916
|
+
"navigationStyle": {
|
|
1917
|
+
"default": "default",
|
|
1918
|
+
"description": "导航栏样式\n\n\"default\" 默认样式\n\n\"custom\" 自定义导航栏,只保留右上角胶囊按钮",
|
|
1919
|
+
"enum": [
|
|
1920
|
+
"default",
|
|
1921
|
+
"custom"
|
|
1922
|
+
],
|
|
1923
|
+
"type": "string"
|
|
1924
|
+
}
|
|
1925
|
+
},
|
|
1926
|
+
"type": "object"
|
|
1927
|
+
},
|
|
1928
|
+
"MpKuaishou": {
|
|
1929
|
+
"description": "设置编译到 mp-kuaishou 平台的特定样式,配置项参考 <https://mp.kuaishou.com/docs/develop/frame/config/conf_appjson.html#window>\n\n相应的类型是 MpKuaishou",
|
|
1930
|
+
"properties": {
|
|
1931
|
+
"backgroundColor": {
|
|
1932
|
+
"anyOf": [
|
|
1933
|
+
{
|
|
1934
|
+
"$ref": "#/definitions/HEXColor"
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1938
|
+
}
|
|
1939
|
+
],
|
|
1940
|
+
"default": "#FFFFFF",
|
|
1941
|
+
"description": "窗口的背景色,支持 HEX 颜色"
|
|
1942
|
+
},
|
|
1943
|
+
"backgroundColorBottom": {
|
|
1944
|
+
"anyOf": [
|
|
1945
|
+
{
|
|
1946
|
+
"$ref": "#/definitions/HEXColor"
|
|
1947
|
+
},
|
|
1948
|
+
{
|
|
1949
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1950
|
+
}
|
|
1951
|
+
],
|
|
1952
|
+
"default": "#FFFFFF",
|
|
1953
|
+
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
1954
|
+
},
|
|
1955
|
+
"backgroundColorTop": {
|
|
1956
|
+
"anyOf": [
|
|
1957
|
+
{
|
|
1958
|
+
"$ref": "#/definitions/HEXColor"
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1962
|
+
}
|
|
1963
|
+
],
|
|
1964
|
+
"default": "#FFFFFF",
|
|
1965
|
+
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
1966
|
+
},
|
|
1967
|
+
"backgroundTextStyle": {
|
|
1968
|
+
"anyOf": [
|
|
1969
|
+
{
|
|
1970
|
+
"const": "dark",
|
|
1971
|
+
"type": "string"
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
"const": "light",
|
|
1975
|
+
"type": "string"
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1979
|
+
}
|
|
1980
|
+
],
|
|
1981
|
+
"default": "dark",
|
|
1982
|
+
"description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
|
|
1983
|
+
},
|
|
1984
|
+
"enablePullDownRefresh": {
|
|
1985
|
+
"default": false,
|
|
1986
|
+
"description": "是否开启全局的下拉刷新,详见 [Page.onPullDownRefresh](https://mp.kuaishou.com/docs/develop/frame/page/page_page.html#onpulldownrefresh)",
|
|
1987
|
+
"type": "boolean"
|
|
1988
|
+
},
|
|
1989
|
+
"navigationBarBackgroundColor": {
|
|
1990
|
+
"anyOf": [
|
|
1991
|
+
{
|
|
1992
|
+
"$ref": "#/definitions/HEXColor"
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
"$ref": "#/definitions/ThemeVar"
|
|
1996
|
+
}
|
|
1997
|
+
],
|
|
1998
|
+
"default": "#000000",
|
|
1999
|
+
"description": "导航栏背景颜色,支持 HEX 颜色",
|
|
2000
|
+
"format": "color"
|
|
2001
|
+
},
|
|
2002
|
+
"navigationBarTextStyle": {
|
|
2003
|
+
"anyOf": [
|
|
2004
|
+
{
|
|
2005
|
+
"const": "black",
|
|
2006
|
+
"type": "string"
|
|
2007
|
+
},
|
|
2008
|
+
{
|
|
2009
|
+
"const": "white",
|
|
2010
|
+
"type": "string"
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2014
|
+
}
|
|
2015
|
+
],
|
|
2016
|
+
"default": "white",
|
|
2017
|
+
"description": "导航栏标题、状态栏颜色"
|
|
2018
|
+
},
|
|
2019
|
+
"navigationBarTitleText": {
|
|
2020
|
+
"description": "导航栏标题文字内容",
|
|
2021
|
+
"type": "string"
|
|
2022
|
+
},
|
|
2023
|
+
"navigationStyle": {
|
|
2024
|
+
"default": "default",
|
|
2025
|
+
"description": "导航栏样式\n\n\"default\" 默认样式\n\n\"custom\" 自定义导航栏,只保留右上角胶囊按钮",
|
|
2026
|
+
"enum": [
|
|
2027
|
+
"default",
|
|
2028
|
+
"custom"
|
|
2029
|
+
],
|
|
2030
|
+
"type": "string"
|
|
2031
|
+
},
|
|
2032
|
+
"onReachBottomDistance": {
|
|
2033
|
+
"default": 50,
|
|
2034
|
+
"description": "页面上拉触底事件触发时距页面底部距离,单位为 px,详见 [Page.onReachBottom](https://mp.kuaishou.com/docs/develop/frame/page/page_page.html#onreachbottom)",
|
|
2035
|
+
"type": "number"
|
|
2036
|
+
},
|
|
2037
|
+
"pageOrientation": {
|
|
2038
|
+
"default": "portrait",
|
|
2039
|
+
"description": "屏幕旋转设置,支持 auto / portrait / landscape,详见 [响应显示区域变化](https://developers.weixin.qq.com/miniprogram/dev/framework/view/resizable.html)\n\n\"auto\" 自动\n\n\"portrait\" 竖屏\n\n\"landscape\" 横屏",
|
|
2040
|
+
"enum": [
|
|
2041
|
+
"auto",
|
|
2042
|
+
"portrait",
|
|
2043
|
+
"landscape"
|
|
2044
|
+
],
|
|
2045
|
+
"type": "string"
|
|
2046
|
+
}
|
|
2047
|
+
},
|
|
2048
|
+
"type": "object"
|
|
2049
|
+
},
|
|
2050
|
+
"MpLark": {
|
|
2051
|
+
"description": "设置编译到 mp-lark 平台的特定样式,配置项参考 <https://open.feishu.cn/document/client-docs/gadget/introduction/global-settings#a172b7dd>\n\n相应的类型是 MpLark",
|
|
2052
|
+
"properties": {
|
|
2053
|
+
"PCMode": {
|
|
2054
|
+
"additionalProperties": false,
|
|
2055
|
+
"description": "PCMode 模式下特定的窗口配置,支持的属性与通用 window 配置属性一致,仅当在 ext 内配置了 defaultPages.PCMode 时生效",
|
|
2056
|
+
"type": "object"
|
|
2057
|
+
},
|
|
2058
|
+
"backgroundColor": {
|
|
2059
|
+
"anyOf": [
|
|
2060
|
+
{
|
|
2061
|
+
"$ref": "#/definitions/HEXColor"
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2065
|
+
}
|
|
2066
|
+
],
|
|
2067
|
+
"default": "#FFFFFF",
|
|
2068
|
+
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2069
|
+
},
|
|
2070
|
+
"backgroundColorBottom": {
|
|
2071
|
+
"anyOf": [
|
|
2072
|
+
{
|
|
2073
|
+
"$ref": "#/definitions/HEXColor"
|
|
2074
|
+
},
|
|
2075
|
+
{
|
|
2076
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2077
|
+
}
|
|
2078
|
+
],
|
|
2079
|
+
"default": "#FFFFFF",
|
|
2080
|
+
"description": "底部窗口的背景色"
|
|
2081
|
+
},
|
|
2082
|
+
"backgroundColorTop": {
|
|
2083
|
+
"anyOf": [
|
|
2084
|
+
{
|
|
2085
|
+
"$ref": "#/definitions/HEXColor"
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2089
|
+
}
|
|
2090
|
+
],
|
|
2091
|
+
"default": "#FFFFFF",
|
|
2092
|
+
"description": "顶部窗口的背景色"
|
|
2093
|
+
},
|
|
2094
|
+
"backgroundTextStyle": {
|
|
2095
|
+
"anyOf": [
|
|
2096
|
+
{
|
|
2097
|
+
"const": "dark",
|
|
2098
|
+
"type": "string"
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
"const": "light",
|
|
2102
|
+
"type": "string"
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2106
|
+
}
|
|
2107
|
+
],
|
|
2108
|
+
"default": "dark",
|
|
2109
|
+
"description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
|
|
2110
|
+
},
|
|
2111
|
+
"enablePullDownRefresh": {
|
|
2112
|
+
"default": false,
|
|
2113
|
+
"description": "是否开启全局的下拉刷新",
|
|
2114
|
+
"type": "boolean"
|
|
2115
|
+
},
|
|
2116
|
+
"navigationBarBackgroundColor": {
|
|
2117
|
+
"anyOf": [
|
|
2118
|
+
{
|
|
2119
|
+
"$ref": "#/definitions/HEXColor"
|
|
2120
|
+
},
|
|
2121
|
+
{
|
|
2122
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2123
|
+
}
|
|
2124
|
+
],
|
|
2125
|
+
"default": "#000000",
|
|
2126
|
+
"description": "导航栏背景颜色,支持 HEX 颜色",
|
|
2127
|
+
"format": "color"
|
|
2128
|
+
},
|
|
2129
|
+
"navigationBarTextStyle": {
|
|
2130
|
+
"anyOf": [
|
|
2131
|
+
{
|
|
2132
|
+
"const": "black",
|
|
2133
|
+
"type": "string"
|
|
2134
|
+
},
|
|
2135
|
+
{
|
|
2136
|
+
"const": "white",
|
|
2137
|
+
"type": "string"
|
|
2138
|
+
},
|
|
2139
|
+
{
|
|
2140
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2141
|
+
}
|
|
2142
|
+
],
|
|
2143
|
+
"default": "white",
|
|
2144
|
+
"description": "导航栏标题、状态栏颜色"
|
|
2145
|
+
},
|
|
2146
|
+
"navigationBarTitleText": {
|
|
2147
|
+
"description": "导航栏标题文字内容",
|
|
2148
|
+
"type": "string"
|
|
2149
|
+
},
|
|
2150
|
+
"navigationStyle": {
|
|
2151
|
+
"default": "default",
|
|
2152
|
+
"description": "导航栏样式\n\n\"default\" 默认样式\n\n\"custom\" 自定义导航栏,只保留右上角胶囊按钮",
|
|
2153
|
+
"enum": [
|
|
2154
|
+
"default",
|
|
2155
|
+
"custom"
|
|
2156
|
+
],
|
|
2157
|
+
"type": "string"
|
|
2158
|
+
},
|
|
2159
|
+
"onReachBottomDistance": {
|
|
2160
|
+
"default": 50,
|
|
2161
|
+
"description": "页面上拉触底事件触发时距页面底部距离,单位为 px",
|
|
2162
|
+
"type": "number"
|
|
2163
|
+
},
|
|
2164
|
+
"transparentTitle": {
|
|
2165
|
+
"default": "none",
|
|
2166
|
+
"description": "导航栏透明设置\n\n\"always\" 一直透明\n\n\"auto\" 滑动自适应\n\n\"none\" 不透明",
|
|
2167
|
+
"enum": [
|
|
2168
|
+
"always",
|
|
2169
|
+
"auto",
|
|
2170
|
+
"none"
|
|
2171
|
+
],
|
|
2172
|
+
"type": "string"
|
|
2173
|
+
}
|
|
2174
|
+
},
|
|
2175
|
+
"type": "object"
|
|
2176
|
+
},
|
|
2177
|
+
"MpQq": {
|
|
2178
|
+
"description": "设置编译到 mp-qq 平台的特定样式,配置项参考 <https://q.qq.com/wiki/develop/miniprogram/frame/dispose.html#window>\n\n相应的类型是 MpQq",
|
|
2179
|
+
"properties": {
|
|
2180
|
+
"backgroundColor": {
|
|
2181
|
+
"anyOf": [
|
|
2182
|
+
{
|
|
2183
|
+
"$ref": "#/definitions/HEXColor"
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2187
|
+
}
|
|
2188
|
+
],
|
|
2189
|
+
"default": "#FFFFFF",
|
|
2190
|
+
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2191
|
+
},
|
|
2192
|
+
"backgroundColorBottom": {
|
|
2193
|
+
"anyOf": [
|
|
2194
|
+
{
|
|
2195
|
+
"$ref": "#/definitions/HEXColor"
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2199
|
+
}
|
|
2200
|
+
],
|
|
2201
|
+
"default": "#FFFFFF",
|
|
2202
|
+
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
2203
|
+
},
|
|
2204
|
+
"backgroundColorTop": {
|
|
2205
|
+
"anyOf": [
|
|
2206
|
+
{
|
|
2207
|
+
"$ref": "#/definitions/HEXColor"
|
|
2208
|
+
},
|
|
2209
|
+
{
|
|
2210
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2211
|
+
}
|
|
2212
|
+
],
|
|
2213
|
+
"default": "#FFFFFF",
|
|
2214
|
+
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
2215
|
+
},
|
|
2216
|
+
"backgroundTextStyle": {
|
|
2217
|
+
"anyOf": [
|
|
2218
|
+
{
|
|
2219
|
+
"const": "dark",
|
|
2220
|
+
"type": "string"
|
|
2221
|
+
},
|
|
2222
|
+
{
|
|
2223
|
+
"const": "light",
|
|
2224
|
+
"type": "string"
|
|
2225
|
+
},
|
|
2226
|
+
{
|
|
2227
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2228
|
+
}
|
|
2229
|
+
],
|
|
2230
|
+
"default": "dark",
|
|
2231
|
+
"description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
|
|
2232
|
+
},
|
|
2233
|
+
"enablePullDownRefresh": {
|
|
2234
|
+
"default": false,
|
|
2235
|
+
"description": "是否开启全局的下拉刷新,详见 [Page.onPullDownRefresh](https://q.qq.com/wiki/develop/miniprogram/frame/logic/logic_register_page.html#onPullDownRefresh)",
|
|
2236
|
+
"type": "boolean"
|
|
2237
|
+
},
|
|
2238
|
+
"navigationBarBackgroundColor": {
|
|
2239
|
+
"anyOf": [
|
|
2240
|
+
{
|
|
2241
|
+
"$ref": "#/definitions/HEXColor"
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2245
|
+
}
|
|
2246
|
+
],
|
|
2247
|
+
"default": "#000000",
|
|
2248
|
+
"description": "导航栏背景颜色,支持 HEX 颜色",
|
|
2249
|
+
"format": "color"
|
|
2250
|
+
},
|
|
2251
|
+
"navigationBarTextStyle": {
|
|
2252
|
+
"anyOf": [
|
|
2253
|
+
{
|
|
2254
|
+
"const": "black",
|
|
2255
|
+
"type": "string"
|
|
2256
|
+
},
|
|
2257
|
+
{
|
|
2258
|
+
"const": "white",
|
|
2259
|
+
"type": "string"
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2263
|
+
}
|
|
2264
|
+
],
|
|
2265
|
+
"default": "white",
|
|
2266
|
+
"description": "导航栏标题、状态栏颜色"
|
|
2267
|
+
},
|
|
2268
|
+
"navigationBarTitleText": {
|
|
2269
|
+
"description": "导航栏标题文字内容",
|
|
2270
|
+
"type": "string"
|
|
2271
|
+
},
|
|
2272
|
+
"navigationStyle": {
|
|
2273
|
+
"default": "default",
|
|
2274
|
+
"description": "导航栏样式\n\n\"default\" 默认样式\n\n\"custom\" 自定义导航栏,只保留右上角胶囊按钮",
|
|
2275
|
+
"enum": [
|
|
2276
|
+
"default",
|
|
2277
|
+
"custom"
|
|
2278
|
+
],
|
|
2279
|
+
"type": "string"
|
|
2280
|
+
},
|
|
2281
|
+
"pageOrientation": {
|
|
2282
|
+
"default": "portrait",
|
|
2283
|
+
"description": "屏幕旋转设置,支持 auto / portrait / landscape,详见 [响应显示区域变化](https://q.qq.com/wiki/develop/miniprogram/frame/view/view_section_change.html)\n\n\"auto\" 自动\n\n\"portrait\" 竖屏\n\n\"landscape\" 横屏",
|
|
2284
|
+
"enum": [
|
|
2285
|
+
"auto",
|
|
2286
|
+
"portrait",
|
|
2287
|
+
"landscape"
|
|
2288
|
+
],
|
|
2289
|
+
"type": "string"
|
|
2290
|
+
}
|
|
2291
|
+
},
|
|
2292
|
+
"type": "object"
|
|
2293
|
+
},
|
|
2294
|
+
"MpToutiao": {
|
|
2295
|
+
"description": "设置编译到 mp-toutiao 平台的特定样式,配置项参考 <https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/framework/general-configuration#window>\n\n相应的类型是 MpToutiao",
|
|
2296
|
+
"properties": {
|
|
2297
|
+
"backgroundColor": {
|
|
2298
|
+
"anyOf": [
|
|
2299
|
+
{
|
|
2300
|
+
"$ref": "#/definitions/HEXColor"
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2304
|
+
}
|
|
2305
|
+
],
|
|
2306
|
+
"default": "#FFFFFF",
|
|
2307
|
+
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2308
|
+
},
|
|
2309
|
+
"backgroundColorBottom": {
|
|
2310
|
+
"anyOf": [
|
|
2311
|
+
{
|
|
2312
|
+
"$ref": "#/definitions/HEXColor"
|
|
2313
|
+
},
|
|
2314
|
+
{
|
|
2315
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2316
|
+
}
|
|
2317
|
+
],
|
|
2318
|
+
"default": "同 backgroundColor",
|
|
2319
|
+
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
2320
|
+
},
|
|
2321
|
+
"backgroundColorTop": {
|
|
2322
|
+
"anyOf": [
|
|
2323
|
+
{
|
|
2324
|
+
"$ref": "#/definitions/HEXColor"
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2328
|
+
}
|
|
2329
|
+
],
|
|
2330
|
+
"default": "同 backgroundColor",
|
|
2331
|
+
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
2332
|
+
},
|
|
2333
|
+
"backgroundTextStyle": {
|
|
2334
|
+
"anyOf": [
|
|
2335
|
+
{
|
|
2336
|
+
"const": "dark",
|
|
2337
|
+
"type": "string"
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
"const": "light",
|
|
2341
|
+
"type": "string"
|
|
2342
|
+
},
|
|
2343
|
+
{
|
|
2344
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2345
|
+
}
|
|
2346
|
+
],
|
|
2347
|
+
"default": "dark",
|
|
2348
|
+
"description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
|
|
2349
|
+
},
|
|
2350
|
+
"enablePullDownRefresh": {
|
|
2351
|
+
"default": false,
|
|
2352
|
+
"description": "是否开启全局的下拉刷新",
|
|
2353
|
+
"type": "boolean"
|
|
2354
|
+
},
|
|
2355
|
+
"navigationBarBackgroundColor": {
|
|
2356
|
+
"anyOf": [
|
|
2357
|
+
{
|
|
2358
|
+
"$ref": "#/definitions/HEXColor"
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2362
|
+
}
|
|
2363
|
+
],
|
|
2364
|
+
"default": "#000000",
|
|
2365
|
+
"description": "导航栏背景颜色,支持 HEX 颜色",
|
|
2366
|
+
"format": "color"
|
|
2367
|
+
},
|
|
2368
|
+
"navigationBarTextStyle": {
|
|
2369
|
+
"anyOf": [
|
|
2370
|
+
{
|
|
2371
|
+
"const": "black",
|
|
2372
|
+
"type": "string"
|
|
2373
|
+
},
|
|
2374
|
+
{
|
|
2375
|
+
"const": "white",
|
|
2376
|
+
"type": "string"
|
|
2377
|
+
},
|
|
2378
|
+
{
|
|
2379
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2380
|
+
}
|
|
2381
|
+
],
|
|
2382
|
+
"default": "white",
|
|
2383
|
+
"description": "导航栏标题颜色,同时影响标题颜色、右胶囊颜色、左返回箭头颜色"
|
|
2384
|
+
},
|
|
2385
|
+
"navigationBarTitleText": {
|
|
2386
|
+
"description": "导航栏标题文字内容",
|
|
2387
|
+
"type": "string"
|
|
2388
|
+
},
|
|
2389
|
+
"navigationStyle": {
|
|
2390
|
+
"default": "default",
|
|
2391
|
+
"description": "导航栏样式\n\n\"default\" 默认样式\n\n\"custom\" 自定义导航栏,只保留右上角胶囊按钮",
|
|
2392
|
+
"enum": [
|
|
2393
|
+
"default",
|
|
2394
|
+
"custom"
|
|
2395
|
+
],
|
|
2396
|
+
"type": "string"
|
|
2397
|
+
},
|
|
2398
|
+
"onReachBottomDistance": {
|
|
2399
|
+
"default": 50,
|
|
2400
|
+
"description": "页面上拉触底事件触发时距页面底部距离,单位为 px",
|
|
2401
|
+
"type": "number"
|
|
2402
|
+
},
|
|
2403
|
+
"skeleton": {
|
|
2404
|
+
"description": "框架骨架屏配置,仅支持配置 config 属性,优先级高于 app.json,详见 [小程序框架骨架屏](https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/guide/experience-optimization/list/skeleton)",
|
|
2405
|
+
"properties": {
|
|
2406
|
+
"config": {
|
|
2407
|
+
"description": "包含超时移除及自动生成配置等",
|
|
2408
|
+
"properties": {
|
|
2409
|
+
"backgroundColor": {
|
|
2410
|
+
"$ref": "#/definitions/HEXColor",
|
|
2411
|
+
"default": "#fff",
|
|
2412
|
+
"description": "骨架屏背景色,支持 HEX 颜色",
|
|
2413
|
+
"format": "color"
|
|
2414
|
+
},
|
|
2415
|
+
"button": {
|
|
2416
|
+
"default": "{ color: '#efefef }",
|
|
2417
|
+
"description": "骨架页面中被视为按钮块的配置",
|
|
2418
|
+
"properties": {
|
|
2419
|
+
"color": {
|
|
2420
|
+
"$ref": "#/definitions/HEXColor",
|
|
2421
|
+
"default": "#efefef",
|
|
2422
|
+
"description": "骨架页面中被视为按钮块的颜色,支持 HEX 颜色",
|
|
2423
|
+
"format": "color"
|
|
2424
|
+
}
|
|
2425
|
+
},
|
|
2426
|
+
"type": "object"
|
|
2427
|
+
},
|
|
2428
|
+
"cssUnit": {
|
|
2429
|
+
"default": "vw",
|
|
2430
|
+
"description": "CSS单位,元素绝对定位都使用 \"vw\" 与 \"vh\"",
|
|
2431
|
+
"enum": [
|
|
2432
|
+
"px",
|
|
2433
|
+
"rem",
|
|
2434
|
+
"vw",
|
|
2435
|
+
"vh",
|
|
2436
|
+
"vmin",
|
|
2437
|
+
"vmax"
|
|
2438
|
+
],
|
|
2439
|
+
"type": "string"
|
|
2440
|
+
},
|
|
2441
|
+
"decimal": {
|
|
2442
|
+
"default": 4,
|
|
2443
|
+
"description": "生成骨架屏页面中 css 值保留的小数点位数,默认为 4",
|
|
2444
|
+
"type": "number"
|
|
2445
|
+
},
|
|
2446
|
+
"image": {
|
|
2447
|
+
"default": {
|
|
2448
|
+
"color": "#efefef",
|
|
2449
|
+
"shape": "rect"
|
|
2450
|
+
},
|
|
2451
|
+
"description": "骨架页面中图片块配置",
|
|
2452
|
+
"properties": {
|
|
2453
|
+
"color": {
|
|
2454
|
+
"$ref": "#/definitions/HEXColor",
|
|
2455
|
+
"default": "#efefef",
|
|
2456
|
+
"description": "骨架页面中图片块颜色,支持 HEX 颜色",
|
|
2457
|
+
"format": "color"
|
|
2458
|
+
},
|
|
2459
|
+
"shape": {
|
|
2460
|
+
"default": "rect",
|
|
2461
|
+
"description": "骨架页面中图片块形状\n\ncircle 圆形\n\nrect 矩形",
|
|
2462
|
+
"enum": [
|
|
2463
|
+
"circle",
|
|
2464
|
+
"rect"
|
|
2465
|
+
],
|
|
2466
|
+
"type": "string"
|
|
2467
|
+
}
|
|
2468
|
+
},
|
|
2469
|
+
"type": "object"
|
|
2470
|
+
},
|
|
2471
|
+
"loading": {
|
|
2472
|
+
"default": "spin",
|
|
2473
|
+
"description": "骨架屏显示时的动画",
|
|
2474
|
+
"enum": [
|
|
2475
|
+
"spin",
|
|
2476
|
+
"chiaroscuro",
|
|
2477
|
+
"shine"
|
|
2478
|
+
],
|
|
2479
|
+
"type": "string"
|
|
2480
|
+
},
|
|
2481
|
+
"mode": {
|
|
2482
|
+
"default": "fullscreen",
|
|
2483
|
+
"description": "默认为使用绝对定位占满全屏\n\n当对自定义组件使用,作为局部加载的样式时,可设置为 \"auto\",高度随内容高度撑开",
|
|
2484
|
+
"enum": [
|
|
2485
|
+
"fullscreen",
|
|
2486
|
+
"auto"
|
|
2487
|
+
],
|
|
2488
|
+
"type": "string"
|
|
2489
|
+
},
|
|
2490
|
+
"timeout": {
|
|
2491
|
+
"default": 2000,
|
|
2492
|
+
"description": "设置骨架屏超时移除时间,单位为 ms,为 0 时关闭超时移除",
|
|
2493
|
+
"type": "number"
|
|
2494
|
+
}
|
|
2495
|
+
},
|
|
2496
|
+
"type": "object"
|
|
2497
|
+
},
|
|
2498
|
+
"page": {
|
|
2499
|
+
"additionalProperties": {
|
|
2500
|
+
"type": "string"
|
|
2501
|
+
},
|
|
2502
|
+
"description": "页面路径同骨架屏文件的对应关系",
|
|
2503
|
+
"type": "object"
|
|
2504
|
+
}
|
|
2505
|
+
},
|
|
2506
|
+
"type": "object"
|
|
2507
|
+
},
|
|
2508
|
+
"transparentTitle": {
|
|
2509
|
+
"default": "none",
|
|
2510
|
+
"description": "仅在 navigationStyle 为 \"default\" 时生效,用来控制导航栏透明设置\n\n\"always\" 一直透明\n\n\"auto\" 滑动自适应\n\n\"none\" 不透明",
|
|
2511
|
+
"enum": [
|
|
2512
|
+
"always",
|
|
2513
|
+
"auto",
|
|
2514
|
+
"none"
|
|
2515
|
+
],
|
|
2516
|
+
"type": "string"
|
|
2517
|
+
}
|
|
2518
|
+
},
|
|
2519
|
+
"type": "object"
|
|
2520
|
+
},
|
|
2521
|
+
"MpWeixin": {
|
|
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",
|
|
2523
|
+
"properties": {
|
|
2524
|
+
"backgroundColor": {
|
|
2525
|
+
"anyOf": [
|
|
2526
|
+
{
|
|
2527
|
+
"$ref": "#/definitions/HEXColor"
|
|
2528
|
+
},
|
|
2529
|
+
{
|
|
2530
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2531
|
+
}
|
|
2532
|
+
],
|
|
2533
|
+
"default": "#FFFFFF",
|
|
2534
|
+
"description": "窗口的背景色,支持 HEX 颜色"
|
|
2535
|
+
},
|
|
2536
|
+
"backgroundColorBottom": {
|
|
2537
|
+
"anyOf": [
|
|
2538
|
+
{
|
|
2539
|
+
"$ref": "#/definitions/HEXColor"
|
|
2540
|
+
},
|
|
2541
|
+
{
|
|
2542
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2543
|
+
}
|
|
2544
|
+
],
|
|
2545
|
+
"default": "#FFFFFF",
|
|
2546
|
+
"description": "底部窗口的背景色,仅 iOS 支持"
|
|
2547
|
+
},
|
|
2548
|
+
"backgroundColorTop": {
|
|
2549
|
+
"anyOf": [
|
|
2550
|
+
{
|
|
2551
|
+
"$ref": "#/definitions/HEXColor"
|
|
2552
|
+
},
|
|
2553
|
+
{
|
|
2554
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2555
|
+
}
|
|
2556
|
+
],
|
|
2557
|
+
"default": "#FFFFFF",
|
|
2558
|
+
"description": "顶部窗口的背景色,仅 iOS 支持"
|
|
2559
|
+
},
|
|
2560
|
+
"backgroundTextStyle": {
|
|
2561
|
+
"anyOf": [
|
|
2562
|
+
{
|
|
2563
|
+
"const": "dark",
|
|
2564
|
+
"type": "string"
|
|
2565
|
+
},
|
|
2566
|
+
{
|
|
2567
|
+
"const": "light",
|
|
2568
|
+
"type": "string"
|
|
2569
|
+
},
|
|
2570
|
+
{
|
|
2571
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2572
|
+
}
|
|
2573
|
+
],
|
|
2574
|
+
"default": "dark",
|
|
2575
|
+
"description": "下拉 loading 的样式,仅支持 \"dark\" / \"light\""
|
|
2576
|
+
},
|
|
2577
|
+
"enablePullDownRefresh": {
|
|
2578
|
+
"default": false,
|
|
2579
|
+
"description": "是否开启全局的下拉刷新,详见 [Page.onPullDownRefresh](https://developers.weixin.qq.com/miniprogram/dev/reference/api/Page.html#onpulldownrefresh)",
|
|
2580
|
+
"type": "boolean"
|
|
2581
|
+
},
|
|
2582
|
+
"handleWebviewPreload": {
|
|
2583
|
+
"default": "static",
|
|
2584
|
+
"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 结束后手动触发",
|
|
2585
|
+
"enum": [
|
|
2586
|
+
"static",
|
|
2587
|
+
"manual",
|
|
2588
|
+
"auto"
|
|
2589
|
+
],
|
|
2590
|
+
"type": "string"
|
|
2591
|
+
},
|
|
2592
|
+
"homeButton": {
|
|
2593
|
+
"default": false,
|
|
2594
|
+
"description": "在非首页、非页面栈最底层页面或非 tabbar 内页面中的导航栏展示 home 键",
|
|
2595
|
+
"type": "boolean"
|
|
2596
|
+
},
|
|
2597
|
+
"initialRenderingCache": {
|
|
2598
|
+
"description": "页面初始渲染缓存配置,详见 [初始渲染缓存](https://developers.weixin.qq.com/miniprogram/dev/framework/view/initial-rendering-cache.html)",
|
|
2599
|
+
"enum": [
|
|
2600
|
+
"static",
|
|
2601
|
+
"dynamic"
|
|
2602
|
+
],
|
|
2603
|
+
"type": "string"
|
|
2604
|
+
},
|
|
2605
|
+
"navigationBarBackgroundColor": {
|
|
2606
|
+
"anyOf": [
|
|
2607
|
+
{
|
|
2608
|
+
"$ref": "#/definitions/HEXColor"
|
|
2609
|
+
},
|
|
2610
|
+
{
|
|
2611
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2612
|
+
}
|
|
2613
|
+
],
|
|
2614
|
+
"default": "#000000",
|
|
2615
|
+
"description": "导航栏背景颜色,支持 HEX 颜色",
|
|
2616
|
+
"format": "color"
|
|
2617
|
+
},
|
|
2618
|
+
"navigationBarTextStyle": {
|
|
2619
|
+
"anyOf": [
|
|
2620
|
+
{
|
|
2621
|
+
"const": "black",
|
|
2622
|
+
"type": "string"
|
|
2623
|
+
},
|
|
2624
|
+
{
|
|
2625
|
+
"const": "white",
|
|
2626
|
+
"type": "string"
|
|
2627
|
+
},
|
|
2628
|
+
{
|
|
2629
|
+
"$ref": "#/definitions/ThemeVar"
|
|
2630
|
+
}
|
|
2631
|
+
],
|
|
2632
|
+
"default": "white",
|
|
2633
|
+
"description": "导航栏标题、状态栏颜色"
|
|
2634
|
+
},
|
|
2635
|
+
"navigationBarTitleText": {
|
|
2636
|
+
"description": "导航栏标题文字内容",
|
|
2637
|
+
"type": "string"
|
|
2638
|
+
},
|
|
2639
|
+
"navigationStyle": {
|
|
2640
|
+
"default": "default",
|
|
2641
|
+
"description": "导航栏样式\n\n\"default\" 默认样式\n\n\"custom\" 自定义导航栏,只保留右上角胶囊按钮",
|
|
2642
|
+
"enum": [
|
|
2643
|
+
"default",
|
|
2644
|
+
"custom"
|
|
2645
|
+
],
|
|
2646
|
+
"type": "string"
|
|
2647
|
+
},
|
|
2648
|
+
"onReachBottomDistance": {
|
|
2649
|
+
"default": 50,
|
|
2650
|
+
"description": "页面上拉触底事件触发时距页面底部距离,单位为 px,详见 [Page.onReachBottom](https://developers.weixin.qq.com/miniprogram/dev/reference/api/Page.html#onreachbottom)",
|
|
2651
|
+
"type": "number"
|
|
2652
|
+
},
|
|
2653
|
+
"pageOrientation": {
|
|
2654
|
+
"default": "portrait",
|
|
2655
|
+
"description": "屏幕旋转设置,支持 auto / portrait / landscape,详见 [响应显示区域变化](https://developers.weixin.qq.com/miniprogram/dev/framework/view/resizable.html)\n\n\"auto\" 自动\n\n\"portrait\" 竖屏\n\n\"landscape\" 横屏",
|
|
2656
|
+
"enum": [
|
|
2657
|
+
"auto",
|
|
2658
|
+
"portrait",
|
|
2659
|
+
"landscape"
|
|
2660
|
+
],
|
|
2661
|
+
"type": "string"
|
|
2662
|
+
},
|
|
2663
|
+
"restartStrategy": {
|
|
2664
|
+
"description": "重新启动策略配置\n\n\"homePage\" 如果从这个页面退出小程序,下次将从首页冷启动\n\n\"homePageAndLatestPage\" 如果从这个页面退出小程序,下次冷启动后立刻加载这个页面,页面的参数保持不变(不可用于 tab 页)",
|
|
2665
|
+
"enum": [
|
|
2666
|
+
"homePage",
|
|
2667
|
+
"homePageAndLatestPage"
|
|
2668
|
+
],
|
|
2669
|
+
"type": "string"
|
|
2670
|
+
},
|
|
2671
|
+
"visualEffectInBackground": {
|
|
2672
|
+
"default": "none",
|
|
2673
|
+
"description": "切入系统后台时,隐藏页面内容,保护用户隐私",
|
|
2674
|
+
"enum": [
|
|
2675
|
+
"hidden",
|
|
2676
|
+
"none"
|
|
2677
|
+
],
|
|
2678
|
+
"type": "string"
|
|
2679
|
+
}
|
|
2680
|
+
},
|
|
2681
|
+
"type": "object"
|
|
2682
|
+
},
|
|
2683
|
+
"PageMetaDatum": {
|
|
2684
|
+
"properties": {
|
|
2685
|
+
"needLogin": {
|
|
2686
|
+
"description": "当前页面是否需要登录才可以访问,此配置优先级高于 uniIdRouter 下的 needLogin",
|
|
2687
|
+
"type": "boolean"
|
|
2688
|
+
},
|
|
2689
|
+
"path": {
|
|
2690
|
+
"description": "配置页面路径",
|
|
2691
|
+
"type": "string"
|
|
2692
|
+
},
|
|
2693
|
+
"style": {
|
|
2694
|
+
"$ref": "#/definitions/GlobalStyle",
|
|
2695
|
+
"description": "配置页面窗口表现,配置项参考下方 pageStyle"
|
|
2696
|
+
},
|
|
2697
|
+
"type": {
|
|
2698
|
+
"type": "string"
|
|
2699
|
+
}
|
|
2700
|
+
},
|
|
2701
|
+
"required": [
|
|
2702
|
+
"path"
|
|
2703
|
+
],
|
|
2704
|
+
"type": "object"
|
|
2705
|
+
},
|
|
2706
|
+
"PagesConfig": {
|
|
2707
|
+
"description": "对 uni-app 进行全局配置,决定页面文件的路径、窗口样式、原生的导航栏、底部的原生 tabBar 等,类似微信小程序中 app.json 的页面管理部分\n\n注意定位权限申请等原属于 app.json 的内容,需要在 manifest 中配置",
|
|
2708
|
+
"properties": {
|
|
2709
|
+
"condition": {
|
|
2710
|
+
"$ref": "#/definitions/Condition",
|
|
2711
|
+
"description": "启动模式配置,仅开发期间生效"
|
|
2712
|
+
},
|
|
2713
|
+
"easycom": {
|
|
2714
|
+
"$ref": "#/definitions/EasyCom",
|
|
2715
|
+
"description": "组件自动引入规则"
|
|
2716
|
+
},
|
|
2717
|
+
"entryPagePath": {
|
|
2718
|
+
"description": "默认启动首页,新增于 HBuilderX 3.7.0",
|
|
2719
|
+
"type": "string"
|
|
2720
|
+
},
|
|
2721
|
+
"globalStyle": {
|
|
470
2722
|
"$ref": "#/definitions/GlobalStyle",
|
|
471
2723
|
"description": "设置默认页面的窗口表现"
|
|
472
2724
|
},
|
|
@@ -483,7 +2735,30 @@
|
|
|
483
2735
|
},
|
|
484
2736
|
"preloadRule": {
|
|
485
2737
|
"additionalProperties": {
|
|
486
|
-
"
|
|
2738
|
+
"additionalProperties": false,
|
|
2739
|
+
"description": "页面路径",
|
|
2740
|
+
"properties": {
|
|
2741
|
+
"network": {
|
|
2742
|
+
"default": "wifi",
|
|
2743
|
+
"description": "在指定网络下预下载\n\n\"all\" 不限网络\n\n\"wifi\" 仅 wifi 下预下载",
|
|
2744
|
+
"enum": [
|
|
2745
|
+
"all",
|
|
2746
|
+
"wifi"
|
|
2747
|
+
],
|
|
2748
|
+
"type": "string"
|
|
2749
|
+
},
|
|
2750
|
+
"packages": {
|
|
2751
|
+
"description": "进入页面后预下载分包的 root 或 name\n\n__APP__ 表示主包",
|
|
2752
|
+
"items": {
|
|
2753
|
+
"type": "string"
|
|
2754
|
+
},
|
|
2755
|
+
"type": "array"
|
|
2756
|
+
}
|
|
2757
|
+
},
|
|
2758
|
+
"required": [
|
|
2759
|
+
"packages"
|
|
2760
|
+
],
|
|
2761
|
+
"type": "object"
|
|
487
2762
|
},
|
|
488
2763
|
"description": "分包预下载规则",
|
|
489
2764
|
"type": "object"
|
|
@@ -493,11 +2768,8 @@
|
|
|
493
2768
|
"description": "大屏右侧窗口"
|
|
494
2769
|
},
|
|
495
2770
|
"subPackages": {
|
|
496
|
-
"
|
|
497
|
-
"
|
|
498
|
-
"$ref": "#/definitions/SubPackage"
|
|
499
|
-
},
|
|
500
|
-
"type": "array"
|
|
2771
|
+
"$ref": "#/definitions/SubPackages",
|
|
2772
|
+
"description": "分包加载配置"
|
|
501
2773
|
},
|
|
502
2774
|
"tabBar": {
|
|
503
2775
|
"$ref": "#/definitions/TabBar",
|
|
@@ -512,33 +2784,41 @@
|
|
|
512
2784
|
"description": "自动跳转相关配置,新增于 HBuilderX 3.5.0"
|
|
513
2785
|
},
|
|
514
2786
|
"workers": {
|
|
2787
|
+
"anyOf": [
|
|
2788
|
+
{
|
|
2789
|
+
"type": "string"
|
|
2790
|
+
},
|
|
2791
|
+
{
|
|
2792
|
+
"additionalProperties": false,
|
|
2793
|
+
"properties": {
|
|
2794
|
+
"isSubpackage": {
|
|
2795
|
+
"default": false,
|
|
2796
|
+
"description": "是否打包为分包",
|
|
2797
|
+
"type": "boolean"
|
|
2798
|
+
},
|
|
2799
|
+
"path": {
|
|
2800
|
+
"description": "`Worker` 代码放置的目录",
|
|
2801
|
+
"type": "string"
|
|
2802
|
+
}
|
|
2803
|
+
},
|
|
2804
|
+
"required": [
|
|
2805
|
+
"path"
|
|
2806
|
+
],
|
|
2807
|
+
"type": "object"
|
|
2808
|
+
}
|
|
2809
|
+
],
|
|
515
2810
|
"description": "`Worker` 代码放置的目录"
|
|
516
2811
|
}
|
|
517
2812
|
},
|
|
518
2813
|
"type": "object"
|
|
519
2814
|
},
|
|
520
|
-
"
|
|
521
|
-
"
|
|
522
|
-
"properties": {
|
|
523
|
-
"network": {
|
|
524
|
-
"default": "wifi",
|
|
525
|
-
"description": "在指定网络下预下载,可选值为:all(不限网络)、wifi(仅wifi下预下载)",
|
|
526
|
-
"type": "string"
|
|
527
|
-
},
|
|
528
|
-
"packages": {
|
|
529
|
-
"description": "进入页面后预下载分包的 root 或 name。__APP__ 表示主包。",
|
|
530
|
-
"items": {
|
|
531
|
-
"type": "string"
|
|
532
|
-
},
|
|
533
|
-
"type": "array"
|
|
534
|
-
}
|
|
535
|
-
},
|
|
536
|
-
"type": "object"
|
|
2815
|
+
"PercentageSize": {
|
|
2816
|
+
"type": "string"
|
|
537
2817
|
},
|
|
538
|
-
"
|
|
2818
|
+
"PxSize": {
|
|
539
2819
|
"type": "string"
|
|
540
2820
|
},
|
|
541
|
-
"
|
|
2821
|
+
"RGBAColor": {
|
|
542
2822
|
"type": "string"
|
|
543
2823
|
},
|
|
544
2824
|
"SubPackage": {
|
|
@@ -546,7 +2826,9 @@
|
|
|
546
2826
|
"properties": {
|
|
547
2827
|
"pages": {
|
|
548
2828
|
"description": "子包由哪些页面组成,参数同 pages",
|
|
549
|
-
"items": {
|
|
2829
|
+
"items": {
|
|
2830
|
+
"$ref": "#/definitions/PageMetaDatum"
|
|
2831
|
+
},
|
|
550
2832
|
"type": "array"
|
|
551
2833
|
},
|
|
552
2834
|
"root": {
|
|
@@ -554,48 +2836,90 @@
|
|
|
554
2836
|
"type": "string"
|
|
555
2837
|
}
|
|
556
2838
|
},
|
|
2839
|
+
"required": [
|
|
2840
|
+
"root",
|
|
2841
|
+
"pages"
|
|
2842
|
+
],
|
|
557
2843
|
"type": "object"
|
|
558
2844
|
},
|
|
2845
|
+
"SubPackages": {
|
|
2846
|
+
"items": {
|
|
2847
|
+
"$ref": "#/definitions/SubPackage"
|
|
2848
|
+
},
|
|
2849
|
+
"type": "array"
|
|
2850
|
+
},
|
|
559
2851
|
"TabBar": {
|
|
560
2852
|
"properties": {
|
|
561
2853
|
"backgroundColor": {
|
|
562
2854
|
"anyOf": [
|
|
563
2855
|
{
|
|
564
|
-
"$ref": "#/definitions/
|
|
2856
|
+
"$ref": "#/definitions/HEXColor"
|
|
565
2857
|
},
|
|
566
2858
|
{
|
|
567
|
-
"$ref": "#/definitions/
|
|
2859
|
+
"$ref": "#/definitions/ThemeVar"
|
|
568
2860
|
}
|
|
569
2861
|
],
|
|
570
|
-
"description": "tab 的背景色"
|
|
2862
|
+
"description": "tab 的背景色",
|
|
2863
|
+
"format": "color"
|
|
2864
|
+
},
|
|
2865
|
+
"backgroundImage": {
|
|
2866
|
+
"description": "设置背景图片,优先级高于 backgroundColor",
|
|
2867
|
+
"type": "string"
|
|
2868
|
+
},
|
|
2869
|
+
"backgroundRepeat": {
|
|
2870
|
+
"default": "no-repeat",
|
|
2871
|
+
"description": "设置标题栏的背景图平铺方式\n\n\"repeat\" 背景图片在垂直方向和水平方向平铺\n\n\"repeat-x\" 背景图片在水平方向平铺,垂直方向拉伸\n\n\"repeat-y\" 背景图片在垂直方向平铺,水平方向拉伸\n\n\"no-repeat\" 背景图片在垂直方向和水平方向都拉伸",
|
|
2872
|
+
"enum": [
|
|
2873
|
+
"no-repeat",
|
|
2874
|
+
"repeat",
|
|
2875
|
+
"repeat-x",
|
|
2876
|
+
"repeat-y"
|
|
2877
|
+
],
|
|
2878
|
+
"type": "string"
|
|
571
2879
|
},
|
|
572
2880
|
"blurEffect": {
|
|
573
2881
|
"default": "none",
|
|
574
|
-
"description": "iOS
|
|
2882
|
+
"description": "iOS 高斯模糊效果,参考 [使用说明](https://ask.dcloud.net.cn/article/36617)",
|
|
2883
|
+
"enum": [
|
|
2884
|
+
"dark",
|
|
2885
|
+
"extralight",
|
|
2886
|
+
"light",
|
|
2887
|
+
"none"
|
|
2888
|
+
],
|
|
575
2889
|
"type": "string"
|
|
576
2890
|
},
|
|
577
2891
|
"borderStyle": {
|
|
578
2892
|
"anyOf": [
|
|
579
2893
|
{
|
|
2894
|
+
"const": "black",
|
|
2895
|
+
"type": "string"
|
|
2896
|
+
},
|
|
2897
|
+
{
|
|
2898
|
+
"const": "white",
|
|
580
2899
|
"type": "string"
|
|
581
2900
|
},
|
|
582
2901
|
{
|
|
583
|
-
"$ref": "#/definitions/
|
|
2902
|
+
"$ref": "#/definitions/HEXColor"
|
|
2903
|
+
},
|
|
2904
|
+
{
|
|
2905
|
+
"$ref": "#/definitions/ThemeVar"
|
|
584
2906
|
}
|
|
585
2907
|
],
|
|
586
2908
|
"default": "black",
|
|
587
|
-
"description": "
|
|
2909
|
+
"description": "tabBar 上边框的颜色",
|
|
2910
|
+
"format": "color"
|
|
588
2911
|
},
|
|
589
2912
|
"color": {
|
|
590
2913
|
"anyOf": [
|
|
591
2914
|
{
|
|
592
|
-
"$ref": "#/definitions/
|
|
2915
|
+
"$ref": "#/definitions/HEXColor"
|
|
593
2916
|
},
|
|
594
2917
|
{
|
|
595
|
-
"$ref": "#/definitions/
|
|
2918
|
+
"$ref": "#/definitions/ThemeVar"
|
|
596
2919
|
}
|
|
597
2920
|
],
|
|
598
|
-
"description": "tab 上的文字默认颜色"
|
|
2921
|
+
"description": "tab 上的文字默认颜色",
|
|
2922
|
+
"format": "color"
|
|
599
2923
|
},
|
|
600
2924
|
"fontSize": {
|
|
601
2925
|
"default": "10px",
|
|
@@ -613,11 +2937,11 @@
|
|
|
613
2937
|
"type": "string"
|
|
614
2938
|
},
|
|
615
2939
|
"iconfontSrc": {
|
|
616
|
-
"description": "list设置 iconfont 属性时,需要指定字体文件路径",
|
|
2940
|
+
"description": "list 设置 iconfont 属性时,需要指定字体文件路径",
|
|
617
2941
|
"type": "string"
|
|
618
2942
|
},
|
|
619
2943
|
"list": {
|
|
620
|
-
"description": "tab
|
|
2944
|
+
"description": "tab 列表,最少 2个,最多 5 个",
|
|
621
2945
|
"items": {
|
|
622
2946
|
"$ref": "#/definitions/TabBarItem"
|
|
623
2947
|
},
|
|
@@ -626,24 +2950,34 @@
|
|
|
626
2950
|
"type": "array"
|
|
627
2951
|
},
|
|
628
2952
|
"midButton": {
|
|
629
|
-
"$ref": "#/definitions/
|
|
2953
|
+
"$ref": "#/definitions/TabBarMidButton",
|
|
630
2954
|
"description": "中间按钮 仅在 list 项为偶数时有效"
|
|
631
2955
|
},
|
|
632
2956
|
"position": {
|
|
633
2957
|
"default": "bottom",
|
|
634
|
-
"description": "
|
|
2958
|
+
"description": "tab 位置",
|
|
2959
|
+
"enum": [
|
|
2960
|
+
"bottom",
|
|
2961
|
+
"top"
|
|
2962
|
+
],
|
|
2963
|
+
"type": "string"
|
|
2964
|
+
},
|
|
2965
|
+
"redDotColor": {
|
|
2966
|
+
"description": "tabBar上红点颜色",
|
|
2967
|
+
"format": "color",
|
|
635
2968
|
"type": "string"
|
|
636
2969
|
},
|
|
637
2970
|
"selectedColor": {
|
|
638
2971
|
"anyOf": [
|
|
639
2972
|
{
|
|
640
|
-
"$ref": "#/definitions/
|
|
2973
|
+
"$ref": "#/definitions/HEXColor"
|
|
641
2974
|
},
|
|
642
2975
|
{
|
|
643
|
-
"$ref": "#/definitions/
|
|
2976
|
+
"$ref": "#/definitions/ThemeVar"
|
|
644
2977
|
}
|
|
645
2978
|
],
|
|
646
|
-
"description": "tab 上的文字选中时的颜色"
|
|
2979
|
+
"description": "tab 上的文字选中时的颜色",
|
|
2980
|
+
"format": "color"
|
|
647
2981
|
},
|
|
648
2982
|
"spacing": {
|
|
649
2983
|
"default": "3px",
|
|
@@ -652,18 +2986,52 @@
|
|
|
652
2986
|
}
|
|
653
2987
|
},
|
|
654
2988
|
"required": [
|
|
2989
|
+
"color",
|
|
2990
|
+
"selectedColor",
|
|
655
2991
|
"list"
|
|
656
2992
|
],
|
|
657
2993
|
"type": "object"
|
|
658
2994
|
},
|
|
2995
|
+
"TabBarIconFont": {
|
|
2996
|
+
"properties": {
|
|
2997
|
+
"color": {
|
|
2998
|
+
"$ref": "#/definitions/HEXColor",
|
|
2999
|
+
"description": "字体图标颜色"
|
|
3000
|
+
},
|
|
3001
|
+
"fontSize": {
|
|
3002
|
+
"description": "字体图标字号,单位为 px",
|
|
3003
|
+
"type": "string"
|
|
3004
|
+
},
|
|
3005
|
+
"selectedColor": {
|
|
3006
|
+
"$ref": "#/definitions/HEXColor",
|
|
3007
|
+
"description": "字体图标选中颜色"
|
|
3008
|
+
},
|
|
3009
|
+
"selectedText": {
|
|
3010
|
+
"description": "选中后字库 Unicode 码",
|
|
3011
|
+
"type": "string"
|
|
3012
|
+
},
|
|
3013
|
+
"text": {
|
|
3014
|
+
"description": "字库 Unicode 码",
|
|
3015
|
+
"type": "string"
|
|
3016
|
+
}
|
|
3017
|
+
},
|
|
3018
|
+
"type": "object"
|
|
3019
|
+
},
|
|
659
3020
|
"TabBarItem": {
|
|
660
3021
|
"properties": {
|
|
661
3022
|
"iconPath": {
|
|
662
|
-
"
|
|
663
|
-
|
|
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不支持网络图片,不支持字体图标"
|
|
664
3032
|
},
|
|
665
3033
|
"iconfont": {
|
|
666
|
-
"$ref": "#/definitions/
|
|
3034
|
+
"$ref": "#/definitions/TabBarIconFont",
|
|
667
3035
|
"description": "字体图标,优先级高于 iconPath"
|
|
668
3036
|
},
|
|
669
3037
|
"pagePath": {
|
|
@@ -671,11 +3039,18 @@
|
|
|
671
3039
|
"type": "string"
|
|
672
3040
|
},
|
|
673
3041
|
"selectedIconPath": {
|
|
674
|
-
"
|
|
675
|
-
|
|
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不支持网络图片,不支持字体图标"
|
|
676
3051
|
},
|
|
677
3052
|
"text": {
|
|
678
|
-
"description": "tab 上按钮文字,在 App 和 H5
|
|
3053
|
+
"description": "tab 上按钮文字,在 App 和 H5 平台为非必填,例如中间可放一个没有文字的 + 号图标",
|
|
679
3054
|
"type": "string"
|
|
680
3055
|
},
|
|
681
3056
|
"visible": {
|
|
@@ -683,6 +3058,45 @@
|
|
|
683
3058
|
"type": "boolean"
|
|
684
3059
|
}
|
|
685
3060
|
},
|
|
3061
|
+
"required": [
|
|
3062
|
+
"pagePath"
|
|
3063
|
+
],
|
|
3064
|
+
"type": "object"
|
|
3065
|
+
},
|
|
3066
|
+
"TabBarMidButton": {
|
|
3067
|
+
"properties": {
|
|
3068
|
+
"backgroundImage": {
|
|
3069
|
+
"description": "中间按钮的背景图片路径",
|
|
3070
|
+
"type": "string"
|
|
3071
|
+
},
|
|
3072
|
+
"height": {
|
|
3073
|
+
"default": "50px",
|
|
3074
|
+
"description": "中间按钮的高度,可以大于 tabBar 高度,达到中间凸起的效果",
|
|
3075
|
+
"type": "string"
|
|
3076
|
+
},
|
|
3077
|
+
"iconPath": {
|
|
3078
|
+
"description": "中间按钮的图片路径",
|
|
3079
|
+
"type": "string"
|
|
3080
|
+
},
|
|
3081
|
+
"iconWidth": {
|
|
3082
|
+
"default": "24px",
|
|
3083
|
+
"description": "图片宽度(高度等比例缩放)",
|
|
3084
|
+
"type": "string"
|
|
3085
|
+
},
|
|
3086
|
+
"iconfont": {
|
|
3087
|
+
"$ref": "#/definitions/TabBarIconFont",
|
|
3088
|
+
"description": "字体图标,优先级高于 iconPath"
|
|
3089
|
+
},
|
|
3090
|
+
"text": {
|
|
3091
|
+
"description": "中间按钮的文字",
|
|
3092
|
+
"type": "string"
|
|
3093
|
+
},
|
|
3094
|
+
"width": {
|
|
3095
|
+
"default": "80px",
|
|
3096
|
+
"description": "中间按钮的宽度,tabBar 其它项为减去此宽度后平分,默认值为与其它项平分宽度",
|
|
3097
|
+
"type": "string"
|
|
3098
|
+
}
|
|
3099
|
+
},
|
|
686
3100
|
"type": "object"
|
|
687
3101
|
},
|
|
688
3102
|
"TheWindow": {
|
|
@@ -690,10 +3104,10 @@
|
|
|
690
3104
|
"properties": {
|
|
691
3105
|
"matchMedia": {
|
|
692
3106
|
"additionalProperties": false,
|
|
693
|
-
"description": "
|
|
3107
|
+
"description": "配置显示该窗口的规则,配置项参考 [matchMedia](https://uniapp.dcloud.net.cn/collocation/pages#matchmedia)",
|
|
694
3108
|
"properties": {
|
|
695
3109
|
"minWidth": {
|
|
696
|
-
"default":
|
|
3110
|
+
"default": 768,
|
|
697
3111
|
"description": "当设备可见区域宽度 >= minWidth 时,显示该 window",
|
|
698
3112
|
"type": "number"
|
|
699
3113
|
}
|
|
@@ -706,7 +3120,7 @@
|
|
|
706
3120
|
},
|
|
707
3121
|
"style": {
|
|
708
3122
|
"$ref": "#/definitions/GlobalStyle",
|
|
709
|
-
"description": "
|
|
3123
|
+
"description": "配置页面窗口表现,配置项参考 [pageStyle](https://uniapp.dcloud.net.cn/collocation/pages#style)"
|
|
710
3124
|
}
|
|
711
3125
|
},
|
|
712
3126
|
"required": [
|
|
@@ -714,18 +3128,127 @@
|
|
|
714
3128
|
],
|
|
715
3129
|
"type": "object"
|
|
716
3130
|
},
|
|
717
|
-
"
|
|
3131
|
+
"ThemeVar": {
|
|
718
3132
|
"type": "string"
|
|
719
3133
|
},
|
|
3134
|
+
"TitleNViewButton": {
|
|
3135
|
+
"additionalProperties": false,
|
|
3136
|
+
"properties": {
|
|
3137
|
+
"background": {
|
|
3138
|
+
"anyOf": [
|
|
3139
|
+
{
|
|
3140
|
+
"$ref": "#/definitions/HEXColor"
|
|
3141
|
+
},
|
|
3142
|
+
{
|
|
3143
|
+
"$ref": "#/definitions/RGBAColor"
|
|
3144
|
+
}
|
|
3145
|
+
],
|
|
3146
|
+
"default": "灰色半透明",
|
|
3147
|
+
"description": "自定义按钮背景色,仅在标题栏 type 为 \"transparent\" 时生效,支持 HEX 和 RGBA 颜色",
|
|
3148
|
+
"format": "color"
|
|
3149
|
+
},
|
|
3150
|
+
"color": {
|
|
3151
|
+
"$ref": "#/definitions/HEXColor",
|
|
3152
|
+
"default": "与标题文字样式一样",
|
|
3153
|
+
"description": "自定义按钮文字颜色,支持 HEX 颜色",
|
|
3154
|
+
"format": "color"
|
|
3155
|
+
},
|
|
3156
|
+
"colorPressed": {
|
|
3157
|
+
"anyOf": [
|
|
3158
|
+
{
|
|
3159
|
+
"$ref": "#/definitions/HEXColor"
|
|
3160
|
+
},
|
|
3161
|
+
{
|
|
3162
|
+
"$ref": "#/definitions/RGBAColor"
|
|
3163
|
+
}
|
|
3164
|
+
],
|
|
3165
|
+
"default": "color 属性值自动调整透明度为 0.3",
|
|
3166
|
+
"description": "自定义按钮按下状态文字颜色,支持 HEX 和 RGBA 颜色",
|
|
3167
|
+
"format": "color"
|
|
3168
|
+
},
|
|
3169
|
+
"float": {
|
|
3170
|
+
"default": "right",
|
|
3171
|
+
"description": "自定义按钮在标题栏的显示位置,仅支持 \"right\" / \"left\"\n\n\"right\" 右侧\n\n\"left\" 左侧",
|
|
3172
|
+
"enum": [
|
|
3173
|
+
"right",
|
|
3174
|
+
"left"
|
|
3175
|
+
],
|
|
3176
|
+
"type": "string"
|
|
3177
|
+
},
|
|
3178
|
+
"fontSize": {
|
|
3179
|
+
"description": "自定义按钮文字大小",
|
|
3180
|
+
"type": "string"
|
|
3181
|
+
},
|
|
3182
|
+
"fontSrc": {
|
|
3183
|
+
"description": "自定义按钮字体文件路径,只支持本地地址",
|
|
3184
|
+
"type": "string"
|
|
3185
|
+
},
|
|
3186
|
+
"fontWeight": {
|
|
3187
|
+
"default": "normal",
|
|
3188
|
+
"description": "自定义按钮文字粗细,仅支持 \"normal\" | \"bold\"\n\n\"normal\" 标准\n\n\"bold\" 加粗",
|
|
3189
|
+
"enum": [
|
|
3190
|
+
"normal",
|
|
3191
|
+
"bold"
|
|
3192
|
+
],
|
|
3193
|
+
"type": "string"
|
|
3194
|
+
},
|
|
3195
|
+
"select": {
|
|
3196
|
+
"default": false,
|
|
3197
|
+
"description": "自定义按钮是否显示选择指示图标(向下箭头),常用于城市选择",
|
|
3198
|
+
"type": "boolean"
|
|
3199
|
+
},
|
|
3200
|
+
"text": {
|
|
3201
|
+
"description": "自定义按钮文字内容。使用字体图标时 unicode 字符表示必须以\"\\\\u\" 开头,如 \"\\\\ue123\"",
|
|
3202
|
+
"type": "string"
|
|
3203
|
+
},
|
|
3204
|
+
"type": {
|
|
3205
|
+
"default": "none",
|
|
3206
|
+
"description": "自定义按钮样式,详见 [自定义按钮样式](https://uniapp.dcloud.net.cn/collocation/pages#app-titlenview-buttons-type)\n\n\"forward\" 前进按钮\n\n\"back\" 后退按钮\n\n\"share\" 分享按钮\n\n\"favorite\" 收藏按钮\n\n\"home\" 主页按钮\n\n\"menu\" 菜单按钮\n\n\"close\" 关闭按钮\n\n\"none\" 无样式,需通过 text 属性设置按钮上显示的内容、通过 fontSrc 属性设置使用的字体库",
|
|
3207
|
+
"enum": [
|
|
3208
|
+
"forward",
|
|
3209
|
+
"back",
|
|
3210
|
+
"share",
|
|
3211
|
+
"favorite",
|
|
3212
|
+
"home",
|
|
3213
|
+
"menu",
|
|
3214
|
+
"close",
|
|
3215
|
+
"none"
|
|
3216
|
+
],
|
|
3217
|
+
"type": "string"
|
|
3218
|
+
},
|
|
3219
|
+
"width": {
|
|
3220
|
+
"anyOf": [
|
|
3221
|
+
{
|
|
3222
|
+
"$ref": "#/definitions/PxSize"
|
|
3223
|
+
},
|
|
3224
|
+
{
|
|
3225
|
+
"const": "auto",
|
|
3226
|
+
"type": "string"
|
|
3227
|
+
}
|
|
3228
|
+
],
|
|
3229
|
+
"default": "44px",
|
|
3230
|
+
"description": "自定义按钮文字宽度,支持单位为 px 的逻辑像素值或 \"auto\",按钮内容居中显示"
|
|
3231
|
+
}
|
|
3232
|
+
},
|
|
3233
|
+
"type": "object"
|
|
3234
|
+
},
|
|
720
3235
|
"UniIdRouter": {
|
|
721
3236
|
"additionalProperties": false,
|
|
722
3237
|
"properties": {
|
|
723
3238
|
"loginPage": {
|
|
724
3239
|
"description": "登录页面路径",
|
|
3240
|
+
"examples": [
|
|
3241
|
+
"pages/index/index"
|
|
3242
|
+
],
|
|
725
3243
|
"type": "string"
|
|
726
3244
|
},
|
|
727
3245
|
"needLogin": {
|
|
728
3246
|
"description": "需要登录才可以访问的页面列表,可以使用正则语法",
|
|
3247
|
+
"examples": [
|
|
3248
|
+
[
|
|
3249
|
+
"pages/detail/.*"
|
|
3250
|
+
]
|
|
3251
|
+
],
|
|
729
3252
|
"items": {
|
|
730
3253
|
"type": "string"
|
|
731
3254
|
},
|
|
@@ -733,7 +3256,7 @@
|
|
|
733
3256
|
},
|
|
734
3257
|
"resToLogin": {
|
|
735
3258
|
"default": true,
|
|
736
|
-
"description": "
|
|
3259
|
+
"description": "是否是否自动解析云对象及 clientDB 的错误码,如果是客户端 token 不正确或 token 过期则自动跳转配置的登录页面",
|
|
737
3260
|
"type": "boolean"
|
|
738
3261
|
}
|
|
739
3262
|
},
|