@dcloudio/uni-app-x 0.7.119 → 0.7.121

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 (189) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +2 -1
  3. package/types/dom2-internal/UniPage.d.ts +6 -0
  4. package/types/dom2-internal/sharedData.d.ts +5 -1
  5. package/types/native/DrawableContext.d.ts +104 -52
  6. package/types/native/IUniElement.d.ts +4 -2
  7. package/types/node_modules/.package-lock.json +20 -0
  8. package/types/node_modules/typescript/LICENSE.txt +55 -0
  9. package/types/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
  10. package/types/node_modules/typescript/bin/tsc +2 -0
  11. package/types/node_modules/typescript/bin/tsserver +2 -0
  12. package/types/node_modules/typescript/lib/cancellationToken.js +90 -0
  13. package/types/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +1880 -0
  14. package/types/node_modules/typescript/lib/de/diagnosticMessages.generated.json +1880 -0
  15. package/types/node_modules/typescript/lib/es/diagnosticMessages.generated.json +1880 -0
  16. package/types/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +1880 -0
  17. package/types/node_modules/typescript/lib/it/diagnosticMessages.generated.json +1880 -0
  18. package/types/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +1880 -0
  19. package/types/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +1880 -0
  20. package/types/node_modules/typescript/lib/lib.d.ts +22 -0
  21. package/types/node_modules/typescript/lib/lib.decorators.d.ts +386 -0
  22. package/types/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
  23. package/types/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +33 -0
  24. package/types/node_modules/typescript/lib/lib.dom.d.ts +28596 -0
  25. package/types/node_modules/typescript/lib/lib.dom.iterable.d.ts +475 -0
  26. package/types/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
  27. package/types/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
  28. package/types/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
  29. package/types/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
  30. package/types/node_modules/typescript/lib/lib.es2015.iterable.d.ts +495 -0
  31. package/types/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
  32. package/types/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
  33. package/types/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
  34. package/types/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
  35. package/types/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
  36. package/types/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
  37. package/types/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
  38. package/types/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
  39. package/types/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
  40. package/types/node_modules/typescript/lib/lib.es2017.d.ts +25 -0
  41. package/types/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
  42. package/types/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
  43. package/types/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
  44. package/types/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
  45. package/types/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
  46. package/types/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
  47. package/types/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
  48. package/types/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
  49. package/types/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +43 -0
  50. package/types/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
  51. package/types/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
  52. package/types/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
  53. package/types/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
  54. package/types/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
  55. package/types/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
  56. package/types/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
  57. package/types/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
  58. package/types/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
  59. package/types/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
  60. package/types/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
  61. package/types/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
  62. package/types/node_modules/typescript/lib/lib.es2020.bigint.d.ts +727 -0
  63. package/types/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
  64. package/types/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
  65. package/types/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
  66. package/types/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
  67. package/types/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
  68. package/types/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
  69. package/types/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +97 -0
  70. package/types/node_modules/typescript/lib/lib.es2020.string.d.ts +42 -0
  71. package/types/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +37 -0
  72. package/types/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
  73. package/types/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
  74. package/types/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
  75. package/types/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
  76. package/types/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
  77. package/types/node_modules/typescript/lib/lib.es2021.weakref.d.ts +76 -0
  78. package/types/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
  79. package/types/node_modules/typescript/lib/lib.es2022.d.ts +26 -0
  80. package/types/node_modules/typescript/lib/lib.es2022.error.d.ts +73 -0
  81. package/types/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
  82. package/types/node_modules/typescript/lib/lib.es2022.intl.d.ts +117 -0
  83. package/types/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
  84. package/types/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
  85. package/types/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts +39 -0
  86. package/types/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
  87. package/types/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
  88. package/types/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
  89. package/types/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
  90. package/types/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
  91. package/types/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
  92. package/types/node_modules/typescript/lib/lib.es5.d.ts +4585 -0
  93. package/types/node_modules/typescript/lib/lib.es6.d.ts +23 -0
  94. package/types/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
  95. package/types/node_modules/typescript/lib/lib.esnext.collection.d.ts +106 -0
  96. package/types/node_modules/typescript/lib/lib.esnext.d.ts +28 -0
  97. package/types/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
  98. package/types/node_modules/typescript/lib/lib.esnext.disposable.d.ts +185 -0
  99. package/types/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
  100. package/types/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
  101. package/types/node_modules/typescript/lib/lib.esnext.object.d.ts +29 -0
  102. package/types/node_modules/typescript/lib/lib.esnext.promise.d.ts +35 -0
  103. package/types/node_modules/typescript/lib/lib.esnext.regexp.d.ts +25 -0
  104. package/types/node_modules/typescript/lib/lib.esnext.string.d.ts +29 -0
  105. package/types/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
  106. package/types/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +33 -0
  107. package/types/node_modules/typescript/lib/lib.webworker.d.ts +9431 -0
  108. package/types/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
  109. package/types/node_modules/typescript/lib/lib.webworker.iterable.d.ts +276 -0
  110. package/types/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +1880 -0
  111. package/types/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +1880 -0
  112. package/types/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +1880 -0
  113. package/types/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +1880 -0
  114. package/types/node_modules/typescript/lib/tsc.js +129741 -0
  115. package/types/node_modules/typescript/lib/tsserver.js +621 -0
  116. package/types/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
  117. package/types/node_modules/typescript/lib/tsserverlibrary.js +21 -0
  118. package/types/node_modules/typescript/lib/typesMap.json +497 -0
  119. package/types/node_modules/typescript/lib/typescript.d.ts +11240 -0
  120. package/types/node_modules/typescript/lib/typescript.js +194910 -0
  121. package/types/node_modules/typescript/lib/typingsInstaller.js +236 -0
  122. package/types/node_modules/typescript/lib/watchGuard.js +53 -0
  123. package/types/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +1880 -0
  124. package/types/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +1880 -0
  125. package/types/node_modules/typescript/package.json +116 -0
  126. package/types/page.d.ts +2 -2
  127. package/types/uni/env/index.d.ts +2 -1
  128. package/types/uni/uts-plugin-api/global.d.ts +0 -2
  129. package/types/uni/uts-plugin-api/index.d.ts +0 -2
  130. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +0 -2
  131. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +0 -1
  132. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +0 -1
  133. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +110 -110
  134. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +1 -0
  135. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +72 -531
  136. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +72 -531
  137. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +214 -549
  138. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +72 -68
  139. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +8 -12
  140. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +4 -6
  141. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +1741 -905
  142. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +12 -12
  143. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +534 -337
  144. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +1157 -830
  145. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +4 -4
  146. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +2 -2
  147. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +948 -340
  148. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +3 -1
  149. package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/global.d.ts +8 -0
  150. package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/index.d.ts +4 -0
  151. package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/interface.d.ts +1155 -1142
  152. package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/interface.d.ts +6 -6
  153. package/types/uni/uts-plugin-component/global.d.ts +0 -2
  154. package/types/uni/uts-plugin-component/index.d.ts +0 -2
  155. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/global.d.ts +0 -2
  156. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/index.d.ts +0 -1
  157. package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/interface.d.ts +0 -1
  158. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +110 -110
  159. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +2 -1
  160. package/types/uni/uts-plugin-component/lib/uni-form-global/utssdk/interface.d.ts +1 -1
  161. package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/interface.d.ts +1 -0
  162. package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +531 -72
  163. package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +531 -72
  164. package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/interface.d.ts +569 -110
  165. package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/interface.d.ts +73 -67
  166. package/types/uni/uts-plugin-component/lib/uni-match-media-global/utssdk/interface.d.ts +1 -1
  167. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/global.d.ts +8 -12
  168. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/index.d.ts +4 -6
  169. package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/interface.d.ts +1743 -291
  170. package/types/uni/uts-plugin-component/lib/uni-navigator-global/utssdk/interface.d.ts +1 -1
  171. package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/interface.d.ts +12 -12
  172. package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/interface.d.ts +478 -15
  173. package/types/uni/uts-plugin-component/lib/uni-progress-global/utssdk/interface.d.ts +1 -1
  174. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +1175 -314
  175. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/global.d.ts +4 -4
  176. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/index.d.ts +2 -2
  177. package/types/uni/uts-plugin-component/lib/uni-share/utssdk/interface.d.ts +948 -340
  178. package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/interface.d.ts +3 -1
  179. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/global.d.ts +8 -0
  180. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/index.d.ts +4 -0
  181. package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/interface.d.ts +1617 -446
  182. package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +6 -6
  183. package/types/uni/uts-plugin-extend/global.d.ts +0 -1
  184. package/types/uni/uts-plugin-extend/index.d.ts +0 -1
  185. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +3 -3
  186. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +2 -1
  187. package/types/vue/LifeCycle.d.ts +2 -2
  188. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +0 -9
  189. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +0 -1
@@ -1,6 +1,72 @@
1
1
  /**
2
2
  * 设置页面滚动错误码
3
3
  * - 4: 框架内部异常
4
+ * @uniPlatform {
5
+ * "app": {
6
+ * "android": {
7
+ * "osVer": "5.0",
8
+ * "uniVer": "√",
9
+ * "unixVer": "3.91"
10
+ * },
11
+ * "ios": {
12
+ * "osVer": "12.0",
13
+ * "uniVer": "√",
14
+ * "unixVer": "4.11"
15
+ * },
16
+ * "harmony": {
17
+ * "osVer": "3.0",
18
+ * "uniVer": "4.23",
19
+ * "unixVer": "4.61",
20
+ * "unixVaporVer": "5.00"
21
+ * }
22
+ * },
23
+ * "mp": {
24
+ * "weixin": {
25
+ * "hostVer": "√",
26
+ * "uniVer": "√",
27
+ * "unixVer": "4.41"
28
+ * },
29
+ * "alipay": {
30
+ * "hostVer": "√",
31
+ * "uniVer": "√",
32
+ * "unixVer": "x"
33
+ * },
34
+ * "baidu": {
35
+ * "hostVer": "√",
36
+ * "uniVer": "√",
37
+ * "unixVer": "x"
38
+ * },
39
+ * "toutiao": {
40
+ * "hostVer": "√",
41
+ * "uniVer": "√",
42
+ * "unixVer": "x"
43
+ * },
44
+ * "lark": {
45
+ * "hostVer": "√",
46
+ * "uniVer": "√",
47
+ * "unixVer": "x"
48
+ * },
49
+ * "qq": {
50
+ * "hostVer": "√",
51
+ * "uniVer": "√",
52
+ * "unixVer": "x"
53
+ * },
54
+ * "kuaishou": {
55
+ * "hostVer": "√",
56
+ * "uniVer": "√",
57
+ * "unixVer": "x"
58
+ * },
59
+ * "jd": {
60
+ * "hostVer": "√",
61
+ * "uniVer": "√",
62
+ * "unixVer": "x"
63
+ * }
64
+ * },
65
+ * "web": {
66
+ * "uniVer": "√",
67
+ * "unixVer": "4.0"
68
+ * }
69
+ * }
4
70
  */
5
71
  export type PageScrollToErrorCode = 4
6
72
  export interface PageScrollToFail extends IUniError {
@@ -17,99 +83,143 @@ export type PageScrollToCompleteCallback = (
17
83
  ) => void
18
84
  export type PageScrollToOptions = {
19
85
  /**
20
- * 滚动到页面的目标位置
21
- * @uniPlatform {
22
- * "mp": {
23
- * "weixin": {
24
- * "hostVer": "",
25
- * "uniVer": "√",
26
- * "unixVer": "4.41"
27
- * },
28
- * "alipay": {
29
- * "hostVer": "-",
30
- * "uniVer": "-",
31
- * "unixVer": "-"
32
- * },
33
- * "baidu": {
34
- * "hostVer": "-",
35
- * "uniVer": "-",
36
- * "unixVer": "-"
37
- * },
38
- * "toutiao": {
39
- * "hostVer": "-",
40
- * "uniVer": "-",
41
- * "unixVer": "-"
42
- * },
43
- * "lark": {
44
- * "hostVer": "-",
45
- * "uniVer": "-",
46
- * "unixVer": "-"
47
- * },
48
- * "qq": {
49
- * "hostVer": "-",
50
- * "uniVer": "-",
51
- * "unixVer": "-"
52
- * },
53
- * "kuaishou": {
54
- * "hostVer": "-",
55
- * "uniVer": "-",
56
- * "unixVer": "-"
57
- * },
58
- * "jd": {
59
- * "hostVer": "-",
60
- * "uniVer": "-",
61
- * "unixVer": "-"
62
- * }
63
- * }
64
- * }
86
+ * 滚动到页面的目标位置(单位px)
87
+ * @uniPlatform {
88
+ * "app": {
89
+ * "android": {
90
+ * "osVer": "5.0",
91
+ * "uniVer": "√",
92
+ * "unixVer": "3.91"
93
+ * },
94
+ * "ios": {
95
+ * "osVer": "12.0",
96
+ * "uniVer": "",
97
+ * "unixVer": "4.11"
98
+ * },
99
+ * "harmony": {
100
+ * "osVer": "3.0",
101
+ * "uniVer": "4.23",
102
+ * "unixVer": "4.61",
103
+ * "unixVaporVer": "5.00"
104
+ * }
105
+ * },
106
+ * "mp": {
107
+ * "weixin": {
108
+ * "hostVer": "√",
109
+ * "uniVer": "√",
110
+ * "unixVer": "4.41"
111
+ * },
112
+ * "alipay": {
113
+ * "hostVer": "√",
114
+ * "uniVer": "√",
115
+ * "unixVer": "x"
116
+ * },
117
+ * "baidu": {
118
+ * "hostVer": "√",
119
+ * "uniVer": "√",
120
+ * "unixVer": "x"
121
+ * },
122
+ * "toutiao": {
123
+ * "hostVer": "√",
124
+ * "uniVer": "√",
125
+ * "unixVer": "x"
126
+ * },
127
+ * "lark": {
128
+ * "hostVer": "√",
129
+ * "uniVer": "√",
130
+ * "unixVer": "x"
131
+ * },
132
+ * "qq": {
133
+ * "hostVer": "√",
134
+ * "uniVer": "√",
135
+ * "unixVer": "x"
136
+ * },
137
+ * "kuaishou": {
138
+ * "hostVer": "√",
139
+ * "uniVer": "√",
140
+ * "unixVer": "x"
141
+ * },
142
+ * "jd": {
143
+ * "hostVer": "√",
144
+ * "uniVer": "√",
145
+ * "unixVer": "x"
146
+ * }
147
+ * },
148
+ * "web": {
149
+ * "uniVer": "√",
150
+ * "unixVer": "4.0"
151
+ * }
152
+ * }
65
153
  */
66
154
  scrollTop?: number | null
67
155
  /**
68
- * 选择器
69
- * @uniPlatform {
70
- * "mp": {
71
- * "weixin": {
72
- * "hostVer": "",
73
- * "uniVer": "√",
74
- * "unixVer": "4.41"
75
- * },
76
- * "alipay": {
77
- * "hostVer": "-",
78
- * "uniVer": "-",
79
- * "unixVer": "-"
80
- * },
81
- * "baidu": {
82
- * "hostVer": "-",
83
- * "uniVer": "-",
84
- * "unixVer": "-"
85
- * },
86
- * "toutiao": {
87
- * "hostVer": "-",
88
- * "uniVer": "-",
89
- * "unixVer": "-"
90
- * },
91
- * "lark": {
92
- * "hostVer": "-",
93
- * "uniVer": "-",
94
- * "unixVer": "-"
95
- * },
96
- * "qq": {
97
- * "hostVer": "-",
98
- * "uniVer": "-",
99
- * "unixVer": "-"
100
- * },
101
- * "kuaishou": {
102
- * "hostVer": "-",
103
- * "uniVer": "-",
104
- * "unixVer": "-"
105
- * },
106
- * "jd": {
107
- * "hostVer": "-",
108
- * "uniVer": "-",
109
- * "unixVer": "-"
110
- * }
111
- * }
112
- * }
156
+ * 元素选择器,用于指定要滚动到的元素位置
157
+ * @uniPlatform {
158
+ * "app": {
159
+ * "android": {
160
+ * "osVer": "5.0",
161
+ * "uniVer": "√",
162
+ * "unixVer": "3.91"
163
+ * },
164
+ * "ios": {
165
+ * "osVer": "12.0",
166
+ * "uniVer": "",
167
+ * "unixVer": "4.11"
168
+ * },
169
+ * "harmony": {
170
+ * "osVer": "3.0",
171
+ * "uniVer": "4.23",
172
+ * "unixVer": "4.61",
173
+ * "unixVaporVer": "5.00"
174
+ * }
175
+ * },
176
+ * "mp": {
177
+ * "weixin": {
178
+ * "hostVer": "√",
179
+ * "uniVer": "√",
180
+ * "unixVer": "4.41"
181
+ * },
182
+ * "alipay": {
183
+ * "hostVer": "√",
184
+ * "uniVer": "√",
185
+ * "unixVer": "x"
186
+ * },
187
+ * "baidu": {
188
+ * "hostVer": "√",
189
+ * "uniVer": "√",
190
+ * "unixVer": "x"
191
+ * },
192
+ * "toutiao": {
193
+ * "hostVer": "√",
194
+ * "uniVer": "√",
195
+ * "unixVer": "x"
196
+ * },
197
+ * "lark": {
198
+ * "hostVer": "√",
199
+ * "uniVer": "√",
200
+ * "unixVer": "x"
201
+ * },
202
+ * "qq": {
203
+ * "hostVer": "√",
204
+ * "uniVer": "√",
205
+ * "unixVer": "x"
206
+ * },
207
+ * "kuaishou": {
208
+ * "hostVer": "√",
209
+ * "uniVer": "√",
210
+ * "unixVer": "x"
211
+ * },
212
+ * "jd": {
213
+ * "hostVer": "√",
214
+ * "uniVer": "√",
215
+ * "unixVer": "x"
216
+ * }
217
+ * },
218
+ * "web": {
219
+ * "uniVer": "√",
220
+ * "unixVer": "4.0"
221
+ * }
222
+ * }
113
223
  */
114
224
  selector?: string | null
115
225
  /**
@@ -148,195 +258,283 @@ export type PageScrollToOptions = {
148
258
  */
149
259
  offsetTop?: number | null
150
260
  /**
151
- * 滚动动画的时长
152
- * @uniPlatform {
153
- * "mp": {
154
- * "weixin": {
155
- * "hostVer": "",
156
- * "uniVer": "√",
157
- * "unixVer": "4.41"
158
- * },
159
- * "alipay": {
160
- * "hostVer": "-",
161
- * "uniVer": "-",
162
- * "unixVer": "-"
163
- * },
164
- * "baidu": {
165
- * "hostVer": "-",
166
- * "uniVer": "-",
167
- * "unixVer": "-"
168
- * },
169
- * "toutiao": {
170
- * "hostVer": "-",
171
- * "uniVer": "-",
172
- * "unixVer": "-"
173
- * },
174
- * "lark": {
175
- * "hostVer": "-",
176
- * "uniVer": "-",
177
- * "unixVer": "-"
178
- * },
179
- * "qq": {
180
- * "hostVer": "-",
181
- * "uniVer": "-",
182
- * "unixVer": "-"
183
- * },
184
- * "kuaishou": {
185
- * "hostVer": "-",
186
- * "uniVer": "-",
187
- * "unixVer": "-"
188
- * },
189
- * "jd": {
190
- * "hostVer": "-",
191
- * "uniVer": "-",
192
- * "unixVer": "-"
193
- * }
194
- * }
195
- * }
261
+ * 滚动动画的时长,默认300,单位 ms
262
+ * @uniPlatform {
263
+ * "app": {
264
+ * "android": {
265
+ * "osVer": "5.0",
266
+ * "uniVer": "√",
267
+ * "unixVer": "x"
268
+ * },
269
+ * "ios": {
270
+ * "osVer": "12.0",
271
+ * "uniVer": "",
272
+ * "unixVer": "x"
273
+ * },
274
+ * "harmony": {
275
+ * "osVer": "3.0",
276
+ * "uniVer": "4.23",
277
+ * "unixVer": "x",
278
+ * "unixVaporVer": "x"
279
+ * }
280
+ * },
281
+ * "mp": {
282
+ * "weixin": {
283
+ * "hostVer": "√",
284
+ * "uniVer": "√",
285
+ * "unixVer": "4.41"
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": "4.0"
326
+ * }
327
+ * }
196
328
  */
197
329
  duration?: number | null
198
330
  /**
199
- * 接口调用成功的回调函数
200
- * @uniPlatform {
201
- * "mp": {
202
- * "weixin": {
203
- * "hostVer": "",
204
- * "uniVer": "√",
205
- * "unixVer": "4.41"
206
- * },
207
- * "alipay": {
208
- * "hostVer": "-",
209
- * "uniVer": "-",
210
- * "unixVer": "-"
211
- * },
212
- * "baidu": {
213
- * "hostVer": "-",
214
- * "uniVer": "-",
215
- * "unixVer": "-"
216
- * },
217
- * "toutiao": {
218
- * "hostVer": "-",
219
- * "uniVer": "-",
220
- * "unixVer": "-"
221
- * },
222
- * "lark": {
223
- * "hostVer": "-",
224
- * "uniVer": "-",
225
- * "unixVer": "-"
226
- * },
227
- * "qq": {
228
- * "hostVer": "-",
229
- * "uniVer": "-",
230
- * "unixVer": "-"
231
- * },
232
- * "kuaishou": {
233
- * "hostVer": "-",
234
- * "uniVer": "-",
235
- * "unixVer": "-"
236
- * },
237
- * "jd": {
238
- * "hostVer": "-",
239
- * "uniVer": "-",
240
- * "unixVer": "-"
241
- * }
242
- * }
243
- * }
331
+ * 接口调用成功的回调函数
332
+ * @uniPlatform {
333
+ * "app": {
334
+ * "android": {
335
+ * "osVer": "5.0",
336
+ * "uniVer": "√",
337
+ * "unixVer": "3.91"
338
+ * },
339
+ * "ios": {
340
+ * "osVer": "12.0",
341
+ * "uniVer": "",
342
+ * "unixVer": "4.11"
343
+ * },
344
+ * "harmony": {
345
+ * "osVer": "3.0",
346
+ * "uniVer": "4.23",
347
+ * "unixVer": "4.61",
348
+ * "unixVaporVer": "5.00"
349
+ * }
350
+ * },
351
+ * "mp": {
352
+ * "weixin": {
353
+ * "hostVer": "√",
354
+ * "uniVer": "√",
355
+ * "unixVer": "4.41"
356
+ * },
357
+ * "alipay": {
358
+ * "hostVer": "√",
359
+ * "uniVer": "√",
360
+ * "unixVer": "x"
361
+ * },
362
+ * "baidu": {
363
+ * "hostVer": "√",
364
+ * "uniVer": "√",
365
+ * "unixVer": "x"
366
+ * },
367
+ * "toutiao": {
368
+ * "hostVer": "√",
369
+ * "uniVer": "√",
370
+ * "unixVer": "x"
371
+ * },
372
+ * "lark": {
373
+ * "hostVer": "√",
374
+ * "uniVer": "√",
375
+ * "unixVer": "x"
376
+ * },
377
+ * "qq": {
378
+ * "hostVer": "√",
379
+ * "uniVer": "√",
380
+ * "unixVer": "x"
381
+ * },
382
+ * "kuaishou": {
383
+ * "hostVer": "√",
384
+ * "uniVer": "√",
385
+ * "unixVer": "x"
386
+ * },
387
+ * "jd": {
388
+ * "hostVer": "√",
389
+ * "uniVer": "√",
390
+ * "unixVer": "x"
391
+ * }
392
+ * },
393
+ * "web": {
394
+ * "uniVer": "√",
395
+ * "unixVer": "4.0"
396
+ * }
397
+ * }
244
398
  */
245
399
  success?: PageScrollToSuccessCallback | null
246
400
  /**
247
- * 接口调用失败的回调函数
248
- * @uniPlatform {
249
- * "mp": {
250
- * "weixin": {
251
- * "hostVer": "",
252
- * "uniVer": "√",
253
- * "unixVer": "4.41"
254
- * },
255
- * "alipay": {
256
- * "hostVer": "-",
257
- * "uniVer": "-",
258
- * "unixVer": "-"
259
- * },
260
- * "baidu": {
261
- * "hostVer": "-",
262
- * "uniVer": "-",
263
- * "unixVer": "-"
264
- * },
265
- * "toutiao": {
266
- * "hostVer": "-",
267
- * "uniVer": "-",
268
- * "unixVer": "-"
269
- * },
270
- * "lark": {
271
- * "hostVer": "-",
272
- * "uniVer": "-",
273
- * "unixVer": "-"
274
- * },
275
- * "qq": {
276
- * "hostVer": "-",
277
- * "uniVer": "-",
278
- * "unixVer": "-"
279
- * },
280
- * "kuaishou": {
281
- * "hostVer": "-",
282
- * "uniVer": "-",
283
- * "unixVer": "-"
284
- * },
285
- * "jd": {
286
- * "hostVer": "-",
287
- * "uniVer": "-",
288
- * "unixVer": "-"
289
- * }
290
- * }
291
- * }
401
+ * 接口调用失败的回调函数
402
+ * @uniPlatform {
403
+ * "app": {
404
+ * "android": {
405
+ * "osVer": "5.0",
406
+ * "uniVer": "√",
407
+ * "unixVer": "3.91"
408
+ * },
409
+ * "ios": {
410
+ * "osVer": "12.0",
411
+ * "uniVer": "",
412
+ * "unixVer": "4.11"
413
+ * },
414
+ * "harmony": {
415
+ * "osVer": "3.0",
416
+ * "uniVer": "4.23",
417
+ * "unixVer": "4.61",
418
+ * "unixVaporVer": "5.00"
419
+ * }
420
+ * },
421
+ * "mp": {
422
+ * "weixin": {
423
+ * "hostVer": "√",
424
+ * "uniVer": "√",
425
+ * "unixVer": "4.41"
426
+ * },
427
+ * "alipay": {
428
+ * "hostVer": "√",
429
+ * "uniVer": "√",
430
+ * "unixVer": "x"
431
+ * },
432
+ * "baidu": {
433
+ * "hostVer": "√",
434
+ * "uniVer": "√",
435
+ * "unixVer": "x"
436
+ * },
437
+ * "toutiao": {
438
+ * "hostVer": "√",
439
+ * "uniVer": "√",
440
+ * "unixVer": "x"
441
+ * },
442
+ * "lark": {
443
+ * "hostVer": "√",
444
+ * "uniVer": "√",
445
+ * "unixVer": "x"
446
+ * },
447
+ * "qq": {
448
+ * "hostVer": "√",
449
+ * "uniVer": "√",
450
+ * "unixVer": "x"
451
+ * },
452
+ * "kuaishou": {
453
+ * "hostVer": "√",
454
+ * "uniVer": "√",
455
+ * "unixVer": "x"
456
+ * },
457
+ * "jd": {
458
+ * "hostVer": "√",
459
+ * "uniVer": "√",
460
+ * "unixVer": "x"
461
+ * }
462
+ * },
463
+ * "web": {
464
+ * "uniVer": "√",
465
+ * "unixVer": "4.0"
466
+ * }
467
+ * }
292
468
  */
293
469
  fail?: PageScrollToFailCallback | null
294
470
  /**
295
- * 接口调用结束的回调函数(调用成功、失败都会执行)
296
- * @uniPlatform {
297
- * "mp": {
298
- * "weixin": {
299
- * "hostVer": "",
300
- * "uniVer": "√",
301
- * "unixVer": "4.41"
302
- * },
303
- * "alipay": {
304
- * "hostVer": "-",
305
- * "uniVer": "-",
306
- * "unixVer": "-"
307
- * },
308
- * "baidu": {
309
- * "hostVer": "-",
310
- * "uniVer": "-",
311
- * "unixVer": "-"
312
- * },
313
- * "toutiao": {
314
- * "hostVer": "-",
315
- * "uniVer": "-",
316
- * "unixVer": "-"
317
- * },
318
- * "lark": {
319
- * "hostVer": "-",
320
- * "uniVer": "-",
321
- * "unixVer": "-"
322
- * },
323
- * "qq": {
324
- * "hostVer": "-",
325
- * "uniVer": "-",
326
- * "unixVer": "-"
327
- * },
328
- * "kuaishou": {
329
- * "hostVer": "-",
330
- * "uniVer": "-",
331
- * "unixVer": "-"
332
- * },
333
- * "jd": {
334
- * "hostVer": "-",
335
- * "uniVer": "-",
336
- * "unixVer": "-"
337
- * }
338
- * }
339
- * }
471
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
472
+ * @uniPlatform {
473
+ * "app": {
474
+ * "android": {
475
+ * "osVer": "5.0",
476
+ * "uniVer": "√",
477
+ * "unixVer": "3.91"
478
+ * },
479
+ * "ios": {
480
+ * "osVer": "12.0",
481
+ * "uniVer": "",
482
+ * "unixVer": "4.11"
483
+ * },
484
+ * "harmony": {
485
+ * "osVer": "3.0",
486
+ * "uniVer": "4.23",
487
+ * "unixVer": "4.61",
488
+ * "unixVaporVer": "5.00"
489
+ * }
490
+ * },
491
+ * "mp": {
492
+ * "weixin": {
493
+ * "hostVer": "√",
494
+ * "uniVer": "√",
495
+ * "unixVer": "4.41"
496
+ * },
497
+ * "alipay": {
498
+ * "hostVer": "√",
499
+ * "uniVer": "√",
500
+ * "unixVer": "x"
501
+ * },
502
+ * "baidu": {
503
+ * "hostVer": "√",
504
+ * "uniVer": "√",
505
+ * "unixVer": "x"
506
+ * },
507
+ * "toutiao": {
508
+ * "hostVer": "√",
509
+ * "uniVer": "√",
510
+ * "unixVer": "x"
511
+ * },
512
+ * "lark": {
513
+ * "hostVer": "√",
514
+ * "uniVer": "√",
515
+ * "unixVer": "x"
516
+ * },
517
+ * "qq": {
518
+ * "hostVer": "√",
519
+ * "uniVer": "√",
520
+ * "unixVer": "x"
521
+ * },
522
+ * "kuaishou": {
523
+ * "hostVer": "√",
524
+ * "uniVer": "√",
525
+ * "unixVer": "x"
526
+ * },
527
+ * "jd": {
528
+ * "hostVer": "√",
529
+ * "uniVer": "√",
530
+ * "unixVer": "x"
531
+ * }
532
+ * },
533
+ * "web": {
534
+ * "uniVer": "√",
535
+ * "unixVer": "4.0"
536
+ * }
537
+ * }
340
538
  */
341
539
  complete?: PageScrollToCompleteCallback | null
342
540
  }
@@ -348,73 +546,72 @@ export interface Uni {
348
546
  * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/scroll.html#pagescrollto
349
547
  * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/page-scroll-to.html#pagescrollto
350
548
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/page-scroll-to.html#pagescrollto
351
- * @uniPlatform {
352
- * "app": {
353
- * "android": {
354
- * "osVer": "5.0",
355
- * "uniVer": "√",
356
- * "unixVer": "3.91"
357
- * },
358
- * "ios": {
359
- * "osVer": "12.0",
360
- * "uniVer": "√",
361
- * "unixVer": "4.11"
362
- * },
363
- * "harmony": {
364
- * "osVer": "3.0",
365
- * "uniVer": "4.23",
366
- * "unixVer": "4.61",
367
- * "unixVaporVer": "5.0"
368
- * }
369
- * },
370
- * "mp": {
371
- * "weixin": {
372
- * "hostVer": "1.4.0",
373
- * "uniVer": "√",
374
- * "unixVer": "4.41"
375
- * },
376
- * "alipay": {
377
- * "hostVer": "√",
378
- * "uniVer": "√",
379
- * "unixVer": "x"
380
- * },
381
- * "baidu": {
382
- * "hostVer": "√",
383
- * "uniVer": "√",
384
- * "unixVer": "x"
385
- * },
386
- * "toutiao": {
387
- * "hostVer": "√",
388
- * "uniVer": "√",
389
- * "unixVer": "x"
390
- * },
391
- * "lark": {
392
- * "hostVer": "√",
393
- * "uniVer": "√",
394
- * "unixVer": "x"
395
- * },
396
- * "qq": {
397
- * "hostVer": "√",
398
- * "uniVer": "√",
399
- * "unixVer": "x"
400
- * },
401
- * "kuaishou": {
402
- * "hostVer": "√",
403
- * "uniVer": "√",
404
- * "unixVer": "x"
405
- * },
406
- * "jd": {
407
- * "hostVer": "√",
408
- * "uniVer": "√",
409
- * "unixVer": "x"
410
- * }
411
- * },
412
- * "web": {
413
- * "uniVer": "√",
414
- * "unixVer": "4.0"
415
- * }
416
- * }
417
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/ui/scroll/wx.pageScrollTo.html
549
+ * @uniPlatform {
550
+ * "app": {
551
+ * "android": {
552
+ * "osVer": "5.0",
553
+ * "uniVer": "√",
554
+ * "unixVer": "3.91"
555
+ * },
556
+ * "ios": {
557
+ * "osVer": "12.0",
558
+ * "uniVer": "√",
559
+ * "unixVer": "4.11"
560
+ * },
561
+ * "harmony": {
562
+ * "osVer": "3.0",
563
+ * "uniVer": "4.23",
564
+ * "unixVer": "4.61",
565
+ * "unixVaporVer": "5.00"
566
+ * }
567
+ * },
568
+ * "mp": {
569
+ * "weixin": {
570
+ * "hostVer": "",
571
+ * "uniVer": "√",
572
+ * "unixVer": "4.41"
573
+ * },
574
+ * "alipay": {
575
+ * "hostVer": "√",
576
+ * "uniVer": "√",
577
+ * "unixVer": "x"
578
+ * },
579
+ * "baidu": {
580
+ * "hostVer": "√",
581
+ * "uniVer": "√",
582
+ * "unixVer": "x"
583
+ * },
584
+ * "toutiao": {
585
+ * "hostVer": "√",
586
+ * "uniVer": "√",
587
+ * "unixVer": "x"
588
+ * },
589
+ * "lark": {
590
+ * "hostVer": "√",
591
+ * "uniVer": "√",
592
+ * "unixVer": "x"
593
+ * },
594
+ * "qq": {
595
+ * "hostVer": "√",
596
+ * "uniVer": "√",
597
+ * "unixVer": "x"
598
+ * },
599
+ * "kuaishou": {
600
+ * "hostVer": "√",
601
+ * "uniVer": "√",
602
+ * "unixVer": "x"
603
+ * },
604
+ * "jd": {
605
+ * "hostVer": "√",
606
+ * "uniVer": "√",
607
+ * "unixVer": "x"
608
+ * }
609
+ * },
610
+ * "web": {
611
+ * "uniVer": "√",
612
+ * "unixVer": "4.0"
613
+ * }
614
+ * }
418
615
  */
419
616
  pageScrollTo(options: PageScrollToOptions): Promise<PageScrollToSuccess> | null
420
617
  }