@dcloudio/uni-app-x 0.7.7 → 0.7.8

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 (215) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +1 -1
  3. package/options.d.ts +9 -9
  4. package/package.json +27 -27
  5. package/types/app.d.ts +843 -843
  6. package/types/index.d.ts +7 -7
  7. package/types/native/AsyncApiResult.d.ts +7 -7
  8. package/types/native/CSSStyleDeclaration.d.ts +25 -25
  9. package/types/native/DOMRect.d.ts +56 -56
  10. package/types/native/DrawableContext.d.ts +162 -162
  11. package/types/native/INavigationBar.d.ts +22 -22
  12. package/types/native/IUniElement.d.ts +762 -755
  13. package/types/native/IUniError.d.ts +20 -20
  14. package/types/native/IUniForm.d.ts +9 -9
  15. package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
  16. package/types/native/NodeData.d.ts +22 -22
  17. package/types/native/PageNode.d.ts +6 -6
  18. package/types/native/SnapshotOptions.d.ts +63 -63
  19. package/types/native/SourceError.d.ts +46 -46
  20. package/types/native/UTSAndroidHookProxy.d.ts +14 -14
  21. package/types/native/UniAggregateError.d.ts +19 -19
  22. package/types/native/UniApp.d.ts +66 -66
  23. package/types/native/UniCallbackWrapper.d.ts +7 -7
  24. package/types/native/UniCustomEvent.d.ts +24 -24
  25. package/types/native/UniDocument.d.ts +35 -35
  26. package/types/native/UniElement.d.ts +74 -74
  27. package/types/native/UniError.d.ts +70 -70
  28. package/types/native/UniEvent.d.ts +62 -62
  29. package/types/native/UniFormControl.d.ts +8 -8
  30. package/types/native/UniFormControlElement.d.ts +14 -14
  31. package/types/native/UniImageErrorEvent.d.ts +15 -15
  32. package/types/native/UniImageLoadEvent.d.ts +19 -19
  33. package/types/native/UniInputBlurEvent.d.ts +19 -19
  34. package/types/native/UniInputConfirmEvent.d.ts +15 -15
  35. package/types/native/UniInputEvent.d.ts +33 -24
  36. package/types/native/UniInputFocusEvent.d.ts +33 -33
  37. package/types/native/{UniPage.d.ts → UniNativePage.d.ts} +141 -96
  38. package/types/native/UniPageEvent.d.ts +10 -10
  39. package/types/native/UniPageManager.d.ts +17 -17
  40. package/types/native/UniPageScrollEvent.d.ts +13 -13
  41. package/types/native/UniPointerEvent.d.ts +74 -73
  42. package/types/native/UniRefresherEvent.d.ts +18 -14
  43. package/types/native/UniResizeEvent.d.ts +34 -34
  44. package/types/native/UniRichTextItemClickEvent.d.ts +23 -23
  45. package/types/native/UniScrollEvent.d.ts +42 -36
  46. package/types/native/UniScrollToLowerEvent.d.ts +23 -16
  47. package/types/native/UniScrollToUpperEvent.d.ts +23 -16
  48. package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
  49. package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
  50. package/types/native/UniSwiperAnimationFinishEvent.d.ts +19 -19
  51. package/types/native/UniSwiperChangeEvent.d.ts +19 -19
  52. package/types/native/UniSwiperTransitionEvent.d.ts +19 -19
  53. package/types/native/UniTabTapEvent.d.ts +18 -18
  54. package/types/native/UniTabsElement.d.ts +29 -29
  55. package/types/native/UniTextElement.d.ts +17 -17
  56. package/types/native/UniTextareaFocusEvent.d.ts +34 -34
  57. package/types/native/UniTouchEvent.d.ts +64 -60
  58. package/types/native/UniVideoElement.d.ts +70 -70
  59. package/types/native/UniWebViewDownloadEvent.d.ts +42 -42
  60. package/types/native/UniWebViewElement.d.ts +10 -10
  61. package/types/native/UniWebViewErrorEvent.d.ts +37 -37
  62. package/types/native/UniWebViewLoadEvent.d.ts +26 -26
  63. package/types/native/UniWebViewLoadingEvent.d.ts +27 -27
  64. package/types/native/UniWebViewMessageEvent.d.ts +26 -26
  65. package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
  66. package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
  67. package/types/native/WebViewStyles.d.ts +20 -20
  68. package/types/native/global.d.ts +446 -429
  69. package/types/native/index.d.ts +65 -65
  70. package/types/native-global/index.d.ts +1 -1
  71. package/types/page.d.ts +1593 -1593
  72. package/types/process.d.ts +5 -5
  73. package/types/uni/base/index.d.ts +3 -3
  74. package/types/uni/core/global.d.ts +13 -13
  75. package/types/uni/core/index.d.ts +13 -13
  76. package/types/uni/core/lib/base/event/global.d.ts +16 -16
  77. package/types/uni/core/lib/base/event/index.d.ts +7 -7
  78. package/types/uni/core/lib/base/event/interface.d.ts +277 -277
  79. package/types/uni/core/lib/base/interceptor/global.d.ts +18 -18
  80. package/types/uni/core/lib/base/interceptor/index.d.ts +8 -8
  81. package/types/uni/core/lib/base/interceptor/interface.d.ts +150 -150
  82. package/types/uni/core/lib/interface.d.ts +28 -28
  83. package/types/uni/core/lib/lifecycle/global.d.ts +10 -10
  84. package/types/uni/core/lib/lifecycle/index.d.ts +4 -4
  85. package/types/uni/core/lib/lifecycle/interface.d.ts +37 -37
  86. package/types/uni/core/lib/performance/global.d.ts +22 -22
  87. package/types/uni/core/lib/performance/index.d.ts +10 -10
  88. package/types/uni/core/lib/performance/interface.d.ts +157 -157
  89. package/types/uni/core/lib/route/global.d.ts +68 -68
  90. package/types/uni/core/lib/route/index.d.ts +33 -33
  91. package/types/uni/core/lib/route/interface.d.ts +2031 -2031
  92. package/types/uni/core/lib/ui/create-selector-query/global.d.ts +20 -20
  93. package/types/uni/core/lib/ui/create-selector-query/index.d.ts +9 -9
  94. package/types/uni/core/lib/ui/create-selector-query/interface.d.ts +412 -412
  95. package/types/uni/core/lib/ui/get-element-by-id/global.d.ts +10 -10
  96. package/types/uni/core/lib/ui/get-element-by-id/index.d.ts +4 -4
  97. package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +73 -73
  98. package/types/uni/core/lib/ui/load-font-face/global.d.ts +26 -26
  99. package/types/uni/core/lib/ui/load-font-face/index.d.ts +12 -12
  100. package/types/uni/core/lib/ui/load-font-face/interface.d.ts +560 -560
  101. package/types/uni/core/lib/ui/page-scroll-to/global.d.ts +26 -26
  102. package/types/uni/core/lib/ui/page-scroll-to/index.d.ts +12 -12
  103. package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +145 -145
  104. package/types/uni/core/lib/ui/pull-down-refresh/global.d.ts +28 -28
  105. package/types/uni/core/lib/ui/pull-down-refresh/index.d.ts +13 -13
  106. package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +176 -176
  107. package/types/uni/core/lib/ui/set-navigation-bar-color/global.d.ts +28 -28
  108. package/types/uni/core/lib/ui/set-navigation-bar-color/index.d.ts +13 -13
  109. package/types/uni/core/lib/ui/set-navigation-bar-color/interface.d.ts +431 -431
  110. package/types/uni/core/lib/ui/set-navigation-bar-title/global.d.ts +28 -28
  111. package/types/uni/core/lib/ui/set-navigation-bar-title/index.d.ts +13 -13
  112. package/types/uni/core/lib/ui/set-navigation-bar-title/interface.d.ts +368 -368
  113. package/types/uni/core/lib/ui/tab-bar/global.d.ts +130 -130
  114. package/types/uni/core/lib/ui/tab-bar/index.d.ts +64 -64
  115. package/types/uni/core/lib/ui/tab-bar/interface.d.ts +928 -928
  116. package/types/uni/env/index.d.ts +64 -64
  117. package/types/uni/global.d.ts +6 -6
  118. package/types/uni/index.d.ts +3 -3
  119. package/types/uni/uts-plugin-api/global.d.ts +23 -22
  120. package/types/uni/uts-plugin-api/index.d.ts +23 -22
  121. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  122. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  123. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +43 -43
  124. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  125. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  126. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +101 -101
  127. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  128. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  129. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +82 -82
  130. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +66 -66
  131. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +32 -32
  132. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +423 -423
  133. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  134. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  135. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  136. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  137. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  138. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  139. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +350 -350
  140. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  141. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  142. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +20 -20
  143. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +9 -9
  144. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +151 -151
  145. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +24 -24
  146. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +11 -11
  147. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +24 -0
  148. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +11 -0
  149. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +87 -0
  150. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +30 -30
  151. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +14 -14
  152. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  153. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  154. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  155. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  156. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +158 -158
  157. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +78 -78
  158. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +906 -906
  159. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +68 -68
  160. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +33 -33
  161. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +72 -72
  162. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +35 -35
  163. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  164. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  165. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +74 -62
  166. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +36 -30
  167. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +40 -8
  168. package/types/uni/uts-plugin-api/lib/uni-requestPayment-alipay/utssdk/global.d.ts +28 -28
  169. package/types/uni/uts-plugin-api/lib/uni-requestPayment-alipay/utssdk/index.d.ts +13 -13
  170. package/types/uni/uts-plugin-api/lib/uni-requestPayment-alipay/utssdk/interface.d.ts +1 -1
  171. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  172. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  173. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +33 -33
  174. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  175. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  176. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +531 -531
  177. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  178. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  179. package/types/uni/uts-plugin-biz/global.d.ts +4 -4
  180. package/types/uni/uts-plugin-biz/index.d.ts +4 -4
  181. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +36 -36
  182. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +17 -17
  183. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +132 -132
  184. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  185. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  186. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +141 -141
  187. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +56 -56
  188. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +27 -27
  189. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +46 -46
  190. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +22 -22
  191. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +203 -203
  192. package/types/uni/uts-plugin-component/global.d.ts +1 -1
  193. package/types/uni/uts-plugin-component/index.d.ts +1 -1
  194. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +64 -64
  195. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +31 -31
  196. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +356 -356
  197. package/types/uni-cloud/index.d.ts +59 -59
  198. package/types/uni-cloud/interface.d.ts +801 -801
  199. package/types/uni-cloud/unicloud-db/index.ts +313 -313
  200. package/types/uni-global/index.d.ts +1 -1
  201. package/types/vue/CheckboxGroupChangeEvent.d.ts +36 -36
  202. package/types/vue/LifeCycle.d.ts +55 -55
  203. package/types/vue/PickerViewChangeEvent.d.ts +36 -36
  204. package/types/vue/ProgressActiveendEvent.d.ts +30 -30
  205. package/types/vue/RadioGroupChangeEvent.d.ts +36 -36
  206. package/types/vue/SliderChangeEvent.d.ts +32 -32
  207. package/types/vue/SwitchChangeEvent.d.ts +30 -30
  208. package/types/vue/UniCanvasElement.d.ts +270 -270
  209. package/types/vue/UniCloudDBElement.d.ts +215 -215
  210. package/types/vue/UniFormElement.d.ts +51 -51
  211. package/types/vue/UniNavigatorElement.d.ts +7 -7
  212. package/types/vue/index.d.ts +11 -11
  213. package/uts-plugin.d.ts +26 -26
  214. package/types/uni-cloud/unicloud-db/index.d.ts +0 -81
  215. package/types/vue/UniButtonElement.d.ts +0 -7
package/types/app.d.ts CHANGED
@@ -1,843 +1,843 @@
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": "√"
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": "√"
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": "√"
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://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
325
- * @autodoc false
326
- * @uniPlatform {
327
- * "app": {
328
- * "android": {
329
- * "osVer": "5.0",
330
- * "uniVer": "√",
331
- * "unixVer": "x"
332
- * },
333
- * "ios": {
334
- * "osVer": "10.0",
335
- * "uniVer": "√",
336
- * "unixVer": "x"
337
- * }
338
- * },
339
- * "mp": {
340
- * "weixin": {
341
- * "hostVer": "√",
342
- * "uniVer": "√",
343
- * "unixVer": "x"
344
- * },
345
- * "alipay": {
346
- * "hostVer": "√",
347
- * "uniVer": "√",
348
- * "unixVer": "x"
349
- * },
350
- * "baidu": {
351
- * "hostVer": "√",
352
- * "uniVer": "√",
353
- * "unixVer": "x"
354
- * },
355
- * "toutiao": {
356
- * "hostVer": "√",
357
- * "uniVer": "√",
358
- * "unixVer": "x"
359
- * },
360
- * "lark": {
361
- * "hostVer": "√",
362
- * "uniVer": "√",
363
- * "unixVer": "x"
364
- * },
365
- * "qq": {
366
- * "hostVer": "√",
367
- * "uniVer": "√",
368
- * "unixVer": "x"
369
- * },
370
- * "kuaishou": {
371
- * "hostVer": "√",
372
- * "uniVer": "√",
373
- * "unixVer": "x"
374
- * },
375
- * "jd": {
376
- * "hostVer": "√",
377
- * "uniVer": "√",
378
- * "unixVer": "x"
379
- * }
380
- * },
381
- * "web": {
382
- * "uniVer": "√",
383
- * "unixVer": "4.0"
384
- * }
385
- *}
386
- */
387
- onError?(error: string): void;
388
- /**
389
- * 页面不存在监听函数
390
- *
391
- * 应用要打开的页面不存在时触发,会带上页面信息回调该函数
392
- *
393
- * **注意:**
394
- * 1. 如果开发者没有添加 `onPageNotFound` 监听,当跳转页面不存在时,将推入微信客户端原生的页面不存在提示页面。
395
- * 2. 如果 `onPageNotFound` 回调中又重定向到另一个不存在的页面,将推入微信客户端原生的页面不存在提示页面,并且不再回调 `onPageNotFound`。
396
- *
397
- * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
398
- * @autodoc false
399
- * @uniPlatform {
400
- * "app": {
401
- * "android": {
402
- * "osVer": "5.0",
403
- * "uniVer": "√",
404
- * "unixVer": "x"
405
- * },
406
- * "ios": {
407
- * "osVer": "10.0",
408
- * "uniVer": "√",
409
- * "unixVer": "x"
410
- * }
411
- * },
412
- * "mp": {
413
- * "weixin": {
414
- * "hostVer": "√",
415
- * "uniVer": "√",
416
- * "unixVer": "x"
417
- * },
418
- * "alipay": {
419
- * "hostVer": "√",
420
- * "uniVer": "√",
421
- * "unixVer": "x"
422
- * },
423
- * "baidu": {
424
- * "hostVer": "√",
425
- * "uniVer": "√",
426
- * "unixVer": "x"
427
- * },
428
- * "toutiao": {
429
- * "hostVer": "√",
430
- * "uniVer": "√",
431
- * "unixVer": "x"
432
- * },
433
- * "lark": {
434
- * "hostVer": "√",
435
- * "uniVer": "√",
436
- * "unixVer": "x"
437
- * },
438
- * "qq": {
439
- * "hostVer": "√",
440
- * "uniVer": "√",
441
- * "unixVer": "x"
442
- * },
443
- * "kuaishou": {
444
- * "hostVer": "√",
445
- * "uniVer": "√",
446
- * "unixVer": "x"
447
- * },
448
- * "jd": {
449
- * "hostVer": "√",
450
- * "uniVer": "√",
451
- * "unixVer": "x"
452
- * }
453
- * },
454
- * "web": {
455
- * "uniVer": "√",
456
- * "unixVer": "4.0"
457
- * }
458
- *}
459
- */
460
- onPageNotFound?(options: OnPageNotFoundOption): void;
461
- /**
462
- * 监听 nvue 页面消息
463
- *
464
- * nvue 页面使用 `uni.postMessage` 发送消息时触发
465
- *
466
- * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
467
- * @autodoc false
468
- * @uniPlatform {
469
- * "app": {
470
- * "android": {
471
- * "osVer": "5.0",
472
- * "uniVer": "√",
473
- * "unixVer": "x"
474
- * },
475
- * "ios": {
476
- * "osVer": "10.0",
477
- * "uniVer": "√",
478
- * "unixVer": "x"
479
- * }
480
- * },
481
- * "mp": {
482
- * "weixin": {
483
- * "hostVer": "√",
484
- * "uniVer": "√",
485
- * "unixVer": "x"
486
- * },
487
- * "alipay": {
488
- * "hostVer": "√",
489
- * "uniVer": "√",
490
- * "unixVer": "x"
491
- * },
492
- * "baidu": {
493
- * "hostVer": "√",
494
- * "uniVer": "√",
495
- * "unixVer": "x"
496
- * },
497
- * "toutiao": {
498
- * "hostVer": "√",
499
- * "uniVer": "√",
500
- * "unixVer": "x"
501
- * },
502
- * "lark": {
503
- * "hostVer": "√",
504
- * "uniVer": "√",
505
- * "unixVer": "x"
506
- * },
507
- * "qq": {
508
- * "hostVer": "√",
509
- * "uniVer": "√",
510
- * "unixVer": "x"
511
- * },
512
- * "kuaishou": {
513
- * "hostVer": "√",
514
- * "uniVer": "√",
515
- * "unixVer": "x"
516
- * },
517
- * "jd": {
518
- * "hostVer": "√",
519
- * "uniVer": "√",
520
- * "unixVer": "x"
521
- * },
522
- * "360": {
523
- * "hostVer": "√",
524
- * "uniVer": "√",
525
- * "unixVer": "x"
526
- * }
527
- * },
528
- * "quickapp": {
529
- * "uniVer": "√",
530
- * "unixVer": "x"
531
- * },
532
- * "web": {
533
- * "uniVer": "√",
534
- * "unixVer": "4.0"
535
- * }
536
- *}
537
- */
538
- onUniNViewMessage?(options: AnyObject): void;
539
- /**
540
- * 监听应用退出。app-uvue-android 3.9+
541
- *
542
- * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
543
- * @autodoc false
544
- * @uniPlatform {
545
- * "app": {
546
- * "android": {
547
- * "osVer": "5.0",
548
- * "uniVer": "x",
549
- * "unixVer": "√"
550
- * },
551
- * "ios": {
552
- * "osVer": "x",
553
- * "uniVer": "x",
554
- * "unixVer": "x"
555
- * }
556
- * },
557
- * "mp": {
558
- * "weixin": {
559
- * "hostVer": "x",
560
- * "uniVer": "x",
561
- * "unixVer": "x"
562
- * },
563
- * "alipay": {
564
- * "hostVer": "x",
565
- * "uniVer": "x",
566
- * "unixVer": "x"
567
- * },
568
- * "baidu": {
569
- * "hostVer": "x",
570
- * "uniVer": "x",
571
- * "unixVer": "x"
572
- * },
573
- * "toutiao": {
574
- * "hostVer": "x",
575
- * "uniVer": "x",
576
- * "unixVer": "x"
577
- * },
578
- * "lark": {
579
- * "hostVer": "x",
580
- * "uniVer": "x",
581
- * "unixVer": "x"
582
- * },
583
- * "qq": {
584
- * "hostVer": "x",
585
- * "uniVer": "x",
586
- * "unixVer": "x"
587
- * },
588
- * "kuaishou": {
589
- * "hostVer": "x",
590
- * "uniVer": "x",
591
- * "unixVer": "x"
592
- * },
593
- * "jd": {
594
- * "hostVer": "x",
595
- * "uniVer": "x",
596
- * "unixVer": "x"
597
- * },
598
- * "360": {
599
- * "hostVer": "x",
600
- * "uniVer": "x",
601
- * "unixVer": "x"
602
- * }
603
- * },
604
- * "quickapp": {
605
- * "uniVer": "x",
606
- * "unixVer": "x"
607
- * },
608
- * "web": {
609
- * "uniVer": "x",
610
- * "unixVer": "4.0"
611
- * }
612
- *}
613
- */
614
- onExit?(): void;
615
- /**
616
- * 最后一个页面按下Android back键,常用于自定义退出。app-uvue-android 3.9+
617
- *
618
- * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
619
- * @autodoc false
620
- * @uniPlatform {
621
- * "app": {
622
- * "android": {
623
- * "osVer": "5.0",
624
- * "uniVer": "x",
625
- * "unixVer": "√"
626
- * },
627
- * "ios": {
628
- * "osVer": "x",
629
- * "uniVer": "x",
630
- * "unixVer": "x"
631
- * }
632
- * },
633
- * "mp": {
634
- * "weixin": {
635
- * "hostVer": "x",
636
- * "uniVer": "x",
637
- * "unixVer": "x"
638
- * },
639
- * "alipay": {
640
- * "hostVer": "x",
641
- * "uniVer": "x",
642
- * "unixVer": "x"
643
- * },
644
- * "baidu": {
645
- * "hostVer": "x",
646
- * "uniVer": "x",
647
- * "unixVer": "x"
648
- * },
649
- * "toutiao": {
650
- * "hostVer": "x",
651
- * "uniVer": "x",
652
- * "unixVer": "x"
653
- * },
654
- * "lark": {
655
- * "hostVer": "x",
656
- * "uniVer": "x",
657
- * "unixVer": "x"
658
- * },
659
- * "qq": {
660
- * "hostVer": "x",
661
- * "uniVer": "x",
662
- * "unixVer": "x"
663
- * },
664
- * "kuaishou": {
665
- * "hostVer": "x",
666
- * "uniVer": "x",
667
- * "unixVer": "x"
668
- * },
669
- * "jd": {
670
- * "hostVer": "x",
671
- * "uniVer": "x",
672
- * "unixVer": "x"
673
- * },
674
- * "360": {
675
- * "hostVer": "x",
676
- * "uniVer": "x",
677
- * "unixVer": "x"
678
- * }
679
- * },
680
- * "quickapp": {
681
- * "uniVer": "x",
682
- * "unixVer": "x"
683
- * },
684
- * "web": {
685
- * "uniVer": "x",
686
- * "unixVer": "4.0"
687
- * }
688
- *}
689
- */
690
- onLastPageBackPress?(): void;
691
- }
692
-
693
- /**
694
- * Obtain the return type of a function type
695
- */
696
- type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
697
-
698
- 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> & {
699
- globalData: G
700
- }
701
-
702
- type EditorVueAppComponentX<D extends OptionsData, C extends ComputedOptions, M extends MethodOptions, I extends ComponentInjectOptions, II extends string, G extends GlobalData> = EditorVueAppComponent<D, C, M> & {
703
- $: EditorComponentPublicInstanceX<D, C, M, I, II, G>
704
- }
705
-
706
- 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'> & {
707
- // 仅用于编辑器提示,TODO 重写 create 方法实现
708
- create: (instance: ComponentInternalInstance) => EditorVueAppComponentX<D, C, M, I, II, G>;
709
- }
710
-
711
- type AppInstance<T extends EditorCreateVueAppComponentX> = ReturnType<T['create']>['$']
712
-
713
- declare global {
714
- export interface AppCreateVueAppComponentDefault { }
715
- /**
716
- * `getApp()` 函数用于获取当前应用实例,可通过应用实例调用 App.uvue methods 中定义的方法。
717
- * @tutorial https://uniapp.dcloud.net.cn/tutorial/page.html#getapp
718
- */
719
- function getApp<T extends EditorCreateVueAppComponentX = AppCreateVueAppComponentDefault>(): AppInstance<T>
720
-
721
- interface OnLaunchOptions {
722
- /**
723
- * 应用启动页面路径
724
- */
725
- path: string;
726
- /**
727
- * 打开小程序的query
728
- */
729
- // query: AnyObject;
730
- /**
731
- * 打开小程序的场景值
732
- * - 1001: 发现栏小程序主入口,「最近使用」列表(基础库2.2.4版本起包含「我的小程序」列表)
733
- * - 1005: 顶部搜索框的搜索结果页
734
- * - 1006: 发现栏小程序主入口搜索框的搜索结果页
735
- * - 1007: 单人聊天会话中的小程序消息卡片
736
- * - 1008: 群聊会话中的小程序消息卡片
737
- * - 1011: 扫描二维码
738
- * - 1012: 长按图片识别二维码
739
- * - 1013: 手机相册选取二维码
740
- * - 1014: 小程序模板消息
741
- * - 1017: 前往体验版的入口页
742
- * - 1019: 微信钱包
743
- * - 1020: 公众号 profile 页相关小程序列表
744
- * - 1022: 聊天顶部置顶小程序入口
745
- * - 1023: 安卓系统桌面图标
746
- * - 1024: 小程序 profile 页
747
- * - 1025: 扫描一维码
748
- * - 1026: 附近小程序列表
749
- * - 1027: 顶部搜索框搜索结果页「使用过的小程序」列表
750
- * - 1028: 我的卡包
751
- * - 1029: 卡券详情页
752
- * - 1030: 自动化测试下打开小程序
753
- * - 1031: 长按图片识别一维码
754
- * - 1032: 手机相册选取一维码
755
- * - 1034: 微信支付完成页
756
- * - 1035: 公众号自定义菜单
757
- * - 1036: App 分享消息卡片
758
- * - 1037: 小程序打开小程序
759
- * - 1038: 从另一个小程序返回
760
- * - 1039: 摇电视
761
- * - 1042: 添加好友搜索框的搜索结果页
762
- * - 1043: 公众号模板消息
763
- * - 1044: 带 shareTicket 的小程序消息卡片
764
- * - 1045: 朋友圈广告
765
- * - 1046: 朋友圈广告详情页
766
- * - 1047: 扫描小程序码
767
- * - 1048: 长按图片识别小程序码
768
- * - 1049: 手机相册选取小程序码
769
- * - 1052: 卡券的适用门店列表
770
- * - 1053: 搜一搜的结果页
771
- * - 1054: 顶部搜索框小程序快捷入口
772
- * - 1056: 音乐播放器菜单
773
- * - 1057: 钱包中的银行卡详情页
774
- * - 1058: 公众号文章
775
- * - 1059: 体验版小程序绑定邀请页
776
- * - 1064: 微信连Wi-Fi状态栏
777
- * - 1067: 公众号文章广告
778
- * - 1068: 附近小程序列表广告
779
- * - 1069: 移动应用
780
- * - 1071: 钱包中的银行卡列表页
781
- * - 1072: 二维码收款页面
782
- * - 1073: 客服消息列表下发的小程序消息卡片
783
- * - 1074: 公众号会话下发的小程序消息卡片
784
- * - 1077: 摇周边
785
- * - 1078: 连Wi-Fi成功页
786
- * - 1079: 微信游戏中心
787
- * - 1081: 客服消息下发的文字链
788
- * - 1082: 公众号会话下发的文字链
789
- * - 1084: 朋友圈广告原生页
790
- * - 1089: 微信聊天主界面下拉,「最近使用」栏(基础库2.2.4版本起包含「我的小程序」栏)
791
- * - 1090: 长按小程序右上角菜单唤出最近使用历史
792
- * - 1091: 公众号文章商品卡片
793
- * - 1092: 城市服务入口
794
- * - 1095: 小程序广告组件
795
- * - 1096: 聊天记录
796
- * - 1097: 微信支付签约页
797
- * - 1099: 页面内嵌插件
798
- * - 1102: 公众号 profile 页服务预览
799
- * - 1103: 发现栏小程序主入口,「我的小程序」列表(基础库2.2.4版本起废弃)
800
- * - 1104: 微信聊天主界面下拉,「我的小程序」栏(基础库2.2.4版本起废弃)
801
- */
802
- // scene: number;
803
- /**
804
- * 打开小程序的场景值
805
- */
806
- // shareTicket: string;
807
- /**
808
- * 当场景为由从另一个小程序或公众号或App打开时,返回此字段
809
- */
810
- // referrerInfo?: ReferrerInfo;
811
- }
812
-
813
- interface OnShowOptions {
814
- /**
815
- * 应用启动页面路径
816
- */
817
- path: string
818
- }
819
-
820
- interface OnPageNotFoundOption {
821
- /**
822
- * 不存在页面的路径
823
- */
824
- path: string;
825
- /**
826
- * 打开不存在页面的 query
827
- */
828
- query: AnyObject;
829
- /**
830
- * 是否本次启动的首个页面(例如从分享等入口进来,首个页面是开发者配置的分享页面)
831
- */
832
- isEntryPage: boolean;
833
- }
834
- }
835
-
836
- 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>
837
-
838
- declare module '@vue/runtime-core' {
839
- interface AppCustomOptions extends UniAppOptions {
840
-
841
- }
842
- 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>
843
- }
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": "√"
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": "√"
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": "√"
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://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
325
+ * @autodoc false
326
+ * @uniPlatform {
327
+ * "app": {
328
+ * "android": {
329
+ * "osVer": "5.0",
330
+ * "uniVer": "√",
331
+ * "unixVer": "x"
332
+ * },
333
+ * "ios": {
334
+ * "osVer": "10.0",
335
+ * "uniVer": "√",
336
+ * "unixVer": "x"
337
+ * }
338
+ * },
339
+ * "mp": {
340
+ * "weixin": {
341
+ * "hostVer": "√",
342
+ * "uniVer": "√",
343
+ * "unixVer": "x"
344
+ * },
345
+ * "alipay": {
346
+ * "hostVer": "√",
347
+ * "uniVer": "√",
348
+ * "unixVer": "x"
349
+ * },
350
+ * "baidu": {
351
+ * "hostVer": "√",
352
+ * "uniVer": "√",
353
+ * "unixVer": "x"
354
+ * },
355
+ * "toutiao": {
356
+ * "hostVer": "√",
357
+ * "uniVer": "√",
358
+ * "unixVer": "x"
359
+ * },
360
+ * "lark": {
361
+ * "hostVer": "√",
362
+ * "uniVer": "√",
363
+ * "unixVer": "x"
364
+ * },
365
+ * "qq": {
366
+ * "hostVer": "√",
367
+ * "uniVer": "√",
368
+ * "unixVer": "x"
369
+ * },
370
+ * "kuaishou": {
371
+ * "hostVer": "√",
372
+ * "uniVer": "√",
373
+ * "unixVer": "x"
374
+ * },
375
+ * "jd": {
376
+ * "hostVer": "√",
377
+ * "uniVer": "√",
378
+ * "unixVer": "x"
379
+ * }
380
+ * },
381
+ * "web": {
382
+ * "uniVer": "√",
383
+ * "unixVer": "4.0"
384
+ * }
385
+ *}
386
+ */
387
+ onError?(error: string): void;
388
+ /**
389
+ * 页面不存在监听函数
390
+ *
391
+ * 应用要打开的页面不存在时触发,会带上页面信息回调该函数
392
+ *
393
+ * **注意:**
394
+ * 1. 如果开发者没有添加 `onPageNotFound` 监听,当跳转页面不存在时,将推入微信客户端原生的页面不存在提示页面。
395
+ * 2. 如果 `onPageNotFound` 回调中又重定向到另一个不存在的页面,将推入微信客户端原生的页面不存在提示页面,并且不再回调 `onPageNotFound`。
396
+ *
397
+ * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
398
+ * @autodoc false
399
+ * @uniPlatform {
400
+ * "app": {
401
+ * "android": {
402
+ * "osVer": "5.0",
403
+ * "uniVer": "√",
404
+ * "unixVer": "x"
405
+ * },
406
+ * "ios": {
407
+ * "osVer": "10.0",
408
+ * "uniVer": "√",
409
+ * "unixVer": "x"
410
+ * }
411
+ * },
412
+ * "mp": {
413
+ * "weixin": {
414
+ * "hostVer": "√",
415
+ * "uniVer": "√",
416
+ * "unixVer": "x"
417
+ * },
418
+ * "alipay": {
419
+ * "hostVer": "√",
420
+ * "uniVer": "√",
421
+ * "unixVer": "x"
422
+ * },
423
+ * "baidu": {
424
+ * "hostVer": "√",
425
+ * "uniVer": "√",
426
+ * "unixVer": "x"
427
+ * },
428
+ * "toutiao": {
429
+ * "hostVer": "√",
430
+ * "uniVer": "√",
431
+ * "unixVer": "x"
432
+ * },
433
+ * "lark": {
434
+ * "hostVer": "√",
435
+ * "uniVer": "√",
436
+ * "unixVer": "x"
437
+ * },
438
+ * "qq": {
439
+ * "hostVer": "√",
440
+ * "uniVer": "√",
441
+ * "unixVer": "x"
442
+ * },
443
+ * "kuaishou": {
444
+ * "hostVer": "√",
445
+ * "uniVer": "√",
446
+ * "unixVer": "x"
447
+ * },
448
+ * "jd": {
449
+ * "hostVer": "√",
450
+ * "uniVer": "√",
451
+ * "unixVer": "x"
452
+ * }
453
+ * },
454
+ * "web": {
455
+ * "uniVer": "√",
456
+ * "unixVer": "4.0"
457
+ * }
458
+ *}
459
+ */
460
+ onPageNotFound?(options: OnPageNotFoundOption): void;
461
+ /**
462
+ * 监听 nvue 页面消息
463
+ *
464
+ * nvue 页面使用 `uni.postMessage` 发送消息时触发
465
+ *
466
+ * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
467
+ * @autodoc false
468
+ * @uniPlatform {
469
+ * "app": {
470
+ * "android": {
471
+ * "osVer": "5.0",
472
+ * "uniVer": "√",
473
+ * "unixVer": "x"
474
+ * },
475
+ * "ios": {
476
+ * "osVer": "10.0",
477
+ * "uniVer": "√",
478
+ * "unixVer": "x"
479
+ * }
480
+ * },
481
+ * "mp": {
482
+ * "weixin": {
483
+ * "hostVer": "√",
484
+ * "uniVer": "√",
485
+ * "unixVer": "x"
486
+ * },
487
+ * "alipay": {
488
+ * "hostVer": "√",
489
+ * "uniVer": "√",
490
+ * "unixVer": "x"
491
+ * },
492
+ * "baidu": {
493
+ * "hostVer": "√",
494
+ * "uniVer": "√",
495
+ * "unixVer": "x"
496
+ * },
497
+ * "toutiao": {
498
+ * "hostVer": "√",
499
+ * "uniVer": "√",
500
+ * "unixVer": "x"
501
+ * },
502
+ * "lark": {
503
+ * "hostVer": "√",
504
+ * "uniVer": "√",
505
+ * "unixVer": "x"
506
+ * },
507
+ * "qq": {
508
+ * "hostVer": "√",
509
+ * "uniVer": "√",
510
+ * "unixVer": "x"
511
+ * },
512
+ * "kuaishou": {
513
+ * "hostVer": "√",
514
+ * "uniVer": "√",
515
+ * "unixVer": "x"
516
+ * },
517
+ * "jd": {
518
+ * "hostVer": "√",
519
+ * "uniVer": "√",
520
+ * "unixVer": "x"
521
+ * },
522
+ * "360": {
523
+ * "hostVer": "√",
524
+ * "uniVer": "√",
525
+ * "unixVer": "x"
526
+ * }
527
+ * },
528
+ * "quickapp": {
529
+ * "uniVer": "√",
530
+ * "unixVer": "x"
531
+ * },
532
+ * "web": {
533
+ * "uniVer": "√",
534
+ * "unixVer": "4.0"
535
+ * }
536
+ *}
537
+ */
538
+ onUniNViewMessage?(options: AnyObject): void;
539
+ /**
540
+ * 监听应用退出。app-uvue-android 3.9+
541
+ *
542
+ * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
543
+ * @autodoc false
544
+ * @uniPlatform {
545
+ * "app": {
546
+ * "android": {
547
+ * "osVer": "5.0",
548
+ * "uniVer": "x",
549
+ * "unixVer": "√"
550
+ * },
551
+ * "ios": {
552
+ * "osVer": "x",
553
+ * "uniVer": "x",
554
+ * "unixVer": "x"
555
+ * }
556
+ * },
557
+ * "mp": {
558
+ * "weixin": {
559
+ * "hostVer": "x",
560
+ * "uniVer": "x",
561
+ * "unixVer": "x"
562
+ * },
563
+ * "alipay": {
564
+ * "hostVer": "x",
565
+ * "uniVer": "x",
566
+ * "unixVer": "x"
567
+ * },
568
+ * "baidu": {
569
+ * "hostVer": "x",
570
+ * "uniVer": "x",
571
+ * "unixVer": "x"
572
+ * },
573
+ * "toutiao": {
574
+ * "hostVer": "x",
575
+ * "uniVer": "x",
576
+ * "unixVer": "x"
577
+ * },
578
+ * "lark": {
579
+ * "hostVer": "x",
580
+ * "uniVer": "x",
581
+ * "unixVer": "x"
582
+ * },
583
+ * "qq": {
584
+ * "hostVer": "x",
585
+ * "uniVer": "x",
586
+ * "unixVer": "x"
587
+ * },
588
+ * "kuaishou": {
589
+ * "hostVer": "x",
590
+ * "uniVer": "x",
591
+ * "unixVer": "x"
592
+ * },
593
+ * "jd": {
594
+ * "hostVer": "x",
595
+ * "uniVer": "x",
596
+ * "unixVer": "x"
597
+ * },
598
+ * "360": {
599
+ * "hostVer": "x",
600
+ * "uniVer": "x",
601
+ * "unixVer": "x"
602
+ * }
603
+ * },
604
+ * "quickapp": {
605
+ * "uniVer": "x",
606
+ * "unixVer": "x"
607
+ * },
608
+ * "web": {
609
+ * "uniVer": "x",
610
+ * "unixVer": "4.0"
611
+ * }
612
+ *}
613
+ */
614
+ onExit?(): void;
615
+ /**
616
+ * 最后一个页面按下Android back键,常用于自定义退出。app-uvue-android 3.9+
617
+ *
618
+ * @tutorial [https://uniapp.dcloud.io/collocation/frame/lifecycle](https://uniapp.dcloud.io/collocation/frame/lifecycle)
619
+ * @autodoc false
620
+ * @uniPlatform {
621
+ * "app": {
622
+ * "android": {
623
+ * "osVer": "5.0",
624
+ * "uniVer": "x",
625
+ * "unixVer": "√"
626
+ * },
627
+ * "ios": {
628
+ * "osVer": "x",
629
+ * "uniVer": "x",
630
+ * "unixVer": "x"
631
+ * }
632
+ * },
633
+ * "mp": {
634
+ * "weixin": {
635
+ * "hostVer": "x",
636
+ * "uniVer": "x",
637
+ * "unixVer": "x"
638
+ * },
639
+ * "alipay": {
640
+ * "hostVer": "x",
641
+ * "uniVer": "x",
642
+ * "unixVer": "x"
643
+ * },
644
+ * "baidu": {
645
+ * "hostVer": "x",
646
+ * "uniVer": "x",
647
+ * "unixVer": "x"
648
+ * },
649
+ * "toutiao": {
650
+ * "hostVer": "x",
651
+ * "uniVer": "x",
652
+ * "unixVer": "x"
653
+ * },
654
+ * "lark": {
655
+ * "hostVer": "x",
656
+ * "uniVer": "x",
657
+ * "unixVer": "x"
658
+ * },
659
+ * "qq": {
660
+ * "hostVer": "x",
661
+ * "uniVer": "x",
662
+ * "unixVer": "x"
663
+ * },
664
+ * "kuaishou": {
665
+ * "hostVer": "x",
666
+ * "uniVer": "x",
667
+ * "unixVer": "x"
668
+ * },
669
+ * "jd": {
670
+ * "hostVer": "x",
671
+ * "uniVer": "x",
672
+ * "unixVer": "x"
673
+ * },
674
+ * "360": {
675
+ * "hostVer": "x",
676
+ * "uniVer": "x",
677
+ * "unixVer": "x"
678
+ * }
679
+ * },
680
+ * "quickapp": {
681
+ * "uniVer": "x",
682
+ * "unixVer": "x"
683
+ * },
684
+ * "web": {
685
+ * "uniVer": "x",
686
+ * "unixVer": "4.0"
687
+ * }
688
+ *}
689
+ */
690
+ onLastPageBackPress?(): void;
691
+ }
692
+
693
+ /**
694
+ * Obtain the return type of a function type
695
+ */
696
+ type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
697
+
698
+ 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> & {
699
+ globalData: G
700
+ }
701
+
702
+ type EditorVueAppComponentX<D extends OptionsData, C extends ComputedOptions, M extends MethodOptions, I extends ComponentInjectOptions, II extends string, G extends GlobalData> = EditorVueAppComponent<D, C, M> & {
703
+ $: EditorComponentPublicInstanceX<D, C, M, I, II, G>
704
+ }
705
+
706
+ 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'> & {
707
+ // 仅用于编辑器提示,TODO 重写 create 方法实现
708
+ create: (instance: ComponentInternalInstance) => EditorVueAppComponentX<D, C, M, I, II, G>;
709
+ }
710
+
711
+ type AppInstance<T extends EditorCreateVueAppComponentX> = ReturnType<T['create']>['$']
712
+
713
+ declare global {
714
+ export interface AppCreateVueAppComponentDefault { }
715
+ /**
716
+ * `getApp()` 函数用于获取当前应用实例,可通过应用实例调用 App.uvue methods 中定义的方法。
717
+ * @tutorial https://uniapp.dcloud.net.cn/tutorial/page.html#getapp
718
+ */
719
+ function getApp<T extends EditorCreateVueAppComponentX = AppCreateVueAppComponentDefault>(): AppInstance<T>
720
+
721
+ interface OnLaunchOptions {
722
+ /**
723
+ * 应用启动页面路径
724
+ */
725
+ path: string;
726
+ /**
727
+ * 打开小程序的query
728
+ */
729
+ // query: AnyObject;
730
+ /**
731
+ * 打开小程序的场景值
732
+ * - 1001: 发现栏小程序主入口,「最近使用」列表(基础库2.2.4版本起包含「我的小程序」列表)
733
+ * - 1005: 顶部搜索框的搜索结果页
734
+ * - 1006: 发现栏小程序主入口搜索框的搜索结果页
735
+ * - 1007: 单人聊天会话中的小程序消息卡片
736
+ * - 1008: 群聊会话中的小程序消息卡片
737
+ * - 1011: 扫描二维码
738
+ * - 1012: 长按图片识别二维码
739
+ * - 1013: 手机相册选取二维码
740
+ * - 1014: 小程序模板消息
741
+ * - 1017: 前往体验版的入口页
742
+ * - 1019: 微信钱包
743
+ * - 1020: 公众号 profile 页相关小程序列表
744
+ * - 1022: 聊天顶部置顶小程序入口
745
+ * - 1023: 安卓系统桌面图标
746
+ * - 1024: 小程序 profile 页
747
+ * - 1025: 扫描一维码
748
+ * - 1026: 附近小程序列表
749
+ * - 1027: 顶部搜索框搜索结果页「使用过的小程序」列表
750
+ * - 1028: 我的卡包
751
+ * - 1029: 卡券详情页
752
+ * - 1030: 自动化测试下打开小程序
753
+ * - 1031: 长按图片识别一维码
754
+ * - 1032: 手机相册选取一维码
755
+ * - 1034: 微信支付完成页
756
+ * - 1035: 公众号自定义菜单
757
+ * - 1036: App 分享消息卡片
758
+ * - 1037: 小程序打开小程序
759
+ * - 1038: 从另一个小程序返回
760
+ * - 1039: 摇电视
761
+ * - 1042: 添加好友搜索框的搜索结果页
762
+ * - 1043: 公众号模板消息
763
+ * - 1044: 带 shareTicket 的小程序消息卡片
764
+ * - 1045: 朋友圈广告
765
+ * - 1046: 朋友圈广告详情页
766
+ * - 1047: 扫描小程序码
767
+ * - 1048: 长按图片识别小程序码
768
+ * - 1049: 手机相册选取小程序码
769
+ * - 1052: 卡券的适用门店列表
770
+ * - 1053: 搜一搜的结果页
771
+ * - 1054: 顶部搜索框小程序快捷入口
772
+ * - 1056: 音乐播放器菜单
773
+ * - 1057: 钱包中的银行卡详情页
774
+ * - 1058: 公众号文章
775
+ * - 1059: 体验版小程序绑定邀请页
776
+ * - 1064: 微信连Wi-Fi状态栏
777
+ * - 1067: 公众号文章广告
778
+ * - 1068: 附近小程序列表广告
779
+ * - 1069: 移动应用
780
+ * - 1071: 钱包中的银行卡列表页
781
+ * - 1072: 二维码收款页面
782
+ * - 1073: 客服消息列表下发的小程序消息卡片
783
+ * - 1074: 公众号会话下发的小程序消息卡片
784
+ * - 1077: 摇周边
785
+ * - 1078: 连Wi-Fi成功页
786
+ * - 1079: 微信游戏中心
787
+ * - 1081: 客服消息下发的文字链
788
+ * - 1082: 公众号会话下发的文字链
789
+ * - 1084: 朋友圈广告原生页
790
+ * - 1089: 微信聊天主界面下拉,「最近使用」栏(基础库2.2.4版本起包含「我的小程序」栏)
791
+ * - 1090: 长按小程序右上角菜单唤出最近使用历史
792
+ * - 1091: 公众号文章商品卡片
793
+ * - 1092: 城市服务入口
794
+ * - 1095: 小程序广告组件
795
+ * - 1096: 聊天记录
796
+ * - 1097: 微信支付签约页
797
+ * - 1099: 页面内嵌插件
798
+ * - 1102: 公众号 profile 页服务预览
799
+ * - 1103: 发现栏小程序主入口,「我的小程序」列表(基础库2.2.4版本起废弃)
800
+ * - 1104: 微信聊天主界面下拉,「我的小程序」栏(基础库2.2.4版本起废弃)
801
+ */
802
+ // scene: number;
803
+ /**
804
+ * 打开小程序的场景值
805
+ */
806
+ // shareTicket: string;
807
+ /**
808
+ * 当场景为由从另一个小程序或公众号或App打开时,返回此字段
809
+ */
810
+ // referrerInfo?: ReferrerInfo;
811
+ }
812
+
813
+ interface OnShowOptions {
814
+ /**
815
+ * 应用启动页面路径
816
+ */
817
+ path: string
818
+ }
819
+
820
+ interface OnPageNotFoundOption {
821
+ /**
822
+ * 不存在页面的路径
823
+ */
824
+ path: string;
825
+ /**
826
+ * 打开不存在页面的 query
827
+ */
828
+ query: AnyObject;
829
+ /**
830
+ * 是否本次启动的首个页面(例如从分享等入口进来,首个页面是开发者配置的分享页面)
831
+ */
832
+ isEntryPage: boolean;
833
+ }
834
+ }
835
+
836
+ 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>
837
+
838
+ declare module '@vue/runtime-core' {
839
+ interface AppCustomOptions extends UniAppOptions {
840
+
841
+ }
842
+ 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>
843
+ }