@dcloudio/uni-app-x 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +39 -0
  2. package/package.json +5 -3
  3. package/types/app.d.ts +26 -72
  4. package/types/native/CSSStyleDeclaration.d.ts +2 -2
  5. package/types/native/DOMRect.d.ts +4 -4
  6. package/types/native/DomNode.d.ts +48 -0
  7. package/types/native/DrawableContext.d.ts +42 -16
  8. package/types/native/Element.d.ts +234 -0
  9. package/types/native/Event.d.ts +14 -3
  10. package/types/native/IDocument.d.ts +6 -6
  11. package/types/native/IPage.d.ts +28 -10
  12. package/types/native/IPageManager.d.ts +2 -2
  13. package/types/native/ITabsNode.d.ts +4 -4
  14. package/types/native/IUniError.d.ts +20 -0
  15. package/types/native/IWebViewNode.d.ts +2 -2
  16. package/types/native/InputBlurEvent.d.ts +13 -0
  17. package/types/native/InputConfirmEvent.d.ts +13 -0
  18. package/types/native/InputEvent.d.ts +21 -0
  19. package/types/native/InputFocusEvent.d.ts +17 -0
  20. package/types/native/InputKeyboardHeightChangeEvent.d.ts +17 -0
  21. package/types/native/MouseEvent.d.ts +13 -1
  22. package/types/native/NestedPreScrollEvent.d.ts +23 -0
  23. package/types/native/ScrollToLowerEvent.d.ts +4 -1
  24. package/types/native/ScrollToUpperEvent.d.ts +5 -2
  25. package/types/native/StartNestedScrollEvent.d.ts +12 -0
  26. package/types/native/SwiperAnimationFinishEvent.d.ts +11 -0
  27. package/types/native/SwiperChangeEvent.d.ts +11 -0
  28. package/types/native/SwiperTransitionEvent.d.ts +11 -0
  29. package/types/native/TextareaBlurEvent.d.ts +17 -0
  30. package/types/native/TextareaFocusEvent.d.ts +17 -0
  31. package/types/native/TextareaLineChangeEvent.d.ts +21 -0
  32. package/types/native/UniError.d.ts +7 -2
  33. package/types/native/index.d.ts +18 -1
  34. package/types/page.d.ts +38 -193
  35. package/types/uni/core/index.d.ts +9 -8
  36. package/types/uni/core/lib/base/event/interface.d.ts +4 -4
  37. package/types/uni/core/lib/lifecycle/interface.d.ts +1 -1
  38. package/types/uni/core/lib/route/index.d.ts +0 -10
  39. package/types/uni/core/lib/route/interface.d.ts +1805 -10
  40. package/types/uni/core/lib/ui/create-selector-query/interface.d.ts +242 -2
  41. package/types/uni/core/lib/ui/get-element-by-id/index.d.ts +9 -0
  42. package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +72 -0
  43. package/types/uni/core/lib/ui/load-font-face/interface.d.ts +486 -3
  44. package/types/uni/core/lib/ui/page-scroll-to/index.d.ts +0 -2
  45. package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +93 -9
  46. package/types/uni/core/lib/ui/pull-down-refresh/index.d.ts +0 -2
  47. package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +2 -5
  48. package/types/uni/core/lib/ui/set-navigation-bar-color/interface.d.ts +373 -4
  49. package/types/uni/core/lib/ui/tab-bar/index.d.ts +2 -18
  50. package/types/uni/core/lib/ui/tab-bar/interface.d.ts +32 -35
  51. package/types/uni/index.d.ts +2 -1
  52. package/types/uni/{ext → uts-plugin-api}/index.d.ts +18 -17
  53. package/types/uni/{ext → uts-plugin-api}/lib/uni-audio/utssdk/interface.d.ts +2 -2
  54. package/types/uni/{ext → uts-plugin-api}/lib/uni-createWebviewContext/utssdk/interface.d.ts +9 -9
  55. package/types/uni/{ext → uts-plugin-api}/lib/uni-exit/utssdk/interface.d.ts +1 -1
  56. package/types/uni/{ext → uts-plugin-api}/lib/uni-file-manager/utssdk/interface.d.ts +2 -2
  57. package/types/uni/{ext → uts-plugin-api}/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +1 -1
  58. package/types/uni/{ext → uts-plugin-api}/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +108 -10
  59. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +233 -0
  60. package/types/uni/{ext → uts-plugin-api}/lib/uni-getDeviceInfo/utssdk/interface.d.ts +58 -46
  61. package/types/uni/{ext → uts-plugin-api}/lib/uni-getLocation-system/utssdk/interface.d.ts +13 -1
  62. package/types/uni/{ext → uts-plugin-api}/lib/uni-getNetworkType/utssdk/interface.d.ts +8 -5
  63. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +213 -0
  64. package/types/uni/{ext → uts-plugin-api}/lib/uni-getSystemInfo/utssdk/interface.d.ts +108 -36
  65. package/types/uni/{ext → uts-plugin-api}/lib/uni-getSystemSetting/utssdk/interface.d.ts +3 -3
  66. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +794 -0
  67. package/types/uni/{ext → uts-plugin-api}/lib/uni-network/utssdk/app-ios/interface.d.ts +60 -19
  68. package/types/uni/{ext → uts-plugin-api}/lib/uni-network/utssdk/index.d.ts +4 -0
  69. package/types/uni/{ext → uts-plugin-api}/lib/uni-network/utssdk/interface.d.ts +138 -49
  70. package/types/uni/{ext → uts-plugin-api}/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +8 -5
  71. package/types/uni/{ext → uts-plugin-api}/lib/uni-prompt/utssdk/interface.d.ts +6 -6
  72. package/types/uni/{ext → uts-plugin-api}/lib/uni-storage/utssdk/interface.d.ts +27 -27
  73. package/types/uni/{ext → uts-plugin-api}/lib/uni-websocket/utssdk/index.d.ts +2 -0
  74. package/types/uni/{ext → uts-plugin-api}/lib/uni-websocket/utssdk/interface.d.ts +60 -35
  75. package/types/uni/uts-plugin-component/index.d.ts +1 -0
  76. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +15 -0
  77. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +171 -0
  78. package/types/uni-cloud/index.d.ts +59 -330
  79. package/types/uni-cloud/interface.d.ts +786 -0
  80. package/types/vue/CheckboxGroupChangeEvent.d.ts +1 -1
  81. package/types/vue/PickerViewChangeEvent.d.ts +1 -1
  82. package/types/vue/ProgressActiveendEvent.d.ts +1 -1
  83. package/types/vue/RadioGroupChangeEvent.d.ts +1 -1
  84. package/types/vue/SliderChangeEvent.d.ts +10 -1
  85. package/types/vue/SwitchChangeEvent.d.ts +1 -1
  86. package/uts-plugin.d.ts +10 -0
  87. package/types/native/INode.d.ts +0 -181
  88. package/types/uni/ext/lib/uni-file-manager/utssdk/index.d.ts +0 -31
  89. package/types/uni/ext/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +0 -120
  90. package/types/uni/ext/lib/uni-getRecorderManager/utssdk/interface.d.ts +0 -213
  91. package/types/uni/ext/lib/uni-media/utssdk/interface.d.ts +0 -795
  92. /package/types/uni/{ext → uts-plugin-api}/lib/uni-audio/utssdk/index.d.ts +0 -0
  93. /package/types/uni/{ext → uts-plugin-api}/lib/uni-createWebviewContext/utssdk/index.d.ts +0 -0
  94. /package/types/uni/{ext → uts-plugin-api}/lib/uni-exit/utssdk/index.d.ts +0 -0
  95. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +0 -0
  96. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +0 -0
  97. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getAppBaseInfo/utssdk/index.d.ts +0 -0
  98. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getDeviceInfo/utssdk/index.d.ts +0 -0
  99. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getLocation-system/utssdk/index.d.ts +0 -0
  100. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getNetworkType/utssdk/index.d.ts +0 -0
  101. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getRecorderManager/utssdk/index.d.ts +0 -0
  102. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getSystemInfo/utssdk/index.d.ts +0 -0
  103. /package/types/uni/{ext → uts-plugin-api}/lib/uni-getSystemSetting/utssdk/index.d.ts +0 -0
  104. /package/types/uni/{ext → uts-plugin-api}/lib/uni-media/utssdk/index.d.ts +0 -0
  105. /package/types/uni/{ext → uts-plugin-api}/lib/uni-network/utssdk/app-ios/index.d.ts +0 -0
  106. /package/types/uni/{ext → uts-plugin-api}/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +0 -0
  107. /package/types/uni/{ext → uts-plugin-api}/lib/uni-prompt/utssdk/index.d.ts +0 -0
  108. /package/types/uni/{ext → uts-plugin-api}/lib/uni-storage/utssdk/index.d.ts +0 -0
@@ -8,28 +8,451 @@ export type LoadFontFaceOptionDesc = {
8
8
 
9
9
  export type LoadFontFaceOptions = {
10
10
  /**
11
- * 是否全局生效
11
+ * 是否全局生效。微信小程序 '2.10.0'起支持全局生效,需在 app.vue 中调用。
12
+ * @uniPlatform {
13
+ * "app": {
14
+ * "android": {
15
+ * "osVer": "5.0",
16
+ * "uniVer": "√",
17
+ * "unixVer": "√"
18
+ * },
19
+ * "ios": {
20
+ * "osVer": "10.0",
21
+ * "uniVer": "√",
22
+ * "unixVer": "x"
23
+ * }
24
+ * },
25
+ * "mp": {
26
+ * "weixin": {
27
+ * "hostVer": ">=2.10.0",
28
+ * "uniVer": "√",
29
+ * "unixVer": "x"
30
+ * },
31
+ * "alipay": {
32
+ * "hostVer": "√",
33
+ * "uniVer": "√",
34
+ * "unixVer": "x"
35
+ * },
36
+ * "baidu": {
37
+ * "hostVer": "√",
38
+ * "uniVer": "√",
39
+ * "unixVer": "x"
40
+ * },
41
+ * "toutiao": {
42
+ * "hostVer": "√",
43
+ * "uniVer": "√",
44
+ * "unixVer": "x"
45
+ * },
46
+ * "lark": {
47
+ * "hostVer": "√",
48
+ * "uniVer": "√",
49
+ * "unixVer": "x"
50
+ * },
51
+ * "qq": {
52
+ * "hostVer": "√",
53
+ * "uniVer": "√",
54
+ * "unixVer": "x"
55
+ * },
56
+ * "kuaishou": {
57
+ * "hostVer": "√",
58
+ * "uniVer": "√",
59
+ * "unixVer": "x"
60
+ * },
61
+ * "jd": {
62
+ * "hostVer": "√",
63
+ * "uniVer": "√",
64
+ * "unixVer": "x"
65
+ * }
66
+ * },
67
+ * "web": {
68
+ * "uniVer": "√",
69
+ * "unixVer": "x"
70
+ * }
71
+ * }
12
72
  */
13
73
  global?: boolean
14
74
  /**
15
75
  * 定义的字体名称
76
+ * @uniPlatform {
77
+ * "app": {
78
+ * "android": {
79
+ * "osVer": "5.0",
80
+ * "uniVer": "√",
81
+ * "unixVer": "√"
82
+ * },
83
+ * "ios": {
84
+ * "osVer": "10.0",
85
+ * "uniVer": "√",
86
+ * "unixVer": "x"
87
+ * }
88
+ * },
89
+ * "mp": {
90
+ * "weixin": {
91
+ * "hostVer": "√",
92
+ * "uniVer": "√",
93
+ * "unixVer": "x"
94
+ * },
95
+ * "alipay": {
96
+ * "hostVer": "√",
97
+ * "uniVer": "√",
98
+ * "unixVer": "x"
99
+ * },
100
+ * "baidu": {
101
+ * "hostVer": "√",
102
+ * "uniVer": "√",
103
+ * "unixVer": "x"
104
+ * },
105
+ * "toutiao": {
106
+ * "hostVer": "√",
107
+ * "uniVer": "√",
108
+ * "unixVer": "x"
109
+ * },
110
+ * "lark": {
111
+ * "hostVer": "√",
112
+ * "uniVer": "√",
113
+ * "unixVer": "x"
114
+ * },
115
+ * "qq": {
116
+ * "hostVer": "√",
117
+ * "uniVer": "√",
118
+ * "unixVer": "x"
119
+ * },
120
+ * "kuaishou": {
121
+ * "hostVer": "√",
122
+ * "uniVer": "√",
123
+ * "unixVer": "x"
124
+ * },
125
+ * "jd": {
126
+ * "hostVer": "√",
127
+ * "uniVer": "√",
128
+ * "unixVer": "x"
129
+ * }
130
+ * },
131
+ * "web": {
132
+ * "uniVer": "√",
133
+ * "unixVer": "x"
134
+ * }
135
+ * }
16
136
  */
17
137
  family: string
18
138
  /**
19
- * 字体资源的地址。建议格式为 TTF 和 WOFF,WOFF2 在低版本的iOS上会不兼容。
139
+ * 字体资源的地址
140
+ * @uniPlatform {
141
+ * "app": {
142
+ * "android": {
143
+ * "osVer": "5.0",
144
+ * "uniVer": "√",
145
+ * "unixVer": "√"
146
+ * },
147
+ * "ios": {
148
+ * "osVer": "10.0",
149
+ * "uniVer": "√",
150
+ * "unixVer": "x"
151
+ * }
152
+ * },
153
+ * "mp": {
154
+ * "weixin": {
155
+ * "hostVer": "√",
156
+ * "uniVer": "√",
157
+ * "unixVer": "x"
158
+ * },
159
+ * "alipay": {
160
+ * "hostVer": "√",
161
+ * "uniVer": "√",
162
+ * "unixVer": "x"
163
+ * },
164
+ * "baidu": {
165
+ * "hostVer": "√",
166
+ * "uniVer": "√",
167
+ * "unixVer": "x"
168
+ * },
169
+ * "toutiao": {
170
+ * "hostVer": "√",
171
+ * "uniVer": "√",
172
+ * "unixVer": "x"
173
+ * },
174
+ * "lark": {
175
+ * "hostVer": "√",
176
+ * "uniVer": "√",
177
+ * "unixVer": "x"
178
+ * },
179
+ * "qq": {
180
+ * "hostVer": "√",
181
+ * "uniVer": "√",
182
+ * "unixVer": "x"
183
+ * },
184
+ * "kuaishou": {
185
+ * "hostVer": "√",
186
+ * "uniVer": "√",
187
+ * "unixVer": "x"
188
+ * },
189
+ * "jd": {
190
+ * "hostVer": "√",
191
+ * "uniVer": "√",
192
+ * "unixVer": "x"
193
+ * }
194
+ * },
195
+ * "web": {
196
+ * "uniVer": "√",
197
+ * "unixVer": "x"
198
+ * }
199
+ * }
20
200
  */
21
201
  source: string
202
+ /**
203
+ * 可选的字体描述符
204
+ * @uniPlatform {
205
+ * "app": {
206
+ * "android": {
207
+ * "osVer": "5.0",
208
+ * "uniVer": "√",
209
+ * "unixVer": "x"
210
+ * },
211
+ * "ios": {
212
+ * "osVer": "10.0",
213
+ * "uniVer": "√",
214
+ * "unixVer": "x"
215
+ * }
216
+ * },
217
+ * "mp": {
218
+ * "weixin": {
219
+ * "hostVer": "√",
220
+ * "uniVer": "√",
221
+ * "unixVer": "x"
222
+ * },
223
+ * "alipay": {
224
+ * "hostVer": "√",
225
+ * "uniVer": "√",
226
+ * "unixVer": "x"
227
+ * },
228
+ * "baidu": {
229
+ * "hostVer": "√",
230
+ * "uniVer": "√",
231
+ * "unixVer": "x"
232
+ * },
233
+ * "toutiao": {
234
+ * "hostVer": "√",
235
+ * "uniVer": "√",
236
+ * "unixVer": "x"
237
+ * },
238
+ * "lark": {
239
+ * "hostVer": "√",
240
+ * "uniVer": "√",
241
+ * "unixVer": "x"
242
+ * },
243
+ * "qq": {
244
+ * "hostVer": "√",
245
+ * "uniVer": "√",
246
+ * "unixVer": "x"
247
+ * },
248
+ * "kuaishou": {
249
+ * "hostVer": "√",
250
+ * "uniVer": "√",
251
+ * "unixVer": "x"
252
+ * },
253
+ * "jd": {
254
+ * "hostVer": "√",
255
+ * "uniVer": "√",
256
+ * "unixVer": "x"
257
+ * }
258
+ * },
259
+ * "web": {
260
+ * "uniVer": "√",
261
+ * "unixVer": "x"
262
+ * }
263
+ * }
264
+ */
22
265
  desc?: LoadFontFaceOptionDesc
23
266
  /**
24
267
  * 接口调用成功的回调函数
268
+ * @uniPlatform {
269
+ * "app": {
270
+ * "android": {
271
+ * "osVer": "5.0",
272
+ * "uniVer": "√",
273
+ * "unixVer": "√"
274
+ * },
275
+ * "ios": {
276
+ * "osVer": "10.0",
277
+ * "uniVer": "√",
278
+ * "unixVer": "x"
279
+ * }
280
+ * },
281
+ * "mp": {
282
+ * "weixin": {
283
+ * "hostVer": "√",
284
+ * "uniVer": "√",
285
+ * "unixVer": "x"
286
+ * },
287
+ * "alipay": {
288
+ * "hostVer": "√",
289
+ * "uniVer": "√",
290
+ * "unixVer": "x"
291
+ * },
292
+ * "baidu": {
293
+ * "hostVer": "√",
294
+ * "uniVer": "√",
295
+ * "unixVer": "x"
296
+ * },
297
+ * "toutiao": {
298
+ * "hostVer": "√",
299
+ * "uniVer": "√",
300
+ * "unixVer": "x"
301
+ * },
302
+ * "lark": {
303
+ * "hostVer": "√",
304
+ * "uniVer": "√",
305
+ * "unixVer": "x"
306
+ * },
307
+ * "qq": {
308
+ * "hostVer": "√",
309
+ * "uniVer": "√",
310
+ * "unixVer": "x"
311
+ * },
312
+ * "kuaishou": {
313
+ * "hostVer": "√",
314
+ * "uniVer": "√",
315
+ * "unixVer": "x"
316
+ * },
317
+ * "jd": {
318
+ * "hostVer": "√",
319
+ * "uniVer": "√",
320
+ * "unixVer": "x"
321
+ * }
322
+ * },
323
+ * "web": {
324
+ * "uniVer": "√",
325
+ * "unixVer": "x"
326
+ * }
327
+ * }
25
328
  */
26
329
  success?: LoadFontFaceSuccessCallback
27
330
  /**
28
331
  * 接口调用失败的回调函数
332
+ * @uniPlatform {
333
+ * "app": {
334
+ * "android": {
335
+ * "osVer": "5.0",
336
+ * "uniVer": "√",
337
+ * "unixVer": "√"
338
+ * },
339
+ * "ios": {
340
+ * "osVer": "10.0",
341
+ * "uniVer": "√",
342
+ * "unixVer": "x"
343
+ * }
344
+ * },
345
+ * "mp": {
346
+ * "weixin": {
347
+ * "hostVer": "√",
348
+ * "uniVer": "√",
349
+ * "unixVer": "x"
350
+ * },
351
+ * "alipay": {
352
+ * "hostVer": "√",
353
+ * "uniVer": "√",
354
+ * "unixVer": "x"
355
+ * },
356
+ * "baidu": {
357
+ * "hostVer": "√",
358
+ * "uniVer": "√",
359
+ * "unixVer": "x"
360
+ * },
361
+ * "toutiao": {
362
+ * "hostVer": "√",
363
+ * "uniVer": "√",
364
+ * "unixVer": "x"
365
+ * },
366
+ * "lark": {
367
+ * "hostVer": "√",
368
+ * "uniVer": "√",
369
+ * "unixVer": "x"
370
+ * },
371
+ * "qq": {
372
+ * "hostVer": "√",
373
+ * "uniVer": "√",
374
+ * "unixVer": "x"
375
+ * },
376
+ * "kuaishou": {
377
+ * "hostVer": "√",
378
+ * "uniVer": "√",
379
+ * "unixVer": "x"
380
+ * },
381
+ * "jd": {
382
+ * "hostVer": "√",
383
+ * "uniVer": "√",
384
+ * "unixVer": "x"
385
+ * }
386
+ * },
387
+ * "web": {
388
+ * "uniVer": "√",
389
+ * "unixVer": "x"
390
+ * }
391
+ * }
29
392
  */
30
393
  fail?: LoadFontFaceFailCallback
31
394
  /**
32
395
  * 接口调用结束的回调函数(调用成功、失败都会执行)
396
+ * @uniPlatform {
397
+ * "app": {
398
+ * "android": {
399
+ * "osVer": "5.0",
400
+ * "uniVer": "√",
401
+ * "unixVer": "√"
402
+ * },
403
+ * "ios": {
404
+ * "osVer": "10.0",
405
+ * "uniVer": "√",
406
+ * "unixVer": "x"
407
+ * }
408
+ * },
409
+ * "mp": {
410
+ * "weixin": {
411
+ * "hostVer": "√",
412
+ * "uniVer": "√",
413
+ * "unixVer": "x"
414
+ * },
415
+ * "alipay": {
416
+ * "hostVer": "√",
417
+ * "uniVer": "√",
418
+ * "unixVer": "x"
419
+ * },
420
+ * "baidu": {
421
+ * "hostVer": "√",
422
+ * "uniVer": "√",
423
+ * "unixVer": "x"
424
+ * },
425
+ * "toutiao": {
426
+ * "hostVer": "√",
427
+ * "uniVer": "√",
428
+ * "unixVer": "x"
429
+ * },
430
+ * "lark": {
431
+ * "hostVer": "√",
432
+ * "uniVer": "√",
433
+ * "unixVer": "x"
434
+ * },
435
+ * "qq": {
436
+ * "hostVer": "√",
437
+ * "uniVer": "√",
438
+ * "unixVer": "x"
439
+ * },
440
+ * "kuaishou": {
441
+ * "hostVer": "√",
442
+ * "uniVer": "√",
443
+ * "unixVer": "x"
444
+ * },
445
+ * "jd": {
446
+ * "hostVer": "√",
447
+ * "uniVer": "√",
448
+ * "unixVer": "x"
449
+ * }
450
+ * },
451
+ * "web": {
452
+ * "uniVer": "√",
453
+ * "unixVer": "x"
454
+ * }
455
+ * }
33
456
  */
34
457
  complete?: LoadFontFaceCompleteCallback
35
458
  }
@@ -50,6 +473,66 @@ export interface Uni {
50
473
  * 动态加载网络字体
51
474
  *
52
475
  * @tutorial http://uniapp.dcloud.io/api/ui/font?id=loadfontface
476
+ * @uniPlatform {
477
+ * "app": {
478
+ * "android": {
479
+ * "osVer": "5.0",
480
+ * "uniVer": "√",
481
+ * "unixVer": "√"
482
+ * },
483
+ * "ios": {
484
+ * "osVer": "10.0",
485
+ * "uniVer": "√",
486
+ * "unixVer": "x"
487
+ * }
488
+ * },
489
+ * "mp": {
490
+ * "weixin": {
491
+ * "hostVer": "√",
492
+ * "uniVer": "√",
493
+ * "unixVer": "x"
494
+ * },
495
+ * "alipay": {
496
+ * "hostVer": "√",
497
+ * "uniVer": "√",
498
+ * "unixVer": "x"
499
+ * },
500
+ * "baidu": {
501
+ * "hostVer": "√",
502
+ * "uniVer": "√",
503
+ * "unixVer": "x"
504
+ * },
505
+ * "toutiao": {
506
+ * "hostVer": "√",
507
+ * "uniVer": "√",
508
+ * "unixVer": "x"
509
+ * },
510
+ * "lark": {
511
+ * "hostVer": "√",
512
+ * "uniVer": "√",
513
+ * "unixVer": "x"
514
+ * },
515
+ * "qq": {
516
+ * "hostVer": "√",
517
+ * "uniVer": "√",
518
+ * "unixVer": "x"
519
+ * },
520
+ * "kuaishou": {
521
+ * "hostVer": "√",
522
+ * "uniVer": "√",
523
+ * "unixVer": "x"
524
+ * },
525
+ * "jd": {
526
+ * "hostVer": "√",
527
+ * "uniVer": "√",
528
+ * "unixVer": "x"
529
+ * }
530
+ * },
531
+ * "web": {
532
+ * "uniVer": "√",
533
+ * "unixVer": "x"
534
+ * }
535
+ * }
53
536
  */
54
- loadFontFace: LoadFontFace
537
+ loadFontFace(options: LoadFontFaceOptions): void
55
538
  }
@@ -1,5 +1,4 @@
1
1
  import {
2
- PageScrollTo as PageScrollToOrigin,
3
2
  PageScrollToSuccess as PageScrollToSuccessOrigin,
4
3
  PageScrollToSuccessCallback as PageScrollToSuccessCallbackOrigin,
5
4
  PageScrollToFail as PageScrollToFailOrigin,
@@ -11,7 +10,6 @@ import {
11
10
  } from './interface'
12
11
 
13
12
  declare global {
14
- type PageScrollTo = PageScrollToOrigin
15
13
  type PageScrollToSuccess = PageScrollToSuccessOrigin
16
14
  type PageScrollToSuccessCallback = PageScrollToSuccessCallbackOrigin
17
15
  type PageScrollToFail = PageScrollToFailOrigin
@@ -1,6 +1,5 @@
1
1
  import { AsyncApiSuccessResult } from '../../interface'
2
2
 
3
- export type PageScrollTo = (options: PageScrollToOptions) => void
4
3
  export type PageScrollToSuccess = AsyncApiSuccessResult
5
4
  export type PageScrollToSuccessCallback = (result: PageScrollToSuccess) => void
6
5
  export type PageScrollToFail = UniError
@@ -13,31 +12,56 @@ export type PageScrollToOptions = {
13
12
  /**
14
13
  * 滚动到页面的目标位置
15
14
  */
16
- scrollTop: number | null
15
+ scrollTop?: number | null
17
16
  /**
18
17
  * 选择器
19
18
  */
20
- selector: string | null
19
+ selector?: string | null
21
20
  /**
22
21
  * 偏移距离,可以滚动到 selector 加偏移距离的位置
22
+ * @uniPlatform {
23
+ * "app": {
24
+ * "android": {
25
+ * "osVer": "5.0",
26
+ * "uniVer": "x",
27
+ * "unixVer": "3.91"
28
+ * },
29
+ * "ios": {
30
+ * "osVer": "10.0",
31
+ * "uniVer": "x",
32
+ * "unixVer": "x"
33
+ * }
34
+ * },
35
+ * "mp": {
36
+ * "weixin": {
37
+ * "hostVer": "√",
38
+ * "uniVer": "√",
39
+ * "unixVer": "√"
40
+ * }
41
+ * },
42
+ * "web": {
43
+ * "uniVer": "x",
44
+ * "unixVer": "x"
45
+ * }
46
+ * }
23
47
  */
24
- offsetTop: number | null
48
+ offsetTop?: number | null
25
49
  /**
26
50
  * 滚动动画的时长
27
51
  */
28
- duration: number | null
52
+ duration?: number | null
29
53
  /**
30
54
  * 接口调用成功的回调函数
31
55
  */
32
- success: PageScrollToSuccessCallback | null
56
+ success?: PageScrollToSuccessCallback | null
33
57
  /**
34
58
  * 接口调用失败的回调函数
35
59
  */
36
- fail: PageScrollToFailCallback | null
60
+ fail?: PageScrollToFailCallback | null
37
61
  /**
38
62
  * 接口调用结束的回调函数(调用成功、失败都会执行)
39
63
  */
40
- complete: PageScrollToCompleteCallback | null
64
+ complete?: PageScrollToCompleteCallback | null
41
65
  }
42
66
 
43
67
  export interface Uni {
@@ -45,6 +69,66 @@ export interface Uni {
45
69
  * 将页面滚动到目标位置
46
70
  *
47
71
  * @tutorial http://uniapp.dcloud.io/api/ui/scroll?id=pagescrollto
72
+ * @uniPlatform {
73
+ * "app": {
74
+ * "android": {
75
+ * "osVer": "5.0",
76
+ * "uniVer": "√",
77
+ * "unixVer": "3.91"
78
+ * },
79
+ * "ios": {
80
+ * "osVer": "10.0",
81
+ * "uniVer": "√",
82
+ * "unixVer": "√"
83
+ * }
84
+ * },
85
+ * "mp": {
86
+ * "weixin": {
87
+ * "hostVer": "√",
88
+ * "uniVer": "√",
89
+ * "unixVer": "√"
90
+ * },
91
+ * "alipay": {
92
+ * "hostVer": "√",
93
+ * "uniVer": "√",
94
+ * "unixVer": "√"
95
+ * },
96
+ * "baidu": {
97
+ * "hostVer": "√",
98
+ * "uniVer": "√",
99
+ * "unixVer": "√"
100
+ * },
101
+ * "toutiao": {
102
+ * "hostVer": "√",
103
+ * "uniVer": "√",
104
+ * "unixVer": "√"
105
+ * },
106
+ * "lark": {
107
+ * "hostVer": "√",
108
+ * "uniVer": "√",
109
+ * "unixVer": "√"
110
+ * },
111
+ * "qq": {
112
+ * "hostVer": "√",
113
+ * "uniVer": "√",
114
+ * "unixVer": "√"
115
+ * },
116
+ * "kuaishou": {
117
+ * "hostVer": "√",
118
+ * "uniVer": "√",
119
+ * "unixVer": "√"
120
+ * },
121
+ * "jd": {
122
+ * "hostVer": "√",
123
+ * "uniVer": "√",
124
+ * "unixVer": "√"
125
+ * }
126
+ * },
127
+ * "web": {
128
+ * "uniVer": "√",
129
+ * "unixVer": "√"
130
+ * }
131
+ * }
48
132
  */
49
- pageScrollTo: PageScrollTo
133
+ pageScrollTo(options: PageScrollToOptions): void
50
134
  }
@@ -1,5 +1,4 @@
1
1
  import {
2
- StartPullDownRefresh as StartPullDownRefreshOrigin,
3
2
  StartPullDownRefreshOptions as StartPullDownRefreshOptionsOrigin,
4
3
  StartPullDownRefreshSuccess as StartPullDownRefreshSuccessOrigin,
5
4
  StartPullDownRefreshSuccessCallback as StartPullDownRefreshSuccessCallbackOrigin,
@@ -12,7 +11,6 @@ import {
12
11
  } from './interface'
13
12
 
14
13
  declare global {
15
- type StartPullDownRefresh = StartPullDownRefreshOrigin
16
14
  type StartPullDownRefreshOptions = StartPullDownRefreshOptionsOrigin
17
15
  type StartPullDownRefreshSuccess = StartPullDownRefreshSuccessOrigin
18
16
  type StartPullDownRefreshSuccessCallback = StartPullDownRefreshSuccessCallbackOrigin
@@ -1,8 +1,5 @@
1
1
  import { AsyncApiSuccessResult } from '../../interface'
2
2
 
3
- export type StartPullDownRefresh = (
4
- options?: StartPullDownRefreshOptions | null
5
- ) => void
6
3
  export type StartPullDownRefreshOptions = {
7
4
  /**
8
5
  * 接口调用成功的回调函数
@@ -38,11 +35,11 @@ export interface Uni {
38
35
  *
39
36
  * @tutorial http://uniapp.dcloud.io/api/ui/pulldown?id=startpulldownrefresh
40
37
  */
41
- startPullDownRefresh: StartPullDownRefresh
38
+ startPullDownRefresh(options?: StartPullDownRefreshOptions | null): void
42
39
  /**
43
40
  * 停止当前页面下拉刷新
44
41
  *
45
42
  * @tutorial http://uniapp.dcloud.io/api/ui/pulldown?id=stoppulldownrefresh
46
43
  */
47
- stopPullDownRefresh: StopPullDownRefresh
44
+ stopPullDownRefresh(): void
48
45
  }