@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
@@ -1,30 +1,36 @@
1
- // 本文件为自动构建生成
2
- export {
3
- ShowToastSuccess,
4
- ShowToastSuccessCallback,
5
- ShowToastFailCallback,
6
- ShowToastCompleteCallback,
7
- ShowToastOptions,
8
- ShowToast,
9
- HideToast,
10
- ShowLoadingSuccess,
11
- ShowLoadingSuccessCallback,
12
- ShowLoadingFailCallback,
13
- ShowLoadingCompleteCallback,
14
- ShowLoadingOptions,
15
- ShowLoading,
16
- HideLoading,
17
- ShowModalSuccess,
18
- ShowModalSuccessCallback,
19
- ShowModalFailCallback,
20
- ShowModalCompleteCallback,
21
- ShowModalOptions,
22
- ShowModal,
23
- ShowActionSheetSuccess,
24
- Popover,
25
- ShowActionSheetSuccessCallback,
26
- ShowActionSheetFailCallback,
27
- ShowActionSheetCompleteCallback,
28
- ShowActionSheetOptions,
29
- ShowActionSheet,
30
- } from './interface'
1
+ // 本文件为自动构建生成
2
+ export {
3
+ PromptErrorCode,
4
+ IPromptError,
5
+ ShowToastSuccess,
6
+ ShowToastFail,
7
+ ShowToastSuccessCallback,
8
+ ShowToastFailCallback,
9
+ ShowToastCompleteCallback,
10
+ ShowToastOptions,
11
+ ShowToast,
12
+ HideToast,
13
+ ShowLoadingSuccess,
14
+ ShowLoadingFail,
15
+ ShowLoadingSuccessCallback,
16
+ ShowLoadingFailCallback,
17
+ ShowLoadingCompleteCallback,
18
+ ShowLoadingOptions,
19
+ ShowLoading,
20
+ HideLoading,
21
+ ShowModalSuccess,
22
+ ShowModalFail,
23
+ ShowModalSuccessCallback,
24
+ ShowModalFailCallback,
25
+ ShowModalCompleteCallback,
26
+ ShowModalOptions,
27
+ ShowModal,
28
+ ShowActionSheetSuccess,
29
+ Popover,
30
+ ShowActionSheetFail,
31
+ ShowActionSheetSuccessCallback,
32
+ ShowActionSheetFailCallback,
33
+ ShowActionSheetCompleteCallback,
34
+ ShowActionSheetOptions,
35
+ ShowActionSheet,
36
+ } from './interface'
@@ -1,8 +1,25 @@
1
+ /**
2
+ * 错误码
3
+ * - 1 撤销
4
+ * - 1001 请求参数非法
5
+ */
6
+
7
+ export type PromptErrorCode = 1 | 1001
8
+
9
+ export interface IPromptError extends IUniError {
10
+ errCode : PromptErrorCode
11
+ };
12
+
1
13
  /**
2
14
  * uni.showToast成功回调参数
3
15
  */
4
16
  export type ShowToastSuccess = {
5
- }
17
+ }
18
+
19
+ /**
20
+ * uni.showToast失败回调参数
21
+ */
22
+ export type ShowToastFail = IPromptError;
6
23
 
7
24
  /**
8
25
  * uni.showToast成功回调函数定义
@@ -11,7 +28,7 @@ export type ShowToastSuccessCallback = (res: ShowToastSuccess) => void
11
28
  /**
12
29
  * uni.showToast失败回调函数定义
13
30
  */
14
- export type ShowToastFailCallback = (res: UniError) => void
31
+ export type ShowToastFailCallback = (res: ShowToastFail) => void
15
32
  /**
16
33
  * uni.showToast完成回调函数定义
17
34
  */
@@ -119,7 +136,12 @@ export type HideToast = () => void
119
136
  * uni.showLoading成功回调参数
120
137
  */
121
138
  export type ShowLoadingSuccess = {
122
- }
139
+ }
140
+
141
+ /**
142
+ * uni.showLoading失败回调参数
143
+ */
144
+ export type ShowLoadingFail = IPromptError;
123
145
 
124
146
  /**
125
147
  * uni.showLoading成功回调函数定义
@@ -128,7 +150,7 @@ export type ShowLoadingSuccessCallback = (res: ShowLoadingSuccess) => void
128
150
  /**
129
151
  * uni.showLoading失败回调函数定义
130
152
  */
131
- export type ShowLoadingFailCallback = (res: UniError) => void
153
+ export type ShowLoadingFailCallback = (res: ShowLoadingFail) => void
132
154
  /**
133
155
  * uni.showLoading完成回调函数定义
134
156
  */
@@ -230,7 +252,12 @@ export type ShowModalSuccess = {
230
252
  * editable 为 true 时,用户输入的文本
231
253
  */
232
254
  content: string | null
233
- }
255
+ }
256
+
257
+ /**
258
+ * uni.showModal失败回调参数
259
+ */
260
+ export type ShowModalFail = IPromptError;
234
261
 
235
262
  /**
236
263
  * uni.showModal成功回调函数定义
@@ -239,7 +266,7 @@ export type ShowModalSuccessCallback = (res: ShowModalSuccess) => void
239
266
  /**
240
267
  * uni.showModal失败回调函数定义
241
268
  */
242
- export type ShowModalFailCallback = (res: UniError) => void
269
+ export type ShowModalFailCallback = (res: ShowModalFail) => void
243
270
  /**
244
271
  * uni.showModal完成回调函数定义
245
272
  */
@@ -355,7 +382,12 @@ export type Popover = {
355
382
  * 指示区域高度
356
383
  */
357
384
  height: number
358
- }
385
+ }
386
+
387
+ /**
388
+ * uni.ShowActionSheet失败回调参数
389
+ */
390
+ export type ShowActionSheetFail = IPromptError;
359
391
 
360
392
  /**
361
393
  * uni.showActionSheet成功回调函数定义
@@ -364,7 +396,7 @@ export type ShowActionSheetSuccessCallback = (res: ShowActionSheetSuccess) => vo
364
396
  /**
365
397
  * uni.showActionSheet成功回调函数定义
366
398
  */
367
- export type ShowActionSheetFailCallback = (res: UniError) => void
399
+ export type ShowActionSheetFailCallback = (res: ShowActionSheetFail) => void
368
400
  /**
369
401
  * uni.showActionSheet成功回调函数定义
370
402
  */
@@ -1,28 +1,28 @@
1
- // 本文件为自动构建生成
2
- import {
3
- RequestPaymentErrorCode as RequestPaymentErrorCodeOrigin,
4
- RequestPayment as RequestPaymentOrigin,
5
- RequestPaymentSuccess as RequestPaymentSuccessOrigin,
6
- RequestPaymentSuccessCallback as RequestPaymentSuccessCallbackOrigin,
7
- RequestPaymentFail as RequestPaymentFailOrigin,
8
- RequestPaymentFailCallback as RequestPaymentFailCallbackOrigin,
9
- RequestPaymentComplete as RequestPaymentCompleteOrigin,
10
- IRequestPaymentFail as IRequestPaymentFailOrigin,
11
- RequestPaymentCompleteCallback as RequestPaymentCompleteCallbackOrigin,
12
- RequestPaymentOptions as RequestPaymentOptionsOrigin,
13
- Uni as UniOrigin
14
- } from './interface'
15
-
16
- declare global {
17
- type RequestPaymentErrorCode = RequestPaymentErrorCodeOrigin
18
- type RequestPayment = RequestPaymentOrigin
19
- type RequestPaymentSuccess = RequestPaymentSuccessOrigin
20
- type RequestPaymentSuccessCallback = RequestPaymentSuccessCallbackOrigin
21
- type RequestPaymentFail = RequestPaymentFailOrigin
22
- type RequestPaymentFailCallback = RequestPaymentFailCallbackOrigin
23
- type RequestPaymentComplete = RequestPaymentCompleteOrigin
24
- type IRequestPaymentFail = IRequestPaymentFailOrigin
25
- type RequestPaymentCompleteCallback = RequestPaymentCompleteCallbackOrigin
26
- type RequestPaymentOptions = RequestPaymentOptionsOrigin
27
- interface Uni extends UniOrigin { }
28
- }
1
+ // 本文件为自动构建生成
2
+ import {
3
+ RequestPaymentErrorCode as RequestPaymentErrorCodeOrigin,
4
+ RequestPayment as RequestPaymentOrigin,
5
+ RequestPaymentSuccess as RequestPaymentSuccessOrigin,
6
+ RequestPaymentSuccessCallback as RequestPaymentSuccessCallbackOrigin,
7
+ RequestPaymentFail as RequestPaymentFailOrigin,
8
+ RequestPaymentFailCallback as RequestPaymentFailCallbackOrigin,
9
+ RequestPaymentComplete as RequestPaymentCompleteOrigin,
10
+ IRequestPaymentFail as IRequestPaymentFailOrigin,
11
+ RequestPaymentCompleteCallback as RequestPaymentCompleteCallbackOrigin,
12
+ RequestPaymentOptions as RequestPaymentOptionsOrigin,
13
+ Uni as UniOrigin
14
+ } from './interface'
15
+
16
+ declare global {
17
+ type RequestPaymentErrorCode = RequestPaymentErrorCodeOrigin
18
+ type RequestPayment = RequestPaymentOrigin
19
+ type RequestPaymentSuccess = RequestPaymentSuccessOrigin
20
+ type RequestPaymentSuccessCallback = RequestPaymentSuccessCallbackOrigin
21
+ type RequestPaymentFail = RequestPaymentFailOrigin
22
+ type RequestPaymentFailCallback = RequestPaymentFailCallbackOrigin
23
+ type RequestPaymentComplete = RequestPaymentCompleteOrigin
24
+ type IRequestPaymentFail = IRequestPaymentFailOrigin
25
+ type RequestPaymentCompleteCallback = RequestPaymentCompleteCallbackOrigin
26
+ type RequestPaymentOptions = RequestPaymentOptionsOrigin
27
+ interface Uni extends UniOrigin { }
28
+ }
@@ -1,13 +1,13 @@
1
- // 本文件为自动构建生成
2
- export {
3
- RequestPaymentErrorCode,
4
- RequestPayment,
5
- RequestPaymentSuccess,
6
- RequestPaymentSuccessCallback,
7
- RequestPaymentFail,
8
- RequestPaymentFailCallback,
9
- RequestPaymentComplete,
10
- IRequestPaymentFail,
11
- RequestPaymentCompleteCallback,
12
- RequestPaymentOptions,
13
- } from './interface'
1
+ // 本文件为自动构建生成
2
+ export {
3
+ RequestPaymentErrorCode,
4
+ RequestPayment,
5
+ RequestPaymentSuccess,
6
+ RequestPaymentSuccessCallback,
7
+ RequestPaymentFail,
8
+ RequestPaymentFailCallback,
9
+ RequestPaymentComplete,
10
+ IRequestPaymentFail,
11
+ RequestPaymentCompleteCallback,
12
+ RequestPaymentOptions,
13
+ } from './interface'
@@ -60,7 +60,7 @@ export interface IRequestPaymentFail extends IUniError {
60
60
  export type RequestPaymentCompleteCallback = (result : RequestPaymentComplete) => void;
61
61
  export type RequestPaymentOptions = {
62
62
  /**
63
- * 支付服务提供商,目前仅支持支付宝
63
+ * 支付服务提供商,目前仅支持支付宝(alipay)
64
64
  */
65
65
  provider : string,
66
66
  /**
@@ -1,10 +1,10 @@
1
- // 本文件为自动构建生成
2
- import {
3
- Rpx2px as Rpx2pxOrigin,
4
- Uni as UniOrigin
5
- } from './interface'
6
-
7
- declare global {
8
- type Rpx2px = Rpx2pxOrigin
9
- interface Uni extends UniOrigin { }
10
- }
1
+ // 本文件为自动构建生成
2
+ import {
3
+ Rpx2px as Rpx2pxOrigin,
4
+ Uni as UniOrigin
5
+ } from './interface'
6
+
7
+ declare global {
8
+ type Rpx2px = Rpx2pxOrigin
9
+ interface Uni extends UniOrigin { }
10
+ }
@@ -1,4 +1,4 @@
1
- // 本文件为自动构建生成
2
- export {
3
- Rpx2px,
4
- } from './interface'
1
+ // 本文件为自动构建生成
2
+ export {
3
+ Rpx2px,
4
+ } from './interface'
@@ -1,33 +1,33 @@
1
- export type Rpx2px = (number : number) => number;
2
-
3
- export interface Uni {
4
- /**
5
- * 将rpx单位值转换成px
6
- * @param {number} rpx
7
- * @return {number} px
8
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/rpx2px.html
9
- * @uniPlatform {
10
- * "app": {
11
- * "android": {
12
- * "osVer": "5.0",
13
- * "uniVer": "√",
14
- * "unixVer": "4.02"
15
- * },
16
- * "ios": {
17
- * "osVer": "9.0",
18
- * "uniVer": "√",
19
- * "unixVer": "x"
20
- * }
21
- * },
22
- * "web": {
23
- * "uniVer": "√",
24
- * "unixVer": "4.02"
25
- * }
26
- * }
27
- * @example
28
- ```typescript
29
- uni.rpx2px(200)
30
- ```
31
- */
32
- rpx2px(number : number) : number;
33
- }
1
+ export type Rpx2px = (number : number) => number;
2
+
3
+ export interface Uni {
4
+ /**
5
+ * 将rpx单位值转换成px
6
+ * @param {number} rpx
7
+ * @return {number} px
8
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/rpx2px.html
9
+ * @uniPlatform {
10
+ * "app": {
11
+ * "android": {
12
+ * "osVer": "5.0",
13
+ * "uniVer": "√",
14
+ * "unixVer": "4.02"
15
+ * },
16
+ * "ios": {
17
+ * "osVer": "9.0",
18
+ * "uniVer": "√",
19
+ * "unixVer": "x"
20
+ * }
21
+ * },
22
+ * "web": {
23
+ * "uniVer": "√",
24
+ * "unixVer": "4.02"
25
+ * }
26
+ * }
27
+ * @example
28
+ ```typescript
29
+ uni.rpx2px(200)
30
+ ```
31
+ */
32
+ rpx2px(number : number) : number;
33
+ }
@@ -1,78 +1,78 @@
1
- // 本文件为自动构建生成
2
- import {
3
- SetStorageSuccess as SetStorageSuccessOrigin,
4
- SetStorageSuccessCallback as SetStorageSuccessCallbackOrigin,
5
- SetStorageFailCallback as SetStorageFailCallbackOrigin,
6
- SetStorageCompleteCallback as SetStorageCompleteCallbackOrigin,
7
- SetStorageOptions as SetStorageOptionsOrigin,
8
- SetStorage as SetStorageOrigin,
9
- SetStorageSync as SetStorageSyncOrigin,
10
- GetStorageSuccess as GetStorageSuccessOrigin,
11
- GetStorageSuccessCallback as GetStorageSuccessCallbackOrigin,
12
- GetStorageFailCallback as GetStorageFailCallbackOrigin,
13
- GetStorageCompleteCallback as GetStorageCompleteCallbackOrigin,
14
- GetStorageOptions as GetStorageOptionsOrigin,
15
- GetStorage as GetStorageOrigin,
16
- GetStorageSync as GetStorageSyncOrigin,
17
- GetStorageInfoSuccess as GetStorageInfoSuccessOrigin,
18
- GetStorageInfoSuccessCallback as GetStorageInfoSuccessCallbackOrigin,
19
- GetStorageInfoFailCallback as GetStorageInfoFailCallbackOrigin,
20
- GetStorageInfoCompleteCallback as GetStorageInfoCompleteCallbackOrigin,
21
- GetStorageInfoOptions as GetStorageInfoOptionsOrigin,
22
- GetStorageInfo as GetStorageInfoOrigin,
23
- GetStorageInfoSync as GetStorageInfoSyncOrigin,
24
- RemoveStorageSuccess as RemoveStorageSuccessOrigin,
25
- RemoveStorageSuccessCallback as RemoveStorageSuccessCallbackOrigin,
26
- RemoveStorageFailCallback as RemoveStorageFailCallbackOrigin,
27
- RemoveStorageCompleteCallback as RemoveStorageCompleteCallbackOrigin,
28
- RemoveStorageOptions as RemoveStorageOptionsOrigin,
29
- RemoveStorage as RemoveStorageOrigin,
30
- RemoveStorageSync as RemoveStorageSyncOrigin,
31
- ClearStorageSuccess as ClearStorageSuccessOrigin,
32
- ClearStorageSuccessCallback as ClearStorageSuccessCallbackOrigin,
33
- ClearStorageFailCallback as ClearStorageFailCallbackOrigin,
34
- ClearStorageCompleteCallback as ClearStorageCompleteCallbackOrigin,
35
- ClearStorageOptions as ClearStorageOptionsOrigin,
36
- ClearStorage as ClearStorageOrigin,
37
- ClearStorageSync as ClearStorageSyncOrigin,
38
- Uni as UniOrigin
39
- } from './interface'
40
-
41
- declare global {
42
- type SetStorageSuccess = SetStorageSuccessOrigin
43
- type SetStorageSuccessCallback = SetStorageSuccessCallbackOrigin
44
- type SetStorageFailCallback = SetStorageFailCallbackOrigin
45
- type SetStorageCompleteCallback = SetStorageCompleteCallbackOrigin
46
- type SetStorageOptions = SetStorageOptionsOrigin
47
- type SetStorage = SetStorageOrigin
48
- type SetStorageSync = SetStorageSyncOrigin
49
- type GetStorageSuccess = GetStorageSuccessOrigin
50
- type GetStorageSuccessCallback = GetStorageSuccessCallbackOrigin
51
- type GetStorageFailCallback = GetStorageFailCallbackOrigin
52
- type GetStorageCompleteCallback = GetStorageCompleteCallbackOrigin
53
- type GetStorageOptions = GetStorageOptionsOrigin
54
- type GetStorage = GetStorageOrigin
55
- type GetStorageSync = GetStorageSyncOrigin
56
- type GetStorageInfoSuccess = GetStorageInfoSuccessOrigin
57
- type GetStorageInfoSuccessCallback = GetStorageInfoSuccessCallbackOrigin
58
- type GetStorageInfoFailCallback = GetStorageInfoFailCallbackOrigin
59
- type GetStorageInfoCompleteCallback = GetStorageInfoCompleteCallbackOrigin
60
- type GetStorageInfoOptions = GetStorageInfoOptionsOrigin
61
- type GetStorageInfo = GetStorageInfoOrigin
62
- type GetStorageInfoSync = GetStorageInfoSyncOrigin
63
- type RemoveStorageSuccess = RemoveStorageSuccessOrigin
64
- type RemoveStorageSuccessCallback = RemoveStorageSuccessCallbackOrigin
65
- type RemoveStorageFailCallback = RemoveStorageFailCallbackOrigin
66
- type RemoveStorageCompleteCallback = RemoveStorageCompleteCallbackOrigin
67
- type RemoveStorageOptions = RemoveStorageOptionsOrigin
68
- type RemoveStorage = RemoveStorageOrigin
69
- type RemoveStorageSync = RemoveStorageSyncOrigin
70
- type ClearStorageSuccess = ClearStorageSuccessOrigin
71
- type ClearStorageSuccessCallback = ClearStorageSuccessCallbackOrigin
72
- type ClearStorageFailCallback = ClearStorageFailCallbackOrigin
73
- type ClearStorageCompleteCallback = ClearStorageCompleteCallbackOrigin
74
- type ClearStorageOptions = ClearStorageOptionsOrigin
75
- type ClearStorage = ClearStorageOrigin
76
- type ClearStorageSync = ClearStorageSyncOrigin
77
- interface Uni extends UniOrigin { }
78
- }
1
+ // 本文件为自动构建生成
2
+ import {
3
+ SetStorageSuccess as SetStorageSuccessOrigin,
4
+ SetStorageSuccessCallback as SetStorageSuccessCallbackOrigin,
5
+ SetStorageFailCallback as SetStorageFailCallbackOrigin,
6
+ SetStorageCompleteCallback as SetStorageCompleteCallbackOrigin,
7
+ SetStorageOptions as SetStorageOptionsOrigin,
8
+ SetStorage as SetStorageOrigin,
9
+ SetStorageSync as SetStorageSyncOrigin,
10
+ GetStorageSuccess as GetStorageSuccessOrigin,
11
+ GetStorageSuccessCallback as GetStorageSuccessCallbackOrigin,
12
+ GetStorageFailCallback as GetStorageFailCallbackOrigin,
13
+ GetStorageCompleteCallback as GetStorageCompleteCallbackOrigin,
14
+ GetStorageOptions as GetStorageOptionsOrigin,
15
+ GetStorage as GetStorageOrigin,
16
+ GetStorageSync as GetStorageSyncOrigin,
17
+ GetStorageInfoSuccess as GetStorageInfoSuccessOrigin,
18
+ GetStorageInfoSuccessCallback as GetStorageInfoSuccessCallbackOrigin,
19
+ GetStorageInfoFailCallback as GetStorageInfoFailCallbackOrigin,
20
+ GetStorageInfoCompleteCallback as GetStorageInfoCompleteCallbackOrigin,
21
+ GetStorageInfoOptions as GetStorageInfoOptionsOrigin,
22
+ GetStorageInfo as GetStorageInfoOrigin,
23
+ GetStorageInfoSync as GetStorageInfoSyncOrigin,
24
+ RemoveStorageSuccess as RemoveStorageSuccessOrigin,
25
+ RemoveStorageSuccessCallback as RemoveStorageSuccessCallbackOrigin,
26
+ RemoveStorageFailCallback as RemoveStorageFailCallbackOrigin,
27
+ RemoveStorageCompleteCallback as RemoveStorageCompleteCallbackOrigin,
28
+ RemoveStorageOptions as RemoveStorageOptionsOrigin,
29
+ RemoveStorage as RemoveStorageOrigin,
30
+ RemoveStorageSync as RemoveStorageSyncOrigin,
31
+ ClearStorageSuccess as ClearStorageSuccessOrigin,
32
+ ClearStorageSuccessCallback as ClearStorageSuccessCallbackOrigin,
33
+ ClearStorageFailCallback as ClearStorageFailCallbackOrigin,
34
+ ClearStorageCompleteCallback as ClearStorageCompleteCallbackOrigin,
35
+ ClearStorageOptions as ClearStorageOptionsOrigin,
36
+ ClearStorage as ClearStorageOrigin,
37
+ ClearStorageSync as ClearStorageSyncOrigin,
38
+ Uni as UniOrigin
39
+ } from './interface'
40
+
41
+ declare global {
42
+ type SetStorageSuccess = SetStorageSuccessOrigin
43
+ type SetStorageSuccessCallback = SetStorageSuccessCallbackOrigin
44
+ type SetStorageFailCallback = SetStorageFailCallbackOrigin
45
+ type SetStorageCompleteCallback = SetStorageCompleteCallbackOrigin
46
+ type SetStorageOptions = SetStorageOptionsOrigin
47
+ type SetStorage = SetStorageOrigin
48
+ type SetStorageSync = SetStorageSyncOrigin
49
+ type GetStorageSuccess = GetStorageSuccessOrigin
50
+ type GetStorageSuccessCallback = GetStorageSuccessCallbackOrigin
51
+ type GetStorageFailCallback = GetStorageFailCallbackOrigin
52
+ type GetStorageCompleteCallback = GetStorageCompleteCallbackOrigin
53
+ type GetStorageOptions = GetStorageOptionsOrigin
54
+ type GetStorage = GetStorageOrigin
55
+ type GetStorageSync = GetStorageSyncOrigin
56
+ type GetStorageInfoSuccess = GetStorageInfoSuccessOrigin
57
+ type GetStorageInfoSuccessCallback = GetStorageInfoSuccessCallbackOrigin
58
+ type GetStorageInfoFailCallback = GetStorageInfoFailCallbackOrigin
59
+ type GetStorageInfoCompleteCallback = GetStorageInfoCompleteCallbackOrigin
60
+ type GetStorageInfoOptions = GetStorageInfoOptionsOrigin
61
+ type GetStorageInfo = GetStorageInfoOrigin
62
+ type GetStorageInfoSync = GetStorageInfoSyncOrigin
63
+ type RemoveStorageSuccess = RemoveStorageSuccessOrigin
64
+ type RemoveStorageSuccessCallback = RemoveStorageSuccessCallbackOrigin
65
+ type RemoveStorageFailCallback = RemoveStorageFailCallbackOrigin
66
+ type RemoveStorageCompleteCallback = RemoveStorageCompleteCallbackOrigin
67
+ type RemoveStorageOptions = RemoveStorageOptionsOrigin
68
+ type RemoveStorage = RemoveStorageOrigin
69
+ type RemoveStorageSync = RemoveStorageSyncOrigin
70
+ type ClearStorageSuccess = ClearStorageSuccessOrigin
71
+ type ClearStorageSuccessCallback = ClearStorageSuccessCallbackOrigin
72
+ type ClearStorageFailCallback = ClearStorageFailCallbackOrigin
73
+ type ClearStorageCompleteCallback = ClearStorageCompleteCallbackOrigin
74
+ type ClearStorageOptions = ClearStorageOptionsOrigin
75
+ type ClearStorage = ClearStorageOrigin
76
+ type ClearStorageSync = ClearStorageSyncOrigin
77
+ interface Uni extends UniOrigin { }
78
+ }
@@ -1,38 +1,38 @@
1
- // 本文件为自动构建生成
2
- export {
3
- SetStorageSuccess,
4
- SetStorageSuccessCallback,
5
- SetStorageFailCallback,
6
- SetStorageCompleteCallback,
7
- SetStorageOptions,
8
- SetStorage,
9
- SetStorageSync,
10
- GetStorageSuccess,
11
- GetStorageSuccessCallback,
12
- GetStorageFailCallback,
13
- GetStorageCompleteCallback,
14
- GetStorageOptions,
15
- GetStorage,
16
- GetStorageSync,
17
- GetStorageInfoSuccess,
18
- GetStorageInfoSuccessCallback,
19
- GetStorageInfoFailCallback,
20
- GetStorageInfoCompleteCallback,
21
- GetStorageInfoOptions,
22
- GetStorageInfo,
23
- GetStorageInfoSync,
24
- RemoveStorageSuccess,
25
- RemoveStorageSuccessCallback,
26
- RemoveStorageFailCallback,
27
- RemoveStorageCompleteCallback,
28
- RemoveStorageOptions,
29
- RemoveStorage,
30
- RemoveStorageSync,
31
- ClearStorageSuccess,
32
- ClearStorageSuccessCallback,
33
- ClearStorageFailCallback,
34
- ClearStorageCompleteCallback,
35
- ClearStorageOptions,
36
- ClearStorage,
37
- ClearStorageSync,
38
- } from './interface'
1
+ // 本文件为自动构建生成
2
+ export {
3
+ SetStorageSuccess,
4
+ SetStorageSuccessCallback,
5
+ SetStorageFailCallback,
6
+ SetStorageCompleteCallback,
7
+ SetStorageOptions,
8
+ SetStorage,
9
+ SetStorageSync,
10
+ GetStorageSuccess,
11
+ GetStorageSuccessCallback,
12
+ GetStorageFailCallback,
13
+ GetStorageCompleteCallback,
14
+ GetStorageOptions,
15
+ GetStorage,
16
+ GetStorageSync,
17
+ GetStorageInfoSuccess,
18
+ GetStorageInfoSuccessCallback,
19
+ GetStorageInfoFailCallback,
20
+ GetStorageInfoCompleteCallback,
21
+ GetStorageInfoOptions,
22
+ GetStorageInfo,
23
+ GetStorageInfoSync,
24
+ RemoveStorageSuccess,
25
+ RemoveStorageSuccessCallback,
26
+ RemoveStorageFailCallback,
27
+ RemoveStorageCompleteCallback,
28
+ RemoveStorageOptions,
29
+ RemoveStorage,
30
+ RemoveStorageSync,
31
+ ClearStorageSuccess,
32
+ ClearStorageSuccessCallback,
33
+ ClearStorageFailCallback,
34
+ ClearStorageCompleteCallback,
35
+ ClearStorageOptions,
36
+ ClearStorage,
37
+ ClearStorageSync,
38
+ } from './interface'