@dcloudio/uni-app-x 0.7.19 → 0.7.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/.prettierrc +5 -5
  2. package/README.md +1 -1
  3. package/index.d.ts +1 -1
  4. package/options.d.ts +9 -9
  5. package/package.json +27 -27
  6. package/types/app.d.ts +1002 -842
  7. package/types/index.d.ts +7 -7
  8. package/types/native/AsyncApiResult.d.ts +7 -7
  9. package/types/native/CSSStyleDeclaration.d.ts +25 -25
  10. package/types/native/CanvasRenderingContext2D.d.ts +2048 -2047
  11. package/types/native/DOMRect.d.ts +56 -56
  12. package/types/native/DrawableContext.d.ts +162 -162
  13. package/types/native/INavigationBar.d.ts +22 -22
  14. package/types/native/IUniElement.d.ts +2859 -2859
  15. package/types/native/IUniError.d.ts +20 -20
  16. package/types/native/IUniForm.d.ts +9 -9
  17. package/types/native/IUniObjectElement.d.ts +124 -124
  18. package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
  19. package/types/native/NodeData.d.ts +22 -22
  20. package/types/native/PageNode.d.ts +6 -6
  21. package/types/native/Path2D.d.ts +240 -240
  22. package/types/native/SnapshotOptions.d.ts +63 -63
  23. package/types/native/SourceError.d.ts +46 -46
  24. package/types/native/UTSAndroidHookProxy.d.ts +14 -14
  25. package/types/native/UniAggregateError.d.ts +19 -19
  26. package/types/native/UniApp.d.ts +205 -205
  27. package/types/native/UniCallbackWrapper.d.ts +7 -7
  28. package/types/native/UniCanvasElement.d.ts +9 -9
  29. package/types/native/UniCustomEvent.d.ts +24 -24
  30. package/types/native/UniDocument.d.ts +83 -83
  31. package/types/native/UniElement.d.ts +79 -79
  32. package/types/native/UniError.d.ts +70 -70
  33. package/types/native/UniEvent.d.ts +92 -92
  34. package/types/native/UniFormControl.d.ts +8 -8
  35. package/types/native/UniFormControlElement.d.ts +14 -14
  36. package/types/native/UniImageErrorEvent.d.ts +33 -33
  37. package/types/native/UniImageLoadEvent.d.ts +37 -37
  38. package/types/native/UniInputBlurEvent.d.ts +36 -36
  39. package/types/native/UniInputConfirmEvent.d.ts +30 -30
  40. package/types/native/UniInputEvent.d.ts +38 -38
  41. package/types/native/UniInputFocusEvent.d.ts +53 -53
  42. package/types/native/UniNativePage.d.ts +270 -270
  43. package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
  44. package/types/native/UniPageEvent.d.ts +10 -10
  45. package/types/native/UniPageManager.d.ts +27 -20
  46. package/types/native/UniPageScrollEvent.d.ts +13 -13
  47. package/types/native/UniPointerEvent.d.ts +74 -74
  48. package/types/native/UniProvider.d.ts +15 -15
  49. package/types/native/UniRefresherEvent.d.ts +18 -18
  50. package/types/native/UniResizeEvent.d.ts +34 -34
  51. package/types/native/UniResizeObserver.d.ts +184 -184
  52. package/types/native/UniRichTextItemClickEvent.d.ts +41 -41
  53. package/types/native/UniScrollEvent.d.ts +42 -42
  54. package/types/native/UniScrollToLowerEvent.d.ts +23 -23
  55. package/types/native/UniScrollToUpperEvent.d.ts +23 -23
  56. package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
  57. package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
  58. package/types/native/UniSwiperAnimationFinishEvent.d.ts +44 -44
  59. package/types/native/UniSwiperChangeEvent.d.ts +44 -44
  60. package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
  61. package/types/native/UniTabTapEvent.d.ts +18 -18
  62. package/types/native/UniTabsElement.d.ts +59 -59
  63. package/types/native/UniTextElement.d.ts +34 -34
  64. package/types/native/UniTextareaFocusEvent.d.ts +54 -54
  65. package/types/native/UniTouchEvent.d.ts +64 -64
  66. package/types/native/UniVideoElement.d.ts +75 -75
  67. package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
  68. package/types/native/UniWebViewElement.d.ts +10 -10
  69. package/types/native/UniWebViewErrorEvent.d.ts +59 -59
  70. package/types/native/UniWebViewLoadEvent.d.ts +41 -41
  71. package/types/native/UniWebViewLoadingEvent.d.ts +41 -41
  72. package/types/native/UniWebViewMessageEvent.d.ts +36 -36
  73. package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
  74. package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
  75. package/types/native/WebViewStyles.d.ts +20 -20
  76. package/types/native/global.d.ts +598 -598
  77. package/types/native/index.d.ts +71 -71
  78. package/types/native-global/index.d.ts +1 -1
  79. package/types/page.d.ts +1682 -1682
  80. package/types/process.d.ts +5 -5
  81. package/types/uni/base/index.d.ts +3 -3
  82. package/types/uni/env/index.d.ts +103 -103
  83. package/types/uni/global.d.ts +6 -6
  84. package/types/uni/index.d.ts +4 -4
  85. package/types/uni/uts-plugin-api/global.d.ts +58 -57
  86. package/types/uni/uts-plugin-api/index.d.ts +58 -57
  87. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -26
  88. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -12
  89. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -231
  90. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/global.d.ts +12 -12
  91. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/index.d.ts +5 -5
  92. package/types/uni/uts-plugin-api/lib/uni-animationFrame/utssdk/interface.d.ts +50 -50
  93. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -10
  94. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
  95. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -77
  96. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +60 -0
  97. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +29 -0
  98. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +161 -0
  99. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
  100. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
  101. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -77
  102. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +20 -20
  103. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +9 -9
  104. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +264 -242
  105. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
  106. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
  107. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -203
  108. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +12 -12
  109. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +5 -5
  110. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1733 -1733
  111. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
  112. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
  113. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -152
  114. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  115. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  116. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
  117. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
  118. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
  119. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +464 -427
  120. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  121. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  122. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
  123. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
  124. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
  125. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1336 -1336
  126. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
  127. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
  128. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +305 -305
  129. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  130. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  131. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +91 -91
  132. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
  133. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
  134. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -174
  135. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +142 -142
  136. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +70 -70
  137. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +1840 -1840
  138. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  139. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  140. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  141. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  142. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +329 -329
  143. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  144. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  145. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +818 -818
  146. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +12 -12
  147. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +5 -5
  148. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +297 -297
  149. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  150. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  151. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +657 -657
  152. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
  153. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
  154. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +81 -81
  155. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
  156. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
  157. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +155 -155
  158. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
  159. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
  160. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +159 -159
  161. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
  162. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
  163. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +563 -564
  164. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
  165. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
  166. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  167. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
  168. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
  169. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
  170. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
  171. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
  172. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
  173. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +163 -163
  174. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +30 -32
  175. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +14 -15
  176. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +375 -375
  177. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
  178. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
  179. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +980 -980
  180. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +30 -30
  181. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +14 -14
  182. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +2131 -2131
  183. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  184. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  185. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +169 -169
  186. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  187. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  188. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
  189. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
  190. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
  191. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
  192. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
  193. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -60
  194. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +26 -26
  195. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +12 -12
  196. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +564 -564
  197. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
  198. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
  199. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +100 -100
  200. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +160 -160
  201. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +79 -79
  202. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1339 -1339
  203. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
  204. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
  205. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1002 -1002
  206. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +72 -72
  207. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +35 -35
  208. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1493 -1493
  209. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  210. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  211. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
  212. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
  213. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -70
  214. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
  215. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
  216. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +153 -153
  217. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
  218. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
  219. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +240 -240
  220. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
  221. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
  222. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
  223. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
  224. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -74
  225. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -36
  226. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +193 -8
  227. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
  228. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
  229. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +189 -189
  230. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
  231. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
  232. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2165 -2165
  233. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  234. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  235. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +38 -38
  236. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
  237. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
  238. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -73
  239. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  240. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  241. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +600 -600
  242. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
  243. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
  244. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +1086 -1086
  245. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -42
  246. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -20
  247. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
  248. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
  249. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  250. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  251. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +844 -844
  252. package/types/uni/uts-plugin-biz/global.d.ts +4 -4
  253. package/types/uni/uts-plugin-biz/index.d.ts +4 -4
  254. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +36 -36
  255. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +17 -17
  256. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +141 -141
  257. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  258. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  259. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +160 -160
  260. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
  261. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
  262. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +808 -778
  263. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +46 -46
  264. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +22 -22
  265. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +207 -207
  266. package/types/uni/uts-plugin-component/global.d.ts +1 -1
  267. package/types/uni/uts-plugin-component/index.d.ts +1 -1
  268. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +64 -64
  269. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +31 -31
  270. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +522 -522
  271. package/types/uni/uts-plugin-extend/README.md +3 -3
  272. package/types/uni/uts-plugin-extend/global.d.ts +14 -14
  273. package/types/uni/uts-plugin-extend/index.d.ts +14 -14
  274. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
  275. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
  276. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -365
  277. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
  278. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
  279. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -710
  280. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -21
  281. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
  282. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -151
  283. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
  284. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
  285. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -363
  286. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -11
  287. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -4
  288. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -224
  289. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -53
  290. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -25
  291. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +487 -487
  292. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
  293. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
  294. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
  295. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -7
  296. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -1
  297. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -296
  298. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
  299. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
  300. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
  301. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
  302. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
  303. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -559
  304. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
  305. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
  306. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -163
  307. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
  308. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
  309. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -143
  310. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
  311. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
  312. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
  313. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -9
  314. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -1
  315. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -165
  316. package/types/uni-cloud/index.d.ts +67 -63
  317. package/types/uni-cloud/interface.d.ts +987 -991
  318. package/types/uni-cloud/unicloud-db/index.ts +314 -314
  319. package/types/uni-global/index.d.ts +1 -1
  320. package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
  321. package/types/vue/LifeCycle.d.ts +55 -55
  322. package/types/vue/PickerViewChangeEvent.d.ts +41 -41
  323. package/types/vue/ProgressActiveendEvent.d.ts +32 -32
  324. package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
  325. package/types/vue/SliderChangeEvent.d.ts +35 -35
  326. package/types/vue/SwitchChangeEvent.d.ts +32 -32
  327. package/types/vue/UniCanvasElement.d.ts +275 -275
  328. package/types/vue/UniCloudDBElement.d.ts +217 -217
  329. package/types/vue/UniFormElement.d.ts +54 -54
  330. package/types/vue/UniNavigatorElement.d.ts +11 -11
  331. package/types/vue/global.d.ts +191 -191
  332. package/types/vue/index.d.ts +10 -10
  333. package/types/vue-global/index.d.ts +1 -1
  334. package/uts-plugin.d.ts +27 -27
  335. package/types/shim-uts-basic.d.ts +0 -4495
package/types/app.d.ts CHANGED
@@ -1,842 +1,1002 @@
1
- /// <reference path='./common.d.ts' />
2
- import { ComputedOptions, EditorCreateVueAppComponent, MethodOptions, OptionsData, ComponentInternalInstance, EditorVueAppComponent, EditorComponentPublicInstance, DefineApp, ComponentInjectOptions } from '@vue/runtime-core'
3
-
4
- /**
5
- * Construct a type with a set of properties K of type T
6
- */
7
- type Record<K extends keyof any, T> = {
8
- [P in K]: T;
9
- };
10
- /**
11
- * From T, pick a set of properties whose keys are in the union K
12
- */
13
- type Pick<T, K extends keyof T> = {
14
- [P in K]: T[P];
15
- };
16
- /**
17
- * Exclude from T those types that are assignable to U
18
- */
19
- type Exclude<T, U> = T extends U ? never : T;
20
- /**
21
- * Construct a type with the properties of T except for those in type K.
22
- */
23
- type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
24
-
25
- interface ReferrerInfo {
26
- /**
27
- * 来源小程序或公众号或App的 appId
28
- *
29
- * 以下场景支持返回 referrerInfo.appId:
30
- * - 1020(公众号 profile 页相关小程序列表): appId
31
- * - 1035(公众号自定义菜单):来源公众号 appId
32
- * - 1036(App 分享消息卡片):来源应用 appId
33
- * - 1037(小程序打开小程序):来源小程序 appId
34
- * - 1038(从另一个小程序返回):来源小程序 appId
35
- * - 1043(公众号模板消息):来源公众号 appId
36
- */
37
- appId: string;
38
- /**
39
- * 来源小程序传过来的数据,scene=1037或1038时支持
40
- */
41
- extraData?: any;
42
- }
43
-
44
- type GlobalData = Record<string, any | null>
45
- interface UniAppOptions<G extends GlobalData = GlobalData> {
46
- /**
47
- * 全局对象
48
- * 文档:[https://uniapp.dcloud.io/collocation/App?id=globaldata](https://uniapp.dcloud.io/collocation/App?id=globaldata)
49
- * @autodoc false
50
- * @uniPlatform {
51
- * "app": {
52
- * "android": {
53
- * "osVer": "5.0",
54
- * "uniVer": "√",
55
- * "unixVer": "x"
56
- * },
57
- * "ios": {
58
- * "osVer": "10.0",
59
- * "uniVer": "√",
60
- * "unixVer": "x"
61
- * }
62
- * },
63
- * "mp": {
64
- * "weixin": {
65
- * "hostVer": "√",
66
- * "uniVer": "√",
67
- * "unixVer": "x"
68
- * },
69
- * "alipay": {
70
- * "hostVer": "",
71
- * "uniVer": "√",
72
- * "unixVer": "x"
73
- * },
74
- * "baidu": {
75
- * "hostVer": "",
76
- * "uniVer": "√",
77
- * "unixVer": "x"
78
- * },
79
- * "toutiao": {
80
- * "hostVer": "",
81
- * "uniVer": "√",
82
- * "unixVer": "x"
83
- * },
84
- * "lark": {
85
- * "hostVer": "",
86
- * "uniVer": "√",
87
- * "unixVer": "x"
88
- * },
89
- * "qq": {
90
- * "hostVer": "",
91
- * "uniVer": "√",
92
- * "unixVer": "x"
93
- * },
94
- * "kuaishou": {
95
- * "hostVer": "",
96
- * "uniVer": "√",
97
- * "unixVer": "x"
98
- * },
99
- * "jd": {
100
- * "hostVer": "",
101
- * "uniVer": "√",
102
- * "unixVer": "x"
103
- * }
104
- * },
105
- * "web": {
106
- * "uniVer": "√",
107
- * "unixVer": "4.0"
108
- * }
109
- *}
110
- */
111
- globalData?: G;
112
- /**
113
- * 生命周期回调 监听应用初始化
114
- *
115
- * 应用初始化完成时触发,全局只触发一次。
116
- *
117
- * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
118
- * @autodoc false
119
- * @uniPlatform {
120
- * "app": {
121
- * "android": {
122
- * "osVer": "5.0",
123
- * "uniVer": "√",
124
- * "unixVer": "3.9"
125
- * },
126
- * "ios": {
127
- * "osVer": "10.0",
128
- * "uniVer": "√",
129
- * "unixVer": "x"
130
- * }
131
- * },
132
- * "mp": {
133
- * "weixin": {
134
- * "hostVer": "√",
135
- * "uniVer": "√",
136
- * "unixVer": "x"
137
- * },
138
- * "alipay": {
139
- * "hostVer": "",
140
- * "uniVer": "√",
141
- * "unixVer": "x"
142
- * },
143
- * "baidu": {
144
- * "hostVer": "",
145
- * "uniVer": "√",
146
- * "unixVer": "x"
147
- * },
148
- * "toutiao": {
149
- * "hostVer": "",
150
- * "uniVer": "√",
151
- * "unixVer": "x"
152
- * },
153
- * "lark": {
154
- * "hostVer": "",
155
- * "uniVer": "√",
156
- * "unixVer": "x"
157
- * },
158
- * "qq": {
159
- * "hostVer": "",
160
- * "uniVer": "√",
161
- * "unixVer": "x"
162
- * },
163
- * "kuaishou": {
164
- * "hostVer": "",
165
- * "uniVer": "√",
166
- * "unixVer": "x"
167
- * },
168
- * "jd": {
169
- * "hostVer": "",
170
- * "uniVer": "√",
171
- * "unixVer": "x"
172
- * }
173
- * },
174
- * "web": {
175
- * "uniVer": "√",
176
- * "unixVer": "4.0"
177
- * }
178
- *}
179
- */
180
- onLaunch?(options: OnLaunchOptions): void;
181
- /**
182
- * 生命周期回调 监听应用显示
183
- *
184
- * 应用启动,或从后台进入前台显示时触发
185
- *
186
- * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
187
- * @autodoc false
188
- * @uniPlatform {
189
- * "app": {
190
- * "android": {
191
- * "osVer": "5.0",
192
- * "uniVer": "√",
193
- * "unixVer": "3.9"
194
- * },
195
- * "ios": {
196
- * "osVer": "10.0",
197
- * "uniVer": "",
198
- * "unixVer": "x"
199
- * }
200
- * },
201
- * "mp": {
202
- * "weixin": {
203
- * "hostVer": "√",
204
- * "uniVer": "√",
205
- * "unixVer": "x"
206
- * },
207
- * "alipay": {
208
- * "hostVer": "√",
209
- * "uniVer": "",
210
- * "unixVer": "x"
211
- * },
212
- * "baidu": {
213
- * "hostVer": "√",
214
- * "uniVer": "",
215
- * "unixVer": "x"
216
- * },
217
- * "toutiao": {
218
- * "hostVer": "√",
219
- * "uniVer": "",
220
- * "unixVer": "x"
221
- * },
222
- * "lark": {
223
- * "hostVer": "√",
224
- * "uniVer": "",
225
- * "unixVer": "x"
226
- * },
227
- * "qq": {
228
- * "hostVer": "√",
229
- * "uniVer": "",
230
- * "unixVer": "x"
231
- * },
232
- * "kuaishou": {
233
- * "hostVer": "√",
234
- * "uniVer": "",
235
- * "unixVer": "x"
236
- * },
237
- * "jd": {
238
- * "hostVer": "√",
239
- * "uniVer": "",
240
- * "unixVer": "x"
241
- * }
242
- * },
243
- * "web": {
244
- * "uniVer": "",
245
- * "unixVer": "4.0"
246
- * }
247
- *}
248
- */
249
- onShow?(options: OnShowOptions): void;
250
- /**
251
- * 生命周期回调 监听应用隐藏
252
- *
253
- * 应用从前台进入后台时触发
254
- *
255
- * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
256
- * @autodoc false
257
- * @uniPlatform {
258
- * "app": {
259
- * "android": {
260
- * "osVer": "5.0",
261
- * "uniVer": "√",
262
- * "unixVer": "3.9"
263
- * },
264
- * "ios": {
265
- * "osVer": "10.0",
266
- * "uniVer": "√",
267
- * "unixVer": "x"
268
- * }
269
- * },
270
- * "mp": {
271
- * "weixin": {
272
- * "hostVer": "",
273
- * "uniVer": "√",
274
- * "unixVer": "x"
275
- * },
276
- * "alipay": {
277
- * "hostVer": "√",
278
- * "uniVer": "√",
279
- * "unixVer": "x"
280
- * },
281
- * "baidu": {
282
- * "hostVer": "√",
283
- * "uniVer": "√",
284
- * "unixVer": "x"
285
- * },
286
- * "toutiao": {
287
- * "hostVer": "√",
288
- * "uniVer": "√",
289
- * "unixVer": "x"
290
- * },
291
- * "lark": {
292
- * "hostVer": "√",
293
- * "uniVer": "√",
294
- * "unixVer": "x"
295
- * },
296
- * "qq": {
297
- * "hostVer": "√",
298
- * "uniVer": "√",
299
- * "unixVer": "x"
300
- * },
301
- * "kuaishou": {
302
- * "hostVer": "√",
303
- * "uniVer": "√",
304
- * "unixVer": "x"
305
- * },
306
- * "jd": {
307
- * "hostVer": "√",
308
- * "uniVer": "√",
309
- * "unixVer": "x"
310
- * }
311
- * },
312
- * "web": {
313
- * "uniVer": "√",
314
- * "unixVer": "4.0"
315
- * }
316
- *}
317
- */
318
- onHide?(): void;
319
- /**
320
- * 错误监听函数
321
- * 应用发生脚本错误或 API 调用报错时触发
322
- * @param error 错误信息
323
- *
324
- * @tutorial [https://doc.dcloud.net.cn/uni-app-x/collocation/app.html](https://doc.dcloud.net.cn/uni-app-x/collocation/app.html)
325
- * @uniPlatform {
326
- * "app": {
327
- * "android": {
328
- * "osVer": "5.0",
329
- * "uniVer": "√",
330
- * "unixVer": "4.21"
331
- * },
332
- * "ios": {
333
- * "osVer": "10.0",
334
- * "uniVer": "√",
335
- * "unixVer": "4.21"
336
- * }
337
- * },
338
- * "mp": {
339
- * "weixin": {
340
- * "hostVer": "",
341
- * "uniVer": "√",
342
- * "unixVer": "x"
343
- * },
344
- * "alipay": {
345
- * "hostVer": "√",
346
- * "uniVer": "√",
347
- * "unixVer": "x"
348
- * },
349
- * "baidu": {
350
- * "hostVer": "√",
351
- * "uniVer": "√",
352
- * "unixVer": "x"
353
- * },
354
- * "toutiao": {
355
- * "hostVer": "√",
356
- * "uniVer": "√",
357
- * "unixVer": "x"
358
- * },
359
- * "lark": {
360
- * "hostVer": "√",
361
- * "uniVer": "√",
362
- * "unixVer": "x"
363
- * },
364
- * "qq": {
365
- * "hostVer": "√",
366
- * "uniVer": "√",
367
- * "unixVer": "x"
368
- * },
369
- * "kuaishou": {
370
- * "hostVer": "√",
371
- * "uniVer": "√",
372
- * "unixVer": "x"
373
- * },
374
- * "jd": {
375
- * "hostVer": "√",
376
- * "uniVer": "√",
377
- * "unixVer": "x"
378
- * }
379
- * },
380
- * "web": {
381
- * "uniVer": "√",
382
- * "unixVer": "4.0"
383
- * }
384
- *}
385
- */
386
- onError?(error: string): void;
387
- /**
388
- * 页面不存在监听函数
389
- *
390
- * 应用要打开的页面不存在时触发,会带上页面信息回调该函数
391
- *
392
- * **注意:**
393
- * 1. 如果开发者没有添加 `onPageNotFound` 监听,当跳转页面不存在时,将推入微信客户端原生的页面不存在提示页面。
394
- * 2. 如果 `onPageNotFound` 回调中又重定向到另一个不存在的页面,将推入微信客户端原生的页面不存在提示页面,并且不再回调 `onPageNotFound`。
395
- *
396
- * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
397
- * @autodoc false
398
- * @uniPlatform {
399
- * "app": {
400
- * "android": {
401
- * "osVer": "5.0",
402
- * "uniVer": "√",
403
- * "unixVer": "x"
404
- * },
405
- * "ios": {
406
- * "osVer": "10.0",
407
- * "uniVer": "√",
408
- * "unixVer": "x"
409
- * }
410
- * },
411
- * "mp": {
412
- * "weixin": {
413
- * "hostVer": "√",
414
- * "uniVer": "",
415
- * "unixVer": "x"
416
- * },
417
- * "alipay": {
418
- * "hostVer": "√",
419
- * "uniVer": "√",
420
- * "unixVer": "x"
421
- * },
422
- * "baidu": {
423
- * "hostVer": "",
424
- * "uniVer": "√",
425
- * "unixVer": "x"
426
- * },
427
- * "toutiao": {
428
- * "hostVer": "",
429
- * "uniVer": "√",
430
- * "unixVer": "x"
431
- * },
432
- * "lark": {
433
- * "hostVer": "",
434
- * "uniVer": "√",
435
- * "unixVer": "x"
436
- * },
437
- * "qq": {
438
- * "hostVer": "",
439
- * "uniVer": "√",
440
- * "unixVer": "x"
441
- * },
442
- * "kuaishou": {
443
- * "hostVer": "",
444
- * "uniVer": "√",
445
- * "unixVer": "x"
446
- * },
447
- * "jd": {
448
- * "hostVer": "",
449
- * "uniVer": "√",
450
- * "unixVer": "x"
451
- * }
452
- * },
453
- * "web": {
454
- * "uniVer": "√",
455
- * "unixVer": "4.0"
456
- * }
457
- *}
458
- */
459
- onPageNotFound?(options: OnPageNotFoundOption): void;
460
- /**
461
- * 监听 nvue 页面消息
462
- *
463
- * nvue 页面使用 `uni.postMessage` 发送消息时触发
464
- *
465
- * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
466
- * @autodoc false
467
- * @uniPlatform {
468
- * "app": {
469
- * "android": {
470
- * "osVer": "5.0",
471
- * "uniVer": "√",
472
- * "unixVer": "x"
473
- * },
474
- * "ios": {
475
- * "osVer": "10.0",
476
- * "uniVer": "√",
477
- * "unixVer": "x"
478
- * }
479
- * },
480
- * "mp": {
481
- * "weixin": {
482
- * "hostVer": "√",
483
- * "uniVer": "√",
484
- * "unixVer": "x"
485
- * },
486
- * "alipay": {
487
- * "hostVer": "√",
488
- * "uniVer": "√",
489
- * "unixVer": "x"
490
- * },
491
- * "baidu": {
492
- * "hostVer": "√",
493
- * "uniVer": "",
494
- * "unixVer": "x"
495
- * },
496
- * "toutiao": {
497
- * "hostVer": "√",
498
- * "uniVer": "",
499
- * "unixVer": "x"
500
- * },
501
- * "lark": {
502
- * "hostVer": "√",
503
- * "uniVer": "",
504
- * "unixVer": "x"
505
- * },
506
- * "qq": {
507
- * "hostVer": "√",
508
- * "uniVer": "",
509
- * "unixVer": "x"
510
- * },
511
- * "kuaishou": {
512
- * "hostVer": "√",
513
- * "uniVer": "",
514
- * "unixVer": "x"
515
- * },
516
- * "jd": {
517
- * "hostVer": "√",
518
- * "uniVer": "",
519
- * "unixVer": "x"
520
- * },
521
- * "360": {
522
- * "hostVer": "√",
523
- * "uniVer": "",
524
- * "unixVer": "x"
525
- * }
526
- * },
527
- * "quickapp": {
528
- * "uniVer": "",
529
- * "unixVer": "x"
530
- * },
531
- * "web": {
532
- * "uniVer": "√",
533
- * "unixVer": "4.0"
534
- * }
535
- *}
536
- */
537
- onUniNViewMessage?(options: AnyObject): void;
538
- /**
539
- * 监听应用退出。app-uvue-android 3.9+
540
- *
541
- * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
542
- * @autodoc false
543
- * @uniPlatform {
544
- * "app": {
545
- * "android": {
546
- * "osVer": "5.0",
547
- * "uniVer": "x",
548
- * "unixVer": "3.9"
549
- * },
550
- * "ios": {
551
- * "osVer": "x",
552
- * "uniVer": "x",
553
- * "unixVer": "x"
554
- * }
555
- * },
556
- * "mp": {
557
- * "weixin": {
558
- * "hostVer": "x",
559
- * "uniVer": "x",
560
- * "unixVer": "x"
561
- * },
562
- * "alipay": {
563
- * "hostVer": "x",
564
- * "uniVer": "x",
565
- * "unixVer": "x"
566
- * },
567
- * "baidu": {
568
- * "hostVer": "x",
569
- * "uniVer": "x",
570
- * "unixVer": "x"
571
- * },
572
- * "toutiao": {
573
- * "hostVer": "x",
574
- * "uniVer": "x",
575
- * "unixVer": "x"
576
- * },
577
- * "lark": {
578
- * "hostVer": "x",
579
- * "uniVer": "x",
580
- * "unixVer": "x"
581
- * },
582
- * "qq": {
583
- * "hostVer": "x",
584
- * "uniVer": "x",
585
- * "unixVer": "x"
586
- * },
587
- * "kuaishou": {
588
- * "hostVer": "x",
589
- * "uniVer": "x",
590
- * "unixVer": "x"
591
- * },
592
- * "jd": {
593
- * "hostVer": "x",
594
- * "uniVer": "x",
595
- * "unixVer": "x"
596
- * },
597
- * "360": {
598
- * "hostVer": "x",
599
- * "uniVer": "x",
600
- * "unixVer": "x"
601
- * }
602
- * },
603
- * "quickapp": {
604
- * "uniVer": "x",
605
- * "unixVer": "x"
606
- * },
607
- * "web": {
608
- * "uniVer": "x",
609
- * "unixVer": "x"
610
- * }
611
- *}
612
- */
613
- onExit?(): void;
614
- /**
615
- * 最后一个页面按下Android back键,常用于自定义退出。app-uvue-android 3.9+
616
- *
617
- * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
618
- * @autodoc false
619
- * @uniPlatform {
620
- * "app": {
621
- * "android": {
622
- * "osVer": "5.0",
623
- * "uniVer": "x",
624
- * "unixVer": "3.9"
625
- * },
626
- * "ios": {
627
- * "osVer": "x",
628
- * "uniVer": "x",
629
- * "unixVer": "x"
630
- * }
631
- * },
632
- * "mp": {
633
- * "weixin": {
634
- * "hostVer": "x",
635
- * "uniVer": "x",
636
- * "unixVer": "x"
637
- * },
638
- * "alipay": {
639
- * "hostVer": "x",
640
- * "uniVer": "x",
641
- * "unixVer": "x"
642
- * },
643
- * "baidu": {
644
- * "hostVer": "x",
645
- * "uniVer": "x",
646
- * "unixVer": "x"
647
- * },
648
- * "toutiao": {
649
- * "hostVer": "x",
650
- * "uniVer": "x",
651
- * "unixVer": "x"
652
- * },
653
- * "lark": {
654
- * "hostVer": "x",
655
- * "uniVer": "x",
656
- * "unixVer": "x"
657
- * },
658
- * "qq": {
659
- * "hostVer": "x",
660
- * "uniVer": "x",
661
- * "unixVer": "x"
662
- * },
663
- * "kuaishou": {
664
- * "hostVer": "x",
665
- * "uniVer": "x",
666
- * "unixVer": "x"
667
- * },
668
- * "jd": {
669
- * "hostVer": "x",
670
- * "uniVer": "x",
671
- * "unixVer": "x"
672
- * },
673
- * "360": {
674
- * "hostVer": "x",
675
- * "uniVer": "x",
676
- * "unixVer": "x"
677
- * }
678
- * },
679
- * "quickapp": {
680
- * "uniVer": "x",
681
- * "unixVer": "x"
682
- * },
683
- * "web": {
684
- * "uniVer": "x",
685
- * "unixVer": "x"
686
- * }
687
- *}
688
- */
689
- onLastPageBackPress?(): void;
690
- }
691
-
692
- /**
693
- * Obtain the return type of a function type
694
- */
695
- type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
696
-
697
- 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> & {
698
- globalData: G
699
- }
700
-
701
- type EditorVueAppComponentX<D extends OptionsData, C extends ComputedOptions, M extends MethodOptions, I extends ComponentInjectOptions, II extends string, G extends GlobalData> = EditorVueAppComponent<D, C, M> & {
702
- $: EditorComponentPublicInstanceX<D, C, M, I, II, G>
703
- }
704
-
705
- 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'> & {
706
- // 仅用于编辑器提示,TODO 重写 create 方法实现
707
- create: (instance: ComponentInternalInstance) => EditorVueAppComponentX<D, C, M, I, II, G>;
708
- }
709
-
710
- type AppInstance<T extends EditorCreateVueAppComponentX> = ReturnType<T['create']>['$']
711
-
712
- declare global {
713
- export interface AppCreateVueAppComponentDefault { }
714
- /**
715
- * `getApp()` 函数用于获取当前应用实例,可通过应用实例调用 App.uvue methods 中定义的方法。
716
- * @tutorial https://uniapp.dcloud.net.cn/tutorial/page.html#getapp
717
- */
718
- function getApp<T extends EditorCreateVueAppComponentX = AppCreateVueAppComponentDefault>(): AppInstance<T>
719
-
720
- interface OnLaunchOptions {
721
- /**
722
- * 应用启动页面路径
723
- */
724
- path: string;
725
- /**
726
- * 打开小程序的query
727
- */
728
- // query: AnyObject;
729
- /**
730
- * 打开小程序的场景值
731
- * - 1001: 发现栏小程序主入口,「最近使用」列表(基础库2.2.4版本起包含「我的小程序」列表)
732
- * - 1005: 顶部搜索框的搜索结果页
733
- * - 1006: 发现栏小程序主入口搜索框的搜索结果页
734
- * - 1007: 单人聊天会话中的小程序消息卡片
735
- * - 1008: 群聊会话中的小程序消息卡片
736
- * - 1011: 扫描二维码
737
- * - 1012: 长按图片识别二维码
738
- * - 1013: 手机相册选取二维码
739
- * - 1014: 小程序模板消息
740
- * - 1017: 前往体验版的入口页
741
- * - 1019: 微信钱包
742
- * - 1020: 公众号 profile 页相关小程序列表
743
- * - 1022: 聊天顶部置顶小程序入口
744
- * - 1023: 安卓系统桌面图标
745
- * - 1024: 小程序 profile 页
746
- * - 1025: 扫描一维码
747
- * - 1026: 附近小程序列表
748
- * - 1027: 顶部搜索框搜索结果页「使用过的小程序」列表
749
- * - 1028: 我的卡包
750
- * - 1029: 卡券详情页
751
- * - 1030: 自动化测试下打开小程序
752
- * - 1031: 长按图片识别一维码
753
- * - 1032: 手机相册选取一维码
754
- * - 1034: 微信支付完成页
755
- * - 1035: 公众号自定义菜单
756
- * - 1036: App 分享消息卡片
757
- * - 1037: 小程序打开小程序
758
- * - 1038: 从另一个小程序返回
759
- * - 1039: 摇电视
760
- * - 1042: 添加好友搜索框的搜索结果页
761
- * - 1043: 公众号模板消息
762
- * - 1044: 带 shareTicket 的小程序消息卡片
763
- * - 1045: 朋友圈广告
764
- * - 1046: 朋友圈广告详情页
765
- * - 1047: 扫描小程序码
766
- * - 1048: 长按图片识别小程序码
767
- * - 1049: 手机相册选取小程序码
768
- * - 1052: 卡券的适用门店列表
769
- * - 1053: 搜一搜的结果页
770
- * - 1054: 顶部搜索框小程序快捷入口
771
- * - 1056: 音乐播放器菜单
772
- * - 1057: 钱包中的银行卡详情页
773
- * - 1058: 公众号文章
774
- * - 1059: 体验版小程序绑定邀请页
775
- * - 1064: 微信连Wi-Fi状态栏
776
- * - 1067: 公众号文章广告
777
- * - 1068: 附近小程序列表广告
778
- * - 1069: 移动应用
779
- * - 1071: 钱包中的银行卡列表页
780
- * - 1072: 二维码收款页面
781
- * - 1073: 客服消息列表下发的小程序消息卡片
782
- * - 1074: 公众号会话下发的小程序消息卡片
783
- * - 1077: 摇周边
784
- * - 1078: 连Wi-Fi成功页
785
- * - 1079: 微信游戏中心
786
- * - 1081: 客服消息下发的文字链
787
- * - 1082: 公众号会话下发的文字链
788
- * - 1084: 朋友圈广告原生页
789
- * - 1089: 微信聊天主界面下拉,「最近使用」栏(基础库2.2.4版本起包含「我的小程序」栏)
790
- * - 1090: 长按小程序右上角菜单唤出最近使用历史
791
- * - 1091: 公众号文章商品卡片
792
- * - 1092: 城市服务入口
793
- * - 1095: 小程序广告组件
794
- * - 1096: 聊天记录
795
- * - 1097: 微信支付签约页
796
- * - 1099: 页面内嵌插件
797
- * - 1102: 公众号 profile 页服务预览
798
- * - 1103: 发现栏小程序主入口,「我的小程序」列表(基础库2.2.4版本起废弃)
799
- * - 1104: 微信聊天主界面下拉,「我的小程序」栏(基础库2.2.4版本起废弃)
800
- */
801
- // scene: number;
802
- /**
803
- * 打开小程序的场景值
804
- */
805
- // shareTicket: string;
806
- /**
807
- * 当场景为由从另一个小程序或公众号或App打开时,返回此字段
808
- */
809
- // referrerInfo?: ReferrerInfo;
810
- }
811
-
812
- interface OnShowOptions {
813
- /**
814
- * 应用启动页面路径
815
- */
816
- path: string
817
- }
818
-
819
- interface OnPageNotFoundOption {
820
- /**
821
- * 不存在页面的路径
822
- */
823
- path: string;
824
- /**
825
- * 打开不存在页面的 query
826
- */
827
- query: AnyObject;
828
- /**
829
- * 是否本次启动的首个页面(例如从分享等入口进来,首个页面是开发者配置的分享页面)
830
- */
831
- isEntryPage: boolean;
832
- }
833
- }
834
-
835
- 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>
836
-
837
- declare module '@vue/runtime-core' {
838
- interface AppCustomOptions extends UniAppOptions {
839
-
840
- }
841
- 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>
842
- }
1
+ /// <reference path='./common.d.ts' />
2
+ import { ComputedOptions, EditorCreateVueAppComponent, MethodOptions, OptionsData, ComponentInternalInstance, EditorVueAppComponent, EditorComponentPublicInstance, DefineApp, ComponentInjectOptions } from '@vue/runtime-core'
3
+
4
+ /**
5
+ * Construct a type with a set of properties K of type T
6
+ */
7
+ type Record<K extends keyof any, T> = {
8
+ [P in K]: T;
9
+ };
10
+ /**
11
+ * From T, pick a set of properties whose keys are in the union K
12
+ */
13
+ type Pick<T, K extends keyof T> = {
14
+ [P in K]: T[P];
15
+ };
16
+ /**
17
+ * Exclude from T those types that are assignable to U
18
+ */
19
+ type Exclude<T, U> = T extends U ? never : T;
20
+ /**
21
+ * Construct a type with the properties of T except for those in type K.
22
+ */
23
+ type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
24
+
25
+ interface ReferrerInfo {
26
+ /**
27
+ * 来源小程序或公众号或App的 appId
28
+ *
29
+ * 以下场景支持返回 referrerInfo.appId:
30
+ * - 1020(公众号 profile 页相关小程序列表): appId
31
+ * - 1035(公众号自定义菜单):来源公众号 appId
32
+ * - 1036(App 分享消息卡片):来源应用 appId
33
+ * - 1037(小程序打开小程序):来源小程序 appId
34
+ * - 1038(从另一个小程序返回):来源小程序 appId
35
+ * - 1043(公众号模板消息):来源公众号 appId
36
+ */
37
+ appId: string;
38
+ /**
39
+ * 来源小程序传过来的数据,scene=1037或1038时支持
40
+ */
41
+ extraData?: any;
42
+ }
43
+
44
+ type GlobalData = Record<string, any | null>
45
+ interface UniAppOptions<G extends GlobalData = GlobalData> {
46
+ /**
47
+ * 全局对象
48
+ *
49
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
50
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
51
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
52
+ *
53
+ * @uniPlatform {
54
+ * "app": {
55
+ * "android": {
56
+ * "osVer": "5.0",
57
+ * "uniVer": "√",
58
+ * "unixVer": "3.9"
59
+ * },
60
+ * "ios": {
61
+ * "osVer": "10.0",
62
+ * "uniVer": "√",
63
+ * "unixVer": "4.0"
64
+ * }
65
+ * },
66
+ * "mp": {
67
+ * "weixin": {
68
+ * "hostVer": "√",
69
+ * "uniVer": "√",
70
+ * "unixVer": "x"
71
+ * },
72
+ * "alipay": {
73
+ * "hostVer": "√",
74
+ * "uniVer": "√",
75
+ * "unixVer": "x"
76
+ * },
77
+ * "baidu": {
78
+ * "hostVer": "√",
79
+ * "uniVer": "√",
80
+ * "unixVer": "x"
81
+ * },
82
+ * "toutiao": {
83
+ * "hostVer": "√",
84
+ * "uniVer": "√",
85
+ * "unixVer": "x"
86
+ * },
87
+ * "lark": {
88
+ * "hostVer": "√",
89
+ * "uniVer": "√",
90
+ * "unixVer": "x"
91
+ * },
92
+ * "qq": {
93
+ * "hostVer": "√",
94
+ * "uniVer": "√",
95
+ * "unixVer": "x"
96
+ * },
97
+ * "kuaishou": {
98
+ * "hostVer": "√",
99
+ * "uniVer": "√",
100
+ * "unixVer": "x"
101
+ * },
102
+ * "jd": {
103
+ * "hostVer": "√",
104
+ * "uniVer": "√",
105
+ * "unixVer": "x"
106
+ * }
107
+ * },
108
+ * "web": {
109
+ * "uniVer": "√",
110
+ * "unixVer": "4.0"
111
+ * }
112
+ *}
113
+ */
114
+ globalData?: G;
115
+ /**
116
+ * 生命周期回调,监听应用初始化,应用初始化完成时触发,全局只触发一次。
117
+ *
118
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
119
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
120
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
121
+ *
122
+ * @uniPlatform {
123
+ * "app": {
124
+ * "android": {
125
+ * "osVer": "5.0",
126
+ * "uniVer": "√",
127
+ * "unixVer": "3.9"
128
+ * },
129
+ * "ios": {
130
+ * "osVer": "10.0",
131
+ * "uniVer": "√",
132
+ * "unixVer": "4.0"
133
+ * }
134
+ * },
135
+ * "mp": {
136
+ * "weixin": {
137
+ * "hostVer": "√",
138
+ * "uniVer": "√",
139
+ * "unixVer": "x"
140
+ * },
141
+ * "alipay": {
142
+ * "hostVer": "√",
143
+ * "uniVer": "√",
144
+ * "unixVer": "x"
145
+ * },
146
+ * "baidu": {
147
+ * "hostVer": "√",
148
+ * "uniVer": "√",
149
+ * "unixVer": "x"
150
+ * },
151
+ * "toutiao": {
152
+ * "hostVer": "√",
153
+ * "uniVer": "√",
154
+ * "unixVer": "x"
155
+ * },
156
+ * "lark": {
157
+ * "hostVer": "√",
158
+ * "uniVer": "√",
159
+ * "unixVer": "x"
160
+ * },
161
+ * "qq": {
162
+ * "hostVer": "√",
163
+ * "uniVer": "√",
164
+ * "unixVer": "x"
165
+ * },
166
+ * "kuaishou": {
167
+ * "hostVer": "√",
168
+ * "uniVer": "√",
169
+ * "unixVer": "x"
170
+ * },
171
+ * "jd": {
172
+ * "hostVer": "√",
173
+ * "uniVer": "√",
174
+ * "unixVer": "x"
175
+ * }
176
+ * },
177
+ * "web": {
178
+ * "uniVer": "√",
179
+ * "unixVer": "4.0"
180
+ * }
181
+ *}
182
+ */
183
+ onLaunch?(options: OnLaunchOptions): void;
184
+ /**
185
+ * 生命周期回调 监听应用显示
186
+ *
187
+ * 应用启动,或从后台进入前台显示时触发
188
+ *
189
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
190
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
191
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
192
+ * @uniPlatform {
193
+ * "app": {
194
+ * "android": {
195
+ * "osVer": "5.0",
196
+ * "uniVer": "",
197
+ * "unixVer": "3.9"
198
+ * },
199
+ * "ios": {
200
+ * "osVer": "10.0",
201
+ * "uniVer": "√",
202
+ * "unixVer": "4.0"
203
+ * }
204
+ * },
205
+ * "mp": {
206
+ * "weixin": {
207
+ * "hostVer": "√",
208
+ * "uniVer": "√",
209
+ * "unixVer": "x"
210
+ * },
211
+ * "alipay": {
212
+ * "hostVer": "√",
213
+ * "uniVer": "√",
214
+ * "unixVer": "x"
215
+ * },
216
+ * "baidu": {
217
+ * "hostVer": "√",
218
+ * "uniVer": "√",
219
+ * "unixVer": "x"
220
+ * },
221
+ * "toutiao": {
222
+ * "hostVer": "√",
223
+ * "uniVer": "√",
224
+ * "unixVer": "x"
225
+ * },
226
+ * "lark": {
227
+ * "hostVer": "√",
228
+ * "uniVer": "√",
229
+ * "unixVer": "x"
230
+ * },
231
+ * "qq": {
232
+ * "hostVer": "√",
233
+ * "uniVer": "√",
234
+ * "unixVer": "x"
235
+ * },
236
+ * "kuaishou": {
237
+ * "hostVer": "√",
238
+ * "uniVer": "√",
239
+ * "unixVer": "x"
240
+ * },
241
+ * "jd": {
242
+ * "hostVer": "√",
243
+ * "uniVer": "√",
244
+ * "unixVer": "x"
245
+ * }
246
+ * },
247
+ * "web": {
248
+ * "uniVer": "√",
249
+ * "unixVer": "4.0"
250
+ * }
251
+ *}
252
+ */
253
+ onShow?(options: OnShowOptions): void;
254
+ /**
255
+ * 生命周期回调 监听应用隐藏
256
+ *
257
+ * 应用从前台进入后台时触发
258
+ *
259
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
260
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
261
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
262
+ * @uniPlatform {
263
+ * "app": {
264
+ * "android": {
265
+ * "osVer": "5.0",
266
+ * "uniVer": "√",
267
+ * "unixVer": "3.9"
268
+ * },
269
+ * "ios": {
270
+ * "osVer": "10.0",
271
+ * "uniVer": "√",
272
+ * "unixVer": "4.0"
273
+ * }
274
+ * },
275
+ * "mp": {
276
+ * "weixin": {
277
+ * "hostVer": "√",
278
+ * "uniVer": "√",
279
+ * "unixVer": "x"
280
+ * },
281
+ * "alipay": {
282
+ * "hostVer": "√",
283
+ * "uniVer": "√",
284
+ * "unixVer": "x"
285
+ * },
286
+ * "baidu": {
287
+ * "hostVer": "√",
288
+ * "uniVer": "√",
289
+ * "unixVer": "x"
290
+ * },
291
+ * "toutiao": {
292
+ * "hostVer": "√",
293
+ * "uniVer": "√",
294
+ * "unixVer": "x"
295
+ * },
296
+ * "lark": {
297
+ * "hostVer": "√",
298
+ * "uniVer": "√",
299
+ * "unixVer": "x"
300
+ * },
301
+ * "qq": {
302
+ * "hostVer": "√",
303
+ * "uniVer": "√",
304
+ * "unixVer": "x"
305
+ * },
306
+ * "kuaishou": {
307
+ * "hostVer": "√",
308
+ * "uniVer": "√",
309
+ * "unixVer": "x"
310
+ * },
311
+ * "jd": {
312
+ * "hostVer": "√",
313
+ * "uniVer": "√",
314
+ * "unixVer": "x"
315
+ * }
316
+ * },
317
+ * "web": {
318
+ * "uniVer": "√",
319
+ * "unixVer": "4.0"
320
+ * }
321
+ *}
322
+ */
323
+ onHide?(): void;
324
+ /**
325
+ * 错误监听函数
326
+ * 应用发生脚本错误或 API 调用报错时触发
327
+ * @param error 错误信息
328
+ *
329
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
330
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
331
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
332
+ * @uniPlatform {
333
+ * "app": {
334
+ * "android": {
335
+ * "osVer": "5.0",
336
+ * "uniVer": "√",
337
+ * "unixVer": "4.21"
338
+ * },
339
+ * "ios": {
340
+ * "osVer": "10.0",
341
+ * "uniVer": "√",
342
+ * "unixVer": "4.21"
343
+ * }
344
+ * },
345
+ * "mp": {
346
+ * "weixin": {
347
+ * "hostVer": "",
348
+ * "uniVer": "√",
349
+ * "unixVer": "x"
350
+ * },
351
+ * "alipay": {
352
+ * "hostVer": "",
353
+ * "uniVer": "√",
354
+ * "unixVer": "x"
355
+ * },
356
+ * "baidu": {
357
+ * "hostVer": "",
358
+ * "uniVer": "√",
359
+ * "unixVer": "x"
360
+ * },
361
+ * "toutiao": {
362
+ * "hostVer": "",
363
+ * "uniVer": "√",
364
+ * "unixVer": "x"
365
+ * },
366
+ * "lark": {
367
+ * "hostVer": "",
368
+ * "uniVer": "√",
369
+ * "unixVer": "x"
370
+ * },
371
+ * "qq": {
372
+ * "hostVer": "",
373
+ * "uniVer": "√",
374
+ * "unixVer": "x"
375
+ * },
376
+ * "kuaishou": {
377
+ * "hostVer": "",
378
+ * "uniVer": "√",
379
+ * "unixVer": "x"
380
+ * },
381
+ * "jd": {
382
+ * "hostVer": "",
383
+ * "uniVer": "√",
384
+ * "unixVer": "x"
385
+ * }
386
+ * },
387
+ * "web": {
388
+ * "uniVer": "√",
389
+ * "unixVer": "4.0"
390
+ * }
391
+ *}
392
+ */
393
+ onError?(error: string): void;
394
+ /**
395
+ * 页面不存在监听函数
396
+ *
397
+ * 应用要打开的页面不存在时触发,会带上页面信息回调该函数
398
+ *
399
+ * **注意:**
400
+ * 1. 如果开发者没有添加 `onPageNotFound` 监听,当跳转页面不存在时,将推入微信客户端原生的页面不存在提示页面。
401
+ * 2. 如果 `onPageNotFound` 回调中又重定向到另一个不存在的页面,将推入微信客户端原生的页面不存在提示页面,并且不再回调 `onPageNotFound`。
402
+ *
403
+ * @tutorial https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
404
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
405
+ * @internal
406
+ * @uniPlatform {
407
+ * "app": {
408
+ * "android": {
409
+ * "osVer": "5.0",
410
+ * "uniVer": "√",
411
+ * "unixVer": "x"
412
+ * },
413
+ * "ios": {
414
+ * "osVer": "10.0",
415
+ * "uniVer": "",
416
+ * "unixVer": "x"
417
+ * }
418
+ * },
419
+ * "mp": {
420
+ * "weixin": {
421
+ * "hostVer": "√",
422
+ * "uniVer": "√",
423
+ * "unixVer": "x"
424
+ * },
425
+ * "alipay": {
426
+ * "hostVer": "√",
427
+ * "uniVer": "√",
428
+ * "unixVer": "x"
429
+ * },
430
+ * "baidu": {
431
+ * "hostVer": "√",
432
+ * "uniVer": "√",
433
+ * "unixVer": "x"
434
+ * },
435
+ * "toutiao": {
436
+ * "hostVer": "√",
437
+ * "uniVer": "√",
438
+ * "unixVer": "x"
439
+ * },
440
+ * "lark": {
441
+ * "hostVer": "√",
442
+ * "uniVer": "√",
443
+ * "unixVer": "x"
444
+ * },
445
+ * "qq": {
446
+ * "hostVer": "√",
447
+ * "uniVer": "√",
448
+ * "unixVer": "x"
449
+ * },
450
+ * "kuaishou": {
451
+ * "hostVer": "√",
452
+ * "uniVer": "√",
453
+ * "unixVer": "x"
454
+ * },
455
+ * "jd": {
456
+ * "hostVer": "√",
457
+ * "uniVer": "√",
458
+ * "unixVer": "x"
459
+ * }
460
+ * },
461
+ * "web": {
462
+ * "uniVer": "√",
463
+ * "unixVer": "4.0"
464
+ * }
465
+ *}
466
+ */
467
+ onPageNotFound?(options: OnPageNotFoundOption): void;
468
+ /**
469
+ * 监听 nvue 页面消息
470
+ *
471
+ * nvue 页面使用 `uni.postMessage` 发送消息时触发
472
+ *
473
+ * @tutorial https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
474
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
475
+ * @internal
476
+ * @uniPlatform {
477
+ * "app": {
478
+ * "android": {
479
+ * "osVer": "5.0",
480
+ * "uniVer": "√",
481
+ * "unixVer": "x"
482
+ * },
483
+ * "ios": {
484
+ * "osVer": "10.0",
485
+ * "uniVer": "√",
486
+ * "unixVer": "x"
487
+ * }
488
+ * },
489
+ * "mp": {
490
+ * "weixin": {
491
+ * "hostVer": "√",
492
+ * "uniVer": "√",
493
+ * "unixVer": "x"
494
+ * },
495
+ * "alipay": {
496
+ * "hostVer": "√",
497
+ * "uniVer": "√",
498
+ * "unixVer": "x"
499
+ * },
500
+ * "baidu": {
501
+ * "hostVer": "√",
502
+ * "uniVer": "√",
503
+ * "unixVer": "x"
504
+ * },
505
+ * "toutiao": {
506
+ * "hostVer": "√",
507
+ * "uniVer": "√",
508
+ * "unixVer": "x"
509
+ * },
510
+ * "lark": {
511
+ * "hostVer": "√",
512
+ * "uniVer": "√",
513
+ * "unixVer": "x"
514
+ * },
515
+ * "qq": {
516
+ * "hostVer": "√",
517
+ * "uniVer": "√",
518
+ * "unixVer": "x"
519
+ * },
520
+ * "kuaishou": {
521
+ * "hostVer": "√",
522
+ * "uniVer": "√",
523
+ * "unixVer": "x"
524
+ * },
525
+ * "jd": {
526
+ * "hostVer": "√",
527
+ * "uniVer": "√",
528
+ * "unixVer": "x"
529
+ * },
530
+ * "360": {
531
+ * "hostVer": "√",
532
+ * "uniVer": "√",
533
+ * "unixVer": "x"
534
+ * }
535
+ * },
536
+ * "quickapp": {
537
+ * "uniVer": "√",
538
+ * "unixVer": "x"
539
+ * },
540
+ * "web": {
541
+ * "uniVer": "√",
542
+ * "unixVer": "4.0"
543
+ * }
544
+ *}
545
+ */
546
+ onUniNViewMessage?(options: AnyObject): void;
547
+ /**
548
+ * 监听应用退出。app-uvue-android 3.9+
549
+ *
550
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
551
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/collocation/app.html#applifecycle
552
+ * @uniPlatform {
553
+ * "app": {
554
+ * "android": {
555
+ * "osVer": "5.0",
556
+ * "uniVer": "x",
557
+ * "unixVer": "3.9"
558
+ * },
559
+ * "ios": {
560
+ * "osVer": "x",
561
+ * "uniVer": "x",
562
+ * "unixVer": "x"
563
+ * }
564
+ * },
565
+ * "mp": {
566
+ * "weixin": {
567
+ * "hostVer": "x",
568
+ * "uniVer": "x",
569
+ * "unixVer": "x"
570
+ * },
571
+ * "alipay": {
572
+ * "hostVer": "x",
573
+ * "uniVer": "x",
574
+ * "unixVer": "x"
575
+ * },
576
+ * "baidu": {
577
+ * "hostVer": "x",
578
+ * "uniVer": "x",
579
+ * "unixVer": "x"
580
+ * },
581
+ * "toutiao": {
582
+ * "hostVer": "x",
583
+ * "uniVer": "x",
584
+ * "unixVer": "x"
585
+ * },
586
+ * "lark": {
587
+ * "hostVer": "x",
588
+ * "uniVer": "x",
589
+ * "unixVer": "x"
590
+ * },
591
+ * "qq": {
592
+ * "hostVer": "x",
593
+ * "uniVer": "x",
594
+ * "unixVer": "x"
595
+ * },
596
+ * "kuaishou": {
597
+ * "hostVer": "x",
598
+ * "uniVer": "x",
599
+ * "unixVer": "x"
600
+ * },
601
+ * "jd": {
602
+ * "hostVer": "x",
603
+ * "uniVer": "x",
604
+ * "unixVer": "x"
605
+ * },
606
+ * "360": {
607
+ * "hostVer": "x",
608
+ * "uniVer": "x",
609
+ * "unixVer": "x"
610
+ * }
611
+ * },
612
+ * "quickapp": {
613
+ * "uniVer": "x",
614
+ * "unixVer": "x"
615
+ * },
616
+ * "web": {
617
+ * "uniVer": "x",
618
+ * "unixVer": "x"
619
+ * }
620
+ *}
621
+ */
622
+ onExit?(): void;
623
+ /**
624
+ * 最后一个页面按下Android back键,常用于自定义退出。app-uvue-android 3.9+
625
+ *
626
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/exit.html
627
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/exit.html
628
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/collocation/App.html#applifecycle
629
+ * @uniPlatform {
630
+ * "app": {
631
+ * "android": {
632
+ * "osVer": "5.0",
633
+ * "uniVer": "x",
634
+ * "unixVer": "3.9"
635
+ * },
636
+ * "ios": {
637
+ * "osVer": "x",
638
+ * "uniVer": "x",
639
+ * "unixVer": "x"
640
+ * }
641
+ * },
642
+ * "mp": {
643
+ * "weixin": {
644
+ * "hostVer": "x",
645
+ * "uniVer": "x",
646
+ * "unixVer": "x"
647
+ * },
648
+ * "alipay": {
649
+ * "hostVer": "x",
650
+ * "uniVer": "x",
651
+ * "unixVer": "x"
652
+ * },
653
+ * "baidu": {
654
+ * "hostVer": "x",
655
+ * "uniVer": "x",
656
+ * "unixVer": "x"
657
+ * },
658
+ * "toutiao": {
659
+ * "hostVer": "x",
660
+ * "uniVer": "x",
661
+ * "unixVer": "x"
662
+ * },
663
+ * "lark": {
664
+ * "hostVer": "x",
665
+ * "uniVer": "x",
666
+ * "unixVer": "x"
667
+ * },
668
+ * "qq": {
669
+ * "hostVer": "x",
670
+ * "uniVer": "x",
671
+ * "unixVer": "x"
672
+ * },
673
+ * "kuaishou": {
674
+ * "hostVer": "x",
675
+ * "uniVer": "x",
676
+ * "unixVer": "x"
677
+ * },
678
+ * "jd": {
679
+ * "hostVer": "x",
680
+ * "uniVer": "x",
681
+ * "unixVer": "x"
682
+ * },
683
+ * "360": {
684
+ * "hostVer": "x",
685
+ * "uniVer": "x",
686
+ * "unixVer": "x"
687
+ * }
688
+ * },
689
+ * "quickapp": {
690
+ * "uniVer": "x",
691
+ * "unixVer": "x"
692
+ * },
693
+ * "web": {
694
+ * "uniVer": "x",
695
+ * "unixVer": "x"
696
+ * }
697
+ *}
698
+ */
699
+ onLastPageBackPress?(): void;
700
+ }
701
+
702
+ /**
703
+ * Obtain the return type of a function type
704
+ */
705
+ type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
706
+
707
+ 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> & {
708
+ globalData: G
709
+ }
710
+
711
+ type EditorVueAppComponentX<D extends OptionsData, C extends ComputedOptions, M extends MethodOptions, I extends ComponentInjectOptions, II extends string, G extends GlobalData> = EditorVueAppComponent<D, C, M> & {
712
+ $: EditorComponentPublicInstanceX<D, C, M, I, II, G>
713
+ }
714
+
715
+ 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'> & {
716
+ // 仅用于编辑器提示,TODO 重写 create 方法实现
717
+ create: (instance: ComponentInternalInstance) => EditorVueAppComponentX<D, C, M, I, II, G>;
718
+ }
719
+
720
+ type AppInstance<T extends EditorCreateVueAppComponentX> = ReturnType<T['create']>['$']
721
+
722
+ declare global {
723
+ export interface AppCreateVueAppComponentDefault { }
724
+ /**
725
+ * `getApp()` 函数用于获取当前应用实例,可通过应用实例调用 App.uvue methods 中定义的方法。
726
+ * @tutorial https://uniapp.dcloud.net.cn/tutorial/page.html#getapp
727
+ */
728
+ function getApp<T extends EditorCreateVueAppComponentX = AppCreateVueAppComponentDefault>(): AppInstance<T>
729
+
730
+ interface OnLaunchOptions {
731
+ /**
732
+ * 应用启动页面路径
733
+ */
734
+ path: string;
735
+ /**
736
+ * 首次启动时的Scheme。返回值与App.onLaunch的回调参数一致
737
+ *
738
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/getLaunchOptionsSync.html
739
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
740
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
741
+ * @uniPlatform {
742
+ * "app": {
743
+ * "android": {
744
+ * "osVer": "5.0",
745
+ * "uniVer": "√",
746
+ * "unixVer": "4.25"
747
+ * },
748
+ * "ios": {
749
+ * "osVer": "12.0",
750
+ * "uniVer": "√",
751
+ * "unixVer": "4.25"
752
+ * },
753
+ * "harmony": {
754
+ * "osVer": "x",
755
+ * "uniVer": "x",
756
+ * "unixVer": "x"
757
+ * }
758
+ * },
759
+ * "mp": {
760
+ * "weixin": {
761
+ * "hostVer": "√",
762
+ * "uniVer": "√",
763
+ * "unixVer": "x"
764
+ * },
765
+ * },
766
+ * "web": {
767
+ * "uniVer": "√",
768
+ * "unixVer": "4.0"
769
+ * }
770
+ * }
771
+ */
772
+ appScheme: string | null,
773
+ /**
774
+ * 首次启动时的appLink。返回值与App.onLaunch的回调参数一致
775
+ *
776
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/getLaunchOptionsSync.html
777
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
778
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
779
+ * @uniPlatform {
780
+ * "app": {
781
+ * "android": {
782
+ * "osVer": "5.0",
783
+ * "uniVer": "√",
784
+ * "unixVer": "4.25"
785
+ * },
786
+ * "ios": {
787
+ * "osVer": "12.0",
788
+ * "uniVer": "√",
789
+ * "unixVer": "4.25"
790
+ * },
791
+ * "harmony": {
792
+ * "osVer": "x",
793
+ * "uniVer": "x",
794
+ * "unixVer": "x"
795
+ * }
796
+ * },
797
+ * "mp": {
798
+ * "weixin": {
799
+ * "hostVer": "√",
800
+ * "uniVer": "√",
801
+ * "unixVer": "x"
802
+ * },
803
+ * },
804
+ * "web": {
805
+ * "uniVer": "√",
806
+ * "unixVer": "4.0"
807
+ * }
808
+ * }
809
+ */
810
+ appLink: string | null
811
+ /**
812
+ * 打开小程序的query
813
+ */
814
+ // query: AnyObject;
815
+ /**
816
+ * 打开小程序的场景值
817
+ * - 1001: 发现栏小程序主入口,「最近使用」列表(基础库2.2.4版本起包含「我的小程序」列表)
818
+ * - 1005: 顶部搜索框的搜索结果页
819
+ * - 1006: 发现栏小程序主入口搜索框的搜索结果页
820
+ * - 1007: 单人聊天会话中的小程序消息卡片
821
+ * - 1008: 群聊会话中的小程序消息卡片
822
+ * - 1011: 扫描二维码
823
+ * - 1012: 长按图片识别二维码
824
+ * - 1013: 手机相册选取二维码
825
+ * - 1014: 小程序模板消息
826
+ * - 1017: 前往体验版的入口页
827
+ * - 1019: 微信钱包
828
+ * - 1020: 公众号 profile 页相关小程序列表
829
+ * - 1022: 聊天顶部置顶小程序入口
830
+ * - 1023: 安卓系统桌面图标
831
+ * - 1024: 小程序 profile 页
832
+ * - 1025: 扫描一维码
833
+ * - 1026: 附近小程序列表
834
+ * - 1027: 顶部搜索框搜索结果页「使用过的小程序」列表
835
+ * - 1028: 我的卡包
836
+ * - 1029: 卡券详情页
837
+ * - 1030: 自动化测试下打开小程序
838
+ * - 1031: 长按图片识别一维码
839
+ * - 1032: 手机相册选取一维码
840
+ * - 1034: 微信支付完成页
841
+ * - 1035: 公众号自定义菜单
842
+ * - 1036: App 分享消息卡片
843
+ * - 1037: 小程序打开小程序
844
+ * - 1038: 从另一个小程序返回
845
+ * - 1039: 摇电视
846
+ * - 1042: 添加好友搜索框的搜索结果页
847
+ * - 1043: 公众号模板消息
848
+ * - 1044: 带 shareTicket 的小程序消息卡片
849
+ * - 1045: 朋友圈广告
850
+ * - 1046: 朋友圈广告详情页
851
+ * - 1047: 扫描小程序码
852
+ * - 1048: 长按图片识别小程序码
853
+ * - 1049: 手机相册选取小程序码
854
+ * - 1052: 卡券的适用门店列表
855
+ * - 1053: 搜一搜的结果页
856
+ * - 1054: 顶部搜索框小程序快捷入口
857
+ * - 1056: 音乐播放器菜单
858
+ * - 1057: 钱包中的银行卡详情页
859
+ * - 1058: 公众号文章
860
+ * - 1059: 体验版小程序绑定邀请页
861
+ * - 1064: 微信连Wi-Fi状态栏
862
+ * - 1067: 公众号文章广告
863
+ * - 1068: 附近小程序列表广告
864
+ * - 1069: 移动应用
865
+ * - 1071: 钱包中的银行卡列表页
866
+ * - 1072: 二维码收款页面
867
+ * - 1073: 客服消息列表下发的小程序消息卡片
868
+ * - 1074: 公众号会话下发的小程序消息卡片
869
+ * - 1077: 摇周边
870
+ * - 1078: 连Wi-Fi成功页
871
+ * - 1079: 微信游戏中心
872
+ * - 1081: 客服消息下发的文字链
873
+ * - 1082: 公众号会话下发的文字链
874
+ * - 1084: 朋友圈广告原生页
875
+ * - 1089: 微信聊天主界面下拉,「最近使用」栏(基础库2.2.4版本起包含「我的小程序」栏)
876
+ * - 1090: 长按小程序右上角菜单唤出最近使用历史
877
+ * - 1091: 公众号文章商品卡片
878
+ * - 1092: 城市服务入口
879
+ * - 1095: 小程序广告组件
880
+ * - 1096: 聊天记录
881
+ * - 1097: 微信支付签约页
882
+ * - 1099: 页面内嵌插件
883
+ * - 1102: 公众号 profile 页服务预览
884
+ * - 1103: 发现栏小程序主入口,「我的小程序」列表(基础库2.2.4版本起废弃)
885
+ * - 1104: 微信聊天主界面下拉,「我的小程序」栏(基础库2.2.4版本起废弃)
886
+ */
887
+ // scene: number;
888
+ /**
889
+ * 打开小程序的场景值
890
+ */
891
+ // shareTicket: string;
892
+ /**
893
+ * 当场景为由从另一个小程序或公众号或App打开时,返回此字段
894
+ */
895
+ // referrerInfo?: ReferrerInfo;
896
+ }
897
+
898
+ interface OnShowOptions {
899
+ /**
900
+ * 应用启动页面路径
901
+ */
902
+ path: string
903
+ /**
904
+ * 本次启动时的Scheme。返回值与App.onShow的回调参数一致
905
+ *
906
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
907
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
908
+ * @uniPlatform {
909
+ * "app": {
910
+ * "android": {
911
+ * "osVer": "5.0",
912
+ * "uniVer": "x",
913
+ * "unixVer": "4.25"
914
+ * },
915
+ * "ios": {
916
+ * "osVer": "12.0",
917
+ * "uniVer": "x",
918
+ * "unixVer": "4.25"
919
+ * },
920
+ * "harmony": {
921
+ * "osVer": "x",
922
+ * "uniVer": "x",
923
+ * "unixVer": "x"
924
+ * }
925
+ * },
926
+ * "mp": {
927
+ * "weixin": {
928
+ * "hostVer": "√",
929
+ * "uniVer": "√",
930
+ * "unixVer": "x"
931
+ * },
932
+ * },
933
+ * "web": {
934
+ * "uniVer": "√",
935
+ * "unixVer": "4.0"
936
+ * }
937
+ * }
938
+ */
939
+ appScheme: string | null
940
+ /**
941
+ * 本次启动时的appLink。返回值与App.onShow的回调参数一致
942
+ *
943
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
944
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-enter-options-sync.html
945
+ * @uniPlatform {
946
+ * "app": {
947
+ * "android": {
948
+ * "osVer": "5.0",
949
+ * "uniVer": "x",
950
+ * "unixVer": "4.25"
951
+ * },
952
+ * "ios": {
953
+ * "osVer": "12.0",
954
+ * "uniVer": "x",
955
+ * "unixVer": "4.25"
956
+ * },
957
+ * "harmony": {
958
+ * "osVer": "x",
959
+ * "uniVer": "x",
960
+ * "unixVer": "x"
961
+ * }
962
+ * },
963
+ * "mp": {
964
+ * "weixin": {
965
+ * "hostVer": "√",
966
+ * "uniVer": "√",
967
+ * "unixVer": "x"
968
+ * },
969
+ * },
970
+ * "web": {
971
+ * "uniVer": "√",
972
+ * "unixVer": "4.0"
973
+ * }
974
+ * }
975
+ */
976
+ appLink: string | null
977
+ }
978
+
979
+ interface OnPageNotFoundOption {
980
+ /**
981
+ * 不存在页面的路径
982
+ */
983
+ path: string;
984
+ /**
985
+ * 打开不存在页面的 query
986
+ */
987
+ query: AnyObject;
988
+ /**
989
+ * 是否本次启动的首个页面(例如从分享等入口进来,首个页面是开发者配置的分享页面)
990
+ */
991
+ isEntryPage: boolean;
992
+ }
993
+ }
994
+
995
+ 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>
996
+
997
+ declare module '@vue/runtime-core' {
998
+ interface AppCustomOptions extends UniAppOptions {
999
+
1000
+ }
1001
+ 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>
1002
+ }