@dcloudio/uni-app-x 0.7.19 → 0.7.21

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 (335) hide show
  1. package/.prettierrc +5 -5
  2. package/README.md +1 -1
  3. package/index.d.ts +1 -1
  4. package/options.d.ts +9 -9
  5. package/package.json +27 -27
  6. package/types/app.d.ts +1002 -842
  7. package/types/index.d.ts +7 -7
  8. package/types/native/AsyncApiResult.d.ts +7 -7
  9. package/types/native/CSSStyleDeclaration.d.ts +25 -25
  10. package/types/native/CanvasRenderingContext2D.d.ts +2048 -2047
  11. package/types/native/DOMRect.d.ts +56 -56
  12. package/types/native/DrawableContext.d.ts +162 -162
  13. package/types/native/INavigationBar.d.ts +22 -22
  14. package/types/native/IUniElement.d.ts +2859 -2859
  15. package/types/native/IUniError.d.ts +20 -20
  16. package/types/native/IUniForm.d.ts +9 -9
  17. package/types/native/IUniObjectElement.d.ts +124 -124
  18. package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
  19. package/types/native/NodeData.d.ts +22 -22
  20. package/types/native/PageNode.d.ts +6 -6
  21. package/types/native/Path2D.d.ts +240 -240
  22. package/types/native/SnapshotOptions.d.ts +63 -63
  23. package/types/native/SourceError.d.ts +46 -46
  24. package/types/native/UTSAndroidHookProxy.d.ts +14 -14
  25. package/types/native/UniAggregateError.d.ts +19 -19
  26. package/types/native/UniApp.d.ts +205 -205
  27. package/types/native/UniCallbackWrapper.d.ts +7 -7
  28. package/types/native/UniCanvasElement.d.ts +9 -9
  29. package/types/native/UniCustomEvent.d.ts +24 -24
  30. package/types/native/UniDocument.d.ts +83 -83
  31. package/types/native/UniElement.d.ts +79 -79
  32. package/types/native/UniError.d.ts +70 -70
  33. package/types/native/UniEvent.d.ts +92 -92
  34. package/types/native/UniFormControl.d.ts +8 -8
  35. package/types/native/UniFormControlElement.d.ts +14 -14
  36. package/types/native/UniImageErrorEvent.d.ts +33 -33
  37. package/types/native/UniImageLoadEvent.d.ts +37 -37
  38. package/types/native/UniInputBlurEvent.d.ts +36 -36
  39. package/types/native/UniInputConfirmEvent.d.ts +30 -30
  40. package/types/native/UniInputEvent.d.ts +38 -38
  41. package/types/native/UniInputFocusEvent.d.ts +53 -53
  42. package/types/native/UniNativePage.d.ts +270 -270
  43. package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
  44. package/types/native/UniPageEvent.d.ts +10 -10
  45. package/types/native/UniPageManager.d.ts +27 -20
  46. package/types/native/UniPageScrollEvent.d.ts +13 -13
  47. package/types/native/UniPointerEvent.d.ts +74 -74
  48. package/types/native/UniProvider.d.ts +15 -15
  49. package/types/native/UniRefresherEvent.d.ts +18 -18
  50. package/types/native/UniResizeEvent.d.ts +34 -34
  51. package/types/native/UniResizeObserver.d.ts +184 -184
  52. package/types/native/UniRichTextItemClickEvent.d.ts +41 -41
  53. package/types/native/UniScrollEvent.d.ts +42 -42
  54. package/types/native/UniScrollToLowerEvent.d.ts +23 -23
  55. package/types/native/UniScrollToUpperEvent.d.ts +23 -23
  56. package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
  57. package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
  58. package/types/native/UniSwiperAnimationFinishEvent.d.ts +44 -44
  59. package/types/native/UniSwiperChangeEvent.d.ts +44 -44
  60. package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
  61. package/types/native/UniTabTapEvent.d.ts +18 -18
  62. package/types/native/UniTabsElement.d.ts +59 -59
  63. package/types/native/UniTextElement.d.ts +34 -34
  64. package/types/native/UniTextareaFocusEvent.d.ts +54 -54
  65. package/types/native/UniTouchEvent.d.ts +64 -64
  66. package/types/native/UniVideoElement.d.ts +75 -75
  67. package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
  68. package/types/native/UniWebViewElement.d.ts +10 -10
  69. package/types/native/UniWebViewErrorEvent.d.ts +59 -59
  70. package/types/native/UniWebViewLoadEvent.d.ts +41 -41
  71. package/types/native/UniWebViewLoadingEvent.d.ts +41 -41
  72. package/types/native/UniWebViewMessageEvent.d.ts +36 -36
  73. package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
  74. package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
  75. package/types/native/WebViewStyles.d.ts +20 -20
  76. package/types/native/global.d.ts +598 -598
  77. package/types/native/index.d.ts +71 -71
  78. package/types/native-global/index.d.ts +1 -1
  79. package/types/page.d.ts +1682 -1682
  80. package/types/process.d.ts +5 -5
  81. package/types/uni/base/index.d.ts +3 -3
  82. package/types/uni/env/index.d.ts +103 -103
  83. package/types/uni/global.d.ts +6 -6
  84. package/types/uni/index.d.ts +4 -4
  85. package/types/uni/uts-plugin-api/global.d.ts +58 -57
  86. package/types/uni/uts-plugin-api/index.d.ts +58 -57
  87. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -26
  88. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -12
  89. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -231
  90. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/global.d.ts +12 -12
  91. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/index.d.ts +5 -5
  92. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/interface.d.ts +50 -50
  93. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -10
  94. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
  95. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -77
  96. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +60 -0
  97. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +29 -0
  98. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +161 -0
  99. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
  100. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
  101. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -77
  102. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +20 -20
  103. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +9 -9
  104. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +264 -242
  105. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
  106. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
  107. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -203
  108. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +12 -12
  109. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +5 -5
  110. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1733 -1733
  111. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
  112. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
  113. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -152
  114. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  115. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  116. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
  117. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
  118. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
  119. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +464 -427
  120. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  121. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  122. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
  123. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
  124. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
  125. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1336 -1336
  126. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
  127. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
  128. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +305 -305
  129. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  130. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  131. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +91 -91
  132. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
  133. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
  134. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -174
  135. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +142 -142
  136. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +70 -70
  137. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +1840 -1840
  138. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  139. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  140. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  141. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  142. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +329 -329
  143. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  144. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  145. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +818 -818
  146. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +12 -12
  147. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +5 -5
  148. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +297 -297
  149. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  150. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  151. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +657 -657
  152. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
  153. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
  154. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +81 -81
  155. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
  156. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
  157. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +155 -155
  158. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
  159. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
  160. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +159 -159
  161. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
  162. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
  163. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +563 -564
  164. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
  165. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
  166. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  167. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
  168. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
  169. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
  170. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
  171. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
  172. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
  173. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +163 -163
  174. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +30 -32
  175. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +14 -15
  176. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +375 -375
  177. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
  178. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
  179. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +980 -980
  180. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +30 -30
  181. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +14 -14
  182. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +2131 -2131
  183. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  184. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  185. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +169 -169
  186. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  187. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  188. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
  189. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
  190. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
  191. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
  192. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
  193. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -60
  194. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +26 -26
  195. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +12 -12
  196. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +564 -564
  197. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
  198. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
  199. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -100
  200. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +160 -160
  201. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +79 -79
  202. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1339 -1339
  203. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
  204. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
  205. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1002 -1002
  206. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +72 -72
  207. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +35 -35
  208. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1493 -1493
  209. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  210. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  211. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
  212. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
  213. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -70
  214. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
  215. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
  216. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +153 -153
  217. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
  218. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
  219. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +240 -240
  220. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
  221. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
  222. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
  223. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
  224. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -74
  225. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -36
  226. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +193 -8
  227. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
  228. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
  229. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +189 -189
  230. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
  231. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
  232. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2165 -2165
  233. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  234. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  235. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +38 -38
  236. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
  237. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
  238. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -73
  239. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  240. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  241. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +600 -600
  242. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
  243. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
  244. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +1086 -1086
  245. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -42
  246. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -20
  247. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
  248. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
  249. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  250. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  251. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +844 -844
  252. package/types/uni/uts-plugin-biz/global.d.ts +4 -4
  253. package/types/uni/uts-plugin-biz/index.d.ts +4 -4
  254. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +36 -36
  255. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +17 -17
  256. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +141 -141
  257. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  258. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  259. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +160 -160
  260. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
  261. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
  262. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +808 -778
  263. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +46 -46
  264. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +22 -22
  265. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +207 -207
  266. package/types/uni/uts-plugin-component/global.d.ts +1 -1
  267. package/types/uni/uts-plugin-component/index.d.ts +1 -1
  268. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +64 -64
  269. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +31 -31
  270. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +522 -522
  271. package/types/uni/uts-plugin-extend/README.md +3 -3
  272. package/types/uni/uts-plugin-extend/global.d.ts +14 -14
  273. package/types/uni/uts-plugin-extend/index.d.ts +14 -14
  274. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
  275. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
  276. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -365
  277. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
  278. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
  279. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -710
  280. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -21
  281. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
  282. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -151
  283. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
  284. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
  285. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -363
  286. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -11
  287. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -4
  288. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -224
  289. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -53
  290. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -25
  291. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +487 -487
  292. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
  293. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
  294. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
  295. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -7
  296. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -1
  297. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -296
  298. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
  299. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
  300. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
  301. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
  302. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
  303. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -559
  304. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
  305. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
  306. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -163
  307. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
  308. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
  309. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -143
  310. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
  311. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
  312. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
  313. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -9
  314. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -1
  315. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -165
  316. package/types/uni-cloud/index.d.ts +67 -63
  317. package/types/uni-cloud/interface.d.ts +987 -991
  318. package/types/uni-cloud/unicloud-db/index.ts +314 -314
  319. package/types/uni-global/index.d.ts +1 -1
  320. package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
  321. package/types/vue/LifeCycle.d.ts +55 -55
  322. package/types/vue/PickerViewChangeEvent.d.ts +41 -41
  323. package/types/vue/ProgressActiveendEvent.d.ts +32 -32
  324. package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
  325. package/types/vue/SliderChangeEvent.d.ts +35 -35
  326. package/types/vue/SwitchChangeEvent.d.ts +32 -32
  327. package/types/vue/UniCanvasElement.d.ts +275 -275
  328. package/types/vue/UniCloudDBElement.d.ts +217 -217
  329. package/types/vue/UniFormElement.d.ts +54 -54
  330. package/types/vue/UniNavigatorElement.d.ts +11 -11
  331. package/types/vue/global.d.ts +191 -191
  332. package/types/vue/index.d.ts +10 -10
  333. package/types/vue-global/index.d.ts +1 -1
  334. package/uts-plugin.d.ts +27 -27
  335. package/types/shim-uts-basic.d.ts +0 -4495
package/types/page.d.ts CHANGED
@@ -1,1682 +1,1682 @@
1
- /// <reference path='./common.d.ts' />
2
-
3
- interface CustomShareContent {
4
- /**
5
- * 转发标题。默认值:当前应用名称
6
- */
7
- title?: string;
8
- /**
9
- * 转发路径,必须是以 / 开头的完整路径。默认值:当前页面 path
10
- */
11
- path?: string;
12
- /**
13
- * 自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径。支持PNG及JPG。显示图片长宽比是 5:4,默认值:使用默认截图
14
- */
15
- imageUrl?: string;
16
- /**
17
- * 如果该参数存在,则以 resolve 结果为准,如果三秒内不 resolve,分享会使用上面传入的默认参数
18
- */
19
- promise?: Promise<{
20
- /**
21
- * 转发标题。默认值:当前应用名称
22
- */
23
- title?: string;
24
- /**
25
- * 转发路径,必须是以 / 开头的完整路径。默认值:当前页面 path
26
- */
27
- path?: string;
28
- /**
29
- * 自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径。支持PNG及JPG。显示图片长宽比是 5:4,默认值:使用默认截图
30
- */
31
- imageUrl?: string;
32
- }>;
33
- /**
34
- * 自定义分享描述
35
- */
36
- desc?: string;
37
- /**
38
- * 自定义吱口令文案,最多 28 个字符
39
- */
40
- content?: string;
41
- /**
42
- * 自定义分享预览大图,建议尺寸 750x825,支持:网络图片路径、apFilePath 路径、相对路径,不支持:base64
43
- */
44
- bgImgUrl?: string;
45
- /**
46
- * 自定义社交图片链接,作为分享到支付宝好友时的主体图片。建议尺寸 376x330
47
- */
48
- scImgUrl?: string;
49
- /**
50
- * 生成分享截图的搜索引导,设置该参数后,会在分享图片中增加上支付宝搜“设置关键字”的内容,设置关键字不能超过 5 个字
51
- */
52
- searchTip?: string;
53
- /**
54
- * 分享成功后回调
55
- */
56
- success?: () => void;
57
- /**
58
- * 分享失败后回调
59
- */
60
- fail?: () => void;
61
- /**
62
- * 开发者后台设置的分享素材模板 id
63
- */
64
- templateId?: string;
65
- /**
66
- * PC端打开小程序加载的页面,不支持可传空字符串
67
- */
68
- PCPath?: string;
69
- /**
70
- * PC端打开小程序加载的模式,若需要在PC端打开小程序,则必须传PCMode字段
71
- */
72
- PCMode?: string;
73
- /**
74
- * PCQQ、低版本手机QQ无法执行小程序时打开的H5页面
75
- */
76
- generalWebpageUrl?: string;
77
- /**
78
- * 监听用户点击页面内转发按钮的,只有带上该参数,才支持快速分享
79
- */
80
- entryDataHash?: string;
81
- /**
82
- * 分享模板id,可以使用不同的分享模版,可选模版参考管理端分享模版一栏
83
- */
84
- shareTemplateId?: string;
85
- /**
86
- * 分享模板的数据,不同的模板id需要不同的数据,数据的格式请参考管理端分享模版一栏
87
- */
88
- shareTemplateData?: string;
89
- /**
90
- * 指定分享的类型
91
- */
92
- shareType?: string;
93
- /**
94
- * 转发形式(1 - 京东小程序正式版;2 - 京东小程序体验版;京东App9.0.0开始不填或者其他值都会先判断是否有url参数,如果有打开分享后显示url对应页面,否则默认生成京东小程序官方的一个分享中间页面,点击可跳到京东app里面的对应小程序)
95
- */
96
- type?: string;
97
- /**
98
- * 渠道(不写默认微信朋友,微信朋友圈),可用值有:Wxfriends,QQfriends,Wxmoments,QQzone,Sinaweibo
99
- */
100
- channel?: string;
101
- /**
102
- * h5链接地址(h5分享填写,不填默认中间页)
103
- */
104
- url?: string;
105
- /**
106
- * 口令分享渠道,可用值有:Wxfriends,QQfriends,Wxmoments,QQzone,Sinaweibo,当需要口令分享时,需要配置此选项
107
- */
108
- keyShareChannel?: string;
109
- /**
110
- * 海报分享,本地图片地址(海报图片由开发者生成后将图片地址传入jdfile开头的格式)
111
- */
112
- localImageUrl?: string;
113
- /**
114
- * 海报分享,网络图片地址(海报图片由开发者生成后将图片地址传入),注意:localImageUrl、onlineImageUrl建议开发者使用时只传一个值 如果传入两个值 优先localImageUrl
115
- */
116
- onlineImageUrl?: string;
117
- }
118
-
119
- interface ShareTimelineContent {
120
- /**
121
- * 自定义标题,即朋友圈列表页上显示的标题。默认值:当前小程序名称
122
- */
123
- title?: string;
124
- /**
125
- * 自定义页面路径中携带的参数,如 path?a=1&b=2 的 “?” 后面部分。默认值:当前页面路径携带的参数
126
- */
127
- query?: string;
128
- /**
129
- * 自定义图片路径,可以是本地文件或者网络图片。支持 PNG 及 JPG,显示图片长宽比是 1:1。默认值:小程序 Logo
130
- */
131
- imageUrl?: string;
132
- }
133
-
134
- interface OnResizeSize {
135
- /**
136
- * 新的屏幕高度
137
- */
138
- screenHeight: number
139
- /**
140
- * 新的屏幕宽度
141
- */
142
- screenWidth: number
143
- /**
144
- * 新的显示区域高度
145
- */
146
- windowHeight: number
147
- /**
148
- * 新的显示区域宽度
149
- */
150
- windowWidth: number
151
- }
152
-
153
- interface OnShareAppMessageOption {
154
- /**
155
- * 转发事件来源。
156
- * 可选值:
157
- * - `button`:页面内转发按钮;
158
- * - `menu`:右上角转发菜单。
159
- */
160
- from: "button" | "menu";
161
- /**
162
- * 如果 `from` 值是 `button`,则 `target` 是触发这次转发事件的 `button`,否则为 `undefined`
163
- */
164
- target: any;
165
- /**
166
- * 页面中包含 `<web-view>` 组件时,返回当前 `<web-view>` 的 url
167
- */
168
- webViewUrl?: string;
169
- }
170
-
171
- interface OnAddToFavoritesOption {
172
- /**
173
- * 转发事件来源。
174
- * 可选值:
175
- * - `button`:页面内转发按钮;
176
- * - `menu`:右上角转发菜单。
177
- */
178
- from: "button" | "menu";
179
- /**
180
- * 页面中包含 `<web-view>` 组件时,返回当前 `<web-view>` 的 url
181
- */
182
- webviewUrl: string;
183
- }
184
-
185
- interface CustomFavoritesContent {
186
- /**
187
- * 自定义标题,默认值:页面标题或账号名称
188
- */
189
- title?: string;
190
- /**
191
- * 自定义 query 字段
192
- */
193
- path?: string;
194
- /**
195
- * 自定义图片,显示图片长宽比为 1:1
196
- */
197
- imageUrl?: string;
198
- }
199
-
200
- interface OnNavigationBarButtonTapOption {
201
- /**
202
- * 原生标题栏按钮数组的下标
203
- */
204
- index: number;
205
- }
206
-
207
- /**
208
- * Construct a type with a set of properties K of type T
209
- */
210
- type Record<K extends keyof any, T> = {
211
- [P in K]: T;
212
- };
213
-
214
- type NativeMap<K extends string, V> = Map<K, V> & Record<K, V>
215
-
216
-
217
- interface NavigationBarSearchInputEvent {
218
- /**
219
- * 搜索输入框输入内容
220
- */
221
- text: string;
222
- }
223
-
224
- interface PageInstanceBaseProps<D extends AnyObject = any> {
225
- /**
226
- * 到当前页面的路径,类型为 `String`
227
- */
228
- route?: string;
229
- /**
230
- * 当前页面的 Vue 实例
231
- */
232
- $vm?: any;
233
- }
234
-
235
- interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> extends PageInstanceBaseProps<D> {
236
- /**
237
- * 生命周期回调 监听页面加载
238
- *
239
- * 页面加载时触发。一个页面只会调用一次,可以在 onLoad 的参数中获取打开当前页面路径中的参数。
240
- * @param query 打开当前页面路径中的参数
241
- *
242
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
243
- * @uniPlatform {
244
- * "app": {
245
- * "android": {
246
- * "osVer": "5.0",
247
- * "uniVer": "√",
248
- * "unixVer": "3.9"
249
- * },
250
- * "ios": {
251
- * "osVer": "10.0",
252
- * "uniVer": "√",
253
- * "unixVer": "4.11"
254
- * }
255
- * },
256
- * "mp": {
257
- * "weixin": {
258
- * "hostVer": "√",
259
- * "uniVer": "√",
260
- * "unixVer": "x"
261
- * },
262
- * "alipay": {
263
- * "hostVer": "√",
264
- * "uniVer": "√",
265
- * "unixVer": "x"
266
- * },
267
- * "baidu": {
268
- * "hostVer": "√",
269
- * "uniVer": "√",
270
- * "unixVer": "x"
271
- * },
272
- * "toutiao": {
273
- * "hostVer": "√",
274
- * "uniVer": "√",
275
- * "unixVer": "x"
276
- * },
277
- * "lark": {
278
- * "hostVer": "√",
279
- * "uniVer": "√",
280
- * "unixVer": "x"
281
- * },
282
- * "qq": {
283
- * "hostVer": "√",
284
- * "uniVer": "√",
285
- * "unixVer": "x"
286
- * },
287
- * "kuaishou": {
288
- * "hostVer": "√",
289
- * "uniVer": "√",
290
- * "unixVer": "x"
291
- * },
292
- * "jd": {
293
- * "hostVer": "√",
294
- * "uniVer": "√",
295
- * "unixVer": "x"
296
- * }
297
- * },
298
- * "web": {
299
- * "uniVer": "√",
300
- * "unixVer": "4.0"
301
- * }
302
- *}
303
- */
304
- onLoad?(query: OnLoadOptions): void;
305
- /**
306
- * 生命周期回调 监听页面显示
307
- *
308
- * 页面显示/切入前台时触发。
309
- *
310
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
311
- * @uniPlatform {
312
- * "app": {
313
- * "android": {
314
- * "osVer": "5.0",
315
- * "uniVer": "√",
316
- * "unixVer": "3.9"
317
- * },
318
- * "ios": {
319
- * "osVer": "10.0",
320
- * "uniVer": "√",
321
- * "unixVer": "4.11"
322
- * }
323
- * },
324
- * "mp": {
325
- * "weixin": {
326
- * "hostVer": "√",
327
- * "uniVer": "√",
328
- * "unixVer": "x"
329
- * },
330
- * "alipay": {
331
- * "hostVer": "√",
332
- * "uniVer": "√",
333
- * "unixVer": "x"
334
- * },
335
- * "baidu": {
336
- * "hostVer": "√",
337
- * "uniVer": "√",
338
- * "unixVer": "x"
339
- * },
340
- * "toutiao": {
341
- * "hostVer": "√",
342
- * "uniVer": "√",
343
- * "unixVer": "x"
344
- * },
345
- * "lark": {
346
- * "hostVer": "√",
347
- * "uniVer": "√",
348
- * "unixVer": "x"
349
- * },
350
- * "qq": {
351
- * "hostVer": "√",
352
- * "uniVer": "√",
353
- * "unixVer": "x"
354
- * },
355
- * "kuaishou": {
356
- * "hostVer": "√",
357
- * "uniVer": "√",
358
- * "unixVer": "x"
359
- * },
360
- * "jd": {
361
- * "hostVer": "√",
362
- * "uniVer": "√",
363
- * "unixVer": "x"
364
- * }
365
- * },
366
- * "web": {
367
- * "uniVer": "√",
368
- * "unixVer": "4.0"
369
- * }
370
- *}
371
- */
372
- onShow?(): void;
373
- /**
374
- * 生命周期回调 监听页面初次渲染完成
375
- *
376
- * 页面初次渲染完成时触发。一个页面只会调用一次,代表页面已经准备妥当,可以和视图层进行交互。
377
- *
378
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
379
- * @uniPlatform {
380
- * "app": {
381
- * "android": {
382
- * "osVer": "5.0",
383
- * "uniVer": "√",
384
- * "unixVer": "3.9"
385
- * },
386
- * "ios": {
387
- * "osVer": "10.0",
388
- * "uniVer": "√",
389
- * "unixVer": "4.11"
390
- * }
391
- * },
392
- * "mp": {
393
- * "weixin": {
394
- * "hostVer": "√",
395
- * "uniVer": "√",
396
- * "unixVer": "x"
397
- * },
398
- * "alipay": {
399
- * "hostVer": "√",
400
- * "uniVer": "√",
401
- * "unixVer": "x"
402
- * },
403
- * "baidu": {
404
- * "hostVer": "√",
405
- * "uniVer": "√",
406
- * "unixVer": "x"
407
- * },
408
- * "toutiao": {
409
- * "hostVer": "√",
410
- * "uniVer": "√",
411
- * "unixVer": "x"
412
- * },
413
- * "lark": {
414
- * "hostVer": "√",
415
- * "uniVer": "√",
416
- * "unixVer": "x"
417
- * },
418
- * "qq": {
419
- * "hostVer": "√",
420
- * "uniVer": "√",
421
- * "unixVer": "x"
422
- * },
423
- * "kuaishou": {
424
- * "hostVer": "√",
425
- * "uniVer": "√",
426
- * "unixVer": "x"
427
- * },
428
- * "jd": {
429
- * "hostVer": "√",
430
- * "uniVer": "√",
431
- * "unixVer": "x"
432
- * }
433
- * },
434
- * "web": {
435
- * "uniVer": "√",
436
- * "unixVer": "4.0"
437
- * }
438
- *}
439
- */
440
- onReady?(): void;
441
- /**
442
- * 生命周期回调 监听页面隐藏
443
- *
444
- * 页面隐藏/切入后台时触发。 如 `navigateTo` 或底部 `tab` 切换到其他页面,应用切入后台等。
445
- *
446
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
447
- * @uniPlatform {
448
- * "app": {
449
- * "android": {
450
- * "osVer": "5.0",
451
- * "uniVer": "√",
452
- * "unixVer": "3.9"
453
- * },
454
- * "ios": {
455
- * "osVer": "10.0",
456
- * "uniVer": "√",
457
- * "unixVer": "4.11"
458
- * }
459
- * },
460
- * "mp": {
461
- * "weixin": {
462
- * "hostVer": "√",
463
- * "uniVer": "√",
464
- * "unixVer": "x"
465
- * },
466
- * "alipay": {
467
- * "hostVer": "√",
468
- * "uniVer": "√",
469
- * "unixVer": "x"
470
- * },
471
- * "baidu": {
472
- * "hostVer": "√",
473
- * "uniVer": "√",
474
- * "unixVer": "x"
475
- * },
476
- * "toutiao": {
477
- * "hostVer": "√",
478
- * "uniVer": "√",
479
- * "unixVer": "x"
480
- * },
481
- * "lark": {
482
- * "hostVer": "√",
483
- * "uniVer": "√",
484
- * "unixVer": "x"
485
- * },
486
- * "qq": {
487
- * "hostVer": "√",
488
- * "uniVer": "√",
489
- * "unixVer": "x"
490
- * },
491
- * "kuaishou": {
492
- * "hostVer": "√",
493
- * "uniVer": "√",
494
- * "unixVer": "x"
495
- * },
496
- * "jd": {
497
- * "hostVer": "√",
498
- * "uniVer": "√",
499
- * "unixVer": "x"
500
- * }
501
- * },
502
- * "web": {
503
- * "uniVer": "√",
504
- * "unixVer": "4.0"
505
- * }
506
- *}
507
- */
508
- onHide?(): void;
509
- /**
510
- * 生命周期回调 监听页面卸载
511
- *
512
- * 页面卸载时触发。如 `redirectTo` 或 `navigateBack` 到其他页面时。
513
- *
514
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
515
- * @uniPlatform {
516
- * "app": {
517
- * "android": {
518
- * "osVer": "5.0",
519
- * "uniVer": "√",
520
- * "unixVer": "3.9"
521
- * },
522
- * "ios": {
523
- * "osVer": "10.0",
524
- * "uniVer": "√",
525
- * "unixVer": "4.11"
526
- * }
527
- * },
528
- * "mp": {
529
- * "weixin": {
530
- * "hostVer": "√",
531
- * "uniVer": "√",
532
- * "unixVer": "x"
533
- * },
534
- * "alipay": {
535
- * "hostVer": "√",
536
- * "uniVer": "√",
537
- * "unixVer": "x"
538
- * },
539
- * "baidu": {
540
- * "hostVer": "√",
541
- * "uniVer": "√",
542
- * "unixVer": "x"
543
- * },
544
- * "toutiao": {
545
- * "hostVer": "√",
546
- * "uniVer": "√",
547
- * "unixVer": "x"
548
- * },
549
- * "lark": {
550
- * "hostVer": "√",
551
- * "uniVer": "√",
552
- * "unixVer": "x"
553
- * },
554
- * "qq": {
555
- * "hostVer": "√",
556
- * "uniVer": "√",
557
- * "unixVer": "x"
558
- * },
559
- * "kuaishou": {
560
- * "hostVer": "√",
561
- * "uniVer": "√",
562
- * "unixVer": "x"
563
- * },
564
- * "jd": {
565
- * "hostVer": "√",
566
- * "uniVer": "√",
567
- * "unixVer": "x"
568
- * }
569
- * },
570
- * "web": {
571
- * "uniVer": "√",
572
- * "unixVer": "4.0"
573
- * }
574
- *}
575
- */
576
- onUnload?(): void;
577
- /**
578
- * 监听用户下拉动作
579
- * - 需要在 `pages.json` 的页面配置中开启 `enablePullDownRefresh` 。
580
- * - 可以通过 `uni.startPullDownRefresh` 触发下拉刷新,调用后触发下拉刷新动画,效果与用户手动下拉刷新一致。
581
- * - 当处理完数据刷新后,`uni.stopPullDownRefresh` 可以停止当前页面的下拉刷新。
582
- *
583
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
584
- * @uniPlatform {
585
- * "app": {
586
- * "android": {
587
- * "osVer": "5.0",
588
- * "uniVer": "√",
589
- * "unixVer": "3.9"
590
- * },
591
- * "ios": {
592
- * "osVer": "10.0",
593
- * "uniVer": "√",
594
- * "unixVer": "4.11"
595
- * }
596
- * },
597
- * "mp": {
598
- * "weixin": {
599
- * "hostVer": "√",
600
- * "uniVer": "√",
601
- * "unixVer": "x"
602
- * },
603
- * "alipay": {
604
- * "hostVer": "√",
605
- * "uniVer": "√",
606
- * "unixVer": "x"
607
- * },
608
- * "baidu": {
609
- * "hostVer": "√",
610
- * "uniVer": "√",
611
- * "unixVer": "x"
612
- * },
613
- * "toutiao": {
614
- * "hostVer": "√",
615
- * "uniVer": "√",
616
- * "unixVer": "x"
617
- * },
618
- * "lark": {
619
- * "hostVer": "√",
620
- * "uniVer": "√",
621
- * "unixVer": "x"
622
- * },
623
- * "qq": {
624
- * "hostVer": "√",
625
- * "uniVer": "√",
626
- * "unixVer": "x"
627
- * },
628
- * "kuaishou": {
629
- * "hostVer": "√",
630
- * "uniVer": "√",
631
- * "unixVer": "x"
632
- * },
633
- * "jd": {
634
- * "hostVer": "√",
635
- * "uniVer": "√",
636
- * "unixVer": "x"
637
- * }
638
- * },
639
- * "web": {
640
- * "uniVer": "√",
641
- * "unixVer": "4.0"
642
- * }
643
- *}
644
- */
645
- onPullDownRefresh?(): void;
646
- /**
647
- * 页面上拉触底事件的处理函数
648
- * - 可以在 `pages.json` 的页面配置中设置触发距离 `onReachBottomDistance` 。
649
- * - 在触发距离内滑动期间,本事件只会被触发一次。
650
- *
651
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
652
- * @uniPlatform {
653
- * "app": {
654
- * "android": {
655
- * "osVer": "5.0",
656
- * "uniVer": "√",
657
- * "unixVer": "3.9"
658
- * },
659
- * "ios": {
660
- * "osVer": "10.0",
661
- * "uniVer": "√",
662
- * "unixVer": "4.11"
663
- * }
664
- * },
665
- * "mp": {
666
- * "weixin": {
667
- * "hostVer": "√",
668
- * "uniVer": "√",
669
- * "unixVer": "x"
670
- * },
671
- * "alipay": {
672
- * "hostVer": "√",
673
- * "uniVer": "√",
674
- * "unixVer": "x"
675
- * },
676
- * "baidu": {
677
- * "hostVer": "√",
678
- * "uniVer": "√",
679
- * "unixVer": "x"
680
- * },
681
- * "toutiao": {
682
- * "hostVer": "√",
683
- * "uniVer": "√",
684
- * "unixVer": "x"
685
- * },
686
- * "lark": {
687
- * "hostVer": "√",
688
- * "uniVer": "√",
689
- * "unixVer": "x"
690
- * },
691
- * "qq": {
692
- * "hostVer": "√",
693
- * "uniVer": "√",
694
- * "unixVer": "x"
695
- * },
696
- * "kuaishou": {
697
- * "hostVer": "√",
698
- * "uniVer": "√",
699
- * "unixVer": "x"
700
- * },
701
- * "jd": {
702
- * "hostVer": "√",
703
- * "uniVer": "√",
704
- * "unixVer": "x"
705
- * }
706
- * },
707
- * "web": {
708
- * "uniVer": "√",
709
- * "unixVer": "4.0"
710
- * }
711
- *}
712
- */
713
- onReachBottom?(): void;
714
- /**
715
- * 页面滚动触发事件的处理函数
716
- *
717
- * 监听用户滑动页面事件。
718
- * @param options 页面滚动参数
719
- *
720
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
721
- * @uniPlatform {
722
- * "app": {
723
- * "android": {
724
- * "osVer": "5.0",
725
- * "uniVer": "√",
726
- * "unixVer": "3.9"
727
- * },
728
- * "ios": {
729
- * "osVer": "10.0",
730
- * "uniVer": "√",
731
- * "unixVer": "4.13"
732
- * }
733
- * },
734
- * "mp": {
735
- * "weixin": {
736
- * "hostVer": "√",
737
- * "uniVer": "√",
738
- * "unixVer": "x"
739
- * },
740
- * "alipay": {
741
- * "hostVer": "√",
742
- * "uniVer": "√",
743
- * "unixVer": "x"
744
- * },
745
- * "baidu": {
746
- * "hostVer": "√",
747
- * "uniVer": "√",
748
- * "unixVer": "x"
749
- * },
750
- * "toutiao": {
751
- * "hostVer": "√",
752
- * "uniVer": "√",
753
- * "unixVer": "x"
754
- * },
755
- * "lark": {
756
- * "hostVer": "√",
757
- * "uniVer": "√",
758
- * "unixVer": "x"
759
- * },
760
- * "qq": {
761
- * "hostVer": "√",
762
- * "uniVer": "√",
763
- * "unixVer": "x"
764
- * },
765
- * "kuaishou": {
766
- * "hostVer": "√",
767
- * "uniVer": "√",
768
- * "unixVer": "x"
769
- * },
770
- * "jd": {
771
- * "hostVer": "√",
772
- * "uniVer": "√",
773
- * "unixVer": "x"
774
- * }
775
- * },
776
- * "web": {
777
- * "uniVer": "√",
778
- * "unixVer": "4.0"
779
- * }
780
- *}
781
- */
782
- onPageScroll?(options: OnPageScrollOptions): void;
783
- /**
784
- * 页面尺寸改变时触发
785
- * @param options 页面滚动参数
786
- *
787
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
788
- * @uniPlatform {
789
- * "app": {
790
- * "android": {
791
- * "osVer": "5.0",
792
- * "uniVer": "√",
793
- * "unixVer": "3.9"
794
- * },
795
- * "ios": {
796
- * "osVer": "10.0",
797
- * "uniVer": "√",
798
- * "unixVer": "4.11"
799
- * }
800
- * },
801
- * "mp": {
802
- * "weixin": {
803
- * "hostVer": "√",
804
- * "uniVer": "√",
805
- * "unixVer": "x"
806
- * },
807
- * "alipay": {
808
- * "hostVer": "x",
809
- * "uniVer": "x",
810
- * "unixVer": "x"
811
- * },
812
- * "baidu": {
813
- * "hostVer": "x",
814
- * "uniVer": "x",
815
- * "unixVer": "x"
816
- * },
817
- * "toutiao": {
818
- * "hostVer": "x",
819
- * "uniVer": "x",
820
- * "unixVer": "x"
821
- * },
822
- * "lark": {
823
- * "hostVer": "x",
824
- * "uniVer": "x",
825
- * "unixVer": "x"
826
- * },
827
- * "qq": {
828
- * "hostVer": "x",
829
- * "uniVer": "x",
830
- * "unixVer": "x"
831
- * },
832
- * "kuaishou": {
833
- * "hostVer": "√",
834
- * "uniVer": "√",
835
- * "unixVer": "x"
836
- * },
837
- * "jd": {
838
- * "hostVer": "x",
839
- * "uniVer": "x",
840
- * "unixVer": "x"
841
- * }
842
- * },
843
- * "web": {
844
- * "uniVer": "√",
845
- * "unixVer": "4.0"
846
- * }
847
- *}
848
- */
849
- onResize?(options: OnResizeOptions): void;
850
- /**
851
- * 监听页面返回
852
- * @param options tab 点击参数
853
- * @return 返回 `true` 时阻止页面返回
854
- *
855
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
856
- * @uniPlatform {
857
- * "app": {
858
- * "android": {
859
- * "osVer": "5.0",
860
- * "uniVer": "√",
861
- * "unixVer": "3.9"
862
- * },
863
- * "ios": {
864
- * "osVer": "10.0",
865
- * "uniVer": "√",
866
- * "unixVer": "4.11"
867
- * }
868
- * },
869
- * "mp": {
870
- * "weixin": {
871
- * "hostVer": "x",
872
- * "uniVer": "x",
873
- * "unixVer": "x"
874
- * },
875
- * "alipay": {
876
- * "hostVer": "√",
877
- * "uniVer": "√",
878
- * "unixVer": "x"
879
- * },
880
- * "baidu": {
881
- * "hostVer": "x",
882
- * "uniVer": "x",
883
- * "unixVer": "x"
884
- * },
885
- * "toutiao": {
886
- * "hostVer": "x",
887
- * "uniVer": "x",
888
- * "unixVer": "x"
889
- * },
890
- * "lark": {
891
- * "hostVer": "x",
892
- * "uniVer": "x",
893
- * "unixVer": "x"
894
- * },
895
- * "qq": {
896
- * "hostVer": "x",
897
- * "uniVer": "x",
898
- * "unixVer": "x"
899
- * },
900
- * "kuaishou": {
901
- * "hostVer": "x",
902
- * "uniVer": "x",
903
- * "unixVer": "x"
904
- * },
905
- * "jd": {
906
- * "hostVer": "x",
907
- * "uniVer": "x",
908
- * "unixVer": "x"
909
- * }
910
- * },
911
- * "web": {
912
- * "uniVer": "√",
913
- * "unixVer": "4.0"
914
- * }
915
- *}
916
- */
917
- onBackPress?(options: OnBackPressOptions): boolean | null;
918
- /**
919
- * 生命周期回调 监听页面初始化
920
- *
921
- * 页面初始化时触发。一个页面只会调用一次,可以在 onInit 的参数中获取打开当前页面路径中的参数。
922
- * @param query 打开当前页面路径中的参数
923
- *
924
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
925
- * @uniPlatform {
926
- * "app": {
927
- * "android": {
928
- * "osVer": "x",
929
- * "uniVer": "x",
930
- * "unixVer": "x"
931
- * },
932
- * "ios": {
933
- * "osVer": "x",
934
- * "uniVer": "x",
935
- * "unixVer": "x"
936
- * }
937
- * },
938
- * "mp": {
939
- * "weixin": {
940
- * "hostVer": "x",
941
- * "uniVer": "x",
942
- * "unixVer": "x"
943
- * },
944
- * "alipay": {
945
- * "hostVer": "x",
946
- * "uniVer": "x",
947
- * "unixVer": "x"
948
- * },
949
- * "baidu": {
950
- * "hostVer": ">=3.160.12",
951
- * "uniVer": ">=3.1.0",
952
- * "unixVer": "x"
953
- * },
954
- * "toutiao": {
955
- * "hostVer": "x",
956
- * "uniVer": "x",
957
- * "unixVer": "x"
958
- * },
959
- * "lark": {
960
- * "hostVer": "x",
961
- * "uniVer": "x",
962
- * "unixVer": "x"
963
- * },
964
- * "qq": {
965
- * "hostVer": "x",
966
- * "uniVer": "x",
967
- * "unixVer": "x"
968
- * },
969
- * "kuaishou": {
970
- * "hostVer": "x",
971
- * "uniVer": "x",
972
- * "unixVer": "x"
973
- * },
974
- * "jd": {
975
- * "hostVer": "x",
976
- * "uniVer": "x",
977
- * "unixVer": "x"
978
- * }
979
- * },
980
- * "web": {
981
- * "uniVer": "x",
982
- * "unixVer": "x"
983
- * }
984
- *}
985
- */
986
- onInit?(query?: AnyObject): void;
987
- /**
988
- * 用户点击右上角转发
989
- *
990
- * 监听用户点击页面内转发按钮(`<button>` 组件 `open-type="share"`)或右上角菜单“转发”按钮的行为,并自定义转发内容。
991
- * @param options 分享发起来源参数
992
- * @return 转发内容
993
- *
994
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
995
- * @uniPlatform {
996
- * "app": {
997
- * "android": {
998
- * "osVer": "x",
999
- * "uniVer": "x",
1000
- * "unixVer": "x"
1001
- * },
1002
- * "ios": {
1003
- * "osVer": "x",
1004
- * "uniVer": "x",
1005
- * "unixVer": "x"
1006
- * }
1007
- * },
1008
- * "mp": {
1009
- * "weixin": {
1010
- * "hostVer": "√",
1011
- * "uniVer": "√",
1012
- * "unixVer": "x"
1013
- * },
1014
- * "alipay": {
1015
- * "hostVer": "√",
1016
- * "uniVer": "√",
1017
- * "unixVer": "x"
1018
- * },
1019
- * "baidu": {
1020
- * "hostVer": "x",
1021
- * "uniVer": "x",
1022
- * "unixVer": "x"
1023
- * },
1024
- * "toutiao": {
1025
- * "hostVer": "√",
1026
- * "uniVer": "√",
1027
- * "unixVer": "x"
1028
- * },
1029
- * "lark": {
1030
- * "hostVer": "√",
1031
- * "uniVer": "√",
1032
- * "unixVer": "x"
1033
- * },
1034
- * "qq": {
1035
- * "hostVer": "√",
1036
- * "uniVer": "√",
1037
- * "unixVer": "x"
1038
- * },
1039
- * "kuaishou": {
1040
- * "hostVer": "√",
1041
- * "uniVer": "√",
1042
- * "unixVer": "x"
1043
- * },
1044
- * "jd": {
1045
- * "hostVer": "√",
1046
- * "uniVer": "√",
1047
- * "unixVer": "x"
1048
- * }
1049
- * },
1050
- * "web": {
1051
- * "uniVer": "x",
1052
- * "unixVer": "x"
1053
- * }
1054
- *}
1055
- */
1056
- onShareAppMessage?(options: OnShareAppMessageOption): CustomShareContent | Promise<Omit<CustomShareContent, "promise">>;
1057
- /**
1058
- * 用户点击右上角转发到朋友圈
1059
- *
1060
- * 监听右上角菜单“分享到朋友圈”按钮的行为,并自定义发享内容。
1061
- *
1062
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
1063
- * @uniPlatform {
1064
- * "app": {
1065
- * "android": {
1066
- * "osVer": "x",
1067
- * "uniVer": "x",
1068
- * "unixVer": "x"
1069
- * },
1070
- * "ios": {
1071
- * "osVer": "x",
1072
- * "uniVer": "x",
1073
- * "unixVer": "x"
1074
- * }
1075
- * },
1076
- * "mp": {
1077
- * "weixin": {
1078
- * "hostVer": "√",
1079
- * "uniVer": ">=2.8.1",
1080
- * "unixVer": "x"
1081
- * },
1082
- * "alipay": {
1083
- * "hostVer": "x",
1084
- * "uniVer": "x",
1085
- * "unixVer": "x"
1086
- * },
1087
- * "baidu": {
1088
- * "hostVer": "x",
1089
- * "uniVer": "x",
1090
- * "unixVer": "x"
1091
- * },
1092
- * "toutiao": {
1093
- * "hostVer": "x",
1094
- * "uniVer": "x",
1095
- * "unixVer": "x"
1096
- * },
1097
- * "lark": {
1098
- * "hostVer": "x",
1099
- * "uniVer": "x",
1100
- * "unixVer": "x"
1101
- * },
1102
- * "qq": {
1103
- * "hostVer": "x",
1104
- * "uniVer": "x",
1105
- * "unixVer": "x"
1106
- * },
1107
- * "kuaishou": {
1108
- * "hostVer": "x",
1109
- * "uniVer": "x",
1110
- * "unixVer": "x"
1111
- * },
1112
- * "jd": {
1113
- * "hostVer": "x",
1114
- * "uniVer": "x",
1115
- * "unixVer": "x"
1116
- * }
1117
- * },
1118
- * "web": {
1119
- * "uniVer": "x",
1120
- * "unixVer": "x"
1121
- * }
1122
- *}
1123
- */
1124
- onShareTimeline?(): ShareTimelineContent;
1125
- /**
1126
- * 用户点击右上角收藏
1127
- *
1128
- * 监听用户点击右上角菜单“收藏”按钮的行为,并自定义收藏内容。
1129
- *
1130
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
1131
- * @uniPlatform {
1132
- * "app": {
1133
- * "android": {
1134
- * "osVer": "x",
1135
- * "uniVer": "x",
1136
- * "unixVer": "x"
1137
- * },
1138
- * "ios": {
1139
- * "osVer": "x",
1140
- * "uniVer": "x",
1141
- * "unixVer": "x"
1142
- * }
1143
- * },
1144
- * "mp": {
1145
- * "weixin": {
1146
- * "hostVer": "√",
1147
- * "uniVer": ">=2.8.1",
1148
- * "unixVer": "x"
1149
- * },
1150
- * "alipay": {
1151
- * "hostVer": "x",
1152
- * "uniVer": "x",
1153
- * "unixVer": "x"
1154
- * },
1155
- * "baidu": {
1156
- * "hostVer": "x",
1157
- * "uniVer": "x",
1158
- * "unixVer": "x"
1159
- * },
1160
- * "toutiao": {
1161
- * "hostVer": "x",
1162
- * "uniVer": "x",
1163
- * "unixVer": "x"
1164
- * },
1165
- * "lark": {
1166
- * "hostVer": "x",
1167
- * "uniVer": "x",
1168
- * "unixVer": "x"
1169
- * },
1170
- * "qq": {
1171
- * "hostVer": "√",
1172
- * "uniVer": ">=2.8.1",
1173
- * "unixVer": "x"
1174
- * },
1175
- * "kuaishou": {
1176
- * "hostVer": "x",
1177
- * "uniVer": "x",
1178
- * "unixVer": "x"
1179
- * },
1180
- * "jd": {
1181
- * "hostVer": "x",
1182
- * "uniVer": "x",
1183
- * "unixVer": "x"
1184
- * }
1185
- * },
1186
- * "web": {
1187
- * "uniVer": "x",
1188
- * "unixVer": "x"
1189
- * }
1190
- *}
1191
- */
1192
- onAddToFavorites?(options: OnAddToFavoritesOption): CustomFavoritesContent;
1193
- /**
1194
- * 当前是 tab 页时,点击 tab 时触发
1195
- * @param options tab 点击参数
1196
- *
1197
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
1198
- * @uniPlatform {
1199
- * "app": {
1200
- * "android": {
1201
- * "osVer": "5.0",
1202
- * "uniVer": "√",
1203
- * "unixVer": "x"
1204
- * },
1205
- * "ios": {
1206
- * "osVer": "10.0",
1207
- * "uniVer": "√",
1208
- * "unixVer": "x"
1209
- * }
1210
- * },
1211
- * "mp": {
1212
- * "weixin": {
1213
- * "hostVer": "√",
1214
- * "uniVer": "√",
1215
- * "unixVer": "x"
1216
- * },
1217
- * "alipay": {
1218
- * "hostVer": "√",
1219
- * "uniVer": "√",
1220
- * "unixVer": "x"
1221
- * },
1222
- * "baidu": {
1223
- * "hostVer": "√",
1224
- * "uniVer": "√",
1225
- * "unixVer": "x"
1226
- * },
1227
- * "toutiao": {
1228
- * "hostVer": "x",
1229
- * "uniVer": "x",
1230
- * "unixVer": "x"
1231
- * },
1232
- * "lark": {
1233
- * "hostVer": "x",
1234
- * "uniVer": "x",
1235
- * "unixVer": "x"
1236
- * },
1237
- * "qq": {
1238
- * "hostVer": "√",
1239
- * "uniVer": "√",
1240
- * "unixVer": "x"
1241
- * },
1242
- * "kuaishou": {
1243
- * "hostVer": "√",
1244
- * "uniVer": "√",
1245
- * "unixVer": "x"
1246
- * },
1247
- * "jd": {
1248
- * "hostVer": "√",
1249
- * "uniVer": "√",
1250
- * "unixVer": "x"
1251
- * }
1252
- * },
1253
- * "web": {
1254
- * "uniVer": "√",
1255
- * "unixVer": "4.0"
1256
- * }
1257
- *}
1258
- */
1259
- onTabItemTap?(options: OnTabItemTapOption): void;
1260
- /**
1261
- * 监听原生标题栏按钮点击事件
1262
- * @param options tab 点击参数
1263
- *
1264
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
1265
- * @uniPlatform {
1266
- * "app": {
1267
- * "android": {
1268
- * "osVer": "5.0",
1269
- * "uniVer": "√",
1270
- * "unixVer": "x"
1271
- * },
1272
- * "ios": {
1273
- * "osVer": "10.0",
1274
- * "uniVer": "√",
1275
- * "unixVer": "x"
1276
- * }
1277
- * },
1278
- * "mp": {
1279
- * "weixin": {
1280
- * "hostVer": "x",
1281
- * "uniVer": "x",
1282
- * "unixVer": "x"
1283
- * },
1284
- * "alipay": {
1285
- * "hostVer": "x",
1286
- * "uniVer": "x",
1287
- * "unixVer": "x"
1288
- * },
1289
- * "baidu": {
1290
- * "hostVer": "x",
1291
- * "uniVer": "x",
1292
- * "unixVer": "x"
1293
- * },
1294
- * "toutiao": {
1295
- * "hostVer": "x",
1296
- * "uniVer": "x",
1297
- * "unixVer": "x"
1298
- * },
1299
- * "lark": {
1300
- * "hostVer": "x",
1301
- * "uniVer": "x",
1302
- * "unixVer": "x"
1303
- * },
1304
- * "qq": {
1305
- * "hostVer": "x",
1306
- * "uniVer": "x",
1307
- * "unixVer": "x"
1308
- * },
1309
- * "kuaishou": {
1310
- * "hostVer": "x",
1311
- * "uniVer": "x",
1312
- * "unixVer": "x"
1313
- * },
1314
- * "jd": {
1315
- * "hostVer": "x",
1316
- * "uniVer": "x",
1317
- * "unixVer": "x"
1318
- * }
1319
- * },
1320
- * "web": {
1321
- * "uniVer": "√",
1322
- * "unixVer": "4.0"
1323
- * }
1324
- *}
1325
- */
1326
- onNavigationBarButtonTap?(options: OnNavigationBarButtonTapOption): void;
1327
- /**
1328
- * 监听原生标题栏搜索输入框输入内容变化事件
1329
- *
1330
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
1331
- * @uniPlatform {
1332
- * "app": {
1333
- * "android": {
1334
- * "osVer": "5.0",
1335
- * "uniVer": "√",
1336
- * "unixVer": "x"
1337
- * },
1338
- * "ios": {
1339
- * "osVer": "10.0",
1340
- * "uniVer": "√",
1341
- * "unixVer": "x"
1342
- * }
1343
- * },
1344
- * "mp": {
1345
- * "weixin": {
1346
- * "hostVer": "x",
1347
- * "uniVer": "x",
1348
- * "unixVer": "x"
1349
- * },
1350
- * "alipay": {
1351
- * "hostVer": "x",
1352
- * "uniVer": "x",
1353
- * "unixVer": "x"
1354
- * },
1355
- * "baidu": {
1356
- * "hostVer": "x",
1357
- * "uniVer": "x",
1358
- * "unixVer": "x"
1359
- * },
1360
- * "toutiao": {
1361
- * "hostVer": "x",
1362
- * "uniVer": "x",
1363
- * "unixVer": "x"
1364
- * },
1365
- * "lark": {
1366
- * "hostVer": "x",
1367
- * "uniVer": "x",
1368
- * "unixVer": "x"
1369
- * },
1370
- * "qq": {
1371
- * "hostVer": "x",
1372
- * "uniVer": "x",
1373
- * "unixVer": "x"
1374
- * },
1375
- * "kuaishou": {
1376
- * "hostVer": "x",
1377
- * "uniVer": "x",
1378
- * "unixVer": "x"
1379
- * },
1380
- * "jd": {
1381
- * "hostVer": "x",
1382
- * "uniVer": "x",
1383
- * "unixVer": "x"
1384
- * }
1385
- * },
1386
- * "web": {
1387
- * "uniVer": "√",
1388
- * "unixVer": "4.0"
1389
- * }
1390
- *}
1391
- */
1392
- onNavigationBarSearchInputChanged?(event: NavigationBarSearchInputEvent): void;
1393
- /**
1394
- * 监听原生标题栏搜索输入框搜索事件,用户点击软键盘上的“搜索”按钮时触发。
1395
- *
1396
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
1397
- * @uniPlatform {
1398
- * "app": {
1399
- * "android": {
1400
- * "osVer": "5.0",
1401
- * "uniVer": "√",
1402
- * "unixVer": "x"
1403
- * },
1404
- * "ios": {
1405
- * "osVer": "10.0",
1406
- * "uniVer": "√",
1407
- * "unixVer": "x"
1408
- * }
1409
- * },
1410
- * "mp": {
1411
- * "weixin": {
1412
- * "hostVer": "x",
1413
- * "uniVer": "x",
1414
- * "unixVer": "x"
1415
- * },
1416
- * "alipay": {
1417
- * "hostVer": "x",
1418
- * "uniVer": "x",
1419
- * "unixVer": "x"
1420
- * },
1421
- * "baidu": {
1422
- * "hostVer": "x",
1423
- * "uniVer": "x",
1424
- * "unixVer": "x"
1425
- * },
1426
- * "toutiao": {
1427
- * "hostVer": "x",
1428
- * "uniVer": "x",
1429
- * "unixVer": "x"
1430
- * },
1431
- * "lark": {
1432
- * "hostVer": "x",
1433
- * "uniVer": "x",
1434
- * "unixVer": "x"
1435
- * },
1436
- * "qq": {
1437
- * "hostVer": "x",
1438
- * "uniVer": "x",
1439
- * "unixVer": "x"
1440
- * },
1441
- * "kuaishou": {
1442
- * "hostVer": "x",
1443
- * "uniVer": "x",
1444
- * "unixVer": "x"
1445
- * },
1446
- * "jd": {
1447
- * "hostVer": "x",
1448
- * "uniVer": "x",
1449
- * "unixVer": "x"
1450
- * }
1451
- * },
1452
- * "web": {
1453
- * "uniVer": "√",
1454
- * "unixVer": "4.0"
1455
- * }
1456
- *}
1457
- */
1458
- onNavigationBarSearchInputConfirmed?(event: NavigationBarSearchInputEvent): void;
1459
- /**
1460
- * 监听原生标题栏搜索输入框点击事件
1461
- *
1462
- * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
1463
- * @uniPlatform {
1464
- * "app": {
1465
- * "android": {
1466
- * "osVer": "5.0",
1467
- * "uniVer": "√",
1468
- * "unixVer": "x"
1469
- * },
1470
- * "ios": {
1471
- * "osVer": "10.0",
1472
- * "uniVer": "√",
1473
- * "unixVer": "x"
1474
- * }
1475
- * },
1476
- * "mp": {
1477
- * "weixin": {
1478
- * "hostVer": "x",
1479
- * "uniVer": "x",
1480
- * "unixVer": "x"
1481
- * },
1482
- * "alipay": {
1483
- * "hostVer": "x",
1484
- * "uniVer": "x",
1485
- * "unixVer": "x"
1486
- * },
1487
- * "baidu": {
1488
- * "hostVer": "x",
1489
- * "uniVer": "x",
1490
- * "unixVer": "x"
1491
- * },
1492
- * "toutiao": {
1493
- * "hostVer": "x",
1494
- * "uniVer": "x",
1495
- * "unixVer": "x"
1496
- * },
1497
- * "lark": {
1498
- * "hostVer": "x",
1499
- * "uniVer": "x",
1500
- * "unixVer": "x"
1501
- * },
1502
- * "qq": {
1503
- * "hostVer": "x",
1504
- * "uniVer": "x",
1505
- * "unixVer": "x"
1506
- * },
1507
- * "kuaishou": {
1508
- * "hostVer": "x",
1509
- * "uniVer": "x",
1510
- * "unixVer": "x"
1511
- * },
1512
- * "jd": {
1513
- * "hostVer": "x",
1514
- * "uniVer": "x",
1515
- * "unixVer": "x"
1516
- * }
1517
- * },
1518
- * "web": {
1519
- * "uniVer": "√",
1520
- * "unixVer": "4.0"
1521
- * }
1522
- *}
1523
- */
1524
- onNavigationBarSearchInputClicked?(): void;
1525
- }
1526
-
1527
- interface Page {
1528
- /**
1529
- * 页面的路由地址
1530
- */
1531
- route: string
1532
- /**
1533
- * 页面的路由参数信息,目前web端options类型为Object,后续可能会调整
1534
- */
1535
- options: Map<string, string | null>
1536
- /**
1537
- * 原生页面对象
1538
- * @internal
1539
- * @uniPlatform {
1540
- * "app": {
1541
- * "android": {
1542
- * "osVer": "5.0",
1543
- * "uniVer": "x",
1544
- * "unixVer": "4.13"
1545
- * },
1546
- * "ios": {
1547
- * "osVer": "12.0",
1548
- * "uniVer": "x",
1549
- * "unixVer": "4.13"
1550
- * }
1551
- * }
1552
- * }
1553
- */
1554
- $nativePage: IPage | null;
1555
- /**
1556
- * 获取当前页面样式 \
1557
- * 包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
1558
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getPageStyle
1559
- * @uniPlatform {
1560
- * "app": {
1561
- * "android": {
1562
- * "osVer": "5.0",
1563
- * "uniVer": "x",
1564
- * "unixVer": "4.13"
1565
- * },
1566
- * "ios": {
1567
- * "osVer": "12.0",
1568
- * "uniVer": "x",
1569
- * "unixVer": "4.13"
1570
- * }
1571
- * },
1572
- * "web": {
1573
- * "uniVer": "x",
1574
- * "unixVer": "4.13"
1575
- * }
1576
- * }
1577
- */
1578
- $getPageStyle(): UTSJSONObject;
1579
- /**
1580
- * 设置当前页面样式 \
1581
- * 支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
1582
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#setPageStyle
1583
- * @uniPlatform {
1584
- * "app": {
1585
- * "android": {
1586
- * "osVer": "5.0",
1587
- * "uniVer": "x",
1588
- * "unixVer": "4.13"
1589
- * },
1590
- * "ios": {
1591
- * "osVer": "12.0",
1592
- * "uniVer": "x",
1593
- * "unixVer": "4.13"
1594
- * }
1595
- * },
1596
- * "web": {
1597
- * "uniVer": "x",
1598
- * "unixVer": "4.13"
1599
- * }
1600
- * }
1601
- */
1602
- $setPageStyle(style: UTSJSONObject): void;
1603
- }
1604
-
1605
- type PageOrigin = Page
1606
-
1607
- declare global {
1608
- /**
1609
- * `getCurrentPages()` 函数用于获取当前页面栈的实例,以数组形式按栈的顺序给出,数组中的元素为页面实例,第一个元素为首页,最后一个元素为当前页面。
1610
- * @tutorial https://uniapp.dcloud.net.cn/tutorial/page.html#getcurrentpages
1611
- * @uniPlatform {
1612
- * "app": {
1613
- * "android": {
1614
- * "osVer": "5.0",
1615
- * "uniVer": "√",
1616
- * "unixVer": "3.9"
1617
- * },
1618
- * "ios": {
1619
- * "osVer": "12.0",
1620
- * "uniVer": "√",
1621
- * "unixVer": "4.11"
1622
- * }
1623
- * },
1624
- * "web": {
1625
- * "uniVer": "√",
1626
- * "unixVer": "4.0"
1627
- * }
1628
- * }
1629
- */
1630
- const getCurrentPages: () => Page[]
1631
- type OnLoadOptions = NativeMap<string, any>
1632
- interface OnBackPressOptions {
1633
- /**
1634
- * - backbutton 顶部导航栏左边的返回按钮或 Android 实体返回键
1635
- * - navigateBack 返回 API,即 uni.navigateBack()
1636
- */
1637
- from: 'backbutton' | 'navigateBack';
1638
- }
1639
-
1640
- interface OnPageScrollOptions {
1641
- /**
1642
- * 页面在垂直方向已滚动的距离(单位 px)
1643
- */
1644
- scrollTop: number;
1645
- }
1646
-
1647
- interface OnTabItemTapOption {
1648
- /**
1649
- * 被点击 tabItem 的序号,从0开始
1650
- */
1651
- index: number;
1652
- /**
1653
- * 被点击 tabItem 的页面路径
1654
- */
1655
- pagePath: string;
1656
- /**
1657
- * 被点击 tabItem 的按钮文字
1658
- */
1659
- text: string;
1660
- }
1661
-
1662
- interface OnResizeOptions {
1663
- /**
1664
- * 屏幕方向
1665
- */
1666
- deviceOrientation: string
1667
- /**
1668
- * 新的显示区域尺寸
1669
- */
1670
- size: OnResizeSize
1671
- }
1672
-
1673
- type Page = PageOrigin
1674
- }
1675
-
1676
- declare module '@vue/runtime-core' {
1677
- interface ComponentCustomOptions extends PageInstance {
1678
-
1679
- }
1680
- }
1681
-
1682
- export { }
1
+ /// <reference path='./common.d.ts' />
2
+
3
+ interface CustomShareContent {
4
+ /**
5
+ * 转发标题。默认值:当前应用名称
6
+ */
7
+ title?: string;
8
+ /**
9
+ * 转发路径,必须是以 / 开头的完整路径。默认值:当前页面 path
10
+ */
11
+ path?: string;
12
+ /**
13
+ * 自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径。支持PNG及JPG。显示图片长宽比是 5:4,默认值:使用默认截图
14
+ */
15
+ imageUrl?: string;
16
+ /**
17
+ * 如果该参数存在,则以 resolve 结果为准,如果三秒内不 resolve,分享会使用上面传入的默认参数
18
+ */
19
+ promise?: Promise<{
20
+ /**
21
+ * 转发标题。默认值:当前应用名称
22
+ */
23
+ title?: string;
24
+ /**
25
+ * 转发路径,必须是以 / 开头的完整路径。默认值:当前页面 path
26
+ */
27
+ path?: string;
28
+ /**
29
+ * 自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径。支持PNG及JPG。显示图片长宽比是 5:4,默认值:使用默认截图
30
+ */
31
+ imageUrl?: string;
32
+ }>;
33
+ /**
34
+ * 自定义分享描述
35
+ */
36
+ desc?: string;
37
+ /**
38
+ * 自定义吱口令文案,最多 28 个字符
39
+ */
40
+ content?: string;
41
+ /**
42
+ * 自定义分享预览大图,建议尺寸 750x825,支持:网络图片路径、apFilePath 路径、相对路径,不支持:base64
43
+ */
44
+ bgImgUrl?: string;
45
+ /**
46
+ * 自定义社交图片链接,作为分享到支付宝好友时的主体图片。建议尺寸 376x330
47
+ */
48
+ scImgUrl?: string;
49
+ /**
50
+ * 生成分享截图的搜索引导,设置该参数后,会在分享图片中增加上支付宝搜“设置关键字”的内容,设置关键字不能超过 5 个字
51
+ */
52
+ searchTip?: string;
53
+ /**
54
+ * 分享成功后回调
55
+ */
56
+ success?: () => void;
57
+ /**
58
+ * 分享失败后回调
59
+ */
60
+ fail?: () => void;
61
+ /**
62
+ * 开发者后台设置的分享素材模板 id
63
+ */
64
+ templateId?: string;
65
+ /**
66
+ * PC端打开小程序加载的页面,不支持可传空字符串
67
+ */
68
+ PCPath?: string;
69
+ /**
70
+ * PC端打开小程序加载的模式,若需要在PC端打开小程序,则必须传PCMode字段
71
+ */
72
+ PCMode?: string;
73
+ /**
74
+ * PCQQ、低版本手机QQ无法执行小程序时打开的H5页面
75
+ */
76
+ generalWebpageUrl?: string;
77
+ /**
78
+ * 监听用户点击页面内转发按钮的,只有带上该参数,才支持快速分享
79
+ */
80
+ entryDataHash?: string;
81
+ /**
82
+ * 分享模板id,可以使用不同的分享模版,可选模版参考管理端分享模版一栏
83
+ */
84
+ shareTemplateId?: string;
85
+ /**
86
+ * 分享模板的数据,不同的模板id需要不同的数据,数据的格式请参考管理端分享模版一栏
87
+ */
88
+ shareTemplateData?: string;
89
+ /**
90
+ * 指定分享的类型
91
+ */
92
+ shareType?: string;
93
+ /**
94
+ * 转发形式(1 - 京东小程序正式版;2 - 京东小程序体验版;京东App9.0.0开始不填或者其他值都会先判断是否有url参数,如果有打开分享后显示url对应页面,否则默认生成京东小程序官方的一个分享中间页面,点击可跳到京东app里面的对应小程序)
95
+ */
96
+ type?: string;
97
+ /**
98
+ * 渠道(不写默认微信朋友,微信朋友圈),可用值有:Wxfriends,QQfriends,Wxmoments,QQzone,Sinaweibo
99
+ */
100
+ channel?: string;
101
+ /**
102
+ * h5链接地址(h5分享填写,不填默认中间页)
103
+ */
104
+ url?: string;
105
+ /**
106
+ * 口令分享渠道,可用值有:Wxfriends,QQfriends,Wxmoments,QQzone,Sinaweibo,当需要口令分享时,需要配置此选项
107
+ */
108
+ keyShareChannel?: string;
109
+ /**
110
+ * 海报分享,本地图片地址(海报图片由开发者生成后将图片地址传入jdfile开头的格式)
111
+ */
112
+ localImageUrl?: string;
113
+ /**
114
+ * 海报分享,网络图片地址(海报图片由开发者生成后将图片地址传入),注意:localImageUrl、onlineImageUrl建议开发者使用时只传一个值 如果传入两个值 优先localImageUrl
115
+ */
116
+ onlineImageUrl?: string;
117
+ }
118
+
119
+ interface ShareTimelineContent {
120
+ /**
121
+ * 自定义标题,即朋友圈列表页上显示的标题。默认值:当前小程序名称
122
+ */
123
+ title?: string;
124
+ /**
125
+ * 自定义页面路径中携带的参数,如 path?a=1&b=2 的 “?” 后面部分。默认值:当前页面路径携带的参数
126
+ */
127
+ query?: string;
128
+ /**
129
+ * 自定义图片路径,可以是本地文件或者网络图片。支持 PNG 及 JPG,显示图片长宽比是 1:1。默认值:小程序 Logo
130
+ */
131
+ imageUrl?: string;
132
+ }
133
+
134
+ interface OnResizeSize {
135
+ /**
136
+ * 新的屏幕高度
137
+ */
138
+ screenHeight: number
139
+ /**
140
+ * 新的屏幕宽度
141
+ */
142
+ screenWidth: number
143
+ /**
144
+ * 新的显示区域高度
145
+ */
146
+ windowHeight: number
147
+ /**
148
+ * 新的显示区域宽度
149
+ */
150
+ windowWidth: number
151
+ }
152
+
153
+ interface OnShareAppMessageOption {
154
+ /**
155
+ * 转发事件来源。
156
+ * 可选值:
157
+ * - `button`:页面内转发按钮;
158
+ * - `menu`:右上角转发菜单。
159
+ */
160
+ from: "button" | "menu";
161
+ /**
162
+ * 如果 `from` 值是 `button`,则 `target` 是触发这次转发事件的 `button`,否则为 `undefined`
163
+ */
164
+ target: any;
165
+ /**
166
+ * 页面中包含 `<web-view>` 组件时,返回当前 `<web-view>` 的 url
167
+ */
168
+ webViewUrl?: string;
169
+ }
170
+
171
+ interface OnAddToFavoritesOption {
172
+ /**
173
+ * 转发事件来源。
174
+ * 可选值:
175
+ * - `button`:页面内转发按钮;
176
+ * - `menu`:右上角转发菜单。
177
+ */
178
+ from: "button" | "menu";
179
+ /**
180
+ * 页面中包含 `<web-view>` 组件时,返回当前 `<web-view>` 的 url
181
+ */
182
+ webviewUrl: string;
183
+ }
184
+
185
+ interface CustomFavoritesContent {
186
+ /**
187
+ * 自定义标题,默认值:页面标题或账号名称
188
+ */
189
+ title?: string;
190
+ /**
191
+ * 自定义 query 字段
192
+ */
193
+ path?: string;
194
+ /**
195
+ * 自定义图片,显示图片长宽比为 1:1
196
+ */
197
+ imageUrl?: string;
198
+ }
199
+
200
+ interface OnNavigationBarButtonTapOption {
201
+ /**
202
+ * 原生标题栏按钮数组的下标
203
+ */
204
+ index: number;
205
+ }
206
+
207
+ /**
208
+ * Construct a type with a set of properties K of type T
209
+ */
210
+ type Record<K extends keyof any, T> = {
211
+ [P in K]: T;
212
+ };
213
+
214
+ type NativeMap<K extends string, V> = Map<K, V> & Record<K, V>
215
+
216
+
217
+ interface NavigationBarSearchInputEvent {
218
+ /**
219
+ * 搜索输入框输入内容
220
+ */
221
+ text: string;
222
+ }
223
+
224
+ interface PageInstanceBaseProps<D extends AnyObject = any> {
225
+ /**
226
+ * 到当前页面的路径,类型为 `String`
227
+ */
228
+ route?: string;
229
+ /**
230
+ * 当前页面的 Vue 实例
231
+ */
232
+ $vm?: any;
233
+ }
234
+
235
+ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> extends PageInstanceBaseProps<D> {
236
+ /**
237
+ * 生命周期回调 监听页面加载
238
+ *
239
+ * 页面加载时触发。一个页面只会调用一次,可以在 onLoad 的参数中获取打开当前页面路径中的参数。
240
+ * @param query 打开当前页面路径中的参数
241
+ *
242
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
243
+ * @uniPlatform {
244
+ * "app": {
245
+ * "android": {
246
+ * "osVer": "5.0",
247
+ * "uniVer": "√",
248
+ * "unixVer": "3.9"
249
+ * },
250
+ * "ios": {
251
+ * "osVer": "10.0",
252
+ * "uniVer": "√",
253
+ * "unixVer": "4.11"
254
+ * }
255
+ * },
256
+ * "mp": {
257
+ * "weixin": {
258
+ * "hostVer": "√",
259
+ * "uniVer": "√",
260
+ * "unixVer": "x"
261
+ * },
262
+ * "alipay": {
263
+ * "hostVer": "√",
264
+ * "uniVer": "√",
265
+ * "unixVer": "x"
266
+ * },
267
+ * "baidu": {
268
+ * "hostVer": "√",
269
+ * "uniVer": "√",
270
+ * "unixVer": "x"
271
+ * },
272
+ * "toutiao": {
273
+ * "hostVer": "√",
274
+ * "uniVer": "√",
275
+ * "unixVer": "x"
276
+ * },
277
+ * "lark": {
278
+ * "hostVer": "√",
279
+ * "uniVer": "√",
280
+ * "unixVer": "x"
281
+ * },
282
+ * "qq": {
283
+ * "hostVer": "√",
284
+ * "uniVer": "√",
285
+ * "unixVer": "x"
286
+ * },
287
+ * "kuaishou": {
288
+ * "hostVer": "√",
289
+ * "uniVer": "√",
290
+ * "unixVer": "x"
291
+ * },
292
+ * "jd": {
293
+ * "hostVer": "√",
294
+ * "uniVer": "√",
295
+ * "unixVer": "x"
296
+ * }
297
+ * },
298
+ * "web": {
299
+ * "uniVer": "√",
300
+ * "unixVer": "4.0"
301
+ * }
302
+ *}
303
+ */
304
+ onLoad?(query: OnLoadOptions): void;
305
+ /**
306
+ * 生命周期回调 监听页面显示
307
+ *
308
+ * 页面显示/切入前台时触发。
309
+ *
310
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
311
+ * @uniPlatform {
312
+ * "app": {
313
+ * "android": {
314
+ * "osVer": "5.0",
315
+ * "uniVer": "√",
316
+ * "unixVer": "3.9"
317
+ * },
318
+ * "ios": {
319
+ * "osVer": "10.0",
320
+ * "uniVer": "√",
321
+ * "unixVer": "4.11"
322
+ * }
323
+ * },
324
+ * "mp": {
325
+ * "weixin": {
326
+ * "hostVer": "√",
327
+ * "uniVer": "√",
328
+ * "unixVer": "x"
329
+ * },
330
+ * "alipay": {
331
+ * "hostVer": "√",
332
+ * "uniVer": "√",
333
+ * "unixVer": "x"
334
+ * },
335
+ * "baidu": {
336
+ * "hostVer": "√",
337
+ * "uniVer": "√",
338
+ * "unixVer": "x"
339
+ * },
340
+ * "toutiao": {
341
+ * "hostVer": "√",
342
+ * "uniVer": "√",
343
+ * "unixVer": "x"
344
+ * },
345
+ * "lark": {
346
+ * "hostVer": "√",
347
+ * "uniVer": "√",
348
+ * "unixVer": "x"
349
+ * },
350
+ * "qq": {
351
+ * "hostVer": "√",
352
+ * "uniVer": "√",
353
+ * "unixVer": "x"
354
+ * },
355
+ * "kuaishou": {
356
+ * "hostVer": "√",
357
+ * "uniVer": "√",
358
+ * "unixVer": "x"
359
+ * },
360
+ * "jd": {
361
+ * "hostVer": "√",
362
+ * "uniVer": "√",
363
+ * "unixVer": "x"
364
+ * }
365
+ * },
366
+ * "web": {
367
+ * "uniVer": "√",
368
+ * "unixVer": "4.0"
369
+ * }
370
+ *}
371
+ */
372
+ onShow?(): void;
373
+ /**
374
+ * 生命周期回调 监听页面初次渲染完成
375
+ *
376
+ * 页面初次渲染完成时触发。一个页面只会调用一次,代表页面已经准备妥当,可以和视图层进行交互。
377
+ *
378
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
379
+ * @uniPlatform {
380
+ * "app": {
381
+ * "android": {
382
+ * "osVer": "5.0",
383
+ * "uniVer": "√",
384
+ * "unixVer": "3.9"
385
+ * },
386
+ * "ios": {
387
+ * "osVer": "10.0",
388
+ * "uniVer": "√",
389
+ * "unixVer": "4.11"
390
+ * }
391
+ * },
392
+ * "mp": {
393
+ * "weixin": {
394
+ * "hostVer": "√",
395
+ * "uniVer": "√",
396
+ * "unixVer": "x"
397
+ * },
398
+ * "alipay": {
399
+ * "hostVer": "√",
400
+ * "uniVer": "√",
401
+ * "unixVer": "x"
402
+ * },
403
+ * "baidu": {
404
+ * "hostVer": "√",
405
+ * "uniVer": "√",
406
+ * "unixVer": "x"
407
+ * },
408
+ * "toutiao": {
409
+ * "hostVer": "√",
410
+ * "uniVer": "√",
411
+ * "unixVer": "x"
412
+ * },
413
+ * "lark": {
414
+ * "hostVer": "√",
415
+ * "uniVer": "√",
416
+ * "unixVer": "x"
417
+ * },
418
+ * "qq": {
419
+ * "hostVer": "√",
420
+ * "uniVer": "√",
421
+ * "unixVer": "x"
422
+ * },
423
+ * "kuaishou": {
424
+ * "hostVer": "√",
425
+ * "uniVer": "√",
426
+ * "unixVer": "x"
427
+ * },
428
+ * "jd": {
429
+ * "hostVer": "√",
430
+ * "uniVer": "√",
431
+ * "unixVer": "x"
432
+ * }
433
+ * },
434
+ * "web": {
435
+ * "uniVer": "√",
436
+ * "unixVer": "4.0"
437
+ * }
438
+ *}
439
+ */
440
+ onReady?(): void;
441
+ /**
442
+ * 生命周期回调 监听页面隐藏
443
+ *
444
+ * 页面隐藏/切入后台时触发。 如 `navigateTo` 或底部 `tab` 切换到其他页面,应用切入后台等。
445
+ *
446
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
447
+ * @uniPlatform {
448
+ * "app": {
449
+ * "android": {
450
+ * "osVer": "5.0",
451
+ * "uniVer": "√",
452
+ * "unixVer": "3.9"
453
+ * },
454
+ * "ios": {
455
+ * "osVer": "10.0",
456
+ * "uniVer": "√",
457
+ * "unixVer": "4.11"
458
+ * }
459
+ * },
460
+ * "mp": {
461
+ * "weixin": {
462
+ * "hostVer": "√",
463
+ * "uniVer": "√",
464
+ * "unixVer": "x"
465
+ * },
466
+ * "alipay": {
467
+ * "hostVer": "√",
468
+ * "uniVer": "√",
469
+ * "unixVer": "x"
470
+ * },
471
+ * "baidu": {
472
+ * "hostVer": "√",
473
+ * "uniVer": "√",
474
+ * "unixVer": "x"
475
+ * },
476
+ * "toutiao": {
477
+ * "hostVer": "√",
478
+ * "uniVer": "√",
479
+ * "unixVer": "x"
480
+ * },
481
+ * "lark": {
482
+ * "hostVer": "√",
483
+ * "uniVer": "√",
484
+ * "unixVer": "x"
485
+ * },
486
+ * "qq": {
487
+ * "hostVer": "√",
488
+ * "uniVer": "√",
489
+ * "unixVer": "x"
490
+ * },
491
+ * "kuaishou": {
492
+ * "hostVer": "√",
493
+ * "uniVer": "√",
494
+ * "unixVer": "x"
495
+ * },
496
+ * "jd": {
497
+ * "hostVer": "√",
498
+ * "uniVer": "√",
499
+ * "unixVer": "x"
500
+ * }
501
+ * },
502
+ * "web": {
503
+ * "uniVer": "√",
504
+ * "unixVer": "4.0"
505
+ * }
506
+ *}
507
+ */
508
+ onHide?(): void;
509
+ /**
510
+ * 生命周期回调 监听页面卸载
511
+ *
512
+ * 页面卸载时触发。如 `redirectTo` 或 `navigateBack` 到其他页面时。
513
+ *
514
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
515
+ * @uniPlatform {
516
+ * "app": {
517
+ * "android": {
518
+ * "osVer": "5.0",
519
+ * "uniVer": "√",
520
+ * "unixVer": "3.9"
521
+ * },
522
+ * "ios": {
523
+ * "osVer": "10.0",
524
+ * "uniVer": "√",
525
+ * "unixVer": "4.11"
526
+ * }
527
+ * },
528
+ * "mp": {
529
+ * "weixin": {
530
+ * "hostVer": "√",
531
+ * "uniVer": "√",
532
+ * "unixVer": "x"
533
+ * },
534
+ * "alipay": {
535
+ * "hostVer": "√",
536
+ * "uniVer": "√",
537
+ * "unixVer": "x"
538
+ * },
539
+ * "baidu": {
540
+ * "hostVer": "√",
541
+ * "uniVer": "√",
542
+ * "unixVer": "x"
543
+ * },
544
+ * "toutiao": {
545
+ * "hostVer": "√",
546
+ * "uniVer": "√",
547
+ * "unixVer": "x"
548
+ * },
549
+ * "lark": {
550
+ * "hostVer": "√",
551
+ * "uniVer": "√",
552
+ * "unixVer": "x"
553
+ * },
554
+ * "qq": {
555
+ * "hostVer": "√",
556
+ * "uniVer": "√",
557
+ * "unixVer": "x"
558
+ * },
559
+ * "kuaishou": {
560
+ * "hostVer": "√",
561
+ * "uniVer": "√",
562
+ * "unixVer": "x"
563
+ * },
564
+ * "jd": {
565
+ * "hostVer": "√",
566
+ * "uniVer": "√",
567
+ * "unixVer": "x"
568
+ * }
569
+ * },
570
+ * "web": {
571
+ * "uniVer": "√",
572
+ * "unixVer": "4.0"
573
+ * }
574
+ *}
575
+ */
576
+ onUnload?(): void;
577
+ /**
578
+ * 监听用户下拉动作
579
+ * - 需要在 `pages.json` 的页面配置中开启 `enablePullDownRefresh` 。
580
+ * - 可以通过 `uni.startPullDownRefresh` 触发下拉刷新,调用后触发下拉刷新动画,效果与用户手动下拉刷新一致。
581
+ * - 当处理完数据刷新后,`uni.stopPullDownRefresh` 可以停止当前页面的下拉刷新。
582
+ *
583
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
584
+ * @uniPlatform {
585
+ * "app": {
586
+ * "android": {
587
+ * "osVer": "5.0",
588
+ * "uniVer": "√",
589
+ * "unixVer": "3.9"
590
+ * },
591
+ * "ios": {
592
+ * "osVer": "10.0",
593
+ * "uniVer": "√",
594
+ * "unixVer": "4.11"
595
+ * }
596
+ * },
597
+ * "mp": {
598
+ * "weixin": {
599
+ * "hostVer": "√",
600
+ * "uniVer": "√",
601
+ * "unixVer": "x"
602
+ * },
603
+ * "alipay": {
604
+ * "hostVer": "√",
605
+ * "uniVer": "√",
606
+ * "unixVer": "x"
607
+ * },
608
+ * "baidu": {
609
+ * "hostVer": "√",
610
+ * "uniVer": "√",
611
+ * "unixVer": "x"
612
+ * },
613
+ * "toutiao": {
614
+ * "hostVer": "√",
615
+ * "uniVer": "√",
616
+ * "unixVer": "x"
617
+ * },
618
+ * "lark": {
619
+ * "hostVer": "√",
620
+ * "uniVer": "√",
621
+ * "unixVer": "x"
622
+ * },
623
+ * "qq": {
624
+ * "hostVer": "√",
625
+ * "uniVer": "√",
626
+ * "unixVer": "x"
627
+ * },
628
+ * "kuaishou": {
629
+ * "hostVer": "√",
630
+ * "uniVer": "√",
631
+ * "unixVer": "x"
632
+ * },
633
+ * "jd": {
634
+ * "hostVer": "√",
635
+ * "uniVer": "√",
636
+ * "unixVer": "x"
637
+ * }
638
+ * },
639
+ * "web": {
640
+ * "uniVer": "√",
641
+ * "unixVer": "4.0"
642
+ * }
643
+ *}
644
+ */
645
+ onPullDownRefresh?(): void;
646
+ /**
647
+ * 页面上拉触底事件的处理函数
648
+ * - 可以在 `pages.json` 的页面配置中设置触发距离 `onReachBottomDistance` 。
649
+ * - 在触发距离内滑动期间,本事件只会被触发一次。
650
+ *
651
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
652
+ * @uniPlatform {
653
+ * "app": {
654
+ * "android": {
655
+ * "osVer": "5.0",
656
+ * "uniVer": "√",
657
+ * "unixVer": "3.9"
658
+ * },
659
+ * "ios": {
660
+ * "osVer": "10.0",
661
+ * "uniVer": "√",
662
+ * "unixVer": "4.11"
663
+ * }
664
+ * },
665
+ * "mp": {
666
+ * "weixin": {
667
+ * "hostVer": "√",
668
+ * "uniVer": "√",
669
+ * "unixVer": "x"
670
+ * },
671
+ * "alipay": {
672
+ * "hostVer": "√",
673
+ * "uniVer": "√",
674
+ * "unixVer": "x"
675
+ * },
676
+ * "baidu": {
677
+ * "hostVer": "√",
678
+ * "uniVer": "√",
679
+ * "unixVer": "x"
680
+ * },
681
+ * "toutiao": {
682
+ * "hostVer": "√",
683
+ * "uniVer": "√",
684
+ * "unixVer": "x"
685
+ * },
686
+ * "lark": {
687
+ * "hostVer": "√",
688
+ * "uniVer": "√",
689
+ * "unixVer": "x"
690
+ * },
691
+ * "qq": {
692
+ * "hostVer": "√",
693
+ * "uniVer": "√",
694
+ * "unixVer": "x"
695
+ * },
696
+ * "kuaishou": {
697
+ * "hostVer": "√",
698
+ * "uniVer": "√",
699
+ * "unixVer": "x"
700
+ * },
701
+ * "jd": {
702
+ * "hostVer": "√",
703
+ * "uniVer": "√",
704
+ * "unixVer": "x"
705
+ * }
706
+ * },
707
+ * "web": {
708
+ * "uniVer": "√",
709
+ * "unixVer": "4.0"
710
+ * }
711
+ *}
712
+ */
713
+ onReachBottom?(): void;
714
+ /**
715
+ * 页面滚动触发事件的处理函数
716
+ *
717
+ * 监听用户滑动页面事件。
718
+ * @param options 页面滚动参数
719
+ *
720
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
721
+ * @uniPlatform {
722
+ * "app": {
723
+ * "android": {
724
+ * "osVer": "5.0",
725
+ * "uniVer": "√",
726
+ * "unixVer": "3.9"
727
+ * },
728
+ * "ios": {
729
+ * "osVer": "10.0",
730
+ * "uniVer": "√",
731
+ * "unixVer": "4.13"
732
+ * }
733
+ * },
734
+ * "mp": {
735
+ * "weixin": {
736
+ * "hostVer": "√",
737
+ * "uniVer": "√",
738
+ * "unixVer": "x"
739
+ * },
740
+ * "alipay": {
741
+ * "hostVer": "√",
742
+ * "uniVer": "√",
743
+ * "unixVer": "x"
744
+ * },
745
+ * "baidu": {
746
+ * "hostVer": "√",
747
+ * "uniVer": "√",
748
+ * "unixVer": "x"
749
+ * },
750
+ * "toutiao": {
751
+ * "hostVer": "√",
752
+ * "uniVer": "√",
753
+ * "unixVer": "x"
754
+ * },
755
+ * "lark": {
756
+ * "hostVer": "√",
757
+ * "uniVer": "√",
758
+ * "unixVer": "x"
759
+ * },
760
+ * "qq": {
761
+ * "hostVer": "√",
762
+ * "uniVer": "√",
763
+ * "unixVer": "x"
764
+ * },
765
+ * "kuaishou": {
766
+ * "hostVer": "√",
767
+ * "uniVer": "√",
768
+ * "unixVer": "x"
769
+ * },
770
+ * "jd": {
771
+ * "hostVer": "√",
772
+ * "uniVer": "√",
773
+ * "unixVer": "x"
774
+ * }
775
+ * },
776
+ * "web": {
777
+ * "uniVer": "√",
778
+ * "unixVer": "4.0"
779
+ * }
780
+ *}
781
+ */
782
+ onPageScroll?(options: OnPageScrollOptions): void;
783
+ /**
784
+ * 页面尺寸改变时触发
785
+ * @param options 页面滚动参数
786
+ *
787
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
788
+ * @uniPlatform {
789
+ * "app": {
790
+ * "android": {
791
+ * "osVer": "5.0",
792
+ * "uniVer": "√",
793
+ * "unixVer": "3.9"
794
+ * },
795
+ * "ios": {
796
+ * "osVer": "10.0",
797
+ * "uniVer": "√",
798
+ * "unixVer": "4.11"
799
+ * }
800
+ * },
801
+ * "mp": {
802
+ * "weixin": {
803
+ * "hostVer": "√",
804
+ * "uniVer": "√",
805
+ * "unixVer": "x"
806
+ * },
807
+ * "alipay": {
808
+ * "hostVer": "x",
809
+ * "uniVer": "x",
810
+ * "unixVer": "x"
811
+ * },
812
+ * "baidu": {
813
+ * "hostVer": "x",
814
+ * "uniVer": "x",
815
+ * "unixVer": "x"
816
+ * },
817
+ * "toutiao": {
818
+ * "hostVer": "x",
819
+ * "uniVer": "x",
820
+ * "unixVer": "x"
821
+ * },
822
+ * "lark": {
823
+ * "hostVer": "x",
824
+ * "uniVer": "x",
825
+ * "unixVer": "x"
826
+ * },
827
+ * "qq": {
828
+ * "hostVer": "x",
829
+ * "uniVer": "x",
830
+ * "unixVer": "x"
831
+ * },
832
+ * "kuaishou": {
833
+ * "hostVer": "√",
834
+ * "uniVer": "√",
835
+ * "unixVer": "x"
836
+ * },
837
+ * "jd": {
838
+ * "hostVer": "x",
839
+ * "uniVer": "x",
840
+ * "unixVer": "x"
841
+ * }
842
+ * },
843
+ * "web": {
844
+ * "uniVer": "√",
845
+ * "unixVer": "4.0"
846
+ * }
847
+ *}
848
+ */
849
+ onResize?(options: OnResizeOptions): void;
850
+ /**
851
+ * 监听页面返回
852
+ * @param options tab 点击参数
853
+ * @return 返回 `true` 时阻止页面返回
854
+ *
855
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
856
+ * @uniPlatform {
857
+ * "app": {
858
+ * "android": {
859
+ * "osVer": "5.0",
860
+ * "uniVer": "√",
861
+ * "unixVer": "3.9"
862
+ * },
863
+ * "ios": {
864
+ * "osVer": "10.0",
865
+ * "uniVer": "√",
866
+ * "unixVer": "4.11"
867
+ * }
868
+ * },
869
+ * "mp": {
870
+ * "weixin": {
871
+ * "hostVer": "x",
872
+ * "uniVer": "x",
873
+ * "unixVer": "x"
874
+ * },
875
+ * "alipay": {
876
+ * "hostVer": "√",
877
+ * "uniVer": "√",
878
+ * "unixVer": "x"
879
+ * },
880
+ * "baidu": {
881
+ * "hostVer": "x",
882
+ * "uniVer": "x",
883
+ * "unixVer": "x"
884
+ * },
885
+ * "toutiao": {
886
+ * "hostVer": "x",
887
+ * "uniVer": "x",
888
+ * "unixVer": "x"
889
+ * },
890
+ * "lark": {
891
+ * "hostVer": "x",
892
+ * "uniVer": "x",
893
+ * "unixVer": "x"
894
+ * },
895
+ * "qq": {
896
+ * "hostVer": "x",
897
+ * "uniVer": "x",
898
+ * "unixVer": "x"
899
+ * },
900
+ * "kuaishou": {
901
+ * "hostVer": "x",
902
+ * "uniVer": "x",
903
+ * "unixVer": "x"
904
+ * },
905
+ * "jd": {
906
+ * "hostVer": "x",
907
+ * "uniVer": "x",
908
+ * "unixVer": "x"
909
+ * }
910
+ * },
911
+ * "web": {
912
+ * "uniVer": "√",
913
+ * "unixVer": "4.0"
914
+ * }
915
+ *}
916
+ */
917
+ onBackPress?(options: OnBackPressOptions): boolean | null;
918
+ /**
919
+ * 生命周期回调 监听页面初始化
920
+ *
921
+ * 页面初始化时触发。一个页面只会调用一次,可以在 onInit 的参数中获取打开当前页面路径中的参数。
922
+ * @param query 打开当前页面路径中的参数
923
+ *
924
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
925
+ * @uniPlatform {
926
+ * "app": {
927
+ * "android": {
928
+ * "osVer": "x",
929
+ * "uniVer": "x",
930
+ * "unixVer": "x"
931
+ * },
932
+ * "ios": {
933
+ * "osVer": "x",
934
+ * "uniVer": "x",
935
+ * "unixVer": "x"
936
+ * }
937
+ * },
938
+ * "mp": {
939
+ * "weixin": {
940
+ * "hostVer": "x",
941
+ * "uniVer": "x",
942
+ * "unixVer": "x"
943
+ * },
944
+ * "alipay": {
945
+ * "hostVer": "x",
946
+ * "uniVer": "x",
947
+ * "unixVer": "x"
948
+ * },
949
+ * "baidu": {
950
+ * "hostVer": ">=3.160.12",
951
+ * "uniVer": ">=3.1.0",
952
+ * "unixVer": "x"
953
+ * },
954
+ * "toutiao": {
955
+ * "hostVer": "x",
956
+ * "uniVer": "x",
957
+ * "unixVer": "x"
958
+ * },
959
+ * "lark": {
960
+ * "hostVer": "x",
961
+ * "uniVer": "x",
962
+ * "unixVer": "x"
963
+ * },
964
+ * "qq": {
965
+ * "hostVer": "x",
966
+ * "uniVer": "x",
967
+ * "unixVer": "x"
968
+ * },
969
+ * "kuaishou": {
970
+ * "hostVer": "x",
971
+ * "uniVer": "x",
972
+ * "unixVer": "x"
973
+ * },
974
+ * "jd": {
975
+ * "hostVer": "x",
976
+ * "uniVer": "x",
977
+ * "unixVer": "x"
978
+ * }
979
+ * },
980
+ * "web": {
981
+ * "uniVer": "x",
982
+ * "unixVer": "x"
983
+ * }
984
+ *}
985
+ */
986
+ onInit?(query?: AnyObject): void;
987
+ /**
988
+ * 用户点击右上角转发
989
+ *
990
+ * 监听用户点击页面内转发按钮(`<button>` 组件 `open-type="share"`)或右上角菜单“转发”按钮的行为,并自定义转发内容。
991
+ * @param options 分享发起来源参数
992
+ * @return 转发内容
993
+ *
994
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
995
+ * @uniPlatform {
996
+ * "app": {
997
+ * "android": {
998
+ * "osVer": "x",
999
+ * "uniVer": "x",
1000
+ * "unixVer": "x"
1001
+ * },
1002
+ * "ios": {
1003
+ * "osVer": "x",
1004
+ * "uniVer": "x",
1005
+ * "unixVer": "x"
1006
+ * }
1007
+ * },
1008
+ * "mp": {
1009
+ * "weixin": {
1010
+ * "hostVer": "√",
1011
+ * "uniVer": "√",
1012
+ * "unixVer": "x"
1013
+ * },
1014
+ * "alipay": {
1015
+ * "hostVer": "√",
1016
+ * "uniVer": "√",
1017
+ * "unixVer": "x"
1018
+ * },
1019
+ * "baidu": {
1020
+ * "hostVer": "x",
1021
+ * "uniVer": "x",
1022
+ * "unixVer": "x"
1023
+ * },
1024
+ * "toutiao": {
1025
+ * "hostVer": "√",
1026
+ * "uniVer": "√",
1027
+ * "unixVer": "x"
1028
+ * },
1029
+ * "lark": {
1030
+ * "hostVer": "√",
1031
+ * "uniVer": "√",
1032
+ * "unixVer": "x"
1033
+ * },
1034
+ * "qq": {
1035
+ * "hostVer": "√",
1036
+ * "uniVer": "√",
1037
+ * "unixVer": "x"
1038
+ * },
1039
+ * "kuaishou": {
1040
+ * "hostVer": "√",
1041
+ * "uniVer": "√",
1042
+ * "unixVer": "x"
1043
+ * },
1044
+ * "jd": {
1045
+ * "hostVer": "√",
1046
+ * "uniVer": "√",
1047
+ * "unixVer": "x"
1048
+ * }
1049
+ * },
1050
+ * "web": {
1051
+ * "uniVer": "x",
1052
+ * "unixVer": "x"
1053
+ * }
1054
+ *}
1055
+ */
1056
+ onShareAppMessage?(options: OnShareAppMessageOption): CustomShareContent | Promise<Omit<CustomShareContent, "promise">>;
1057
+ /**
1058
+ * 用户点击右上角转发到朋友圈
1059
+ *
1060
+ * 监听右上角菜单“分享到朋友圈”按钮的行为,并自定义发享内容。
1061
+ *
1062
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
1063
+ * @uniPlatform {
1064
+ * "app": {
1065
+ * "android": {
1066
+ * "osVer": "x",
1067
+ * "uniVer": "x",
1068
+ * "unixVer": "x"
1069
+ * },
1070
+ * "ios": {
1071
+ * "osVer": "x",
1072
+ * "uniVer": "x",
1073
+ * "unixVer": "x"
1074
+ * }
1075
+ * },
1076
+ * "mp": {
1077
+ * "weixin": {
1078
+ * "hostVer": "√",
1079
+ * "uniVer": ">=2.8.1",
1080
+ * "unixVer": "x"
1081
+ * },
1082
+ * "alipay": {
1083
+ * "hostVer": "x",
1084
+ * "uniVer": "x",
1085
+ * "unixVer": "x"
1086
+ * },
1087
+ * "baidu": {
1088
+ * "hostVer": "x",
1089
+ * "uniVer": "x",
1090
+ * "unixVer": "x"
1091
+ * },
1092
+ * "toutiao": {
1093
+ * "hostVer": "x",
1094
+ * "uniVer": "x",
1095
+ * "unixVer": "x"
1096
+ * },
1097
+ * "lark": {
1098
+ * "hostVer": "x",
1099
+ * "uniVer": "x",
1100
+ * "unixVer": "x"
1101
+ * },
1102
+ * "qq": {
1103
+ * "hostVer": "x",
1104
+ * "uniVer": "x",
1105
+ * "unixVer": "x"
1106
+ * },
1107
+ * "kuaishou": {
1108
+ * "hostVer": "x",
1109
+ * "uniVer": "x",
1110
+ * "unixVer": "x"
1111
+ * },
1112
+ * "jd": {
1113
+ * "hostVer": "x",
1114
+ * "uniVer": "x",
1115
+ * "unixVer": "x"
1116
+ * }
1117
+ * },
1118
+ * "web": {
1119
+ * "uniVer": "x",
1120
+ * "unixVer": "x"
1121
+ * }
1122
+ *}
1123
+ */
1124
+ onShareTimeline?(): ShareTimelineContent;
1125
+ /**
1126
+ * 用户点击右上角收藏
1127
+ *
1128
+ * 监听用户点击右上角菜单“收藏”按钮的行为,并自定义收藏内容。
1129
+ *
1130
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
1131
+ * @uniPlatform {
1132
+ * "app": {
1133
+ * "android": {
1134
+ * "osVer": "x",
1135
+ * "uniVer": "x",
1136
+ * "unixVer": "x"
1137
+ * },
1138
+ * "ios": {
1139
+ * "osVer": "x",
1140
+ * "uniVer": "x",
1141
+ * "unixVer": "x"
1142
+ * }
1143
+ * },
1144
+ * "mp": {
1145
+ * "weixin": {
1146
+ * "hostVer": "√",
1147
+ * "uniVer": ">=2.8.1",
1148
+ * "unixVer": "x"
1149
+ * },
1150
+ * "alipay": {
1151
+ * "hostVer": "x",
1152
+ * "uniVer": "x",
1153
+ * "unixVer": "x"
1154
+ * },
1155
+ * "baidu": {
1156
+ * "hostVer": "x",
1157
+ * "uniVer": "x",
1158
+ * "unixVer": "x"
1159
+ * },
1160
+ * "toutiao": {
1161
+ * "hostVer": "x",
1162
+ * "uniVer": "x",
1163
+ * "unixVer": "x"
1164
+ * },
1165
+ * "lark": {
1166
+ * "hostVer": "x",
1167
+ * "uniVer": "x",
1168
+ * "unixVer": "x"
1169
+ * },
1170
+ * "qq": {
1171
+ * "hostVer": "√",
1172
+ * "uniVer": ">=2.8.1",
1173
+ * "unixVer": "x"
1174
+ * },
1175
+ * "kuaishou": {
1176
+ * "hostVer": "x",
1177
+ * "uniVer": "x",
1178
+ * "unixVer": "x"
1179
+ * },
1180
+ * "jd": {
1181
+ * "hostVer": "x",
1182
+ * "uniVer": "x",
1183
+ * "unixVer": "x"
1184
+ * }
1185
+ * },
1186
+ * "web": {
1187
+ * "uniVer": "x",
1188
+ * "unixVer": "x"
1189
+ * }
1190
+ *}
1191
+ */
1192
+ onAddToFavorites?(options: OnAddToFavoritesOption): CustomFavoritesContent;
1193
+ /**
1194
+ * 当前是 tab 页时,点击 tab 时触发
1195
+ * @param options tab 点击参数
1196
+ *
1197
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
1198
+ * @uniPlatform {
1199
+ * "app": {
1200
+ * "android": {
1201
+ * "osVer": "5.0",
1202
+ * "uniVer": "√",
1203
+ * "unixVer": "x"
1204
+ * },
1205
+ * "ios": {
1206
+ * "osVer": "10.0",
1207
+ * "uniVer": "√",
1208
+ * "unixVer": "x"
1209
+ * }
1210
+ * },
1211
+ * "mp": {
1212
+ * "weixin": {
1213
+ * "hostVer": "√",
1214
+ * "uniVer": "√",
1215
+ * "unixVer": "x"
1216
+ * },
1217
+ * "alipay": {
1218
+ * "hostVer": "√",
1219
+ * "uniVer": "√",
1220
+ * "unixVer": "x"
1221
+ * },
1222
+ * "baidu": {
1223
+ * "hostVer": "√",
1224
+ * "uniVer": "√",
1225
+ * "unixVer": "x"
1226
+ * },
1227
+ * "toutiao": {
1228
+ * "hostVer": "x",
1229
+ * "uniVer": "x",
1230
+ * "unixVer": "x"
1231
+ * },
1232
+ * "lark": {
1233
+ * "hostVer": "x",
1234
+ * "uniVer": "x",
1235
+ * "unixVer": "x"
1236
+ * },
1237
+ * "qq": {
1238
+ * "hostVer": "√",
1239
+ * "uniVer": "√",
1240
+ * "unixVer": "x"
1241
+ * },
1242
+ * "kuaishou": {
1243
+ * "hostVer": "√",
1244
+ * "uniVer": "√",
1245
+ * "unixVer": "x"
1246
+ * },
1247
+ * "jd": {
1248
+ * "hostVer": "√",
1249
+ * "uniVer": "√",
1250
+ * "unixVer": "x"
1251
+ * }
1252
+ * },
1253
+ * "web": {
1254
+ * "uniVer": "√",
1255
+ * "unixVer": "4.0"
1256
+ * }
1257
+ *}
1258
+ */
1259
+ onTabItemTap?(options: OnTabItemTapOption): void;
1260
+ /**
1261
+ * 监听原生标题栏按钮点击事件
1262
+ * @param options tab 点击参数
1263
+ *
1264
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
1265
+ * @uniPlatform {
1266
+ * "app": {
1267
+ * "android": {
1268
+ * "osVer": "5.0",
1269
+ * "uniVer": "√",
1270
+ * "unixVer": "x"
1271
+ * },
1272
+ * "ios": {
1273
+ * "osVer": "10.0",
1274
+ * "uniVer": "√",
1275
+ * "unixVer": "x"
1276
+ * }
1277
+ * },
1278
+ * "mp": {
1279
+ * "weixin": {
1280
+ * "hostVer": "x",
1281
+ * "uniVer": "x",
1282
+ * "unixVer": "x"
1283
+ * },
1284
+ * "alipay": {
1285
+ * "hostVer": "x",
1286
+ * "uniVer": "x",
1287
+ * "unixVer": "x"
1288
+ * },
1289
+ * "baidu": {
1290
+ * "hostVer": "x",
1291
+ * "uniVer": "x",
1292
+ * "unixVer": "x"
1293
+ * },
1294
+ * "toutiao": {
1295
+ * "hostVer": "x",
1296
+ * "uniVer": "x",
1297
+ * "unixVer": "x"
1298
+ * },
1299
+ * "lark": {
1300
+ * "hostVer": "x",
1301
+ * "uniVer": "x",
1302
+ * "unixVer": "x"
1303
+ * },
1304
+ * "qq": {
1305
+ * "hostVer": "x",
1306
+ * "uniVer": "x",
1307
+ * "unixVer": "x"
1308
+ * },
1309
+ * "kuaishou": {
1310
+ * "hostVer": "x",
1311
+ * "uniVer": "x",
1312
+ * "unixVer": "x"
1313
+ * },
1314
+ * "jd": {
1315
+ * "hostVer": "x",
1316
+ * "uniVer": "x",
1317
+ * "unixVer": "x"
1318
+ * }
1319
+ * },
1320
+ * "web": {
1321
+ * "uniVer": "√",
1322
+ * "unixVer": "4.0"
1323
+ * }
1324
+ *}
1325
+ */
1326
+ onNavigationBarButtonTap?(options: OnNavigationBarButtonTapOption): void;
1327
+ /**
1328
+ * 监听原生标题栏搜索输入框输入内容变化事件
1329
+ *
1330
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
1331
+ * @uniPlatform {
1332
+ * "app": {
1333
+ * "android": {
1334
+ * "osVer": "5.0",
1335
+ * "uniVer": "√",
1336
+ * "unixVer": "x"
1337
+ * },
1338
+ * "ios": {
1339
+ * "osVer": "10.0",
1340
+ * "uniVer": "√",
1341
+ * "unixVer": "x"
1342
+ * }
1343
+ * },
1344
+ * "mp": {
1345
+ * "weixin": {
1346
+ * "hostVer": "x",
1347
+ * "uniVer": "x",
1348
+ * "unixVer": "x"
1349
+ * },
1350
+ * "alipay": {
1351
+ * "hostVer": "x",
1352
+ * "uniVer": "x",
1353
+ * "unixVer": "x"
1354
+ * },
1355
+ * "baidu": {
1356
+ * "hostVer": "x",
1357
+ * "uniVer": "x",
1358
+ * "unixVer": "x"
1359
+ * },
1360
+ * "toutiao": {
1361
+ * "hostVer": "x",
1362
+ * "uniVer": "x",
1363
+ * "unixVer": "x"
1364
+ * },
1365
+ * "lark": {
1366
+ * "hostVer": "x",
1367
+ * "uniVer": "x",
1368
+ * "unixVer": "x"
1369
+ * },
1370
+ * "qq": {
1371
+ * "hostVer": "x",
1372
+ * "uniVer": "x",
1373
+ * "unixVer": "x"
1374
+ * },
1375
+ * "kuaishou": {
1376
+ * "hostVer": "x",
1377
+ * "uniVer": "x",
1378
+ * "unixVer": "x"
1379
+ * },
1380
+ * "jd": {
1381
+ * "hostVer": "x",
1382
+ * "uniVer": "x",
1383
+ * "unixVer": "x"
1384
+ * }
1385
+ * },
1386
+ * "web": {
1387
+ * "uniVer": "√",
1388
+ * "unixVer": "4.0"
1389
+ * }
1390
+ *}
1391
+ */
1392
+ onNavigationBarSearchInputChanged?(event: NavigationBarSearchInputEvent): void;
1393
+ /**
1394
+ * 监听原生标题栏搜索输入框搜索事件,用户点击软键盘上的“搜索”按钮时触发。
1395
+ *
1396
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
1397
+ * @uniPlatform {
1398
+ * "app": {
1399
+ * "android": {
1400
+ * "osVer": "5.0",
1401
+ * "uniVer": "√",
1402
+ * "unixVer": "x"
1403
+ * },
1404
+ * "ios": {
1405
+ * "osVer": "10.0",
1406
+ * "uniVer": "√",
1407
+ * "unixVer": "x"
1408
+ * }
1409
+ * },
1410
+ * "mp": {
1411
+ * "weixin": {
1412
+ * "hostVer": "x",
1413
+ * "uniVer": "x",
1414
+ * "unixVer": "x"
1415
+ * },
1416
+ * "alipay": {
1417
+ * "hostVer": "x",
1418
+ * "uniVer": "x",
1419
+ * "unixVer": "x"
1420
+ * },
1421
+ * "baidu": {
1422
+ * "hostVer": "x",
1423
+ * "uniVer": "x",
1424
+ * "unixVer": "x"
1425
+ * },
1426
+ * "toutiao": {
1427
+ * "hostVer": "x",
1428
+ * "uniVer": "x",
1429
+ * "unixVer": "x"
1430
+ * },
1431
+ * "lark": {
1432
+ * "hostVer": "x",
1433
+ * "uniVer": "x",
1434
+ * "unixVer": "x"
1435
+ * },
1436
+ * "qq": {
1437
+ * "hostVer": "x",
1438
+ * "uniVer": "x",
1439
+ * "unixVer": "x"
1440
+ * },
1441
+ * "kuaishou": {
1442
+ * "hostVer": "x",
1443
+ * "uniVer": "x",
1444
+ * "unixVer": "x"
1445
+ * },
1446
+ * "jd": {
1447
+ * "hostVer": "x",
1448
+ * "uniVer": "x",
1449
+ * "unixVer": "x"
1450
+ * }
1451
+ * },
1452
+ * "web": {
1453
+ * "uniVer": "√",
1454
+ * "unixVer": "4.0"
1455
+ * }
1456
+ *}
1457
+ */
1458
+ onNavigationBarSearchInputConfirmed?(event: NavigationBarSearchInputEvent): void;
1459
+ /**
1460
+ * 监听原生标题栏搜索输入框点击事件
1461
+ *
1462
+ * @tutorial [https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle](https://uniapp.dcloud.net.cn/tutorial/page.html#lifecycle)
1463
+ * @uniPlatform {
1464
+ * "app": {
1465
+ * "android": {
1466
+ * "osVer": "5.0",
1467
+ * "uniVer": "√",
1468
+ * "unixVer": "x"
1469
+ * },
1470
+ * "ios": {
1471
+ * "osVer": "10.0",
1472
+ * "uniVer": "√",
1473
+ * "unixVer": "x"
1474
+ * }
1475
+ * },
1476
+ * "mp": {
1477
+ * "weixin": {
1478
+ * "hostVer": "x",
1479
+ * "uniVer": "x",
1480
+ * "unixVer": "x"
1481
+ * },
1482
+ * "alipay": {
1483
+ * "hostVer": "x",
1484
+ * "uniVer": "x",
1485
+ * "unixVer": "x"
1486
+ * },
1487
+ * "baidu": {
1488
+ * "hostVer": "x",
1489
+ * "uniVer": "x",
1490
+ * "unixVer": "x"
1491
+ * },
1492
+ * "toutiao": {
1493
+ * "hostVer": "x",
1494
+ * "uniVer": "x",
1495
+ * "unixVer": "x"
1496
+ * },
1497
+ * "lark": {
1498
+ * "hostVer": "x",
1499
+ * "uniVer": "x",
1500
+ * "unixVer": "x"
1501
+ * },
1502
+ * "qq": {
1503
+ * "hostVer": "x",
1504
+ * "uniVer": "x",
1505
+ * "unixVer": "x"
1506
+ * },
1507
+ * "kuaishou": {
1508
+ * "hostVer": "x",
1509
+ * "uniVer": "x",
1510
+ * "unixVer": "x"
1511
+ * },
1512
+ * "jd": {
1513
+ * "hostVer": "x",
1514
+ * "uniVer": "x",
1515
+ * "unixVer": "x"
1516
+ * }
1517
+ * },
1518
+ * "web": {
1519
+ * "uniVer": "√",
1520
+ * "unixVer": "4.0"
1521
+ * }
1522
+ *}
1523
+ */
1524
+ onNavigationBarSearchInputClicked?(): void;
1525
+ }
1526
+
1527
+ interface Page {
1528
+ /**
1529
+ * 页面的路由地址
1530
+ */
1531
+ route: string
1532
+ /**
1533
+ * 页面的路由参数信息,目前web端options类型为Object,后续可能会调整
1534
+ */
1535
+ options: Map<string, string | null>
1536
+ /**
1537
+ * 原生页面对象
1538
+ * @internal
1539
+ * @uniPlatform {
1540
+ * "app": {
1541
+ * "android": {
1542
+ * "osVer": "5.0",
1543
+ * "uniVer": "x",
1544
+ * "unixVer": "4.13"
1545
+ * },
1546
+ * "ios": {
1547
+ * "osVer": "12.0",
1548
+ * "uniVer": "x",
1549
+ * "unixVer": "4.13"
1550
+ * }
1551
+ * }
1552
+ * }
1553
+ */
1554
+ $nativePage: IPage | null;
1555
+ /**
1556
+ * 获取当前页面样式 \
1557
+ * 包含 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
1558
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#getPageStyle
1559
+ * @uniPlatform {
1560
+ * "app": {
1561
+ * "android": {
1562
+ * "osVer": "5.0",
1563
+ * "uniVer": "x",
1564
+ * "unixVer": "4.13"
1565
+ * },
1566
+ * "ios": {
1567
+ * "osVer": "12.0",
1568
+ * "uniVer": "x",
1569
+ * "unixVer": "4.13"
1570
+ * }
1571
+ * },
1572
+ * "web": {
1573
+ * "uniVer": "x",
1574
+ * "unixVer": "4.13"
1575
+ * }
1576
+ * }
1577
+ */
1578
+ $getPageStyle(): UTSJSONObject;
1579
+ /**
1580
+ * 设置当前页面样式 \
1581
+ * 支持 pages.json 页面下的 style 节点属性和根节点 globalStyle 属性
1582
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html#setPageStyle
1583
+ * @uniPlatform {
1584
+ * "app": {
1585
+ * "android": {
1586
+ * "osVer": "5.0",
1587
+ * "uniVer": "x",
1588
+ * "unixVer": "4.13"
1589
+ * },
1590
+ * "ios": {
1591
+ * "osVer": "12.0",
1592
+ * "uniVer": "x",
1593
+ * "unixVer": "4.13"
1594
+ * }
1595
+ * },
1596
+ * "web": {
1597
+ * "uniVer": "x",
1598
+ * "unixVer": "4.13"
1599
+ * }
1600
+ * }
1601
+ */
1602
+ $setPageStyle(style: UTSJSONObject): void;
1603
+ }
1604
+
1605
+ type PageOrigin = Page
1606
+
1607
+ declare global {
1608
+ /**
1609
+ * `getCurrentPages()` 函数用于获取当前页面栈的实例,以数组形式按栈的顺序给出,数组中的元素为页面实例,第一个元素为首页,最后一个元素为当前页面。
1610
+ * @tutorial https://uniapp.dcloud.net.cn/tutorial/page.html#getcurrentpages
1611
+ * @uniPlatform {
1612
+ * "app": {
1613
+ * "android": {
1614
+ * "osVer": "5.0",
1615
+ * "uniVer": "√",
1616
+ * "unixVer": "3.9"
1617
+ * },
1618
+ * "ios": {
1619
+ * "osVer": "12.0",
1620
+ * "uniVer": "√",
1621
+ * "unixVer": "4.11"
1622
+ * }
1623
+ * },
1624
+ * "web": {
1625
+ * "uniVer": "√",
1626
+ * "unixVer": "4.0"
1627
+ * }
1628
+ * }
1629
+ */
1630
+ const getCurrentPages: () => Page[]
1631
+ type OnLoadOptions = NativeMap<string, any>
1632
+ interface OnBackPressOptions {
1633
+ /**
1634
+ * - backbutton 顶部导航栏左边的返回按钮或 Android 实体返回键
1635
+ * - navigateBack 返回 API,即 uni.navigateBack()
1636
+ */
1637
+ from: 'backbutton' | 'navigateBack';
1638
+ }
1639
+
1640
+ interface OnPageScrollOptions {
1641
+ /**
1642
+ * 页面在垂直方向已滚动的距离(单位 px)
1643
+ */
1644
+ scrollTop: number;
1645
+ }
1646
+
1647
+ interface OnTabItemTapOption {
1648
+ /**
1649
+ * 被点击 tabItem 的序号,从0开始
1650
+ */
1651
+ index: number;
1652
+ /**
1653
+ * 被点击 tabItem 的页面路径
1654
+ */
1655
+ pagePath: string;
1656
+ /**
1657
+ * 被点击 tabItem 的按钮文字
1658
+ */
1659
+ text: string;
1660
+ }
1661
+
1662
+ interface OnResizeOptions {
1663
+ /**
1664
+ * 屏幕方向
1665
+ */
1666
+ deviceOrientation: string
1667
+ /**
1668
+ * 新的显示区域尺寸
1669
+ */
1670
+ size: OnResizeSize
1671
+ }
1672
+
1673
+ type Page = PageOrigin
1674
+ }
1675
+
1676
+ declare module '@vue/runtime-core' {
1677
+ interface ComponentCustomOptions extends PageInstance {
1678
+
1679
+ }
1680
+ }
1681
+
1682
+ export { }