@dcloudio/uni-app-x 0.7.49 → 0.7.50

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 (380) 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 +30 -30
  6. package/types/app.d.ts +1383 -1383
  7. package/types/index.d.ts +7 -7
  8. package/types/native/AsyncApiResult.d.ts +8 -8
  9. package/types/native/CSSStyleDeclaration.d.ts +144 -144
  10. package/types/native/CanvasRenderingContext2D.d.ts +3748 -3748
  11. package/types/native/DOMRect.d.ts +656 -656
  12. package/types/native/DrawableContext.d.ts +1722 -1722
  13. package/types/native/INavigationBar.d.ts +22 -22
  14. package/types/native/IUniElement.d.ts +6103 -6103
  15. package/types/native/IUniError.d.ts +20 -20
  16. package/types/native/IUniForm.d.ts +9 -9
  17. package/types/native/IUniNativeViewElement.d.ts +132 -130
  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 +269 -269
  22. package/types/native/SnapshotOptions.d.ts +62 -62
  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/UniAnimation.d.ts +583 -583
  27. package/types/native/UniAnimationPlaybackEvent.d.ts +12 -12
  28. package/types/native/UniCallbackWrapper.d.ts +7 -7
  29. package/types/native/UniCanvasElement.d.ts +9 -9
  30. package/types/native/UniCustomEvent.d.ts +24 -24
  31. package/types/native/UniDocument.d.ts +83 -83
  32. package/types/native/UniElement.d.ts +85 -85
  33. package/types/native/UniError.d.ts +70 -70
  34. package/types/native/UniEvent.d.ts +121 -121
  35. package/types/native/UniFormControl.d.ts +8 -8
  36. package/types/native/UniFormControlElement.d.ts +15 -15
  37. package/types/native/UniImageErrorEvent.d.ts +33 -33
  38. package/types/native/UniImageLoadEvent.d.ts +37 -37
  39. package/types/native/UniInputBlurEvent.d.ts +36 -36
  40. package/types/native/UniInputConfirmEvent.d.ts +30 -30
  41. package/types/native/UniInputEvent.d.ts +38 -38
  42. package/types/native/UniInputFocusEvent.d.ts +53 -53
  43. package/types/native/UniNativeApp.d.ts +205 -205
  44. package/types/native/UniNativePage.d.ts +328 -328
  45. package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
  46. package/types/native/UniPage.d.ts +639 -639
  47. package/types/native/UniPageBody.d.ts +109 -109
  48. package/types/native/UniPageEvent.d.ts +10 -10
  49. package/types/native/UniPageManager.d.ts +27 -27
  50. package/types/native/UniPageScrollEvent.d.ts +13 -13
  51. package/types/native/UniPointerEvent.d.ts +74 -74
  52. package/types/native/UniProvider.d.ts +32 -32
  53. package/types/native/UniRefresherEvent.d.ts +18 -18
  54. package/types/native/UniResizeEvent.d.ts +34 -34
  55. package/types/native/UniResizeObserver.d.ts +394 -394
  56. package/types/native/UniRichTextItemClickEvent.d.ts +37 -37
  57. package/types/native/UniSafeAreaInsets.d.ts +73 -73
  58. package/types/native/UniScrollEvent.d.ts +42 -42
  59. package/types/native/UniScrollToLowerEvent.d.ts +23 -23
  60. package/types/native/UniScrollToUpperEvent.d.ts +23 -23
  61. package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
  62. package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
  63. package/types/native/UniSwiperAnimationFinishEvent.d.ts +44 -44
  64. package/types/native/UniSwiperChangeEvent.d.ts +44 -44
  65. package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
  66. package/types/native/UniTabTapEvent.d.ts +18 -18
  67. package/types/native/UniTabsElement.d.ts +59 -59
  68. package/types/native/UniTextElement.d.ts +35 -35
  69. package/types/native/UniTextareaFocusEvent.d.ts +54 -54
  70. package/types/native/UniTouchEvent.d.ts +64 -64
  71. package/types/native/UniVideoElement.d.ts +515 -515
  72. package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
  73. package/types/native/UniWebViewElement.d.ts +10 -10
  74. package/types/native/UniWebViewErrorEvent.d.ts +59 -59
  75. package/types/native/UniWebViewLoadEvent.d.ts +41 -41
  76. package/types/native/UniWebViewLoadingEvent.d.ts +41 -41
  77. package/types/native/UniWebViewMessageEvent.d.ts +36 -36
  78. package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
  79. package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
  80. package/types/native/WebViewStyles.d.ts +20 -20
  81. package/types/native/global.d.ts +662 -662
  82. package/types/native/index.d.ts +76 -76
  83. package/types/native-global/index.d.ts +1 -1
  84. package/types/page.d.ts +1731 -1731
  85. package/types/process.d.ts +5 -5
  86. package/types/uni/base/index.d.ts +3 -3
  87. package/types/uni/env/index.d.ts +117 -117
  88. package/types/uni/global.d.ts +7 -7
  89. package/types/uni/index.d.ts +5 -5
  90. package/types/uni/uni-map-tencent-global.d.ts +37 -37
  91. package/types/uni/uni-map-tencent-map.d.ts +62 -62
  92. package/types/uni/uts-plugin-api/global.d.ts +71 -71
  93. package/types/uni/uts-plugin-api/index.d.ts +71 -71
  94. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -22
  95. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -10
  96. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +554 -554
  97. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +24 -24
  98. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +11 -11
  99. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1765 -1765
  100. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -10
  101. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
  102. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +78 -78
  103. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +58 -58
  104. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +28 -28
  105. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1336 -1336
  106. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
  107. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
  108. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +78 -78
  109. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +22 -22
  110. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +10 -10
  111. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +972 -972
  112. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/global.d.ts +20 -20
  113. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
  114. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +411 -411
  115. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/global.d.ts +32 -32
  116. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/index.d.ts +15 -15
  117. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
  118. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
  119. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +601 -601
  120. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +16 -16
  121. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +7 -7
  122. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +2664 -2664
  123. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
  124. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
  125. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +512 -512
  126. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  127. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  128. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
  129. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
  130. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
  131. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +769 -769
  132. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  133. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  134. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
  135. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
  136. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
  137. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/global.d.ts +10 -10
  138. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/index.d.ts +4 -4
  139. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/interface.d.ts +76 -76
  140. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
  141. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
  142. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +338 -338
  143. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  144. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  145. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +102 -102
  146. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
  147. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
  148. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +384 -384
  149. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +152 -152
  150. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +75 -75
  151. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  152. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  153. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  154. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  155. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +616 -497
  156. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  157. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  158. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2557 -2557
  159. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +16 -16
  160. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +7 -7
  161. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1049 -1049
  162. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  163. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  164. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2006 -2006
  165. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
  166. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
  167. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +82 -82
  168. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
  169. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
  170. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +802 -802
  171. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
  172. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
  173. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +806 -806
  174. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
  175. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
  176. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +1808 -1810
  177. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
  178. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
  179. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  180. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
  181. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
  182. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +20 -20
  183. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +10 -10
  184. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +736 -736
  185. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
  186. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
  187. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +692 -692
  188. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
  189. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
  190. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +419 -419
  191. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +36 -36
  192. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +17 -17
  193. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +634 -634
  194. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
  195. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
  196. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1024 -1024
  197. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +32 -32
  198. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +15 -15
  199. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +6755 -6755
  200. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  201. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  202. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +501 -501
  203. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  204. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  205. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
  206. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
  207. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
  208. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
  209. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
  210. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +367 -367
  211. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +28 -28
  212. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +13 -13
  213. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +679 -679
  214. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
  215. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
  216. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +277 -277
  217. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +190 -190
  218. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +94 -94
  219. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +2760 -2331
  220. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +18 -18
  221. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +8 -8
  222. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +762 -190
  223. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
  224. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
  225. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1210 -1210
  226. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +90 -90
  227. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +44 -44
  228. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +5752 -5752
  229. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +66 -66
  230. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +32 -32
  231. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +2648 -2648
  232. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/global.d.ts +8 -8
  233. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/index.d.ts +4 -4
  234. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/interface.d.ts +1 -1
  235. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  236. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  237. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +296 -296
  238. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
  239. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
  240. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +516 -516
  241. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
  242. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
  243. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +418 -418
  244. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
  245. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
  246. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +1084 -1084
  247. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
  248. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
  249. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/global.d.ts +8 -8
  250. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/index.d.ts +4 -4
  251. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -1
  252. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
  253. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
  254. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/global.d.ts +46 -46
  255. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/index.d.ts +22 -22
  256. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +878 -878
  257. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +30 -30
  258. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +14 -14
  259. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +609 -609
  260. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -78
  261. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -38
  262. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +4323 -4322
  263. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
  264. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
  265. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +323 -323
  266. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/global.d.ts +20 -20
  267. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/index.d.ts +9 -9
  268. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +709 -521
  269. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
  270. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
  271. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2847 -2847
  272. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  273. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  274. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +80 -80
  275. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
  276. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
  277. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +629 -615
  278. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +26 -26
  279. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +12 -12
  280. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +719 -719
  281. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/global.d.ts +18 -18
  282. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/index.d.ts +8 -8
  283. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +308 -276
  284. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  285. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  286. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1998 -1998
  287. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
  288. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
  289. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +3136 -3136
  290. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +54 -54
  291. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +26 -26
  292. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1105 -1105
  293. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
  294. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
  295. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +2306 -2306
  296. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  297. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  298. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +2717 -2717
  299. package/types/uni/uts-plugin-biz/global.d.ts +7 -7
  300. package/types/uni/uts-plugin-biz/index.d.ts +7 -7
  301. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +44 -44
  302. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +21 -21
  303. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +1008 -1008
  304. package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/global.d.ts +34 -34
  305. package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/index.d.ts +16 -16
  306. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +24 -24
  307. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +11 -11
  308. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  309. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  310. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +212 -212
  311. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/global.d.ts +66 -66
  312. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/index.d.ts +32 -32
  313. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
  314. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
  315. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +960 -960
  316. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -24
  317. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -11
  318. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +52 -52
  319. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +25 -25
  320. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -64
  321. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -31
  322. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -900
  323. package/types/uni/uts-plugin-component/global.d.ts +2 -2
  324. package/types/uni/uts-plugin-component/index.d.ts +2 -2
  325. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +34 -34
  326. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +16 -16
  327. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +68 -66
  328. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +33 -32
  329. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +935 -927
  330. package/types/uni/uts-plugin-extend/README.md +3 -0
  331. package/types/uni/uts-plugin-extend/global.d.ts +11 -11
  332. package/types/uni/uts-plugin-extend/index.d.ts +10 -10
  333. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -7
  334. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -3
  335. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
  336. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
  337. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +917 -917
  338. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
  339. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
  340. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4770 -4770
  341. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
  342. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
  343. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1095 -1095
  344. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
  345. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
  346. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
  347. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
  348. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
  349. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
  350. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
  351. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
  352. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1670 -1670
  353. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
  354. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
  355. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +253 -253
  356. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
  357. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
  358. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +999 -999
  359. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
  360. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
  361. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
  362. package/types/uni-cloud/index.d.ts +67 -67
  363. package/types/uni-cloud/interface.d.ts +1078 -1078
  364. package/types/uni-cloud/unicloud-db/index.ts +317 -317
  365. package/types/uni-global/index.d.ts +1 -1
  366. package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
  367. package/types/vue/LifeCycle.d.ts +55 -55
  368. package/types/vue/PickerViewChangeEvent.d.ts +41 -41
  369. package/types/vue/ProgressActiveendEvent.d.ts +32 -32
  370. package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
  371. package/types/vue/SliderChangeEvent.d.ts +35 -35
  372. package/types/vue/SwitchChangeEvent.d.ts +32 -32
  373. package/types/vue/UniCanvasElement.d.ts +275 -275
  374. package/types/vue/UniCloudDBElement.d.ts +217 -217
  375. package/types/vue/UniFormElement.d.ts +54 -54
  376. package/types/vue/UniNavigatorElement.d.ts +11 -11
  377. package/types/vue/global.d.ts +191 -191
  378. package/types/vue/index.d.ts +10 -10
  379. package/types/vue-global/index.d.ts +1 -1
  380. package/uts-plugin.d.ts +33 -33
package/types/app.d.ts CHANGED
@@ -1,1383 +1,1383 @@
1
- /// <reference path='./common.d.ts' />
2
- import UIAbility from '@ohos.app.ability.UIAbility';
3
- import { ComputedOptions, EditorCreateVueAppComponent, MethodOptions, OptionsData, ComponentInternalInstance, EditorVueAppComponent, EditorComponentPublicInstance, DefineApp, ComponentInjectOptions } from '@vue/runtime-core'
4
-
5
- /**
6
- * Construct a type with a set of properties K of type T
7
- */
8
- type Record<K extends keyof any, T> = {
9
- [P in K]: T;
10
- };
11
- /**
12
- * From T, pick a set of properties whose keys are in the union K
13
- */
14
- type Pick<T, K extends keyof T> = {
15
- [P in K]: T[P];
16
- };
17
- /**
18
- * Exclude from T those types that are assignable to U
19
- */
20
- type Exclude<T, U> = T extends U ? never : T;
21
- /**
22
- * Construct a type with the properties of T except for those in type K.
23
- */
24
- type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
25
-
26
- interface ReferrerInfo {
27
- /**
28
- * 来源小程序或公众号或App的 appId
29
- *
30
- * 以下场景支持返回 referrerInfo.appId:
31
- * - 1020(公众号 profile 页相关小程序列表): appId
32
- * - 1035(公众号自定义菜单):来源公众号 appId
33
- * - 1036(App 分享消息卡片):来源应用 appId
34
- * - 1037(小程序打开小程序):来源小程序 appId
35
- * - 1038(从另一个小程序返回):来源小程序 appId
36
- * - 1043(公众号模板消息):来源公众号 appId
37
- */
38
- appId: string;
39
- /**
40
- * 来源小程序传过来的数据,scene=1037或1038时支持
41
- */
42
- extraData?: any;
43
- }
44
-
45
- type GlobalData = Record<string, any | null>
46
- interface UniAppOptions<G extends GlobalData = GlobalData> {
47
- /**
48
- * 全局对象
49
- *
50
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
51
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
52
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
53
- *
54
- * @uniPlatform {
55
- * "app": {
56
- * "android": {
57
- * "osVer": "5.0",
58
- * "uniVer": "√",
59
- * "unixVer": "3.9"
60
- * },
61
- * "ios": {
62
- * "osVer": "10.0",
63
- * "uniVer": "√",
64
- * "unixVer": "4.0"
65
- * }
66
- * },
67
- * "mp": {
68
- * "weixin": {
69
- * "hostVer": "√",
70
- * "uniVer": "√",
71
- * "unixVer": "4.41"
72
- * },
73
- * "alipay": {
74
- * "hostVer": "√",
75
- * "uniVer": "√",
76
- * "unixVer": "x"
77
- * },
78
- * "baidu": {
79
- * "hostVer": "√",
80
- * "uniVer": "√",
81
- * "unixVer": "x"
82
- * },
83
- * "toutiao": {
84
- * "hostVer": "√",
85
- * "uniVer": "√",
86
- * "unixVer": "x"
87
- * },
88
- * "lark": {
89
- * "hostVer": "√",
90
- * "uniVer": "√",
91
- * "unixVer": "x"
92
- * },
93
- * "qq": {
94
- * "hostVer": "√",
95
- * "uniVer": "√",
96
- * "unixVer": "x"
97
- * },
98
- * "kuaishou": {
99
- * "hostVer": "√",
100
- * "uniVer": "√",
101
- * "unixVer": "x"
102
- * },
103
- * "jd": {
104
- * "hostVer": "√",
105
- * "uniVer": "√",
106
- * "unixVer": "x"
107
- * }
108
- * },
109
- * "web": {
110
- * "uniVer": "√",
111
- * "unixVer": "4.0"
112
- * }
113
- *}
114
- */
115
- globalData?: G;
116
- /**
117
- * 生命周期回调,监听应用初始化,应用初始化完成时触发,全局只触发一次。
118
- *
119
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
120
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
121
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
122
- *
123
- * @uniPlatform {
124
- * "app": {
125
- * "android": {
126
- * "osVer": "5.0",
127
- * "uniVer": "√",
128
- * "unixVer": "3.9"
129
- * },
130
- * "ios": {
131
- * "osVer": "10.0",
132
- * "uniVer": "√",
133
- * "unixVer": "4.0"
134
- * }
135
- * },
136
- * "mp": {
137
- * "weixin": {
138
- * "hostVer": "√",
139
- * "uniVer": "√",
140
- * "unixVer": "4.41"
141
- * },
142
- * "alipay": {
143
- * "hostVer": "√",
144
- * "uniVer": "√",
145
- * "unixVer": "x"
146
- * },
147
- * "baidu": {
148
- * "hostVer": "√",
149
- * "uniVer": "√",
150
- * "unixVer": "x"
151
- * },
152
- * "toutiao": {
153
- * "hostVer": "√",
154
- * "uniVer": "√",
155
- * "unixVer": "x"
156
- * },
157
- * "lark": {
158
- * "hostVer": "√",
159
- * "uniVer": "√",
160
- * "unixVer": "x"
161
- * },
162
- * "qq": {
163
- * "hostVer": "√",
164
- * "uniVer": "√",
165
- * "unixVer": "x"
166
- * },
167
- * "kuaishou": {
168
- * "hostVer": "√",
169
- * "uniVer": "√",
170
- * "unixVer": "x"
171
- * },
172
- * "jd": {
173
- * "hostVer": "√",
174
- * "uniVer": "√",
175
- * "unixVer": "x"
176
- * }
177
- * },
178
- * "web": {
179
- * "uniVer": "√",
180
- * "unixVer": "4.0"
181
- * }
182
- *}
183
- */
184
- onLaunch?(options: OnLaunchOptions): void;
185
- /**
186
- * 生命周期回调 监听应用显示
187
- *
188
- * 应用启动,或从后台进入前台显示时触发
189
- *
190
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
191
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
192
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
193
- * @uniPlatform {
194
- * "app": {
195
- * "android": {
196
- * "osVer": "5.0",
197
- * "uniVer": "√",
198
- * "unixVer": "3.9"
199
- * },
200
- * "ios": {
201
- * "osVer": "10.0",
202
- * "uniVer": "√",
203
- * "unixVer": "4.0"
204
- * }
205
- * },
206
- * "mp": {
207
- * "weixin": {
208
- * "hostVer": "√",
209
- * "uniVer": "√",
210
- * "unixVer": "4.41"
211
- * },
212
- * "alipay": {
213
- * "hostVer": "√",
214
- * "uniVer": "√",
215
- * "unixVer": "x"
216
- * },
217
- * "baidu": {
218
- * "hostVer": "√",
219
- * "uniVer": "√",
220
- * "unixVer": "x"
221
- * },
222
- * "toutiao": {
223
- * "hostVer": "√",
224
- * "uniVer": "√",
225
- * "unixVer": "x"
226
- * },
227
- * "lark": {
228
- * "hostVer": "√",
229
- * "uniVer": "√",
230
- * "unixVer": "x"
231
- * },
232
- * "qq": {
233
- * "hostVer": "√",
234
- * "uniVer": "√",
235
- * "unixVer": "x"
236
- * },
237
- * "kuaishou": {
238
- * "hostVer": "√",
239
- * "uniVer": "√",
240
- * "unixVer": "x"
241
- * },
242
- * "jd": {
243
- * "hostVer": "√",
244
- * "uniVer": "√",
245
- * "unixVer": "x"
246
- * }
247
- * },
248
- * "web": {
249
- * "uniVer": "√",
250
- * "unixVer": "4.0"
251
- * }
252
- *}
253
- */
254
- onShow?(options: OnShowOptions): void;
255
- /**
256
- * 生命周期回调 监听应用隐藏
257
- *
258
- * 应用从前台进入后台时触发
259
- *
260
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
261
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
262
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
263
- * @uniPlatform {
264
- * "app": {
265
- * "android": {
266
- * "osVer": "5.0",
267
- * "uniVer": "√",
268
- * "unixVer": "3.9"
269
- * },
270
- * "ios": {
271
- * "osVer": "10.0",
272
- * "uniVer": "√",
273
- * "unixVer": "4.0"
274
- * }
275
- * },
276
- * "mp": {
277
- * "weixin": {
278
- * "hostVer": "√",
279
- * "uniVer": "√",
280
- * "unixVer": "4.41"
281
- * },
282
- * "alipay": {
283
- * "hostVer": "√",
284
- * "uniVer": "√",
285
- * "unixVer": "x"
286
- * },
287
- * "baidu": {
288
- * "hostVer": "√",
289
- * "uniVer": "√",
290
- * "unixVer": "x"
291
- * },
292
- * "toutiao": {
293
- * "hostVer": "√",
294
- * "uniVer": "√",
295
- * "unixVer": "x"
296
- * },
297
- * "lark": {
298
- * "hostVer": "√",
299
- * "uniVer": "√",
300
- * "unixVer": "x"
301
- * },
302
- * "qq": {
303
- * "hostVer": "√",
304
- * "uniVer": "√",
305
- * "unixVer": "x"
306
- * },
307
- * "kuaishou": {
308
- * "hostVer": "√",
309
- * "uniVer": "√",
310
- * "unixVer": "x"
311
- * },
312
- * "jd": {
313
- * "hostVer": "√",
314
- * "uniVer": "√",
315
- * "unixVer": "x"
316
- * }
317
- * },
318
- * "web": {
319
- * "uniVer": "√",
320
- * "unixVer": "4.0"
321
- * }
322
- *}
323
- */
324
- onHide?(): void;
325
- /**
326
- * 错误监听函数
327
- * 应用发生脚本错误或 API 调用报错时触发
328
- * 4.33+ App 端支持监听异步逻辑中的错误
329
- * @param error 错误信息
330
- *
331
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
332
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
333
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
334
- * @uniPlatform {
335
- * "app": {
336
- * "android": {
337
- * "osVer": "5.0",
338
- * "uniVer": "√",
339
- * "unixVer": "4.21"
340
- * },
341
- * "ios": {
342
- * "osVer": "10.0",
343
- * "uniVer": "√",
344
- * "unixVer": "4.21"
345
- * }
346
- * },
347
- * "mp": {
348
- * "weixin": {
349
- * "hostVer": "√",
350
- * "uniVer": "√",
351
- * "unixVer": "4.41"
352
- * },
353
- * "alipay": {
354
- * "hostVer": "√",
355
- * "uniVer": "√",
356
- * "unixVer": "x"
357
- * },
358
- * "baidu": {
359
- * "hostVer": "√",
360
- * "uniVer": "√",
361
- * "unixVer": "x"
362
- * },
363
- * "toutiao": {
364
- * "hostVer": "√",
365
- * "uniVer": "√",
366
- * "unixVer": "x"
367
- * },
368
- * "lark": {
369
- * "hostVer": "√",
370
- * "uniVer": "√",
371
- * "unixVer": "x"
372
- * },
373
- * "qq": {
374
- * "hostVer": "√",
375
- * "uniVer": "√",
376
- * "unixVer": "x"
377
- * },
378
- * "kuaishou": {
379
- * "hostVer": "√",
380
- * "uniVer": "√",
381
- * "unixVer": "x"
382
- * },
383
- * "jd": {
384
- * "hostVer": "√",
385
- * "uniVer": "√",
386
- * "unixVer": "x"
387
- * }
388
- * },
389
- * "web": {
390
- * "uniVer": "√",
391
- * "unixVer": "4.0"
392
- * }
393
- *}
394
- */
395
- onError?(error: any): void;
396
- /**
397
- * 页面不存在监听函数
398
- *
399
- * 应用要打开的页面不存在时触发,会带上页面信息回调该函数
400
- *
401
- * **注意:**
402
- * 1. 如果开发者没有添加 `onPageNotFound` 监听,当跳转页面不存在时,将推入微信客户端原生的页面不存在提示页面。
403
- * 2. 如果 `onPageNotFound` 回调中又重定向到另一个不存在的页面,将推入微信客户端原生的页面不存在提示页面,并且不再回调 `onPageNotFound`。
404
- *
405
- * @tutorial https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
406
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
407
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
408
- * @uniPlatform {
409
- * "app": {
410
- * "android": {
411
- * "osVer": "5.0",
412
- * "uniVer": "√",
413
- * "unixVer": "x"
414
- * },
415
- * "ios": {
416
- * "osVer": "10.0",
417
- * "uniVer": "√",
418
- * "unixVer": "x"
419
- * }
420
- * },
421
- * "mp": {
422
- * "weixin": {
423
- * "hostVer": "√",
424
- * "uniVer": "√",
425
- * "unixVer": "4.41"
426
- * },
427
- * "alipay": {
428
- * "hostVer": "√",
429
- * "uniVer": "√",
430
- * "unixVer": "x"
431
- * },
432
- * "baidu": {
433
- * "hostVer": "√",
434
- * "uniVer": "√",
435
- * "unixVer": "x"
436
- * },
437
- * "toutiao": {
438
- * "hostVer": "√",
439
- * "uniVer": "√",
440
- * "unixVer": "x"
441
- * },
442
- * "lark": {
443
- * "hostVer": "√",
444
- * "uniVer": "√",
445
- * "unixVer": "x"
446
- * },
447
- * "qq": {
448
- * "hostVer": "√",
449
- * "uniVer": "√",
450
- * "unixVer": "x"
451
- * },
452
- * "kuaishou": {
453
- * "hostVer": "√",
454
- * "uniVer": "√",
455
- * "unixVer": "x"
456
- * },
457
- * "jd": {
458
- * "hostVer": "√",
459
- * "uniVer": "√",
460
- * "unixVer": "x"
461
- * }
462
- * },
463
- * "web": {
464
- * "uniVer": "√",
465
- * "unixVer": "4.0"
466
- * }
467
- *}
468
- */
469
- onPageNotFound?(options: OnPageNotFoundOption): void;
470
- /**
471
- * 监听 nvue 页面消息
472
- *
473
- * nvue 页面使用 `uni.postMessage` 发送消息时触发
474
- *
475
- * @tutorial https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
476
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
477
- * @internal
478
- * @uniPlatform {
479
- * "app": {
480
- * "android": {
481
- * "osVer": "5.0",
482
- * "uniVer": "√",
483
- * "unixVer": "x"
484
- * },
485
- * "ios": {
486
- * "osVer": "10.0",
487
- * "uniVer": "√",
488
- * "unixVer": "x"
489
- * }
490
- * },
491
- * "mp": {
492
- * "weixin": {
493
- * "hostVer": "√",
494
- * "uniVer": "√",
495
- * "unixVer": "x"
496
- * },
497
- * "alipay": {
498
- * "hostVer": "√",
499
- * "uniVer": "√",
500
- * "unixVer": "x"
501
- * },
502
- * "baidu": {
503
- * "hostVer": "√",
504
- * "uniVer": "√",
505
- * "unixVer": "x"
506
- * },
507
- * "toutiao": {
508
- * "hostVer": "√",
509
- * "uniVer": "√",
510
- * "unixVer": "x"
511
- * },
512
- * "lark": {
513
- * "hostVer": "√",
514
- * "uniVer": "√",
515
- * "unixVer": "x"
516
- * },
517
- * "qq": {
518
- * "hostVer": "√",
519
- * "uniVer": "√",
520
- * "unixVer": "x"
521
- * },
522
- * "kuaishou": {
523
- * "hostVer": "√",
524
- * "uniVer": "√",
525
- * "unixVer": "x"
526
- * },
527
- * "jd": {
528
- * "hostVer": "√",
529
- * "uniVer": "√",
530
- * "unixVer": "x"
531
- * },
532
- * "360": {
533
- * "hostVer": "√",
534
- * "uniVer": "√",
535
- * "unixVer": "x"
536
- * }
537
- * },
538
- * "quickapp": {
539
- * "uniVer": "√",
540
- * "unixVer": "x"
541
- * },
542
- * "web": {
543
- * "uniVer": "√",
544
- * "unixVer": "4.0"
545
- * }
546
- *}
547
- */
548
- onUniNViewMessage?(options: AnyObject): void;
549
- /**
550
- * 监听应用退出。app-uvue-android 3.9+
551
- *
552
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
553
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
554
- * @uniPlatform {
555
- * "app": {
556
- * "android": {
557
- * "osVer": "5.0",
558
- * "uniVer": "x",
559
- * "unixVer": "3.9"
560
- * },
561
- * "ios": {
562
- * "osVer": "x",
563
- * "uniVer": "x",
564
- * "unixVer": "x"
565
- * }
566
- * },
567
- * "mp": {
568
- * "weixin": {
569
- * "hostVer": "x",
570
- * "uniVer": "x",
571
- * "unixVer": "x"
572
- * },
573
- * "alipay": {
574
- * "hostVer": "x",
575
- * "uniVer": "x",
576
- * "unixVer": "x"
577
- * },
578
- * "baidu": {
579
- * "hostVer": "x",
580
- * "uniVer": "x",
581
- * "unixVer": "x"
582
- * },
583
- * "toutiao": {
584
- * "hostVer": "x",
585
- * "uniVer": "x",
586
- * "unixVer": "x"
587
- * },
588
- * "lark": {
589
- * "hostVer": "x",
590
- * "uniVer": "x",
591
- * "unixVer": "x"
592
- * },
593
- * "qq": {
594
- * "hostVer": "x",
595
- * "uniVer": "x",
596
- * "unixVer": "x"
597
- * },
598
- * "kuaishou": {
599
- * "hostVer": "x",
600
- * "uniVer": "x",
601
- * "unixVer": "x"
602
- * },
603
- * "jd": {
604
- * "hostVer": "x",
605
- * "uniVer": "x",
606
- * "unixVer": "x"
607
- * },
608
- * "360": {
609
- * "hostVer": "x",
610
- * "uniVer": "x",
611
- * "unixVer": "x"
612
- * }
613
- * },
614
- * "quickapp": {
615
- * "uniVer": "x",
616
- * "unixVer": "x"
617
- * },
618
- * "web": {
619
- * "uniVer": "x",
620
- * "unixVer": "x"
621
- * }
622
- *}
623
- */
624
- onExit?(): void;
625
- /**
626
- * 最后一个页面按下Android back键,常用于自定义退出。app-uvue-android 3.9+
627
- *
628
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
629
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
630
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
631
- * @uniPlatform {
632
- * "app": {
633
- * "android": {
634
- * "osVer": "5.0",
635
- * "uniVer": "x",
636
- * "unixVer": "3.9"
637
- * },
638
- * "ios": {
639
- * "osVer": "x",
640
- * "uniVer": "x",
641
- * "unixVer": "x"
642
- * }
643
- * },
644
- * "mp": {
645
- * "weixin": {
646
- * "hostVer": "x",
647
- * "uniVer": "x",
648
- * "unixVer": "x"
649
- * },
650
- * "alipay": {
651
- * "hostVer": "x",
652
- * "uniVer": "x",
653
- * "unixVer": "x"
654
- * },
655
- * "baidu": {
656
- * "hostVer": "x",
657
- * "uniVer": "x",
658
- * "unixVer": "x"
659
- * },
660
- * "toutiao": {
661
- * "hostVer": "x",
662
- * "uniVer": "x",
663
- * "unixVer": "x"
664
- * },
665
- * "lark": {
666
- * "hostVer": "x",
667
- * "uniVer": "x",
668
- * "unixVer": "x"
669
- * },
670
- * "qq": {
671
- * "hostVer": "x",
672
- * "uniVer": "x",
673
- * "unixVer": "x"
674
- * },
675
- * "kuaishou": {
676
- * "hostVer": "x",
677
- * "uniVer": "x",
678
- * "unixVer": "x"
679
- * },
680
- * "jd": {
681
- * "hostVer": "x",
682
- * "uniVer": "x",
683
- * "unixVer": "x"
684
- * },
685
- * "360": {
686
- * "hostVer": "x",
687
- * "uniVer": "x",
688
- * "unixVer": "x"
689
- * }
690
- * },
691
- * "quickapp": {
692
- * "uniVer": "x",
693
- * "unixVer": "x"
694
- * },
695
- * "web": {
696
- * "uniVer": "x",
697
- * "unixVer": "x"
698
- * }
699
- *}
700
- */
701
- onLastPageBackPress?(): void;
702
- /**
703
- *
704
- * 未处理的 Promise 拒绝事件监听函数
705
- *
706
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
707
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
708
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
709
- * @uniPlatform {
710
- * "app": {
711
- * "android": {
712
- * "osVer": "5.0",
713
- * "uniVer": "2.8.1",
714
- * "unixVer": "x"
715
- * },
716
- * "ios": {
717
- * "osVer": "10.0",
718
- * "uniVer": "2.8.1",
719
- * "unixVer": "x"
720
- * }
721
- * },
722
- * "mp": {
723
- * "weixin": {
724
- * "hostVer": "1.9.90",
725
- * "uniVer": "√",
726
- * "unixVer": "4.41"
727
- * },
728
- * "alipay": {
729
- * "hostVer": "x",
730
- * "uniVer": "x",
731
- * "unixVer": "x"
732
- * },
733
- * "baidu": {
734
- * "hostVer": "x",
735
- * "uniVer": "x",
736
- * "unixVer": "x"
737
- * },
738
- * "toutiao": {
739
- * "hostVer": "x",
740
- * "uniVer": "x",
741
- * "unixVer": "x"
742
- * },
743
- * "lark": {
744
- * "hostVer": "x",
745
- * "uniVer": "x",
746
- * "unixVer": "x"
747
- * },
748
- * "qq": {
749
- * "hostVer": "x",
750
- * "uniVer": "x",
751
- * "unixVer": "x"
752
- * },
753
- * "kuaishou": {
754
- * "hostVer": "x",
755
- * "uniVer": "x",
756
- * "unixVer": "x"
757
- * },
758
- * "jd": {
759
- * "hostVer": "x",
760
- * "uniVer": "x",
761
- * "unixVer": "x"
762
- * },
763
- * "360": {
764
- * "hostVer": "x",
765
- * "uniVer": "x",
766
- * "unixVer": "x"
767
- * }
768
- * },
769
- * "quickapp": {
770
- * "uniVer": "x",
771
- * "unixVer": "x"
772
- * },
773
- * "web": {
774
- * "uniVer": "2.8.1",
775
- * "unixVer": "4.0"
776
- * }
777
- *}
778
- */
779
- onUnhandledRejection?(): void;
780
- /**
781
- *
782
- * 监听系统主题变化
783
- *
784
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
785
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
786
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
787
- * @uniPlatform {
788
- * "app": {
789
- * "android": {
790
- * "osVer": "x",
791
- * "uniVer": "x",
792
- * "unixVer": "x"
793
- * },
794
- * "ios": {
795
- * "osVer": "x",
796
- * "uniVer": "x",
797
- * "unixVer": "x"
798
- * }
799
- * },
800
- * "mp": {
801
- * "weixin": {
802
- * "hostVer": "2.11.0",
803
- * "uniVer": "√",
804
- * "unixVer": "4.41"
805
- * },
806
- * "alipay": {
807
- * "hostVer": "x",
808
- * "uniVer": "x",
809
- * "unixVer": "x"
810
- * },
811
- * "baidu": {
812
- * "hostVer": "x",
813
- * "uniVer": "x",
814
- * "unixVer": "x"
815
- * },
816
- * "toutiao": {
817
- * "hostVer": "x",
818
- * "uniVer": "x",
819
- * "unixVer": "x"
820
- * },
821
- * "lark": {
822
- * "hostVer": "x",
823
- * "uniVer": "x",
824
- * "unixVer": "x"
825
- * },
826
- * "qq": {
827
- * "hostVer": "x",
828
- * "uniVer": "x",
829
- * "unixVer": "x"
830
- * },
831
- * "kuaishou": {
832
- * "hostVer": "x",
833
- * "uniVer": "x",
834
- * "unixVer": "x"
835
- * },
836
- * "jd": {
837
- * "hostVer": "x",
838
- * "uniVer": "x",
839
- * "unixVer": "x"
840
- * },
841
- * "360": {
842
- * "hostVer": "x",
843
- * "uniVer": "x",
844
- * "unixVer": "x"
845
- * }
846
- * },
847
- * "quickapp": {
848
- * "uniVer": "x",
849
- * "unixVer": "x"
850
- * },
851
- * "web": {
852
- * "uniVer": "x",
853
- * "unixVer": "x"
854
- * }
855
- *}
856
- */
857
- onThemeChange?(): void;
858
- }
859
-
860
- /**
861
- * Obtain the return type of a function type
862
- */
863
- type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
864
-
865
- type EditorComponentPublicInstanceX<D extends OptionsData, C extends ComputedOptions, M extends MethodOptions, I extends ComponentInjectOptions, II extends string, G extends GlobalData> = EditorComponentPublicInstance<D, C, M, I, II> & {
866
- globalData: G
867
- }
868
-
869
- type EditorVueAppComponentX<D extends OptionsData, C extends ComputedOptions, M extends MethodOptions, I extends ComponentInjectOptions, II extends string, G extends GlobalData> = EditorVueAppComponent<D, C, M> & {
870
- $: EditorComponentPublicInstanceX<D, C, M, I, II, G>
871
- }
872
-
873
- type EditorCreateVueAppComponentX<D extends OptionsData = OptionsData, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, I extends ComponentInjectOptions = {}, II extends string = string, G extends GlobalData = GlobalData> = Omit<EditorCreateVueAppComponent, 'create'> & {
874
- // 仅用于编辑器提示,TODO 重写 create 方法实现
875
- create: (instance: ComponentInternalInstance) => EditorVueAppComponentX<D, C, M, I, II, G>;
876
- }
877
-
878
- type AppInstance<T extends EditorCreateVueAppComponentX> = ReturnType<T['create']>['$']
879
-
880
- export interface UniApp {
881
- /**
882
- * App vue 实例对象
883
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
884
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
885
- * @uniPlatform {
886
- * "app": {
887
- * "android": {
888
- * "osVer": "5.0",
889
- * "uniVer": "x",
890
- * "unixVer": "4.31"
891
- * },
892
- * "ios": {
893
- * "osVer": "x",
894
- * "uniVer": "x",
895
- * "unixVer": "4.31"
896
- * },
897
- * "harmony": {
898
- * "osVer": "x",
899
- * "uniVer": "x",
900
- * "unixVer": "x"
901
- * }
902
- * },
903
- * "mp": {
904
- * "weixin": {
905
- * "hostVer": "√",
906
- * "uniVer": "x",
907
- * "unixVer": "x"
908
- * },
909
- * },
910
- * "web": {
911
- * "uniVer": "x",
912
- * "unixVer": "4.31"
913
- * }
914
- * }
915
- */
916
- vm?: ComponentPublicInstance | null,
917
- /**
918
- * App vue 实例对象
919
- * @deprecated 已废弃,仅为了向下兼容保留
920
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
921
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
922
- * @uniPlatform {
923
- * "app": {
924
- * "android": {
925
- * "osVer": "5.0",
926
- * "uniVer": "x",
927
- * "unixVer": "4.31"
928
- * },
929
- * "ios": {
930
- * "osVer": "x",
931
- * "uniVer": "x",
932
- * "unixVer": "4.31"
933
- * },
934
- * "harmony": {
935
- * "osVer": "x",
936
- * "uniVer": "x",
937
- * "unixVer": "x"
938
- * }
939
- * },
940
- * "mp": {
941
- * "weixin": {
942
- * "hostVer": "√",
943
- * "uniVer": "x",
944
- * "unixVer": "x"
945
- * },
946
- * },
947
- * "web": {
948
- * "uniVer": "x",
949
- * "unixVer": "4.31"
950
- * }
951
- * }
952
- */
953
- $vm?: ComponentPublicInstance | null,
954
- /**
955
- * 全局对象
956
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
957
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
958
- * @uniPlatform {
959
- * "app": {
960
- * "android": {
961
- * "osVer": "5.0",
962
- * "uniVer": "x",
963
- * "unixVer": "4.31"
964
- * },
965
- * "ios": {
966
- * "osVer": "x",
967
- * "uniVer": "x",
968
- * "unixVer": "4.31"
969
- * },
970
- * "harmony": {
971
- * "osVer": "x",
972
- * "uniVer": "x",
973
- * "unixVer": "x"
974
- * }
975
- * },
976
- * "mp": {
977
- * "weixin": {
978
- * "hostVer": "√",
979
- * "uniVer": "x",
980
- * "unixVer": "x"
981
- * },
982
- * },
983
- * "web": {
984
- * "uniVer": "x",
985
- * "unixVer": "4.31"
986
- * }
987
- * }
988
- */
989
- globalData: GlobalData,
990
- /**
991
- * 获取 Android 应用 Application 上下文
992
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
993
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
994
- * @uniPlatform {
995
- * "app": {
996
- * "android": {
997
- * "osVer": "5.0",
998
- * "uniVer": "x",
999
- * "unixVer": "4.31"
1000
- * },
1001
- * "ios": {
1002
- * "osVer": "x",
1003
- * "uniVer": "x",
1004
- * "unixVer": "x"
1005
- * },
1006
- * "harmony": {
1007
- * "osVer": "x",
1008
- * "uniVer": "x",
1009
- * "unixVer": "x"
1010
- * }
1011
- * },
1012
- * "mp": {
1013
- * "weixin": {
1014
- * "hostVer": "√",
1015
- * "uniVer": "x",
1016
- * "unixVer": "x"
1017
- * },
1018
- * },
1019
- * "web": {
1020
- * "uniVer": "x",
1021
- * "unixVer": "x"
1022
- * }
1023
- * }
1024
- */
1025
- getAndroidApplication(): Application
1026
- /**
1027
- * 获取 鸿蒙应用 Ability 实例
1028
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getharmonyability
1029
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getharmonyability
1030
- * @uniPlatform {
1031
- * "app": {
1032
- * "android": {
1033
- * "osVer": "x",
1034
- * "uniVer": "x",
1035
- * "unixVer": "x"
1036
- * },
1037
- * "ios": {
1038
- * "osVer": "x",
1039
- * "uniVer": "x",
1040
- * "unixVer": "x"
1041
- * },
1042
- * "harmony": {
1043
- * "osVer": "3.0",
1044
- * "uniVer": "x",
1045
- * "unixVer": "4.61"
1046
- * }
1047
- * },
1048
- * "mp": {
1049
- * "weixin": {
1050
- * "hostVer": "√",
1051
- * "uniVer": "x",
1052
- * "unixVer": "x"
1053
- * },
1054
- * },
1055
- * "web": {
1056
- * "uniVer": "x",
1057
- * "unixVer": "x"
1058
- * }
1059
- * }
1060
- */
1061
- getHarmonyAbility(): UIAbility
1062
- }
1063
-
1064
- type UniAppOrigin = UniApp
1065
-
1066
- declare global {
1067
- export interface AppCreateVueAppComponentDefault {}
1068
- /**
1069
- * `getApp()` 函数用于获取当前应用实例,可通过应用实例调用 App.uvue methods 中定义的方法, [详见](#appmethods)。
1070
- * @tutorial https://uniapp.dcloud.net.cn/tutorial/page.html#getapp
1071
- * @uniPlatform {
1072
- * "app": {
1073
- * "android": {
1074
- * "osVer": "5.0",
1075
- * "uniVer": "√",
1076
- * "unixVer": "√"
1077
- * },
1078
- * "ios": {
1079
- * "osVer": "12.0",
1080
- * "uniVer": "√",
1081
- * "unixVer": "√",
1082
- * "unixUtsPlugin": "4.31"
1083
- * },
1084
- * "harmony": {
1085
- * "osVer": "3.0",
1086
- * "uniVer": "4.23",
1087
- * "unixVer": "x"
1088
- * }
1089
- * },
1090
- * "mp": {
1091
- * "weixin": {
1092
- * "hostVer": "√",
1093
- * "uniVer": "√",
1094
- * "unixVer": "√"
1095
- * },
1096
- * },
1097
- * "web": {
1098
- * "uniVer": "√",
1099
- * "unixVer": "4.0"
1100
- * }
1101
- * }
1102
- */
1103
- function getApp<T extends EditorCreateVueAppComponentX = AppCreateVueAppComponentDefault>(): UniApp & {
1104
- globalData: AppInstance<T>['globalData']
1105
- vm: AppInstance<T>
1106
- $vm: AppInstance<T>
1107
- }
1108
-
1109
- interface OnLaunchOptions {
1110
- /**
1111
- * 应用启动页面路径
1112
- */
1113
- path: string;
1114
- /**
1115
- * 首次启动时的Scheme。返回值与App.onLaunch的回调参数一致
1116
- *
1117
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/getLaunchOptionsSync.html
1118
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
1119
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
1120
- * @uniPlatform {
1121
- * "app": {
1122
- * "android": {
1123
- * "osVer": "5.0",
1124
- * "uniVer": "√",
1125
- * "unixVer": "4.25"
1126
- * },
1127
- * "ios": {
1128
- * "osVer": "12.0",
1129
- * "uniVer": "√",
1130
- * "unixVer": "4.25"
1131
- * },
1132
- * "harmony": {
1133
- * "osVer": "x",
1134
- * "uniVer": "x",
1135
- * "unixVer": "x"
1136
- * }
1137
- * },
1138
- * "mp": {
1139
- * "weixin": {
1140
- * "hostVer": "√",
1141
- * "uniVer": "x",
1142
- * "unixVer": "x"
1143
- * },
1144
- * },
1145
- * "web": {
1146
- * "uniVer": "x",
1147
- * "unixVer": "x"
1148
- * }
1149
- * }
1150
- */
1151
- appScheme: string | null,
1152
- /**
1153
- * 首次启动时的appLink。返回值与App.onLaunch的回调参数一致
1154
- *
1155
- * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/getLaunchOptionsSync.html
1156
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
1157
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
1158
- * @uniPlatform {
1159
- * "app": {
1160
- * "android": {
1161
- * "osVer": "5.0",
1162
- * "uniVer": "x",
1163
- * "unixVer": "x"
1164
- * },
1165
- * "ios": {
1166
- * "osVer": "12.0",
1167
- * "uniVer": "x",
1168
- * "unixVer": "4.25"
1169
- * },
1170
- * "harmony": {
1171
- * "osVer": "x",
1172
- * "uniVer": "x",
1173
- * "unixVer": "x"
1174
- * }
1175
- * },
1176
- * "mp": {
1177
- * "weixin": {
1178
- * "hostVer": "√",
1179
- * "uniVer": "x",
1180
- * "unixVer": "x"
1181
- * },
1182
- * },
1183
- * "web": {
1184
- * "uniVer": "x",
1185
- * "unixVer": "x"
1186
- * }
1187
- * }
1188
- */
1189
- appLink: string | null
1190
- /**
1191
- * 打开小程序的query
1192
- */
1193
- // query: AnyObject;
1194
- /**
1195
- * 打开小程序的场景值
1196
- * - 1001: 发现栏小程序主入口,「最近使用」列表(基础库2.2.4版本起包含「我的小程序」列表)
1197
- * - 1005: 顶部搜索框的搜索结果页
1198
- * - 1006: 发现栏小程序主入口搜索框的搜索结果页
1199
- * - 1007: 单人聊天会话中的小程序消息卡片
1200
- * - 1008: 群聊会话中的小程序消息卡片
1201
- * - 1011: 扫描二维码
1202
- * - 1012: 长按图片识别二维码
1203
- * - 1013: 手机相册选取二维码
1204
- * - 1014: 小程序模板消息
1205
- * - 1017: 前往体验版的入口页
1206
- * - 1019: 微信钱包
1207
- * - 1020: 公众号 profile 页相关小程序列表
1208
- * - 1022: 聊天顶部置顶小程序入口
1209
- * - 1023: 安卓系统桌面图标
1210
- * - 1024: 小程序 profile 页
1211
- * - 1025: 扫描一维码
1212
- * - 1026: 附近小程序列表
1213
- * - 1027: 顶部搜索框搜索结果页「使用过的小程序」列表
1214
- * - 1028: 我的卡包
1215
- * - 1029: 卡券详情页
1216
- * - 1030: 自动化测试下打开小程序
1217
- * - 1031: 长按图片识别一维码
1218
- * - 1032: 手机相册选取一维码
1219
- * - 1034: 微信支付完成页
1220
- * - 1035: 公众号自定义菜单
1221
- * - 1036: App 分享消息卡片
1222
- * - 1037: 小程序打开小程序
1223
- * - 1038: 从另一个小程序返回
1224
- * - 1039: 摇电视
1225
- * - 1042: 添加好友搜索框的搜索结果页
1226
- * - 1043: 公众号模板消息
1227
- * - 1044: 带 shareTicket 的小程序消息卡片
1228
- * - 1045: 朋友圈广告
1229
- * - 1046: 朋友圈广告详情页
1230
- * - 1047: 扫描小程序码
1231
- * - 1048: 长按图片识别小程序码
1232
- * - 1049: 手机相册选取小程序码
1233
- * - 1052: 卡券的适用门店列表
1234
- * - 1053: 搜一搜的结果页
1235
- * - 1054: 顶部搜索框小程序快捷入口
1236
- * - 1056: 音乐播放器菜单
1237
- * - 1057: 钱包中的银行卡详情页
1238
- * - 1058: 公众号文章
1239
- * - 1059: 体验版小程序绑定邀请页
1240
- * - 1064: 微信连Wi-Fi状态栏
1241
- * - 1067: 公众号文章广告
1242
- * - 1068: 附近小程序列表广告
1243
- * - 1069: 移动应用
1244
- * - 1071: 钱包中的银行卡列表页
1245
- * - 1072: 二维码收款页面
1246
- * - 1073: 客服消息列表下发的小程序消息卡片
1247
- * - 1074: 公众号会话下发的小程序消息卡片
1248
- * - 1077: 摇周边
1249
- * - 1078: 连Wi-Fi成功页
1250
- * - 1079: 微信游戏中心
1251
- * - 1081: 客服消息下发的文字链
1252
- * - 1082: 公众号会话下发的文字链
1253
- * - 1084: 朋友圈广告原生页
1254
- * - 1089: 微信聊天主界面下拉,「最近使用」栏(基础库2.2.4版本起包含「我的小程序」栏)
1255
- * - 1090: 长按小程序右上角菜单唤出最近使用历史
1256
- * - 1091: 公众号文章商品卡片
1257
- * - 1092: 城市服务入口
1258
- * - 1095: 小程序广告组件
1259
- * - 1096: 聊天记录
1260
- * - 1097: 微信支付签约页
1261
- * - 1099: 页面内嵌插件
1262
- * - 1102: 公众号 profile 页服务预览
1263
- * - 1103: 发现栏小程序主入口,「我的小程序」列表(基础库2.2.4版本起废弃)
1264
- * - 1104: 微信聊天主界面下拉,「我的小程序」栏(基础库2.2.4版本起废弃)
1265
- */
1266
- // scene: number;
1267
- /**
1268
- * 打开小程序的场景值
1269
- */
1270
- // shareTicket: string;
1271
- /**
1272
- * 当场景为由从另一个小程序或公众号或App打开时,返回此字段
1273
- */
1274
- // referrerInfo?: ReferrerInfo;
1275
- }
1276
-
1277
- interface OnShowOptions {
1278
- /**
1279
- * 应用启动页面路径
1280
- */
1281
- path: string
1282
- /**
1283
- * 本次启动时的Scheme。返回值与App.onShow的回调参数一致
1284
- *
1285
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
1286
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
1287
- * @uniPlatform {
1288
- * "app": {
1289
- * "android": {
1290
- * "osVer": "5.0",
1291
- * "uniVer": "x",
1292
- * "unixVer": "4.25"
1293
- * },
1294
- * "ios": {
1295
- * "osVer": "12.0",
1296
- * "uniVer": "x",
1297
- * "unixVer": "4.25"
1298
- * },
1299
- * "harmony": {
1300
- * "osVer": "x",
1301
- * "uniVer": "x",
1302
- * "unixVer": "x"
1303
- * }
1304
- * },
1305
- * "mp": {
1306
- * "weixin": {
1307
- * "hostVer": "√",
1308
- * "uniVer": "x",
1309
- * "unixVer": "x"
1310
- * },
1311
- * },
1312
- * "web": {
1313
- * "uniVer": "x",
1314
- * "unixVer": "x"
1315
- * }
1316
- * }
1317
- */
1318
- appScheme: string | null
1319
- /**
1320
- * 本次启动时的appLink。返回值与App.onShow的回调参数一致
1321
- *
1322
- * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
1323
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
1324
- * @uniPlatform {
1325
- * "app": {
1326
- * "android": {
1327
- * "osVer": "5.0",
1328
- * "uniVer": "x",
1329
- * "unixVer": "x"
1330
- * },
1331
- * "ios": {
1332
- * "osVer": "12.0",
1333
- * "uniVer": "x",
1334
- * "unixVer": "4.25"
1335
- * },
1336
- * "harmony": {
1337
- * "osVer": "x",
1338
- * "uniVer": "x",
1339
- * "unixVer": "x"
1340
- * }
1341
- * },
1342
- * "mp": {
1343
- * "weixin": {
1344
- * "hostVer": "√",
1345
- * "uniVer": "x",
1346
- * "unixVer": "x"
1347
- * },
1348
- * },
1349
- * "web": {
1350
- * "uniVer": "x",
1351
- * "unixVer": "x"
1352
- * }
1353
- * }
1354
- */
1355
- appLink: string | null
1356
- }
1357
-
1358
- interface OnPageNotFoundOption {
1359
- /**
1360
- * 不存在页面的路径
1361
- */
1362
- path: string;
1363
- /**
1364
- * 打开不存在页面的 query
1365
- */
1366
- query: AnyObject;
1367
- /**
1368
- * 是否本次启动的首个页面(例如从分享等入口进来,首个页面是开发者配置的分享页面)
1369
- */
1370
- isEntryPage: boolean;
1371
- }
1372
-
1373
- type UniApp = UniAppOrigin
1374
- }
1375
-
1376
- type DefineAppX<D extends OptionsData, C extends ComputedOptions, M extends MethodOptions, I extends ComponentInjectOptions, II extends string, G extends GlobalData> = DefineApp<D, C, M, I, II> & UniAppOptions<G>
1377
-
1378
- declare module '@vue/runtime-core' {
1379
- interface AppCustomOptions extends UniAppOptions {
1380
-
1381
- }
1382
- export function defineApp<D extends OptionsData = OptionsData, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, I extends ComponentInjectOptions = {}, II extends string = string, G extends GlobalData = GlobalData>(options: DefineAppX<D, C, M, I, II, G>): EditorCreateVueAppComponentX<D, C, M, I, II, G>
1383
- }
1
+ /// <reference path='./common.d.ts' />
2
+ import UIAbility from '@ohos.app.ability.UIAbility';
3
+ import { ComputedOptions, EditorCreateVueAppComponent, MethodOptions, OptionsData, ComponentInternalInstance, EditorVueAppComponent, EditorComponentPublicInstance, DefineApp, ComponentInjectOptions } from '@vue/runtime-core'
4
+
5
+ /**
6
+ * Construct a type with a set of properties K of type T
7
+ */
8
+ type Record<K extends keyof any, T> = {
9
+ [P in K]: T;
10
+ };
11
+ /**
12
+ * From T, pick a set of properties whose keys are in the union K
13
+ */
14
+ type Pick<T, K extends keyof T> = {
15
+ [P in K]: T[P];
16
+ };
17
+ /**
18
+ * Exclude from T those types that are assignable to U
19
+ */
20
+ type Exclude<T, U> = T extends U ? never : T;
21
+ /**
22
+ * Construct a type with the properties of T except for those in type K.
23
+ */
24
+ type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
25
+
26
+ interface ReferrerInfo {
27
+ /**
28
+ * 来源小程序或公众号或App的 appId
29
+ *
30
+ * 以下场景支持返回 referrerInfo.appId:
31
+ * - 1020(公众号 profile 页相关小程序列表): appId
32
+ * - 1035(公众号自定义菜单):来源公众号 appId
33
+ * - 1036(App 分享消息卡片):来源应用 appId
34
+ * - 1037(小程序打开小程序):来源小程序 appId
35
+ * - 1038(从另一个小程序返回):来源小程序 appId
36
+ * - 1043(公众号模板消息):来源公众号 appId
37
+ */
38
+ appId: string;
39
+ /**
40
+ * 来源小程序传过来的数据,scene=1037或1038时支持
41
+ */
42
+ extraData?: any;
43
+ }
44
+
45
+ type GlobalData = Record<string, any | null>
46
+ interface UniAppOptions<G extends GlobalData = GlobalData> {
47
+ /**
48
+ * 全局对象
49
+ *
50
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
51
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
52
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
53
+ *
54
+ * @uniPlatform {
55
+ * "app": {
56
+ * "android": {
57
+ * "osVer": "5.0",
58
+ * "uniVer": "√",
59
+ * "unixVer": "3.9"
60
+ * },
61
+ * "ios": {
62
+ * "osVer": "10.0",
63
+ * "uniVer": "√",
64
+ * "unixVer": "4.0"
65
+ * }
66
+ * },
67
+ * "mp": {
68
+ * "weixin": {
69
+ * "hostVer": "√",
70
+ * "uniVer": "√",
71
+ * "unixVer": "4.41"
72
+ * },
73
+ * "alipay": {
74
+ * "hostVer": "√",
75
+ * "uniVer": "√",
76
+ * "unixVer": "x"
77
+ * },
78
+ * "baidu": {
79
+ * "hostVer": "√",
80
+ * "uniVer": "√",
81
+ * "unixVer": "x"
82
+ * },
83
+ * "toutiao": {
84
+ * "hostVer": "√",
85
+ * "uniVer": "√",
86
+ * "unixVer": "x"
87
+ * },
88
+ * "lark": {
89
+ * "hostVer": "√",
90
+ * "uniVer": "√",
91
+ * "unixVer": "x"
92
+ * },
93
+ * "qq": {
94
+ * "hostVer": "√",
95
+ * "uniVer": "√",
96
+ * "unixVer": "x"
97
+ * },
98
+ * "kuaishou": {
99
+ * "hostVer": "√",
100
+ * "uniVer": "√",
101
+ * "unixVer": "x"
102
+ * },
103
+ * "jd": {
104
+ * "hostVer": "√",
105
+ * "uniVer": "√",
106
+ * "unixVer": "x"
107
+ * }
108
+ * },
109
+ * "web": {
110
+ * "uniVer": "√",
111
+ * "unixVer": "4.0"
112
+ * }
113
+ *}
114
+ */
115
+ globalData?: G;
116
+ /**
117
+ * 生命周期回调,监听应用初始化,应用初始化完成时触发,全局只触发一次。
118
+ *
119
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
120
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
121
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
122
+ *
123
+ * @uniPlatform {
124
+ * "app": {
125
+ * "android": {
126
+ * "osVer": "5.0",
127
+ * "uniVer": "√",
128
+ * "unixVer": "3.9"
129
+ * },
130
+ * "ios": {
131
+ * "osVer": "10.0",
132
+ * "uniVer": "√",
133
+ * "unixVer": "4.0"
134
+ * }
135
+ * },
136
+ * "mp": {
137
+ * "weixin": {
138
+ * "hostVer": "√",
139
+ * "uniVer": "√",
140
+ * "unixVer": "4.41"
141
+ * },
142
+ * "alipay": {
143
+ * "hostVer": "√",
144
+ * "uniVer": "√",
145
+ * "unixVer": "x"
146
+ * },
147
+ * "baidu": {
148
+ * "hostVer": "√",
149
+ * "uniVer": "√",
150
+ * "unixVer": "x"
151
+ * },
152
+ * "toutiao": {
153
+ * "hostVer": "√",
154
+ * "uniVer": "√",
155
+ * "unixVer": "x"
156
+ * },
157
+ * "lark": {
158
+ * "hostVer": "√",
159
+ * "uniVer": "√",
160
+ * "unixVer": "x"
161
+ * },
162
+ * "qq": {
163
+ * "hostVer": "√",
164
+ * "uniVer": "√",
165
+ * "unixVer": "x"
166
+ * },
167
+ * "kuaishou": {
168
+ * "hostVer": "√",
169
+ * "uniVer": "√",
170
+ * "unixVer": "x"
171
+ * },
172
+ * "jd": {
173
+ * "hostVer": "√",
174
+ * "uniVer": "√",
175
+ * "unixVer": "x"
176
+ * }
177
+ * },
178
+ * "web": {
179
+ * "uniVer": "√",
180
+ * "unixVer": "4.0"
181
+ * }
182
+ *}
183
+ */
184
+ onLaunch?(options: OnLaunchOptions): void;
185
+ /**
186
+ * 生命周期回调 监听应用显示
187
+ *
188
+ * 应用启动,或从后台进入前台显示时触发
189
+ *
190
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
191
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
192
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
193
+ * @uniPlatform {
194
+ * "app": {
195
+ * "android": {
196
+ * "osVer": "5.0",
197
+ * "uniVer": "√",
198
+ * "unixVer": "3.9"
199
+ * },
200
+ * "ios": {
201
+ * "osVer": "10.0",
202
+ * "uniVer": "√",
203
+ * "unixVer": "4.0"
204
+ * }
205
+ * },
206
+ * "mp": {
207
+ * "weixin": {
208
+ * "hostVer": "√",
209
+ * "uniVer": "√",
210
+ * "unixVer": "4.41"
211
+ * },
212
+ * "alipay": {
213
+ * "hostVer": "√",
214
+ * "uniVer": "√",
215
+ * "unixVer": "x"
216
+ * },
217
+ * "baidu": {
218
+ * "hostVer": "√",
219
+ * "uniVer": "√",
220
+ * "unixVer": "x"
221
+ * },
222
+ * "toutiao": {
223
+ * "hostVer": "√",
224
+ * "uniVer": "√",
225
+ * "unixVer": "x"
226
+ * },
227
+ * "lark": {
228
+ * "hostVer": "√",
229
+ * "uniVer": "√",
230
+ * "unixVer": "x"
231
+ * },
232
+ * "qq": {
233
+ * "hostVer": "√",
234
+ * "uniVer": "√",
235
+ * "unixVer": "x"
236
+ * },
237
+ * "kuaishou": {
238
+ * "hostVer": "√",
239
+ * "uniVer": "√",
240
+ * "unixVer": "x"
241
+ * },
242
+ * "jd": {
243
+ * "hostVer": "√",
244
+ * "uniVer": "√",
245
+ * "unixVer": "x"
246
+ * }
247
+ * },
248
+ * "web": {
249
+ * "uniVer": "√",
250
+ * "unixVer": "4.0"
251
+ * }
252
+ *}
253
+ */
254
+ onShow?(options: OnShowOptions): void;
255
+ /**
256
+ * 生命周期回调 监听应用隐藏
257
+ *
258
+ * 应用从前台进入后台时触发
259
+ *
260
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
261
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
262
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
263
+ * @uniPlatform {
264
+ * "app": {
265
+ * "android": {
266
+ * "osVer": "5.0",
267
+ * "uniVer": "√",
268
+ * "unixVer": "3.9"
269
+ * },
270
+ * "ios": {
271
+ * "osVer": "10.0",
272
+ * "uniVer": "√",
273
+ * "unixVer": "4.0"
274
+ * }
275
+ * },
276
+ * "mp": {
277
+ * "weixin": {
278
+ * "hostVer": "√",
279
+ * "uniVer": "√",
280
+ * "unixVer": "4.41"
281
+ * },
282
+ * "alipay": {
283
+ * "hostVer": "√",
284
+ * "uniVer": "√",
285
+ * "unixVer": "x"
286
+ * },
287
+ * "baidu": {
288
+ * "hostVer": "√",
289
+ * "uniVer": "√",
290
+ * "unixVer": "x"
291
+ * },
292
+ * "toutiao": {
293
+ * "hostVer": "√",
294
+ * "uniVer": "√",
295
+ * "unixVer": "x"
296
+ * },
297
+ * "lark": {
298
+ * "hostVer": "√",
299
+ * "uniVer": "√",
300
+ * "unixVer": "x"
301
+ * },
302
+ * "qq": {
303
+ * "hostVer": "√",
304
+ * "uniVer": "√",
305
+ * "unixVer": "x"
306
+ * },
307
+ * "kuaishou": {
308
+ * "hostVer": "√",
309
+ * "uniVer": "√",
310
+ * "unixVer": "x"
311
+ * },
312
+ * "jd": {
313
+ * "hostVer": "√",
314
+ * "uniVer": "√",
315
+ * "unixVer": "x"
316
+ * }
317
+ * },
318
+ * "web": {
319
+ * "uniVer": "√",
320
+ * "unixVer": "4.0"
321
+ * }
322
+ *}
323
+ */
324
+ onHide?(): void;
325
+ /**
326
+ * 错误监听函数
327
+ * 应用发生脚本错误或 API 调用报错时触发
328
+ * 4.33+ App 端支持监听异步逻辑中的错误
329
+ * @param error 错误信息
330
+ *
331
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
332
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
333
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
334
+ * @uniPlatform {
335
+ * "app": {
336
+ * "android": {
337
+ * "osVer": "5.0",
338
+ * "uniVer": "√",
339
+ * "unixVer": "4.21"
340
+ * },
341
+ * "ios": {
342
+ * "osVer": "10.0",
343
+ * "uniVer": "√",
344
+ * "unixVer": "4.21"
345
+ * }
346
+ * },
347
+ * "mp": {
348
+ * "weixin": {
349
+ * "hostVer": "√",
350
+ * "uniVer": "√",
351
+ * "unixVer": "4.41"
352
+ * },
353
+ * "alipay": {
354
+ * "hostVer": "√",
355
+ * "uniVer": "√",
356
+ * "unixVer": "x"
357
+ * },
358
+ * "baidu": {
359
+ * "hostVer": "√",
360
+ * "uniVer": "√",
361
+ * "unixVer": "x"
362
+ * },
363
+ * "toutiao": {
364
+ * "hostVer": "√",
365
+ * "uniVer": "√",
366
+ * "unixVer": "x"
367
+ * },
368
+ * "lark": {
369
+ * "hostVer": "√",
370
+ * "uniVer": "√",
371
+ * "unixVer": "x"
372
+ * },
373
+ * "qq": {
374
+ * "hostVer": "√",
375
+ * "uniVer": "√",
376
+ * "unixVer": "x"
377
+ * },
378
+ * "kuaishou": {
379
+ * "hostVer": "√",
380
+ * "uniVer": "√",
381
+ * "unixVer": "x"
382
+ * },
383
+ * "jd": {
384
+ * "hostVer": "√",
385
+ * "uniVer": "√",
386
+ * "unixVer": "x"
387
+ * }
388
+ * },
389
+ * "web": {
390
+ * "uniVer": "√",
391
+ * "unixVer": "4.0"
392
+ * }
393
+ *}
394
+ */
395
+ onError?(error: any): void;
396
+ /**
397
+ * 页面不存在监听函数
398
+ *
399
+ * 应用要打开的页面不存在时触发,会带上页面信息回调该函数
400
+ *
401
+ * **注意:**
402
+ * 1. 如果开发者没有添加 `onPageNotFound` 监听,当跳转页面不存在时,将推入微信客户端原生的页面不存在提示页面。
403
+ * 2. 如果 `onPageNotFound` 回调中又重定向到另一个不存在的页面,将推入微信客户端原生的页面不存在提示页面,并且不再回调 `onPageNotFound`。
404
+ *
405
+ * @tutorial https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
406
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
407
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
408
+ * @uniPlatform {
409
+ * "app": {
410
+ * "android": {
411
+ * "osVer": "5.0",
412
+ * "uniVer": "√",
413
+ * "unixVer": "x"
414
+ * },
415
+ * "ios": {
416
+ * "osVer": "10.0",
417
+ * "uniVer": "√",
418
+ * "unixVer": "x"
419
+ * }
420
+ * },
421
+ * "mp": {
422
+ * "weixin": {
423
+ * "hostVer": "√",
424
+ * "uniVer": "√",
425
+ * "unixVer": "4.41"
426
+ * },
427
+ * "alipay": {
428
+ * "hostVer": "√",
429
+ * "uniVer": "√",
430
+ * "unixVer": "x"
431
+ * },
432
+ * "baidu": {
433
+ * "hostVer": "√",
434
+ * "uniVer": "√",
435
+ * "unixVer": "x"
436
+ * },
437
+ * "toutiao": {
438
+ * "hostVer": "√",
439
+ * "uniVer": "√",
440
+ * "unixVer": "x"
441
+ * },
442
+ * "lark": {
443
+ * "hostVer": "√",
444
+ * "uniVer": "√",
445
+ * "unixVer": "x"
446
+ * },
447
+ * "qq": {
448
+ * "hostVer": "√",
449
+ * "uniVer": "√",
450
+ * "unixVer": "x"
451
+ * },
452
+ * "kuaishou": {
453
+ * "hostVer": "√",
454
+ * "uniVer": "√",
455
+ * "unixVer": "x"
456
+ * },
457
+ * "jd": {
458
+ * "hostVer": "√",
459
+ * "uniVer": "√",
460
+ * "unixVer": "x"
461
+ * }
462
+ * },
463
+ * "web": {
464
+ * "uniVer": "√",
465
+ * "unixVer": "4.0"
466
+ * }
467
+ *}
468
+ */
469
+ onPageNotFound?(options: OnPageNotFoundOption): void;
470
+ /**
471
+ * 监听 nvue 页面消息
472
+ *
473
+ * nvue 页面使用 `uni.postMessage` 发送消息时触发
474
+ *
475
+ * @tutorial https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
476
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
477
+ * @internal
478
+ * @uniPlatform {
479
+ * "app": {
480
+ * "android": {
481
+ * "osVer": "5.0",
482
+ * "uniVer": "√",
483
+ * "unixVer": "x"
484
+ * },
485
+ * "ios": {
486
+ * "osVer": "10.0",
487
+ * "uniVer": "√",
488
+ * "unixVer": "x"
489
+ * }
490
+ * },
491
+ * "mp": {
492
+ * "weixin": {
493
+ * "hostVer": "√",
494
+ * "uniVer": "√",
495
+ * "unixVer": "x"
496
+ * },
497
+ * "alipay": {
498
+ * "hostVer": "√",
499
+ * "uniVer": "√",
500
+ * "unixVer": "x"
501
+ * },
502
+ * "baidu": {
503
+ * "hostVer": "√",
504
+ * "uniVer": "√",
505
+ * "unixVer": "x"
506
+ * },
507
+ * "toutiao": {
508
+ * "hostVer": "√",
509
+ * "uniVer": "√",
510
+ * "unixVer": "x"
511
+ * },
512
+ * "lark": {
513
+ * "hostVer": "√",
514
+ * "uniVer": "√",
515
+ * "unixVer": "x"
516
+ * },
517
+ * "qq": {
518
+ * "hostVer": "√",
519
+ * "uniVer": "√",
520
+ * "unixVer": "x"
521
+ * },
522
+ * "kuaishou": {
523
+ * "hostVer": "√",
524
+ * "uniVer": "√",
525
+ * "unixVer": "x"
526
+ * },
527
+ * "jd": {
528
+ * "hostVer": "√",
529
+ * "uniVer": "√",
530
+ * "unixVer": "x"
531
+ * },
532
+ * "360": {
533
+ * "hostVer": "√",
534
+ * "uniVer": "√",
535
+ * "unixVer": "x"
536
+ * }
537
+ * },
538
+ * "quickapp": {
539
+ * "uniVer": "√",
540
+ * "unixVer": "x"
541
+ * },
542
+ * "web": {
543
+ * "uniVer": "√",
544
+ * "unixVer": "4.0"
545
+ * }
546
+ *}
547
+ */
548
+ onUniNViewMessage?(options: AnyObject): void;
549
+ /**
550
+ * 监听应用退出。app-uvue-android 3.9+
551
+ *
552
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
553
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
554
+ * @uniPlatform {
555
+ * "app": {
556
+ * "android": {
557
+ * "osVer": "5.0",
558
+ * "uniVer": "x",
559
+ * "unixVer": "3.9"
560
+ * },
561
+ * "ios": {
562
+ * "osVer": "x",
563
+ * "uniVer": "x",
564
+ * "unixVer": "x"
565
+ * }
566
+ * },
567
+ * "mp": {
568
+ * "weixin": {
569
+ * "hostVer": "x",
570
+ * "uniVer": "x",
571
+ * "unixVer": "x"
572
+ * },
573
+ * "alipay": {
574
+ * "hostVer": "x",
575
+ * "uniVer": "x",
576
+ * "unixVer": "x"
577
+ * },
578
+ * "baidu": {
579
+ * "hostVer": "x",
580
+ * "uniVer": "x",
581
+ * "unixVer": "x"
582
+ * },
583
+ * "toutiao": {
584
+ * "hostVer": "x",
585
+ * "uniVer": "x",
586
+ * "unixVer": "x"
587
+ * },
588
+ * "lark": {
589
+ * "hostVer": "x",
590
+ * "uniVer": "x",
591
+ * "unixVer": "x"
592
+ * },
593
+ * "qq": {
594
+ * "hostVer": "x",
595
+ * "uniVer": "x",
596
+ * "unixVer": "x"
597
+ * },
598
+ * "kuaishou": {
599
+ * "hostVer": "x",
600
+ * "uniVer": "x",
601
+ * "unixVer": "x"
602
+ * },
603
+ * "jd": {
604
+ * "hostVer": "x",
605
+ * "uniVer": "x",
606
+ * "unixVer": "x"
607
+ * },
608
+ * "360": {
609
+ * "hostVer": "x",
610
+ * "uniVer": "x",
611
+ * "unixVer": "x"
612
+ * }
613
+ * },
614
+ * "quickapp": {
615
+ * "uniVer": "x",
616
+ * "unixVer": "x"
617
+ * },
618
+ * "web": {
619
+ * "uniVer": "x",
620
+ * "unixVer": "x"
621
+ * }
622
+ *}
623
+ */
624
+ onExit?(): void;
625
+ /**
626
+ * 最后一个页面按下Android back键,常用于自定义退出。app-uvue-android 3.9+
627
+ *
628
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
629
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
630
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
631
+ * @uniPlatform {
632
+ * "app": {
633
+ * "android": {
634
+ * "osVer": "5.0",
635
+ * "uniVer": "x",
636
+ * "unixVer": "3.9"
637
+ * },
638
+ * "ios": {
639
+ * "osVer": "x",
640
+ * "uniVer": "x",
641
+ * "unixVer": "x"
642
+ * }
643
+ * },
644
+ * "mp": {
645
+ * "weixin": {
646
+ * "hostVer": "x",
647
+ * "uniVer": "x",
648
+ * "unixVer": "x"
649
+ * },
650
+ * "alipay": {
651
+ * "hostVer": "x",
652
+ * "uniVer": "x",
653
+ * "unixVer": "x"
654
+ * },
655
+ * "baidu": {
656
+ * "hostVer": "x",
657
+ * "uniVer": "x",
658
+ * "unixVer": "x"
659
+ * },
660
+ * "toutiao": {
661
+ * "hostVer": "x",
662
+ * "uniVer": "x",
663
+ * "unixVer": "x"
664
+ * },
665
+ * "lark": {
666
+ * "hostVer": "x",
667
+ * "uniVer": "x",
668
+ * "unixVer": "x"
669
+ * },
670
+ * "qq": {
671
+ * "hostVer": "x",
672
+ * "uniVer": "x",
673
+ * "unixVer": "x"
674
+ * },
675
+ * "kuaishou": {
676
+ * "hostVer": "x",
677
+ * "uniVer": "x",
678
+ * "unixVer": "x"
679
+ * },
680
+ * "jd": {
681
+ * "hostVer": "x",
682
+ * "uniVer": "x",
683
+ * "unixVer": "x"
684
+ * },
685
+ * "360": {
686
+ * "hostVer": "x",
687
+ * "uniVer": "x",
688
+ * "unixVer": "x"
689
+ * }
690
+ * },
691
+ * "quickapp": {
692
+ * "uniVer": "x",
693
+ * "unixVer": "x"
694
+ * },
695
+ * "web": {
696
+ * "uniVer": "x",
697
+ * "unixVer": "x"
698
+ * }
699
+ *}
700
+ */
701
+ onLastPageBackPress?(): void;
702
+ /**
703
+ *
704
+ * 未处理的 Promise 拒绝事件监听函数
705
+ *
706
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
707
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
708
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
709
+ * @uniPlatform {
710
+ * "app": {
711
+ * "android": {
712
+ * "osVer": "5.0",
713
+ * "uniVer": "2.8.1",
714
+ * "unixVer": "x"
715
+ * },
716
+ * "ios": {
717
+ * "osVer": "10.0",
718
+ * "uniVer": "2.8.1",
719
+ * "unixVer": "x"
720
+ * }
721
+ * },
722
+ * "mp": {
723
+ * "weixin": {
724
+ * "hostVer": "1.9.90",
725
+ * "uniVer": "√",
726
+ * "unixVer": "4.41"
727
+ * },
728
+ * "alipay": {
729
+ * "hostVer": "x",
730
+ * "uniVer": "x",
731
+ * "unixVer": "x"
732
+ * },
733
+ * "baidu": {
734
+ * "hostVer": "x",
735
+ * "uniVer": "x",
736
+ * "unixVer": "x"
737
+ * },
738
+ * "toutiao": {
739
+ * "hostVer": "x",
740
+ * "uniVer": "x",
741
+ * "unixVer": "x"
742
+ * },
743
+ * "lark": {
744
+ * "hostVer": "x",
745
+ * "uniVer": "x",
746
+ * "unixVer": "x"
747
+ * },
748
+ * "qq": {
749
+ * "hostVer": "x",
750
+ * "uniVer": "x",
751
+ * "unixVer": "x"
752
+ * },
753
+ * "kuaishou": {
754
+ * "hostVer": "x",
755
+ * "uniVer": "x",
756
+ * "unixVer": "x"
757
+ * },
758
+ * "jd": {
759
+ * "hostVer": "x",
760
+ * "uniVer": "x",
761
+ * "unixVer": "x"
762
+ * },
763
+ * "360": {
764
+ * "hostVer": "x",
765
+ * "uniVer": "x",
766
+ * "unixVer": "x"
767
+ * }
768
+ * },
769
+ * "quickapp": {
770
+ * "uniVer": "x",
771
+ * "unixVer": "x"
772
+ * },
773
+ * "web": {
774
+ * "uniVer": "2.8.1",
775
+ * "unixVer": "4.0"
776
+ * }
777
+ *}
778
+ */
779
+ onUnhandledRejection?(): void;
780
+ /**
781
+ *
782
+ * 监听系统主题变化
783
+ *
784
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
785
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
786
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
787
+ * @uniPlatform {
788
+ * "app": {
789
+ * "android": {
790
+ * "osVer": "x",
791
+ * "uniVer": "x",
792
+ * "unixVer": "x"
793
+ * },
794
+ * "ios": {
795
+ * "osVer": "x",
796
+ * "uniVer": "x",
797
+ * "unixVer": "x"
798
+ * }
799
+ * },
800
+ * "mp": {
801
+ * "weixin": {
802
+ * "hostVer": "2.11.0",
803
+ * "uniVer": "√",
804
+ * "unixVer": "4.41"
805
+ * },
806
+ * "alipay": {
807
+ * "hostVer": "x",
808
+ * "uniVer": "x",
809
+ * "unixVer": "x"
810
+ * },
811
+ * "baidu": {
812
+ * "hostVer": "x",
813
+ * "uniVer": "x",
814
+ * "unixVer": "x"
815
+ * },
816
+ * "toutiao": {
817
+ * "hostVer": "x",
818
+ * "uniVer": "x",
819
+ * "unixVer": "x"
820
+ * },
821
+ * "lark": {
822
+ * "hostVer": "x",
823
+ * "uniVer": "x",
824
+ * "unixVer": "x"
825
+ * },
826
+ * "qq": {
827
+ * "hostVer": "x",
828
+ * "uniVer": "x",
829
+ * "unixVer": "x"
830
+ * },
831
+ * "kuaishou": {
832
+ * "hostVer": "x",
833
+ * "uniVer": "x",
834
+ * "unixVer": "x"
835
+ * },
836
+ * "jd": {
837
+ * "hostVer": "x",
838
+ * "uniVer": "x",
839
+ * "unixVer": "x"
840
+ * },
841
+ * "360": {
842
+ * "hostVer": "x",
843
+ * "uniVer": "x",
844
+ * "unixVer": "x"
845
+ * }
846
+ * },
847
+ * "quickapp": {
848
+ * "uniVer": "x",
849
+ * "unixVer": "x"
850
+ * },
851
+ * "web": {
852
+ * "uniVer": "x",
853
+ * "unixVer": "x"
854
+ * }
855
+ *}
856
+ */
857
+ onThemeChange?(): void;
858
+ }
859
+
860
+ /**
861
+ * Obtain the return type of a function type
862
+ */
863
+ type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
864
+
865
+ type EditorComponentPublicInstanceX<D extends OptionsData, C extends ComputedOptions, M extends MethodOptions, I extends ComponentInjectOptions, II extends string, G extends GlobalData> = EditorComponentPublicInstance<D, C, M, I, II> & {
866
+ globalData: G
867
+ }
868
+
869
+ type EditorVueAppComponentX<D extends OptionsData, C extends ComputedOptions, M extends MethodOptions, I extends ComponentInjectOptions, II extends string, G extends GlobalData> = EditorVueAppComponent<D, C, M> & {
870
+ $: EditorComponentPublicInstanceX<D, C, M, I, II, G>
871
+ }
872
+
873
+ type EditorCreateVueAppComponentX<D extends OptionsData = OptionsData, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, I extends ComponentInjectOptions = {}, II extends string = string, G extends GlobalData = GlobalData> = Omit<EditorCreateVueAppComponent, 'create'> & {
874
+ // 仅用于编辑器提示,TODO 重写 create 方法实现
875
+ create: (instance: ComponentInternalInstance) => EditorVueAppComponentX<D, C, M, I, II, G>;
876
+ }
877
+
878
+ type AppInstance<T extends EditorCreateVueAppComponentX> = ReturnType<T['create']>['$']
879
+
880
+ export interface UniApp {
881
+ /**
882
+ * App vue 实例对象
883
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
884
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
885
+ * @uniPlatform {
886
+ * "app": {
887
+ * "android": {
888
+ * "osVer": "5.0",
889
+ * "uniVer": "x",
890
+ * "unixVer": "4.31"
891
+ * },
892
+ * "ios": {
893
+ * "osVer": "x",
894
+ * "uniVer": "x",
895
+ * "unixVer": "4.31"
896
+ * },
897
+ * "harmony": {
898
+ * "osVer": "x",
899
+ * "uniVer": "x",
900
+ * "unixVer": "x"
901
+ * }
902
+ * },
903
+ * "mp": {
904
+ * "weixin": {
905
+ * "hostVer": "√",
906
+ * "uniVer": "x",
907
+ * "unixVer": "x"
908
+ * },
909
+ * },
910
+ * "web": {
911
+ * "uniVer": "x",
912
+ * "unixVer": "4.31"
913
+ * }
914
+ * }
915
+ */
916
+ vm?: ComponentPublicInstance | null,
917
+ /**
918
+ * App vue 实例对象
919
+ * @deprecated 已废弃,仅为了向下兼容保留
920
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
921
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getapp
922
+ * @uniPlatform {
923
+ * "app": {
924
+ * "android": {
925
+ * "osVer": "5.0",
926
+ * "uniVer": "x",
927
+ * "unixVer": "4.31"
928
+ * },
929
+ * "ios": {
930
+ * "osVer": "x",
931
+ * "uniVer": "x",
932
+ * "unixVer": "4.31"
933
+ * },
934
+ * "harmony": {
935
+ * "osVer": "x",
936
+ * "uniVer": "x",
937
+ * "unixVer": "x"
938
+ * }
939
+ * },
940
+ * "mp": {
941
+ * "weixin": {
942
+ * "hostVer": "√",
943
+ * "uniVer": "x",
944
+ * "unixVer": "x"
945
+ * },
946
+ * },
947
+ * "web": {
948
+ * "uniVer": "x",
949
+ * "unixVer": "4.31"
950
+ * }
951
+ * }
952
+ */
953
+ $vm?: ComponentPublicInstance | null,
954
+ /**
955
+ * 全局对象
956
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
957
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#globaldata
958
+ * @uniPlatform {
959
+ * "app": {
960
+ * "android": {
961
+ * "osVer": "5.0",
962
+ * "uniVer": "x",
963
+ * "unixVer": "4.31"
964
+ * },
965
+ * "ios": {
966
+ * "osVer": "x",
967
+ * "uniVer": "x",
968
+ * "unixVer": "4.31"
969
+ * },
970
+ * "harmony": {
971
+ * "osVer": "x",
972
+ * "uniVer": "x",
973
+ * "unixVer": "x"
974
+ * }
975
+ * },
976
+ * "mp": {
977
+ * "weixin": {
978
+ * "hostVer": "√",
979
+ * "uniVer": "x",
980
+ * "unixVer": "x"
981
+ * },
982
+ * },
983
+ * "web": {
984
+ * "uniVer": "x",
985
+ * "unixVer": "4.31"
986
+ * }
987
+ * }
988
+ */
989
+ globalData: GlobalData,
990
+ /**
991
+ * 获取 Android 应用 Application 上下文
992
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
993
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getandroidapplication
994
+ * @uniPlatform {
995
+ * "app": {
996
+ * "android": {
997
+ * "osVer": "5.0",
998
+ * "uniVer": "x",
999
+ * "unixVer": "4.31"
1000
+ * },
1001
+ * "ios": {
1002
+ * "osVer": "x",
1003
+ * "uniVer": "x",
1004
+ * "unixVer": "x"
1005
+ * },
1006
+ * "harmony": {
1007
+ * "osVer": "x",
1008
+ * "uniVer": "x",
1009
+ * "unixVer": "x"
1010
+ * }
1011
+ * },
1012
+ * "mp": {
1013
+ * "weixin": {
1014
+ * "hostVer": "√",
1015
+ * "uniVer": "x",
1016
+ * "unixVer": "x"
1017
+ * },
1018
+ * },
1019
+ * "web": {
1020
+ * "uniVer": "x",
1021
+ * "unixVer": "x"
1022
+ * }
1023
+ * }
1024
+ */
1025
+ getAndroidApplication(): Application
1026
+ /**
1027
+ * 获取 鸿蒙应用 Ability 实例
1028
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getharmonyability
1029
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-app.html#getharmonyability
1030
+ * @uniPlatform {
1031
+ * "app": {
1032
+ * "android": {
1033
+ * "osVer": "x",
1034
+ * "uniVer": "x",
1035
+ * "unixVer": "x"
1036
+ * },
1037
+ * "ios": {
1038
+ * "osVer": "x",
1039
+ * "uniVer": "x",
1040
+ * "unixVer": "x"
1041
+ * },
1042
+ * "harmony": {
1043
+ * "osVer": "3.0",
1044
+ * "uniVer": "x",
1045
+ * "unixVer": "4.61"
1046
+ * }
1047
+ * },
1048
+ * "mp": {
1049
+ * "weixin": {
1050
+ * "hostVer": "√",
1051
+ * "uniVer": "x",
1052
+ * "unixVer": "x"
1053
+ * },
1054
+ * },
1055
+ * "web": {
1056
+ * "uniVer": "x",
1057
+ * "unixVer": "x"
1058
+ * }
1059
+ * }
1060
+ */
1061
+ getHarmonyAbility(): UIAbility
1062
+ }
1063
+
1064
+ type UniAppOrigin = UniApp
1065
+
1066
+ declare global {
1067
+ export interface AppCreateVueAppComponentDefault {}
1068
+ /**
1069
+ * `getApp()` 函数用于获取当前应用实例,可通过应用实例调用 App.uvue methods 中定义的方法, [详见](#appmethods)。
1070
+ * @tutorial https://uniapp.dcloud.net.cn/tutorial/page.html#getapp
1071
+ * @uniPlatform {
1072
+ * "app": {
1073
+ * "android": {
1074
+ * "osVer": "5.0",
1075
+ * "uniVer": "√",
1076
+ * "unixVer": "√"
1077
+ * },
1078
+ * "ios": {
1079
+ * "osVer": "12.0",
1080
+ * "uniVer": "√",
1081
+ * "unixVer": "√",
1082
+ * "unixUtsPlugin": "4.31"
1083
+ * },
1084
+ * "harmony": {
1085
+ * "osVer": "3.0",
1086
+ * "uniVer": "4.23",
1087
+ * "unixVer": "x"
1088
+ * }
1089
+ * },
1090
+ * "mp": {
1091
+ * "weixin": {
1092
+ * "hostVer": "√",
1093
+ * "uniVer": "√",
1094
+ * "unixVer": "√"
1095
+ * },
1096
+ * },
1097
+ * "web": {
1098
+ * "uniVer": "√",
1099
+ * "unixVer": "4.0"
1100
+ * }
1101
+ * }
1102
+ */
1103
+ function getApp<T extends EditorCreateVueAppComponentX = AppCreateVueAppComponentDefault>(): UniApp & {
1104
+ globalData: AppInstance<T>['globalData']
1105
+ vm: AppInstance<T>
1106
+ $vm: AppInstance<T>
1107
+ }
1108
+
1109
+ interface OnLaunchOptions {
1110
+ /**
1111
+ * 应用启动页面路径
1112
+ */
1113
+ path: string;
1114
+ /**
1115
+ * 首次启动时的Scheme。返回值与App.onLaunch的回调参数一致
1116
+ *
1117
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/getLaunchOptionsSync.html
1118
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
1119
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
1120
+ * @uniPlatform {
1121
+ * "app": {
1122
+ * "android": {
1123
+ * "osVer": "5.0",
1124
+ * "uniVer": "√",
1125
+ * "unixVer": "4.25"
1126
+ * },
1127
+ * "ios": {
1128
+ * "osVer": "12.0",
1129
+ * "uniVer": "√",
1130
+ * "unixVer": "4.25"
1131
+ * },
1132
+ * "harmony": {
1133
+ * "osVer": "x",
1134
+ * "uniVer": "x",
1135
+ * "unixVer": "x"
1136
+ * }
1137
+ * },
1138
+ * "mp": {
1139
+ * "weixin": {
1140
+ * "hostVer": "√",
1141
+ * "uniVer": "x",
1142
+ * "unixVer": "x"
1143
+ * },
1144
+ * },
1145
+ * "web": {
1146
+ * "uniVer": "x",
1147
+ * "unixVer": "x"
1148
+ * }
1149
+ * }
1150
+ */
1151
+ appScheme: string | null,
1152
+ /**
1153
+ * 首次启动时的appLink。返回值与App.onLaunch的回调参数一致
1154
+ *
1155
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/getLaunchOptionsSync.html
1156
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
1157
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
1158
+ * @uniPlatform {
1159
+ * "app": {
1160
+ * "android": {
1161
+ * "osVer": "5.0",
1162
+ * "uniVer": "x",
1163
+ * "unixVer": "x"
1164
+ * },
1165
+ * "ios": {
1166
+ * "osVer": "12.0",
1167
+ * "uniVer": "x",
1168
+ * "unixVer": "4.25"
1169
+ * },
1170
+ * "harmony": {
1171
+ * "osVer": "x",
1172
+ * "uniVer": "x",
1173
+ * "unixVer": "x"
1174
+ * }
1175
+ * },
1176
+ * "mp": {
1177
+ * "weixin": {
1178
+ * "hostVer": "√",
1179
+ * "uniVer": "x",
1180
+ * "unixVer": "x"
1181
+ * },
1182
+ * },
1183
+ * "web": {
1184
+ * "uniVer": "x",
1185
+ * "unixVer": "x"
1186
+ * }
1187
+ * }
1188
+ */
1189
+ appLink: string | null
1190
+ /**
1191
+ * 打开小程序的query
1192
+ */
1193
+ // query: AnyObject;
1194
+ /**
1195
+ * 打开小程序的场景值
1196
+ * - 1001: 发现栏小程序主入口,「最近使用」列表(基础库2.2.4版本起包含「我的小程序」列表)
1197
+ * - 1005: 顶部搜索框的搜索结果页
1198
+ * - 1006: 发现栏小程序主入口搜索框的搜索结果页
1199
+ * - 1007: 单人聊天会话中的小程序消息卡片
1200
+ * - 1008: 群聊会话中的小程序消息卡片
1201
+ * - 1011: 扫描二维码
1202
+ * - 1012: 长按图片识别二维码
1203
+ * - 1013: 手机相册选取二维码
1204
+ * - 1014: 小程序模板消息
1205
+ * - 1017: 前往体验版的入口页
1206
+ * - 1019: 微信钱包
1207
+ * - 1020: 公众号 profile 页相关小程序列表
1208
+ * - 1022: 聊天顶部置顶小程序入口
1209
+ * - 1023: 安卓系统桌面图标
1210
+ * - 1024: 小程序 profile 页
1211
+ * - 1025: 扫描一维码
1212
+ * - 1026: 附近小程序列表
1213
+ * - 1027: 顶部搜索框搜索结果页「使用过的小程序」列表
1214
+ * - 1028: 我的卡包
1215
+ * - 1029: 卡券详情页
1216
+ * - 1030: 自动化测试下打开小程序
1217
+ * - 1031: 长按图片识别一维码
1218
+ * - 1032: 手机相册选取一维码
1219
+ * - 1034: 微信支付完成页
1220
+ * - 1035: 公众号自定义菜单
1221
+ * - 1036: App 分享消息卡片
1222
+ * - 1037: 小程序打开小程序
1223
+ * - 1038: 从另一个小程序返回
1224
+ * - 1039: 摇电视
1225
+ * - 1042: 添加好友搜索框的搜索结果页
1226
+ * - 1043: 公众号模板消息
1227
+ * - 1044: 带 shareTicket 的小程序消息卡片
1228
+ * - 1045: 朋友圈广告
1229
+ * - 1046: 朋友圈广告详情页
1230
+ * - 1047: 扫描小程序码
1231
+ * - 1048: 长按图片识别小程序码
1232
+ * - 1049: 手机相册选取小程序码
1233
+ * - 1052: 卡券的适用门店列表
1234
+ * - 1053: 搜一搜的结果页
1235
+ * - 1054: 顶部搜索框小程序快捷入口
1236
+ * - 1056: 音乐播放器菜单
1237
+ * - 1057: 钱包中的银行卡详情页
1238
+ * - 1058: 公众号文章
1239
+ * - 1059: 体验版小程序绑定邀请页
1240
+ * - 1064: 微信连Wi-Fi状态栏
1241
+ * - 1067: 公众号文章广告
1242
+ * - 1068: 附近小程序列表广告
1243
+ * - 1069: 移动应用
1244
+ * - 1071: 钱包中的银行卡列表页
1245
+ * - 1072: 二维码收款页面
1246
+ * - 1073: 客服消息列表下发的小程序消息卡片
1247
+ * - 1074: 公众号会话下发的小程序消息卡片
1248
+ * - 1077: 摇周边
1249
+ * - 1078: 连Wi-Fi成功页
1250
+ * - 1079: 微信游戏中心
1251
+ * - 1081: 客服消息下发的文字链
1252
+ * - 1082: 公众号会话下发的文字链
1253
+ * - 1084: 朋友圈广告原生页
1254
+ * - 1089: 微信聊天主界面下拉,「最近使用」栏(基础库2.2.4版本起包含「我的小程序」栏)
1255
+ * - 1090: 长按小程序右上角菜单唤出最近使用历史
1256
+ * - 1091: 公众号文章商品卡片
1257
+ * - 1092: 城市服务入口
1258
+ * - 1095: 小程序广告组件
1259
+ * - 1096: 聊天记录
1260
+ * - 1097: 微信支付签约页
1261
+ * - 1099: 页面内嵌插件
1262
+ * - 1102: 公众号 profile 页服务预览
1263
+ * - 1103: 发现栏小程序主入口,「我的小程序」列表(基础库2.2.4版本起废弃)
1264
+ * - 1104: 微信聊天主界面下拉,「我的小程序」栏(基础库2.2.4版本起废弃)
1265
+ */
1266
+ // scene: number;
1267
+ /**
1268
+ * 打开小程序的场景值
1269
+ */
1270
+ // shareTicket: string;
1271
+ /**
1272
+ * 当场景为由从另一个小程序或公众号或App打开时,返回此字段
1273
+ */
1274
+ // referrerInfo?: ReferrerInfo;
1275
+ }
1276
+
1277
+ interface OnShowOptions {
1278
+ /**
1279
+ * 应用启动页面路径
1280
+ */
1281
+ path: string
1282
+ /**
1283
+ * 本次启动时的Scheme。返回值与App.onShow的回调参数一致
1284
+ *
1285
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
1286
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
1287
+ * @uniPlatform {
1288
+ * "app": {
1289
+ * "android": {
1290
+ * "osVer": "5.0",
1291
+ * "uniVer": "x",
1292
+ * "unixVer": "4.25"
1293
+ * },
1294
+ * "ios": {
1295
+ * "osVer": "12.0",
1296
+ * "uniVer": "x",
1297
+ * "unixVer": "4.25"
1298
+ * },
1299
+ * "harmony": {
1300
+ * "osVer": "x",
1301
+ * "uniVer": "x",
1302
+ * "unixVer": "x"
1303
+ * }
1304
+ * },
1305
+ * "mp": {
1306
+ * "weixin": {
1307
+ * "hostVer": "√",
1308
+ * "uniVer": "x",
1309
+ * "unixVer": "x"
1310
+ * },
1311
+ * },
1312
+ * "web": {
1313
+ * "uniVer": "x",
1314
+ * "unixVer": "x"
1315
+ * }
1316
+ * }
1317
+ */
1318
+ appScheme: string | null
1319
+ /**
1320
+ * 本次启动时的appLink。返回值与App.onShow的回调参数一致
1321
+ *
1322
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
1323
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
1324
+ * @uniPlatform {
1325
+ * "app": {
1326
+ * "android": {
1327
+ * "osVer": "5.0",
1328
+ * "uniVer": "x",
1329
+ * "unixVer": "x"
1330
+ * },
1331
+ * "ios": {
1332
+ * "osVer": "12.0",
1333
+ * "uniVer": "x",
1334
+ * "unixVer": "4.25"
1335
+ * },
1336
+ * "harmony": {
1337
+ * "osVer": "x",
1338
+ * "uniVer": "x",
1339
+ * "unixVer": "x"
1340
+ * }
1341
+ * },
1342
+ * "mp": {
1343
+ * "weixin": {
1344
+ * "hostVer": "√",
1345
+ * "uniVer": "x",
1346
+ * "unixVer": "x"
1347
+ * },
1348
+ * },
1349
+ * "web": {
1350
+ * "uniVer": "x",
1351
+ * "unixVer": "x"
1352
+ * }
1353
+ * }
1354
+ */
1355
+ appLink: string | null
1356
+ }
1357
+
1358
+ interface OnPageNotFoundOption {
1359
+ /**
1360
+ * 不存在页面的路径
1361
+ */
1362
+ path: string;
1363
+ /**
1364
+ * 打开不存在页面的 query
1365
+ */
1366
+ query: AnyObject;
1367
+ /**
1368
+ * 是否本次启动的首个页面(例如从分享等入口进来,首个页面是开发者配置的分享页面)
1369
+ */
1370
+ isEntryPage: boolean;
1371
+ }
1372
+
1373
+ type UniApp = UniAppOrigin
1374
+ }
1375
+
1376
+ type DefineAppX<D extends OptionsData, C extends ComputedOptions, M extends MethodOptions, I extends ComponentInjectOptions, II extends string, G extends GlobalData> = DefineApp<D, C, M, I, II> & UniAppOptions<G>
1377
+
1378
+ declare module '@vue/runtime-core' {
1379
+ interface AppCustomOptions extends UniAppOptions {
1380
+
1381
+ }
1382
+ export function defineApp<D extends OptionsData = OptionsData, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, I extends ComponentInjectOptions = {}, II extends string = string, G extends GlobalData = GlobalData>(options: DefineAppX<D, C, M, I, II, G>): EditorCreateVueAppComponentX<D, C, M, I, II, G>
1383
+ }