@dcloudio/uni-app-x 0.7.59 → 0.7.61

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 (224) hide show
  1. package/package.json +2 -2
  2. package/types/app.d.ts +24 -9
  3. package/types/native/IUniElement.d.ts +1 -3
  4. package/types/native/UniCustomElement.d.ts +2 -2
  5. package/types/native/UniFormControl.d.ts +1 -1
  6. package/types/native/UniInputChangeEvent.d.ts +31 -0
  7. package/types/native/UniPage.d.ts +10 -2
  8. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -0
  9. package/types/native/UniSwiperChangeEvent.d.ts +1 -0
  10. package/types/native/WebViewStyles.d.ts +1 -1
  11. package/types/native/global.d.ts +14 -0
  12. package/types/native/index.d.ts +1 -0
  13. package/types/page.d.ts +134 -22
  14. package/types/uni/uni-camera-global.d.ts +4 -0
  15. package/types/uni/uni-camera.d.ts +10 -9
  16. package/types/uni/uts-plugin-api/global.d.ts +1 -0
  17. package/types/uni/uts-plugin-api/index.d.ts +1 -0
  18. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +77 -433
  19. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +3 -2
  20. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +3 -2
  21. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +9 -6
  22. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +3 -2
  23. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +2 -0
  24. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
  25. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +10 -8
  26. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +16 -0
  27. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +8 -0
  28. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +569 -139
  29. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +3 -2
  30. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +2 -2
  31. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +2 -2
  32. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +7 -6
  33. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +22 -37
  34. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +12 -16
  35. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +5 -3
  36. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +5 -0
  37. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +34 -15
  38. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +3 -1
  39. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
  40. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +32 -61
  41. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +45 -80
  42. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +5 -3
  43. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +2 -2
  44. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +13 -11
  45. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +16 -15
  46. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +12 -10
  47. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
  48. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +88 -4
  49. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +54 -7
  50. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
  51. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +1 -1
  52. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
  53. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +246 -236
  54. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +5 -5
  55. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/global.d.ts +38 -0
  56. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/index.d.ts +19 -0
  57. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +1783 -107
  58. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +16 -20
  59. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +209 -451
  60. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -698
  61. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +10 -8
  62. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +474 -184
  63. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +4 -0
  64. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +2 -0
  65. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +755 -405
  66. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/global.d.ts +16 -0
  67. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/index.d.ts +8 -0
  68. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +40 -0
  69. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +10 -15
  70. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +116 -124
  71. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +2 -2
  72. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +11 -11
  73. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +5 -5
  74. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +25 -26
  75. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +54 -84
  76. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +4 -4
  77. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +71 -89
  78. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +3 -0
  79. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
  80. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
  81. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +300 -6
  82. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +4 -0
  83. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +2 -0
  84. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +347 -10
  85. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +3 -1
  86. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +3 -1
  87. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +25 -33
  88. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +20 -20
  89. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +18 -18
  90. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +0 -2
  91. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +0 -1
  92. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +70 -82
  93. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +6 -5
  94. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +49 -72
  95. package/types/uni/uts-plugin-biz/global.d.ts +11 -0
  96. package/types/uni/uts-plugin-biz/index.d.ts +11 -0
  97. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +60 -3
  98. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +6 -0
  99. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +52 -0
  100. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +25 -0
  101. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +445 -0
  102. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +48 -0
  103. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +23 -0
  104. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +138 -0
  105. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +28 -12
  106. package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/global.d.ts +8 -0
  107. package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/index.d.ts +4 -0
  108. package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/interface.d.ts +0 -0
  109. package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/global.d.ts +8 -0
  110. package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/index.d.ts +4 -0
  111. package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/interface.d.ts +0 -0
  112. package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/global.d.ts +8 -0
  113. package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/index.d.ts +4 -0
  114. package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/interface.d.ts +0 -0
  115. package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/global.d.ts +8 -0
  116. package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/index.d.ts +4 -0
  117. package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/interface.d.ts +0 -0
  118. package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/global.d.ts +8 -0
  119. package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/index.d.ts +4 -0
  120. package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/interface.d.ts +0 -0
  121. package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/global.d.ts +8 -0
  122. package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/index.d.ts +4 -0
  123. package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/interface.d.ts +0 -0
  124. package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/global.d.ts +8 -0
  125. package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/index.d.ts +4 -0
  126. package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/interface.d.ts +0 -0
  127. package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/global.d.ts +18 -0
  128. package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/index.d.ts +9 -0
  129. package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/interface.d.ts +45 -0
  130. package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/global.d.ts +8 -0
  131. package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/index.d.ts +4 -0
  132. package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/interface.d.ts +0 -0
  133. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +21 -16
  134. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -2
  135. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -1
  136. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +153 -6
  137. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +37 -44
  138. package/types/uni/uts-plugin-extend/global.d.ts +0 -2
  139. package/types/uni/uts-plugin-extend/index.d.ts +0 -2
  140. package/types/uni-cloud/interface.d.ts +13 -9
  141. package/types/vue/LifeCycle.d.ts +723 -1
  142. package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +0 -554
  143. package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +0 -224
  144. package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +0 -77
  145. package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +0 -365
  146. package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +0 -77
  147. package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +0 -972
  148. package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +0 -410
  149. package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +0 -459
  150. package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +0 -203
  151. package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +0 -2613
  152. package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +0 -152
  153. package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +0 -61
  154. package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +0 -548
  155. package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +0 -137
  156. package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +0 -1380
  157. package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +0 -76
  158. package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +0 -338
  159. package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +0 -102
  160. package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +0 -384
  161. package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +0 -5316
  162. package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +0 -35
  163. package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +0 -616
  164. package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +0 -2157
  165. package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +0 -895
  166. package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +0 -1755
  167. package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +0 -82
  168. package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +0 -295
  169. package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +0 -299
  170. package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +0 -1764
  171. package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +0 -1
  172. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +0 -1
  173. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +0 -736
  174. package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +0 -274
  175. package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +0 -198
  176. package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +0 -634
  177. package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +0 -980
  178. package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +0 -5550
  179. package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +0 -501
  180. package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +0 -83
  181. package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +0 -169
  182. package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +0 -102
  183. package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +0 -580
  184. package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +0 -100
  185. package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +0 -2980
  186. package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +0 -190
  187. package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +0 -1002
  188. package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +0 -3620
  189. package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +0 -1592
  190. package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +0 -1
  191. package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +0 -254
  192. package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +0 -112
  193. package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +0 -153
  194. package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +0 -833
  195. package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +0 -1
  196. package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +0 -1
  197. package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +0 -3
  198. package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +0 -518
  199. package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +0 -560
  200. package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +0 -2607
  201. package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +0 -189
  202. package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +0 -710
  203. package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +0 -2695
  204. package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +0 -80
  205. package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +0 -130
  206. package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +0 -719
  207. package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +0 -277
  208. package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +0 -1020
  209. package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +0 -1148
  210. package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +0 -1059
  211. package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +0 -1660
  212. package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +0 -1941
  213. package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +0 -726
  214. package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +0 -89
  215. package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +0 -212
  216. package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +0 -2359
  217. package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +0 -960
  218. package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +0 -204
  219. package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +0 -730
  220. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +0 -221
  221. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +0 -935
  222. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +0 -14
  223. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +0 -1
  224. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +0 -1670
@@ -1,2607 +0,0 @@
1
- /**
2
- * 错误码
3
- */
4
- export type PromptErrorCode =
5
- /**
6
- * 撤销
7
- */
8
- 1 |
9
- /**
10
- * 请求参数非法
11
- */
12
- 1001
13
-
14
- export interface IPromptError extends IUniError {
15
- errCode: PromptErrorCode
16
- };
17
-
18
- /**
19
- * uni.showToast成功回调参数
20
- */
21
- export type ShowToastSuccess = {
22
- }
23
-
24
- /**
25
- * uni.showToast失败回调参数
26
- */
27
- export type ShowToastFail = IPromptError;
28
-
29
- /**
30
- * uni.showToast成功回调函数定义
31
- */
32
- export type ShowToastSuccessCallback = (res: ShowToastSuccess) => void
33
- /**
34
- * uni.showToast失败回调函数定义
35
- */
36
- export type ShowToastFailCallback = (res: ShowToastFail) => void
37
- /**
38
- * uni.showToast完成回调函数定义
39
- */
40
- export type ShowToastCompleteCallback = (res: any) => void
41
-
42
- /**
43
- * icon值说明
44
- */
45
- export type Icon =
46
- /**
47
- * 显示成功图标
48
- * @uniPlatform
49
- {
50
- "app": {
51
- "android": {
52
- "osVer": "5.0",
53
- "uniVer": "√",
54
- "uniUtsPlugin": "3.91",
55
- "unixVer": "3.91",
56
- "unixUtsPlugin": "3.91"
57
- },
58
- "ios": {
59
- "osVer": "12.0",
60
- "uniVer": "√",
61
- "uniUtsPlugin": "4.11",
62
- "unixVer": "4.11",
63
- "unixUtsPlugin": "4.11"
64
- }
65
- },
66
- "mp": {
67
- "weixin": {
68
- "hostVer": "√",
69
- "uniVer": "√",
70
- "unixVer": "4.41"
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
- "success" |
115
- /**
116
- * 显示错误图标
117
- * @uniPlatform
118
- {
119
- "app": {
120
- "android": {
121
- "osVer": "5.0",
122
- "uniVer": "√",
123
- "uniUtsPlugin": "3.91",
124
- "unixVer": "3.91",
125
- "unixUtsPlugin": "3.91"
126
- },
127
- "ios": {
128
- "osVer": "12.0",
129
- "uniVer": "√",
130
- "uniUtsPlugin": "4.11",
131
- "unixVer": "4.11",
132
- "unixUtsPlugin": "4.11"
133
- }
134
- },
135
- "mp": {
136
- "weixin": {
137
- "hostVer": "√",
138
- "uniVer": "√",
139
- "unixVer": "4.41"
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
- "error" |
184
- /**
185
- * 显示错误图标,此时title文本无长度显示
186
- * @uniPlatform
187
- {
188
- "app": {
189
- "android": {
190
- "osVer": "5.0",
191
- "uniVer": "√",
192
- "uniUtsPlugin": "x",
193
- "unixVer": "x",
194
- "unixUtsPlugin": "x"
195
- },
196
- "ios": {
197
- "osVer": "12.0",
198
- "uniVer": "√",
199
- "uniUtsPlugin": "x",
200
- "unixVer": "x",
201
- "unixUtsPlugin": "x"
202
- }
203
- },
204
- "mp": {
205
- "weixin": {
206
- "hostVer": "√",
207
- "uniVer": "√",
208
- "unixVer": "4.41"
209
- },
210
- "alipay": {
211
- "hostVer": "√",
212
- "uniVer": "√",
213
- "unixVer": "x"
214
- },
215
- "baidu": {
216
- "hostVer": "√",
217
- "uniVer": "√",
218
- "unixVer": "x"
219
- },
220
- "toutiao": {
221
- "hostVer": "√",
222
- "uniVer": "√",
223
- "unixVer": "x"
224
- },
225
- "lark": {
226
- "hostVer": "√",
227
- "uniVer": "√",
228
- "unixVer": "x"
229
- },
230
- "qq": {
231
- "hostVer": "√",
232
- "uniVer": "√",
233
- "unixVer": "x"
234
- },
235
- "kuaishou": {
236
- "hostVer": "√",
237
- "uniVer": "√",
238
- "unixVer": "x"
239
- },
240
- "jd": {
241
- "hostVer": "√",
242
- "uniVer": "√",
243
- "unixVer": "x"
244
- }
245
- },
246
- "web": {
247
- "uniVer": "√",
248
- "unixVer": "x"
249
- }
250
- }
251
- */
252
- "fail" |
253
- /**
254
- * 显示异常图标,此时title文本无长度显示
255
- * @uniPlatform
256
- {
257
- "app": {
258
- "android": {
259
- "osVer": "5.0",
260
- "uniVer": "√",
261
- "uniUtsPlugin": "3.91",
262
- "unixVer": "3.91",
263
- "unixUtsPlugin": "3.91"
264
- },
265
- "ios": {
266
- "osVer": "12.0",
267
- "uniVer": "√",
268
- "uniUtsPlugin": "4.11",
269
- "unixVer": "4.11",
270
- "unixUtsPlugin": "4.11"
271
- }
272
- },
273
- "mp": {
274
- "weixin": {
275
- "hostVer": "√",
276
- "uniVer": "√",
277
- "unixVer": "4.41"
278
- },
279
- "alipay": {
280
- "hostVer": "√",
281
- "uniVer": "√",
282
- "unixVer": "x"
283
- },
284
- "baidu": {
285
- "hostVer": "√",
286
- "uniVer": "√",
287
- "unixVer": "x"
288
- },
289
- "toutiao": {
290
- "hostVer": "√",
291
- "uniVer": "√",
292
- "unixVer": "x"
293
- },
294
- "lark": {
295
- "hostVer": "√",
296
- "uniVer": "√",
297
- "unixVer": "x"
298
- },
299
- "qq": {
300
- "hostVer": "√",
301
- "uniVer": "√",
302
- "unixVer": "x"
303
- },
304
- "kuaishou": {
305
- "hostVer": "√",
306
- "uniVer": "√",
307
- "unixVer": "x"
308
- },
309
- "jd": {
310
- "hostVer": "√",
311
- "uniVer": "√",
312
- "unixVer": "x"
313
- }
314
- },
315
- "web": {
316
- "uniVer": "√",
317
- "unixVer": "x"
318
- }
319
- }
320
- */
321
- "exception" |
322
- /**
323
- * 显示加载图标
324
- * @uniPlatform
325
- {
326
- "app": {
327
- "android": {
328
- "osVer": "5.0",
329
- "uniVer": "√",
330
- "uniUtsPlugin": "3.91",
331
- "unixVer": "3.91",
332
- "unixUtsPlugin": "3.91"
333
- },
334
- "ios": {
335
- "osVer": "12.0",
336
- "uniVer": "√",
337
- "uniUtsPlugin": "4.11",
338
- "unixVer": "4.11",
339
- "unixUtsPlugin": "4.11"
340
- }
341
- },
342
- "mp": {
343
- "weixin": {
344
- "hostVer": "√",
345
- "uniVer": "√",
346
- "unixVer": "4.41"
347
- },
348
- "alipay": {
349
- "hostVer": "√",
350
- "uniVer": "√",
351
- "unixVer": "x"
352
- },
353
- "baidu": {
354
- "hostVer": "√",
355
- "uniVer": "√",
356
- "unixVer": "x"
357
- },
358
- "toutiao": {
359
- "hostVer": "√",
360
- "uniVer": "√",
361
- "unixVer": "x"
362
- },
363
- "lark": {
364
- "hostVer": "√",
365
- "uniVer": "√",
366
- "unixVer": "x"
367
- },
368
- "qq": {
369
- "hostVer": "√",
370
- "uniVer": "√",
371
- "unixVer": "x"
372
- },
373
- "kuaishou": {
374
- "hostVer": "√",
375
- "uniVer": "√",
376
- "unixVer": "x"
377
- },
378
- "jd": {
379
- "hostVer": "√",
380
- "uniVer": "√",
381
- "unixVer": "x"
382
- }
383
- },
384
- "web": {
385
- "uniVer": "√",
386
- "unixVer": "4.0"
387
- }
388
- }
389
- */
390
- "loading" |
391
- /**
392
- * 不显示图标
393
- * @uniPlatform
394
- {
395
- "app": {
396
- "android": {
397
- "osVer": "5.0",
398
- "uniVer": "√",
399
- "uniUtsPlugin": "3.91",
400
- "unixVer": "3.91",
401
- "unixUtsPlugin": "3.91"
402
- },
403
- "ios": {
404
- "osVer": "12.0",
405
- "uniVer": "√",
406
- "uniUtsPlugin": "4.11",
407
- "unixVer": "4.11",
408
- "unixUtsPlugin": "4.11"
409
- }
410
- },
411
- "mp": {
412
- "weixin": {
413
- "hostVer": "√",
414
- "uniVer": "√",
415
- "unixVer": "4.41"
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
- "none";
460
-
461
- /**
462
- * position值说明。纯文本轻提示显示位置,填写有效值后只有 title 属性生效,且不支持通过 uni.hideToast 隐藏。
463
- */
464
- export type ShowToastPosition =
465
- /**
466
- * 居上显示
467
- * @uniPlatform
468
- {
469
- "app": {
470
- "android": {
471
- "osVer": "5.0",
472
- "uniVer": "√",
473
- "uniUtsPlugin": "3.91",
474
- "unixVer": "3.91",
475
- "unixUtsPlugin": "3.91"
476
- },
477
- "ios": {
478
- "osVer": "12.0",
479
- "uniVer": "√",
480
- "uniUtsPlugin": "4.11",
481
- "unixVer": "4.11",
482
- "unixUtsPlugin": "4.11"
483
- },
484
- "harmony": {
485
- "osVer": "3.0",
486
- "uniVer": "4.23",
487
- "unixVer": "4.61"
488
- }
489
- },
490
- "mp": {
491
- "weixin": {
492
- "hostVer": "√",
493
- "uniVer": "√",
494
- "unixVer": "4.41"
495
- },
496
- "alipay": {
497
- "hostVer": "√",
498
- "uniVer": "√",
499
- "unixVer": "x"
500
- },
501
- "baidu": {
502
- "hostVer": "√",
503
- "uniVer": "√",
504
- "unixVer": "x"
505
- },
506
- "toutiao": {
507
- "hostVer": "√",
508
- "uniVer": "√",
509
- "unixVer": "x"
510
- },
511
- "lark": {
512
- "hostVer": "√",
513
- "uniVer": "√",
514
- "unixVer": "x"
515
- },
516
- "qq": {
517
- "hostVer": "√",
518
- "uniVer": "√",
519
- "unixVer": "x"
520
- },
521
- "kuaishou": {
522
- "hostVer": "√",
523
- "uniVer": "√",
524
- "unixVer": "x"
525
- },
526
- "jd": {
527
- "hostVer": "√",
528
- "uniVer": "√",
529
- "unixVer": "x"
530
- }
531
- },
532
- "web": {
533
- "uniVer": "x",
534
- "unixVer": "x"
535
- }
536
- }
537
- */
538
- "top" |
539
- /**
540
- * 居中显示
541
- * @uniPlatform
542
- {
543
- "app": {
544
- "android": {
545
- "osVer": "5.0",
546
- "uniVer": "√",
547
- "uniUtsPlugin": "3.91",
548
- "unixVer": "3.91",
549
- "unixUtsPlugin": "3.91"
550
- },
551
- "ios": {
552
- "osVer": "12.0",
553
- "uniVer": "√",
554
- "uniUtsPlugin": "4.11",
555
- "unixVer": "4.11",
556
- "unixUtsPlugin": "4.11"
557
- },
558
- "harmony": {
559
- "osVer": "3.0",
560
- "uniVer": "4.23",
561
- "unixVer": "4.61"
562
- }
563
- },
564
- "mp": {
565
- "weixin": {
566
- "hostVer": "√",
567
- "uniVer": "√",
568
- "unixVer": "4.41"
569
- },
570
- "alipay": {
571
- "hostVer": "√",
572
- "uniVer": "√",
573
- "unixVer": "x"
574
- },
575
- "baidu": {
576
- "hostVer": "√",
577
- "uniVer": "√",
578
- "unixVer": "x"
579
- },
580
- "toutiao": {
581
- "hostVer": "√",
582
- "uniVer": "√",
583
- "unixVer": "x"
584
- },
585
- "lark": {
586
- "hostVer": "√",
587
- "uniVer": "√",
588
- "unixVer": "x"
589
- },
590
- "qq": {
591
- "hostVer": "√",
592
- "uniVer": "√",
593
- "unixVer": "x"
594
- },
595
- "kuaishou": {
596
- "hostVer": "√",
597
- "uniVer": "√",
598
- "unixVer": "x"
599
- },
600
- "jd": {
601
- "hostVer": "√",
602
- "uniVer": "√",
603
- "unixVer": "x"
604
- }
605
- },
606
- "web": {
607
- "uniVer": "x",
608
- "unixVer": "x"
609
- }
610
- }
611
- */
612
- "center" |
613
- /**
614
- * 居底显示
615
- * @uniPlatform
616
- {
617
- "app": {
618
- "android": {
619
- "osVer": "5.0",
620
- "uniVer": "√",
621
- "uniUtsPlugin": "3.91",
622
- "unixVer": "3.91",
623
- "unixUtsPlugin": "3.91"
624
- },
625
- "ios": {
626
- "osVer": "12.0",
627
- "uniVer": "√",
628
- "uniUtsPlugin": "4.11",
629
- "unixVer": "4.11",
630
- "unixUtsPlugin": "4.11"
631
- },
632
- "harmony": {
633
- "osVer": "3.0",
634
- "uniVer": "4.23",
635
- "unixVer": "4.61"
636
- }
637
- },
638
- "mp": {
639
- "weixin": {
640
- "hostVer": "√",
641
- "uniVer": "√",
642
- "unixVer": "4.41"
643
- },
644
- "alipay": {
645
- "hostVer": "√",
646
- "uniVer": "√",
647
- "unixVer": "x"
648
- },
649
- "baidu": {
650
- "hostVer": "√",
651
- "uniVer": "√",
652
- "unixVer": "x"
653
- },
654
- "toutiao": {
655
- "hostVer": "√",
656
- "uniVer": "√",
657
- "unixVer": "x"
658
- },
659
- "lark": {
660
- "hostVer": "√",
661
- "uniVer": "√",
662
- "unixVer": "x"
663
- },
664
- "qq": {
665
- "hostVer": "√",
666
- "uniVer": "√",
667
- "unixVer": "x"
668
- },
669
- "kuaishou": {
670
- "hostVer": "√",
671
- "uniVer": "√",
672
- "unixVer": "x"
673
- },
674
- "jd": {
675
- "hostVer": "√",
676
- "uniVer": "√",
677
- "unixVer": "x"
678
- }
679
- },
680
- "web": {
681
- "uniVer": "x",
682
- "unixVer": "x"
683
- }
684
- }
685
- */
686
- "bottom";
687
-
688
- /**
689
- * uni.showToast参数定义
690
- */
691
- export type ShowToastOptions = {
692
- /**
693
- * 提示的内容,长度与 icon 取值有关。
694
- * @uniPlatform
695
- {
696
- "app": {
697
- "android": {
698
- "osVer": "5.0",
699
- "uniVer": "√",
700
- "uniUtsPlugin": "3.91",
701
- "unixVer": "3.91",
702
- "unixUtsPlugin": "3.91"
703
- },
704
- "ios": {
705
- "osVer": "12.0",
706
- "uniVer": "√",
707
- "uniUtsPlugin": "4.11",
708
- "unixVer": "4.11",
709
- "unixUtsPlugin": "4.11"
710
- },
711
- "harmony": {
712
- "osVer": "3.0",
713
- "uniVer": "4.23",
714
- "unixVer": "4.61"
715
- }
716
- },
717
- "mp": {
718
- "weixin": {
719
- "hostVer": "√",
720
- "uniVer": "√",
721
- "unixVer": "4.41"
722
- },
723
- "alipay": {
724
- "hostVer": "√",
725
- "uniVer": "√",
726
- "unixVer": "x"
727
- },
728
- "baidu": {
729
- "hostVer": "√",
730
- "uniVer": "√",
731
- "unixVer": "x"
732
- },
733
- "toutiao": {
734
- "hostVer": "√",
735
- "uniVer": "√",
736
- "unixVer": "x"
737
- },
738
- "lark": {
739
- "hostVer": "√",
740
- "uniVer": "√",
741
- "unixVer": "x"
742
- },
743
- "qq": {
744
- "hostVer": "√",
745
- "uniVer": "√",
746
- "unixVer": "x"
747
- },
748
- "kuaishou": {
749
- "hostVer": "√",
750
- "uniVer": "√",
751
- "unixVer": "x"
752
- },
753
- "jd": {
754
- "hostVer": "√",
755
- "uniVer": "√",
756
- "unixVer": "x"
757
- }
758
- },
759
- "web": {
760
- "uniVer": "√",
761
- "unixVer": "4.0"
762
- }
763
- }
764
- */
765
- title: string,
766
- /**
767
- * 图标
768
- * @defaultValue "success"
769
- * @uniPlatform
770
- {
771
- "app": {
772
- "android": {
773
- "osVer": "5.0",
774
- "uniVer": "√",
775
- "uniUtsPlugin": "3.91",
776
- "unixVer": "3.91",
777
- "unixUtsPlugin": "3.91"
778
- },
779
- "ios": {
780
- "osVer": "12.0",
781
- "uniVer": "√",
782
- "uniUtsPlugin": "4.11",
783
- "unixVer": "4.11",
784
- "unixUtsPlugin": "4.11"
785
- },
786
- "harmony": {
787
- "osVer": "3.0",
788
- "uniVer": "4.23",
789
- "unixVer": "4.61"
790
- }
791
- },
792
- "mp": {
793
- "weixin": {
794
- "hostVer": "√",
795
- "uniVer": "√",
796
- "unixVer": "4.41"
797
- },
798
- "alipay": {
799
- "hostVer": "√",
800
- "uniVer": "√",
801
- "unixVer": "x"
802
- },
803
- "baidu": {
804
- "hostVer": "√",
805
- "uniVer": "√",
806
- "unixVer": "x"
807
- },
808
- "toutiao": {
809
- "hostVer": "√",
810
- "uniVer": "√",
811
- "unixVer": "x"
812
- },
813
- "lark": {
814
- "hostVer": "√",
815
- "uniVer": "√",
816
- "unixVer": "x"
817
- },
818
- "qq": {
819
- "hostVer": "√",
820
- "uniVer": "√",
821
- "unixVer": "x"
822
- },
823
- "kuaishou": {
824
- "hostVer": "√",
825
- "uniVer": "√",
826
- "unixVer": "x"
827
- },
828
- "jd": {
829
- "hostVer": "√",
830
- "uniVer": "√",
831
- "unixVer": "x"
832
- }
833
- },
834
- "web": {
835
- "uniVer": "√",
836
- "unixVer": "4.0"
837
- }
838
- }
839
- */
840
- icon?: Icon | null,
841
- /**
842
- * 自定义图标的本地路径(app端暂不支持gif)
843
- * @uniPlatform
844
- {
845
- "app": {
846
- "android": {
847
- "osVer": "5.0",
848
- "uniVer": "√",
849
- "uniUtsPlugin": "3.91",
850
- "unixVer": "3.91",
851
- "unixUtsPlugin": "3.91"
852
- },
853
- "ios": {
854
- "osVer": "12.0",
855
- "uniVer": "√",
856
- "uniUtsPlugin": "4.11",
857
- "unixVer": "4.11",
858
- "unixUtsPlugin": "4.11"
859
- },
860
- "harmony": {
861
- "osVer": "3.0",
862
- "uniVer": "4.23",
863
- "unixVer": "4.61"
864
- }
865
- },
866
- "mp": {
867
- "weixin": {
868
- "hostVer": "√",
869
- "uniVer": "√",
870
- "unixVer": "4.41"
871
- },
872
- "alipay": {
873
- "hostVer": "√",
874
- "uniVer": "√",
875
- "unixVer": "x"
876
- },
877
- "baidu": {
878
- "hostVer": "√",
879
- "uniVer": "√",
880
- "unixVer": "x"
881
- },
882
- "toutiao": {
883
- "hostVer": "√",
884
- "uniVer": "√",
885
- "unixVer": "x"
886
- },
887
- "lark": {
888
- "hostVer": "√",
889
- "uniVer": "√",
890
- "unixVer": "x"
891
- },
892
- "qq": {
893
- "hostVer": "√",
894
- "uniVer": "√",
895
- "unixVer": "x"
896
- },
897
- "kuaishou": {
898
- "hostVer": "√",
899
- "uniVer": "√",
900
- "unixVer": "x"
901
- },
902
- "jd": {
903
- "hostVer": "√",
904
- "uniVer": "√",
905
- "unixVer": "x"
906
- }
907
- },
908
- "web": {
909
- "uniVer": "√",
910
- "unixVer": "4.0"
911
- }
912
- }
913
- */
914
- image?: string.ImageURIString | null,
915
- /**
916
- * 是否显示透明蒙层,防止触摸穿透
917
- * @defaultValue false
918
- * @uniPlatform
919
- {
920
- "app": {
921
- "android": {
922
- "osVer": "5.0",
923
- "uniVer": "√",
924
- "uniUtsPlugin": "3.91",
925
- "unixVer": "3.91",
926
- "unixUtsPlugin": "3.91"
927
- },
928
- "ios": {
929
- "osVer": "12.0",
930
- "uniVer": "√",
931
- "uniUtsPlugin": "4.11",
932
- "unixVer": "4.11",
933
- "unixUtsPlugin": "4.11"
934
- },
935
- "harmony": {
936
- "osVer": "3.0",
937
- "uniVer": "4.23",
938
- "unixVer": "4.61"
939
- }
940
- },
941
- "mp": {
942
- "weixin": {
943
- "hostVer": "√",
944
- "uniVer": "√",
945
- "unixVer": "4.41"
946
- },
947
- "alipay": {
948
- "hostVer": "√",
949
- "uniVer": "√",
950
- "unixVer": "x"
951
- },
952
- "baidu": {
953
- "hostVer": "√",
954
- "uniVer": "√",
955
- "unixVer": "x"
956
- },
957
- "toutiao": {
958
- "hostVer": "√",
959
- "uniVer": "√",
960
- "unixVer": "x"
961
- },
962
- "lark": {
963
- "hostVer": "√",
964
- "uniVer": "√",
965
- "unixVer": "x"
966
- },
967
- "qq": {
968
- "hostVer": "√",
969
- "uniVer": "√",
970
- "unixVer": "x"
971
- },
972
- "kuaishou": {
973
- "hostVer": "√",
974
- "uniVer": "√",
975
- "unixVer": "x"
976
- },
977
- "jd": {
978
- "hostVer": "√",
979
- "uniVer": "√",
980
- "unixVer": "x"
981
- }
982
- },
983
- "web": {
984
- "uniVer": "√",
985
- "unixVer": "4.0"
986
- }
987
- }
988
- */
989
- mask?: boolean | null,
990
- /**
991
- * 提示的延迟时间,单位毫秒
992
- * @defaultValue 1500
993
- * @uniPlatform
994
- {
995
- "app": {
996
- "android": {
997
- "osVer": "5.0",
998
- "uniVer": "√",
999
- "uniUtsPlugin": "3.91",
1000
- "unixVer": "3.91",
1001
- "unixUtsPlugin": "3.91"
1002
- },
1003
- "ios": {
1004
- "osVer": "12.0",
1005
- "uniVer": "√",
1006
- "uniUtsPlugin": "4.11",
1007
- "unixVer": "4.11",
1008
- "unixUtsPlugin": "4.11"
1009
- },
1010
- "harmony": {
1011
- "osVer": "3.0",
1012
- "uniVer": "4.23",
1013
- "unixVer": "4.61"
1014
- }
1015
- },
1016
- "mp": {
1017
- "weixin": {
1018
- "hostVer": "√",
1019
- "uniVer": "√",
1020
- "unixVer": "4.41"
1021
- },
1022
- "alipay": {
1023
- "hostVer": "√",
1024
- "uniVer": "√",
1025
- "unixVer": "x"
1026
- },
1027
- "baidu": {
1028
- "hostVer": "√",
1029
- "uniVer": "√",
1030
- "unixVer": "x"
1031
- },
1032
- "toutiao": {
1033
- "hostVer": "√",
1034
- "uniVer": "√",
1035
- "unixVer": "x"
1036
- },
1037
- "lark": {
1038
- "hostVer": "√",
1039
- "uniVer": "√",
1040
- "unixVer": "x"
1041
- },
1042
- "qq": {
1043
- "hostVer": "√",
1044
- "uniVer": "√",
1045
- "unixVer": "x"
1046
- },
1047
- "kuaishou": {
1048
- "hostVer": "√",
1049
- "uniVer": "√",
1050
- "unixVer": "x"
1051
- },
1052
- "jd": {
1053
- "hostVer": "√",
1054
- "uniVer": "√",
1055
- "unixVer": "x"
1056
- }
1057
- },
1058
- "web": {
1059
- "uniVer": "√",
1060
- "unixVer": "4.0"
1061
- }
1062
- }
1063
- */
1064
- duration?: number | null,
1065
- /**
1066
- * 纯文本轻提示显示位置,填写有效值后只有 title 属性生效,且不支持通过 uni.hideToast 隐藏。
1067
- * @uniPlatform
1068
- {
1069
- "app": {
1070
- "android": {
1071
- "osVer": "5.0",
1072
- "uniVer": "√",
1073
- "uniUtsPlugin": "3.91",
1074
- "unixVer": "3.91",
1075
- "unixUtsPlugin": "3.91"
1076
- },
1077
- "ios": {
1078
- "osVer": "12.0",
1079
- "uniVer": "√",
1080
- "uniUtsPlugin": "4.11",
1081
- "unixVer": "4.11",
1082
- "unixUtsPlugin": "4.11"
1083
- },
1084
- "harmony": {
1085
- "osVer": "3.0",
1086
- "uniVer": "4.23",
1087
- "unixVer": "4.61"
1088
- }
1089
- },
1090
- "mp": {
1091
- "weixin": {
1092
- "hostVer": "√",
1093
- "uniVer": "√",
1094
- "unixVer": "4.41"
1095
- },
1096
- "alipay": {
1097
- "hostVer": "√",
1098
- "uniVer": "√",
1099
- "unixVer": "x"
1100
- },
1101
- "baidu": {
1102
- "hostVer": "√",
1103
- "uniVer": "√",
1104
- "unixVer": "x"
1105
- },
1106
- "toutiao": {
1107
- "hostVer": "√",
1108
- "uniVer": "√",
1109
- "unixVer": "x"
1110
- },
1111
- "lark": {
1112
- "hostVer": "√",
1113
- "uniVer": "√",
1114
- "unixVer": "x"
1115
- },
1116
- "qq": {
1117
- "hostVer": "√",
1118
- "uniVer": "√",
1119
- "unixVer": "x"
1120
- },
1121
- "kuaishou": {
1122
- "hostVer": "√",
1123
- "uniVer": "√",
1124
- "unixVer": "x"
1125
- },
1126
- "jd": {
1127
- "hostVer": "√",
1128
- "uniVer": "√",
1129
- "unixVer": "x"
1130
- }
1131
- },
1132
- "web": {
1133
- "uniVer": "x",
1134
- "unixVer": "x"
1135
- }
1136
- }
1137
- */
1138
- position?: ShowToastPosition | null,
1139
- /**
1140
- * 接口调用成功的回调函数
1141
- * @uniPlatform
1142
- {
1143
- "app": {
1144
- "android": {
1145
- "osVer": "5.0",
1146
- "uniVer": "√",
1147
- "uniUtsPlugin": "3.91",
1148
- "unixVer": "3.91",
1149
- "unixUtsPlugin": "3.91"
1150
- },
1151
- "ios": {
1152
- "osVer": "12.0",
1153
- "uniVer": "√",
1154
- "uniUtsPlugin": "4.11",
1155
- "unixVer": "4.11",
1156
- "unixUtsPlugin": "4.11"
1157
- },
1158
- "harmony": {
1159
- "osVer": "3.0",
1160
- "uniVer": "4.23",
1161
- "unixVer": "4.61"
1162
- }
1163
- },
1164
- "mp": {
1165
- "weixin": {
1166
- "hostVer": "√",
1167
- "uniVer": "√",
1168
- "unixVer": "4.41"
1169
- },
1170
- "alipay": {
1171
- "hostVer": "√",
1172
- "uniVer": "√",
1173
- "unixVer": "x"
1174
- },
1175
- "baidu": {
1176
- "hostVer": "√",
1177
- "uniVer": "√",
1178
- "unixVer": "x"
1179
- },
1180
- "toutiao": {
1181
- "hostVer": "√",
1182
- "uniVer": "√",
1183
- "unixVer": "x"
1184
- },
1185
- "lark": {
1186
- "hostVer": "√",
1187
- "uniVer": "√",
1188
- "unixVer": "x"
1189
- },
1190
- "qq": {
1191
- "hostVer": "√",
1192
- "uniVer": "√",
1193
- "unixVer": "x"
1194
- },
1195
- "kuaishou": {
1196
- "hostVer": "√",
1197
- "uniVer": "√",
1198
- "unixVer": "x"
1199
- },
1200
- "jd": {
1201
- "hostVer": "√",
1202
- "uniVer": "√",
1203
- "unixVer": "x"
1204
- }
1205
- },
1206
- "web": {
1207
- "uniVer": "√",
1208
- "unixVer": "4.0"
1209
- }
1210
- }
1211
- */
1212
- success?: ShowToastSuccessCallback | null,
1213
- /**
1214
- * 接口调用失败的回调函数
1215
- * @uniPlatform
1216
- {
1217
- "app": {
1218
- "android": {
1219
- "osVer": "5.0",
1220
- "uniVer": "√",
1221
- "uniUtsPlugin": "3.91",
1222
- "unixVer": "3.91",
1223
- "unixUtsPlugin": "3.91"
1224
- },
1225
- "ios": {
1226
- "osVer": "12.0",
1227
- "uniVer": "√",
1228
- "uniUtsPlugin": "4.11",
1229
- "unixVer": "4.11",
1230
- "unixUtsPlugin": "4.11"
1231
- },
1232
- "harmony": {
1233
- "osVer": "3.0",
1234
- "uniVer": "4.23",
1235
- "unixVer": "4.61"
1236
- }
1237
- },
1238
- "mp": {
1239
- "weixin": {
1240
- "hostVer": "√",
1241
- "uniVer": "√",
1242
- "unixVer": "4.41"
1243
- },
1244
- "alipay": {
1245
- "hostVer": "√",
1246
- "uniVer": "√",
1247
- "unixVer": "x"
1248
- },
1249
- "baidu": {
1250
- "hostVer": "√",
1251
- "uniVer": "√",
1252
- "unixVer": "x"
1253
- },
1254
- "toutiao": {
1255
- "hostVer": "√",
1256
- "uniVer": "√",
1257
- "unixVer": "x"
1258
- },
1259
- "lark": {
1260
- "hostVer": "√",
1261
- "uniVer": "√",
1262
- "unixVer": "x"
1263
- },
1264
- "qq": {
1265
- "hostVer": "√",
1266
- "uniVer": "√",
1267
- "unixVer": "x"
1268
- },
1269
- "kuaishou": {
1270
- "hostVer": "√",
1271
- "uniVer": "√",
1272
- "unixVer": "x"
1273
- },
1274
- "jd": {
1275
- "hostVer": "√",
1276
- "uniVer": "√",
1277
- "unixVer": "x"
1278
- }
1279
- },
1280
- "web": {
1281
- "uniVer": "√",
1282
- "unixVer": "4.0"
1283
- }
1284
- }
1285
- */
1286
- fail?: ShowToastFailCallback | null,
1287
- /**
1288
- * 接口调用结束的回调函数(调用成功、失败都会执行)
1289
- * @uniPlatform
1290
- {
1291
- "app": {
1292
- "android": {
1293
- "osVer": "5.0",
1294
- "uniVer": "√",
1295
- "uniUtsPlugin": "3.91",
1296
- "unixVer": "3.91",
1297
- "unixUtsPlugin": "3.91"
1298
- },
1299
- "ios": {
1300
- "osVer": "12.0",
1301
- "uniVer": "√",
1302
- "uniUtsPlugin": "4.11",
1303
- "unixVer": "4.11",
1304
- "unixUtsPlugin": "4.11"
1305
- },
1306
- "harmony": {
1307
- "osVer": "3.0",
1308
- "uniVer": "4.23",
1309
- "unixVer": "4.61"
1310
- }
1311
- },
1312
- "mp": {
1313
- "weixin": {
1314
- "hostVer": "√",
1315
- "uniVer": "√",
1316
- "unixVer": "4.41"
1317
- },
1318
- "alipay": {
1319
- "hostVer": "√",
1320
- "uniVer": "√",
1321
- "unixVer": "x"
1322
- },
1323
- "baidu": {
1324
- "hostVer": "√",
1325
- "uniVer": "√",
1326
- "unixVer": "x"
1327
- },
1328
- "toutiao": {
1329
- "hostVer": "√",
1330
- "uniVer": "√",
1331
- "unixVer": "x"
1332
- },
1333
- "lark": {
1334
- "hostVer": "√",
1335
- "uniVer": "√",
1336
- "unixVer": "x"
1337
- },
1338
- "qq": {
1339
- "hostVer": "√",
1340
- "uniVer": "√",
1341
- "unixVer": "x"
1342
- },
1343
- "kuaishou": {
1344
- "hostVer": "√",
1345
- "uniVer": "√",
1346
- "unixVer": "x"
1347
- },
1348
- "jd": {
1349
- "hostVer": "√",
1350
- "uniVer": "√",
1351
- "unixVer": "x"
1352
- }
1353
- },
1354
- "web": {
1355
- "uniVer": "√",
1356
- "unixVer": "4.0"
1357
- }
1358
- }
1359
- */
1360
- complete?: ShowToastCompleteCallback | null
1361
- }
1362
-
1363
- /**
1364
- * uni.showToast函数定义
1365
- * 弹出toast
1366
- *
1367
- * @param {ShowToastOptions} options
1368
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showtoast
1369
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showtoast
1370
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showtoast
1371
- * @uniPlatform
1372
- {
1373
- "app": {
1374
- "android": {
1375
- "osVer": "5.0",
1376
- "uniVer": "√",
1377
- "uniUtsPlugin": "3.91",
1378
- "unixVer": "3.91",
1379
- "unixUtsPlugin": "3.91"
1380
- },
1381
- "ios": {
1382
- "osVer": "12.0",
1383
- "uniVer": "√",
1384
- "uniUtsPlugin": "4.11",
1385
- "unixVer": "4.11",
1386
- "unixUtsPlugin": "4.11"
1387
- },
1388
- "harmony": {
1389
- "osVer": "3.0",
1390
- "uniVer": "4.23",
1391
- "unixVer": "4.61"
1392
- }
1393
- },
1394
- "mp": {
1395
- "weixin": {
1396
- "hostVer": "√",
1397
- "uniVer": "√",
1398
- "unixVer": "4.41"
1399
- },
1400
- "alipay": {
1401
- "hostVer": "√",
1402
- "uniVer": "√",
1403
- "unixVer": "x"
1404
- },
1405
- "baidu": {
1406
- "hostVer": "√",
1407
- "uniVer": "√",
1408
- "unixVer": "x"
1409
- },
1410
- "toutiao": {
1411
- "hostVer": "√",
1412
- "uniVer": "√",
1413
- "unixVer": "x"
1414
- },
1415
- "lark": {
1416
- "hostVer": "√",
1417
- "uniVer": "√",
1418
- "unixVer": "x"
1419
- },
1420
- "qq": {
1421
- "hostVer": "√",
1422
- "uniVer": "√",
1423
- "unixVer": "x"
1424
- },
1425
- "kuaishou": {
1426
- "hostVer": "√",
1427
- "uniVer": "√",
1428
- "unixVer": "x"
1429
- },
1430
- "jd": {
1431
- "hostVer": "√",
1432
- "uniVer": "√",
1433
- "unixVer": "x"
1434
- }
1435
- },
1436
- "web": {
1437
- "uniVer": "√",
1438
- "unixVer": "4.0"
1439
- }
1440
- }
1441
- */
1442
- export type ShowToast = (options: ShowToastOptions) => void
1443
-
1444
- /**
1445
- * uni.hideToast函数定义
1446
- * 隐藏toast
1447
- *
1448
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#hidetoast
1449
- * @tutorial-uni-app https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hidetoast
1450
- * @uniPlatform
1451
- {
1452
- "app": {
1453
- "android": {
1454
- "osVer": "5.0",
1455
- "uniVer": "√",
1456
- "uniUtsPlugin": "3.91",
1457
- "unixVer": "3.91",
1458
- "unixUtsPlugin": "3.91"
1459
- },
1460
- "ios": {
1461
- "osVer": "12.0",
1462
- "uniVer": "√",
1463
- "uniUtsPlugin": "4.11",
1464
- "unixVer": "4.11",
1465
- "unixUtsPlugin": "4.11"
1466
- },
1467
- "harmony": {
1468
- "osVer": "3.0",
1469
- "uniVer": "4.23",
1470
- "unixVer": "4.61"
1471
- }
1472
- },
1473
- "mp": {
1474
- "weixin": {
1475
- "hostVer": "√",
1476
- "uniVer": "√",
1477
- "unixVer": "4.41"
1478
- },
1479
- "alipay": {
1480
- "hostVer": "√",
1481
- "uniVer": "√",
1482
- "unixVer": "x"
1483
- },
1484
- "baidu": {
1485
- "hostVer": "√",
1486
- "uniVer": "√",
1487
- "unixVer": "x"
1488
- },
1489
- "toutiao": {
1490
- "hostVer": "√",
1491
- "uniVer": "√",
1492
- "unixVer": "x"
1493
- },
1494
- "lark": {
1495
- "hostVer": "√",
1496
- "uniVer": "√",
1497
- "unixVer": "x"
1498
- },
1499
- "qq": {
1500
- "hostVer": "√",
1501
- "uniVer": "√",
1502
- "unixVer": "x"
1503
- },
1504
- "kuaishou": {
1505
- "hostVer": "√",
1506
- "uniVer": "√",
1507
- "unixVer": "x"
1508
- },
1509
- "jd": {
1510
- "hostVer": "√",
1511
- "uniVer": "√",
1512
- "unixVer": "x"
1513
- }
1514
- },
1515
- "web": {
1516
- "uniVer": "√",
1517
- "unixVer": "4.0"
1518
- }
1519
- }
1520
- */
1521
- export type HideToast = () => void
1522
-
1523
-
1524
- /**
1525
- * uni.showLoading成功回调参数
1526
- */
1527
- export type ShowLoadingSuccess = {
1528
- }
1529
-
1530
- /**
1531
- * uni.showLoading失败回调参数
1532
- */
1533
- export type ShowLoadingFail = IPromptError;
1534
-
1535
- /**
1536
- * uni.showLoading成功回调函数定义
1537
- */
1538
- export type ShowLoadingSuccessCallback = (res: ShowLoadingSuccess) => void
1539
- /**
1540
- * uni.showLoading失败回调函数定义
1541
- */
1542
- export type ShowLoadingFailCallback = (res: ShowLoadingFail) => void
1543
- /**
1544
- * uni.showLoading完成回调函数定义
1545
- */
1546
- export type ShowLoadingCompleteCallback = (res: any) => void
1547
-
1548
- /**
1549
- * uni.showLoading参数定义
1550
- */
1551
- export type ShowLoadingOptions = {
1552
- /**
1553
- * 提示的内容,长度与 icon 取值有关。
1554
- */
1555
- title: string,
1556
- /**
1557
- * 是否显示透明蒙层,防止触摸穿透,默认:false
1558
- */
1559
- mask?: boolean | null,
1560
- /**
1561
- * 接口调用成功的回调函数
1562
- */
1563
- success?: ShowLoadingSuccessCallback | null,
1564
- /**
1565
- * 接口调用失败的回调函数
1566
- */
1567
- fail?: ShowLoadingFailCallback | null,
1568
- /**
1569
- * 接口调用结束的回调函数(调用成功、失败都会执行)
1570
- */
1571
- complete?: ShowLoadingCompleteCallback | null
1572
- }
1573
-
1574
- /**
1575
- * uni.showLoading函数定义
1576
- * 弹出loading
1577
- *
1578
- * @param {ShowLoadingOptions} options
1579
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showloading
1580
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showloading
1581
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showloading
1582
- * @uniPlatform
1583
- {
1584
- "app": {
1585
- "android": {
1586
- "osVer": "5.0",
1587
- "uniVer": "√",
1588
- "uniUtsPlugin": "3.91",
1589
- "unixVer": "3.91",
1590
- "unixUtsPlugin": "3.91"
1591
- },
1592
- "ios": {
1593
- "osVer": "12.0",
1594
- "uniVer": "√",
1595
- "uniUtsPlugin": "4.11",
1596
- "unixVer": "4.11",
1597
- "unixUtsPlugin": "4.11"
1598
- },
1599
- "harmony": {
1600
- "osVer": "3.0",
1601
- "uniVer": "4.23",
1602
- "unixVer": "4.61"
1603
- }
1604
- },
1605
- "mp": {
1606
- "weixin": {
1607
- "hostVer": "√",
1608
- "uniVer": "√",
1609
- "unixVer": "4.41"
1610
- },
1611
- "alipay": {
1612
- "hostVer": "√",
1613
- "uniVer": "√",
1614
- "unixVer": "x"
1615
- },
1616
- "baidu": {
1617
- "hostVer": "√",
1618
- "uniVer": "√",
1619
- "unixVer": "x"
1620
- },
1621
- "toutiao": {
1622
- "hostVer": "√",
1623
- "uniVer": "√",
1624
- "unixVer": "x"
1625
- },
1626
- "lark": {
1627
- "hostVer": "√",
1628
- "uniVer": "√",
1629
- "unixVer": "x"
1630
- },
1631
- "qq": {
1632
- "hostVer": "√",
1633
- "uniVer": "√",
1634
- "unixVer": "x"
1635
- },
1636
- "kuaishou": {
1637
- "hostVer": "√",
1638
- "uniVer": "√",
1639
- "unixVer": "x"
1640
- },
1641
- "jd": {
1642
- "hostVer": "√",
1643
- "uniVer": "√",
1644
- "unixVer": "x"
1645
- }
1646
- },
1647
- "web": {
1648
- "uniVer": "√",
1649
- "unixVer": "4.0"
1650
- }
1651
- }
1652
- */
1653
- export type ShowLoading = (options: ShowLoadingOptions) => void
1654
-
1655
- /**
1656
- * uni.hideLoading函数定义
1657
- * 隐藏loading
1658
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#hideloading
1659
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hideloading
1660
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hideloading
1661
- * @uniPlatform
1662
- {
1663
- "app": {
1664
- "android": {
1665
- "osVer": "5.0",
1666
- "uniVer": "√",
1667
- "uniUtsPlugin": "3.91",
1668
- "unixVer": "3.91",
1669
- "unixUtsPlugin": "3.91"
1670
- },
1671
- "ios": {
1672
- "osVer": "12.0",
1673
- "uniVer": "√",
1674
- "uniUtsPlugin": "4.11",
1675
- "unixVer": "4.11",
1676
- "unixUtsPlugin": "4.11"
1677
- },
1678
- "harmony": {
1679
- "osVer": "3.0",
1680
- "uniVer": "4.23",
1681
- "unixVer": "4.61"
1682
- }
1683
- },
1684
- "mp": {
1685
- "weixin": {
1686
- "hostVer": "√",
1687
- "uniVer": "√",
1688
- "unixVer": "4.41"
1689
- },
1690
- "alipay": {
1691
- "hostVer": "√",
1692
- "uniVer": "√",
1693
- "unixVer": "x"
1694
- },
1695
- "baidu": {
1696
- "hostVer": "√",
1697
- "uniVer": "√",
1698
- "unixVer": "x"
1699
- },
1700
- "toutiao": {
1701
- "hostVer": "√",
1702
- "uniVer": "√",
1703
- "unixVer": "x"
1704
- },
1705
- "lark": {
1706
- "hostVer": "√",
1707
- "uniVer": "√",
1708
- "unixVer": "x"
1709
- },
1710
- "qq": {
1711
- "hostVer": "√",
1712
- "uniVer": "√",
1713
- "unixVer": "x"
1714
- },
1715
- "kuaishou": {
1716
- "hostVer": "√",
1717
- "uniVer": "√",
1718
- "unixVer": "x"
1719
- },
1720
- "jd": {
1721
- "hostVer": "√",
1722
- "uniVer": "√",
1723
- "unixVer": "x"
1724
- }
1725
- },
1726
- "web": {
1727
- "uniVer": "√",
1728
- "unixVer": "4.0"
1729
- }
1730
- }
1731
- */
1732
- export type HideLoading = () => void
1733
- // #ifndef UNI-APP-X && !APP-HARMONY
1734
- /**
1735
- * uni.showModal 成功回调参数
1736
- */
1737
- export type ShowModalSuccess = {
1738
- /**
1739
- * 为 true 时,表示用户点击了确定按钮
1740
- */
1741
- confirm: boolean,
1742
- /**
1743
- * 为 true 时,表示用户点击了取消(用于 Android 系统区分点击蒙层关闭还是点击取消按钮关闭)
1744
- */
1745
- cancel: boolean,
1746
- /**
1747
- * editable 为 true 时,用户输入的文本
1748
- */
1749
- content: string | null
1750
- }
1751
-
1752
- /**
1753
- * uni.showModal失败回调参数
1754
- */
1755
- export type ShowModalFail = IPromptError;
1756
-
1757
- /**
1758
- * uni.showModal成功回调函数定义
1759
- */
1760
- export type ShowModalSuccessCallback = (res: ShowModalSuccess) => void
1761
- /**
1762
- * uni.showModal失败回调函数定义
1763
- */
1764
- export type ShowModalFailCallback = (res: ShowModalFail) => void
1765
- /**
1766
- * uni.showModal完成回调函数定义
1767
- */
1768
- export type ShowModalCompleteCallback = (res: any) => void
1769
- /**
1770
- * uni.showModal 参数定义
1771
- */
1772
- export type ShowModalOptions = {
1773
- /**
1774
- * 提示的标题
1775
- */
1776
- title?: string | null,
1777
- /**
1778
- * 提示的内容
1779
- */
1780
- content?: string | null,
1781
- /**
1782
- * @default true
1783
- * 是否显示取消按钮,默认为 true
1784
- */
1785
- showCancel?: boolean | null,
1786
- /**
1787
- * 取消按钮的文字,默认为"取消"
1788
- */
1789
- cancelText?: string | null,
1790
- /**
1791
- * 取消按钮的文字颜色,默认为"#000000"
1792
- */
1793
- cancelColor?: string.ColorString | null,
1794
- /**
1795
- * 确定按钮的文字,默认为"确定"
1796
- */
1797
- confirmText?: string | null,
1798
- /**
1799
- * 确定按钮的文字颜色
1800
- */
1801
- confirmColor?: string.ColorString | null,
1802
- /**
1803
- * @default false
1804
- * 是否显示输入框
1805
- */
1806
- editable?: boolean | null,
1807
- /**
1808
- * 显示输入框时的提示文本
1809
- */
1810
- placeholderText?: string | null,
1811
- /**
1812
- * 接口调用成功的回调函数
1813
- */
1814
- success?: ShowModalSuccessCallback | null,
1815
- /**
1816
- * 接口调用失败的回调函数
1817
- */
1818
- fail?: ShowModalFailCallback | null,
1819
- /**
1820
- * 接口调用结束的回调函数(调用成功、失败都会执行)
1821
- */
1822
- complete?: ShowModalCompleteCallback | null
1823
- }
1824
-
1825
- /**
1826
- * uni.showModal 函数定义
1827
- *
1828
- * 弹出modal
1829
- *
1830
- * @param {ShowModalOptions} options
1831
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showmodal
1832
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
1833
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
1834
- * @uniPlatform
1835
- {
1836
- "app": {
1837
- "android": {
1838
- "osVer": "5.0",
1839
- "uniVer": "√",
1840
- "uniUtsPlugin": "x",
1841
- "unixVer": "3.91",
1842
- "unixUtsPlugin": "3.91"
1843
- },
1844
- "ios": {
1845
- "osVer": "12.0",
1846
- "uniVer": "√",
1847
- "uniUtsPlugin": "x",
1848
- "unixVer": "4.11",
1849
- "unixUtsPlugin": "4.11"
1850
- },
1851
- "harmony": {
1852
- "osVer": "3.0",
1853
- "uniVer": "4.23",
1854
- "unixVer": "4.61"
1855
- }
1856
- },
1857
- "mp": {
1858
- "weixin": {
1859
- "hostVer": "√",
1860
- "uniVer": "√",
1861
- "unixVer": "4.41"
1862
- },
1863
- "alipay": {
1864
- "hostVer": "√",
1865
- "uniVer": "√",
1866
- "unixVer": "x"
1867
- },
1868
- "baidu": {
1869
- "hostVer": "√",
1870
- "uniVer": "√",
1871
- "unixVer": "x"
1872
- },
1873
- "toutiao": {
1874
- "hostVer": "√",
1875
- "uniVer": "√",
1876
- "unixVer": "x"
1877
- },
1878
- "lark": {
1879
- "hostVer": "√",
1880
- "uniVer": "√",
1881
- "unixVer": "x"
1882
- },
1883
- "qq": {
1884
- "hostVer": "√",
1885
- "uniVer": "√",
1886
- "unixVer": "x"
1887
- },
1888
- "kuaishou": {
1889
- "hostVer": "√",
1890
- "uniVer": "√",
1891
- "unixVer": "x"
1892
- },
1893
- "jd": {
1894
- "hostVer": "√",
1895
- "uniVer": "√",
1896
- "unixVer": "x"
1897
- }
1898
- },
1899
- "web": {
1900
- "uniVer": "√",
1901
- "unixVer": "4.0"
1902
- }
1903
- }
1904
- */
1905
- export type ShowModal = (options: ShowModalOptions) => void
1906
- // #endif
1907
-
1908
- // #ifndef UNI-APP-X && !APP-HARMONY
1909
- /**
1910
- * uni.ShowActionSheet成功回调参数
1911
- */
1912
- export type ShowActionSheetSuccess = {
1913
- /**
1914
- * 用户点击的按钮,从上到下的顺序,从0开始
1915
- */
1916
- tapIndex: number,
1917
- }
1918
-
1919
- export type Popover = {
1920
- /**
1921
- * 指示区域坐标,使用原生 navigationBar 时一般需要加上 navigationBar 的高度
1922
- */
1923
- top: number,
1924
- /**
1925
- * 指示区域坐标
1926
- */
1927
- left: number,
1928
- /**
1929
- * 指示区域宽度
1930
- */
1931
- width: number,
1932
- /**
1933
- * 指示区域高度
1934
- */
1935
- height: number
1936
- }
1937
-
1938
- /**
1939
- * uni.ShowActionSheet失败回调参数
1940
- */
1941
- export type ShowActionSheetFail = IPromptError;
1942
-
1943
- /**
1944
- * uni.showActionSheet成功回调函数定义
1945
- */
1946
- export type ShowActionSheetSuccessCallback = (res: ShowActionSheetSuccess) => void
1947
- /**
1948
- * uni.showActionSheet成功回调函数定义
1949
- */
1950
- export type ShowActionSheetFailCallback = (res: ShowActionSheetFail) => void
1951
- /**
1952
- * uni.showActionSheet成功回调函数定义
1953
- */
1954
- export type ShowActionSheetCompleteCallback = (res: any) => void
1955
-
1956
- /**
1957
- * uni.showActionSheet函数参数定义
1958
- */
1959
- export type ShowActionSheetOptions = {
1960
- /**
1961
- * 菜单标题
1962
- */
1963
- title?: string | null,
1964
- /**
1965
- * 警示文案(同菜单标题, app无效)
1966
- */
1967
- alertText?: string | null,
1968
- /**
1969
- * 按钮的文字数组
1970
- */
1971
- itemList: string[],
1972
- /**
1973
- * 按钮的文字颜色,字符串格式(iOS默认为系统控件颜色)
1974
- */
1975
- itemColor?: string.ColorString | null,
1976
- /**
1977
- * 大屏设备弹出原生选择按钮框的指示区域,默认居中显示
1978
- */
1979
- popover?: Popover | null,
1980
- /**
1981
- * 接口调用成功的回调函数
1982
- */
1983
- success?: ShowActionSheetSuccessCallback | null,
1984
- /**
1985
- * 接口调用失败的回调函数
1986
- */
1987
- fail?: ShowActionSheetFailCallback | null,
1988
- /**
1989
- * 接口调用结束的回调函数(调用成功、失败都会执行)
1990
- */
1991
- complete?: ShowActionSheetCompleteCallback | null
1992
- }
1993
-
1994
- /**
1995
- * uni.showActionSheet函数定义
1996
- *
1997
- * 弹出actionSheet
1998
- *
1999
- * @param {ShowActionSheetOptions} options
2000
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showactionsheet
2001
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showactionsheet
2002
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showactionsheet
2003
- * @uniPlatform
2004
- {
2005
- "app": {
2006
- "android": {
2007
- "osVer": "5.0",
2008
- "uniVer": "√",
2009
- "uniUtsPlugin": "x",
2010
- "unixVer": "3.91",
2011
- "unixUtsPlugin": "3.91"
2012
- },
2013
- "ios": {
2014
- "osVer": "12.0",
2015
- "uniVer": "√",
2016
- "uniUtsPlugin": "x",
2017
- "unixVer": "4.11",
2018
- "unixUtsPlugin": "4.11"
2019
- },
2020
- "harmony": {
2021
- "osVer": "3.0",
2022
- "uniVer": "4.23",
2023
- "unixVer": "4.61"
2024
- }
2025
- },
2026
- "mp": {
2027
- "weixin": {
2028
- "hostVer": "√",
2029
- "uniVer": "√",
2030
- "unixVer": "4.41"
2031
- },
2032
- "alipay": {
2033
- "hostVer": "√",
2034
- "uniVer": "√",
2035
- "unixVer": "x"
2036
- },
2037
- "baidu": {
2038
- "hostVer": "√",
2039
- "uniVer": "√",
2040
- "unixVer": "x"
2041
- },
2042
- "toutiao": {
2043
- "hostVer": "√",
2044
- "uniVer": "√",
2045
- "unixVer": "x"
2046
- },
2047
- "lark": {
2048
- "hostVer": "√",
2049
- "uniVer": "√",
2050
- "unixVer": "x"
2051
- },
2052
- "qq": {
2053
- "hostVer": "√",
2054
- "uniVer": "√",
2055
- "unixVer": "x"
2056
- },
2057
- "kuaishou": {
2058
- "hostVer": "√",
2059
- "uniVer": "√",
2060
- "unixVer": "x"
2061
- },
2062
- "jd": {
2063
- "hostVer": "√",
2064
- "uniVer": "√",
2065
- "unixVer": "x"
2066
- }
2067
- },
2068
- "web": {
2069
- "uniVer": "√",
2070
- "unixVer": "4.0"
2071
- }
2072
- }
2073
- */
2074
- export type ShowActionSheet = (options: ShowActionSheetOptions) => void
2075
- // #endif
2076
-
2077
-
2078
- export interface Uni {
2079
- /**
2080
- * @description 显示消息提示框
2081
- * @example
2082
- ```typescript
2083
- uni.showToast({
2084
- title: '标题',
2085
- duration: 2000
2086
- });
2087
- ```
2088
- * @remark
2089
- * - showLoading 和 showToast 同时只能显示一个
2090
- * - showToast 应与 hideToast 配对使用
2091
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showtoast
2092
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showtoast
2093
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showtoast
2094
- * @uniPlatform
2095
- {
2096
- "app": {
2097
- "android": {
2098
- "osVer": "5.0",
2099
- "uniVer": "√",
2100
- "uniUtsPlugin": "3.91",
2101
- "unixVer": "3.91",
2102
- "unixUtsPlugin": "3.91"
2103
- },
2104
- "ios": {
2105
- "osVer": "12.0",
2106
- "uniVer": "√",
2107
- "uniUtsPlugin": "4.11",
2108
- "unixVer": "4.11",
2109
- "unixUtsPlugin": "4.11"
2110
- },
2111
- "harmony": {
2112
- "osVer": "3.0",
2113
- "uniVer": "4.23",
2114
- "unixVer": "4.61"
2115
- }
2116
- },
2117
- "mp": {
2118
- "weixin": {
2119
- "hostVer": "√",
2120
- "uniVer": "√",
2121
- "unixVer": "4.41"
2122
- },
2123
- "alipay": {
2124
- "hostVer": "√",
2125
- "uniVer": "√",
2126
- "unixVer": "x"
2127
- },
2128
- "baidu": {
2129
- "hostVer": "√",
2130
- "uniVer": "√",
2131
- "unixVer": "x"
2132
- },
2133
- "toutiao": {
2134
- "hostVer": "√",
2135
- "uniVer": "√",
2136
- "unixVer": "x"
2137
- },
2138
- "lark": {
2139
- "hostVer": "√",
2140
- "uniVer": "√",
2141
- "unixVer": "x"
2142
- },
2143
- "qq": {
2144
- "hostVer": "√",
2145
- "uniVer": "√",
2146
- "unixVer": "x"
2147
- },
2148
- "kuaishou": {
2149
- "hostVer": "√",
2150
- "uniVer": "√",
2151
- "unixVer": "x"
2152
- },
2153
- "jd": {
2154
- "hostVer": "√",
2155
- "uniVer": "√",
2156
- "unixVer": "x"
2157
- }
2158
- },
2159
- "web": {
2160
- "uniVer": "√",
2161
- "unixVer": "4.0"
2162
- }
2163
- }
2164
- */
2165
- showToast(options: ShowToastOptions): void,
2166
-
2167
- /**
2168
- * @description 隐藏消息提示框。
2169
- * @example
2170
- ```typescript
2171
- uni.hideToast();
2172
- ```
2173
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#hidetoast
2174
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hidetoast
2175
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hidetoast
2176
- * @uniPlatform
2177
- {
2178
- "app": {
2179
- "android": {
2180
- "osVer": "5.0",
2181
- "uniVer": "√",
2182
- "uniUtsPlugin": "3.91",
2183
- "unixVer": "3.91",
2184
- "unixUtsPlugin": "3.91"
2185
- },
2186
- "ios": {
2187
- "osVer": "12.0",
2188
- "uniVer": "√",
2189
- "uniUtsPlugin": "4.11",
2190
- "unixVer": "4.11",
2191
- "unixUtsPlugin": "4.11"
2192
- },
2193
- "harmony": {
2194
- "osVer": "3.0",
2195
- "uniVer": "4.23",
2196
- "unixVer": "4.61"
2197
- }
2198
- },
2199
- "mp": {
2200
- "weixin": {
2201
- "hostVer": "√",
2202
- "uniVer": "√",
2203
- "unixVer": "4.41"
2204
- },
2205
- "alipay": {
2206
- "hostVer": "√",
2207
- "uniVer": "√",
2208
- "unixVer": "x"
2209
- },
2210
- "baidu": {
2211
- "hostVer": "√",
2212
- "uniVer": "√",
2213
- "unixVer": "x"
2214
- },
2215
- "toutiao": {
2216
- "hostVer": "√",
2217
- "uniVer": "√",
2218
- "unixVer": "x"
2219
- },
2220
- "lark": {
2221
- "hostVer": "√",
2222
- "uniVer": "√",
2223
- "unixVer": "x"
2224
- },
2225
- "qq": {
2226
- "hostVer": "√",
2227
- "uniVer": "√",
2228
- "unixVer": "x"
2229
- },
2230
- "kuaishou": {
2231
- "hostVer": "√",
2232
- "uniVer": "√",
2233
- "unixVer": "x"
2234
- },
2235
- "jd": {
2236
- "hostVer": "√",
2237
- "uniVer": "√",
2238
- "unixVer": "x"
2239
- }
2240
- },
2241
- "web": {
2242
- "uniVer": "√",
2243
- "unixVer": "4.0"
2244
- }
2245
- }
2246
- */
2247
- hideToast(): void,
2248
-
2249
- /**
2250
- * @description 显示 loading 提示框, 需主动调用 uni.hideLoading 才能关闭提示框。
2251
- * @example
2252
- ```typescript
2253
- uni.showLoading({
2254
- title: '加载中'
2255
- });
2256
- ```
2257
- * @remark
2258
- * - showLoading 和 showToast 同时只能显示一个
2259
- * - showToast 应与 hideToast 配对使用
2260
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showloading
2261
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showloading
2262
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showloading
2263
- * @uniPlatform
2264
- {
2265
- "app": {
2266
- "android": {
2267
- "osVer": "5.0",
2268
- "uniVer": "√",
2269
- "uniUtsPlugin": "3.91",
2270
- "unixVer": "3.91",
2271
- "unixUtsPlugin": "3.91"
2272
- },
2273
- "ios": {
2274
- "osVer": "12.0",
2275
- "uniVer": "√",
2276
- "uniUtsPlugin": "4.11",
2277
- "unixVer": "4.11",
2278
- "unixUtsPlugin": "4.11"
2279
- },
2280
- "harmony": {
2281
- "osVer": "3.0",
2282
- "uniVer": "4.23",
2283
- "unixVer": "4.61"
2284
- }
2285
- },
2286
- "mp": {
2287
- "weixin": {
2288
- "hostVer": "√",
2289
- "uniVer": "√",
2290
- "unixVer": "4.41"
2291
- },
2292
- "alipay": {
2293
- "hostVer": "√",
2294
- "uniVer": "√",
2295
- "unixVer": "x"
2296
- },
2297
- "baidu": {
2298
- "hostVer": "√",
2299
- "uniVer": "√",
2300
- "unixVer": "x"
2301
- },
2302
- "toutiao": {
2303
- "hostVer": "√",
2304
- "uniVer": "√",
2305
- "unixVer": "x"
2306
- },
2307
- "lark": {
2308
- "hostVer": "√",
2309
- "uniVer": "√",
2310
- "unixVer": "x"
2311
- },
2312
- "qq": {
2313
- "hostVer": "√",
2314
- "uniVer": "√",
2315
- "unixVer": "x"
2316
- },
2317
- "kuaishou": {
2318
- "hostVer": "√",
2319
- "uniVer": "√",
2320
- "unixVer": "x"
2321
- },
2322
- "jd": {
2323
- "hostVer": "√",
2324
- "uniVer": "√",
2325
- "unixVer": "x"
2326
- }
2327
- },
2328
- "web": {
2329
- "uniVer": "√",
2330
- "unixVer": "4.0"
2331
- }
2332
- }
2333
- */
2334
- showLoading(options: ShowLoadingOptions): void,
2335
-
2336
- /**
2337
- * @description 隐藏 loading 提示框。
2338
- * @example
2339
- ```typescript
2340
- uni.showLoading({
2341
- title: '加载中'
2342
- });
2343
-
2344
- setTimeout(function () {
2345
- uni.hideLoading();
2346
- }, 2000);
2347
- ```
2348
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#hideloading
2349
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hideloading
2350
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#hideloading
2351
- * @uniPlatform
2352
- {
2353
- "app": {
2354
- "android": {
2355
- "osVer": "5.0",
2356
- "uniVer": "√",
2357
- "uniUtsPlugin": "3.91",
2358
- "unixVer": "3.91",
2359
- "unixUtsPlugin": "3.91"
2360
- },
2361
- "ios": {
2362
- "osVer": "12.0",
2363
- "uniVer": "√",
2364
- "uniUtsPlugin": "4.11",
2365
- "unixVer": "4.11",
2366
- "unixUtsPlugin": "4.11"
2367
- },
2368
- "harmony": {
2369
- "osVer": "3.0",
2370
- "uniVer": "4.23",
2371
- "unixVer": "4.61"
2372
- }
2373
- },
2374
- "mp": {
2375
- "weixin": {
2376
- "hostVer": "√",
2377
- "uniVer": "√",
2378
- "unixVer": "4.41"
2379
- },
2380
- "alipay": {
2381
- "hostVer": "√",
2382
- "uniVer": "√",
2383
- "unixVer": "x"
2384
- },
2385
- "baidu": {
2386
- "hostVer": "√",
2387
- "uniVer": "√",
2388
- "unixVer": "x"
2389
- },
2390
- "toutiao": {
2391
- "hostVer": "√",
2392
- "uniVer": "√",
2393
- "unixVer": "x"
2394
- },
2395
- "lark": {
2396
- "hostVer": "√",
2397
- "uniVer": "√",
2398
- "unixVer": "x"
2399
- },
2400
- "qq": {
2401
- "hostVer": "√",
2402
- "uniVer": "√",
2403
- "unixVer": "x"
2404
- },
2405
- "kuaishou": {
2406
- "hostVer": "√",
2407
- "uniVer": "√",
2408
- "unixVer": "x"
2409
- },
2410
- "jd": {
2411
- "hostVer": "√",
2412
- "uniVer": "√",
2413
- "unixVer": "x"
2414
- }
2415
- },
2416
- "web": {
2417
- "uniVer": "√",
2418
- "unixVer": "4.0"
2419
- }
2420
- }
2421
- */
2422
- hideLoading(): void,
2423
- // #ifndef UNI-APP-X
2424
- /**
2425
- * @description 显示模态弹窗,可以只有一个确定按钮,也可以同时有确定和取消按钮。类似于一个API整合了 html 中:alert、confirm。
2426
- * @example
2427
- ```typescript
2428
- uni.showModal({
2429
- title: '提示',
2430
- content: '这是一个模态弹窗',
2431
- success: function (res) {
2432
- if (res.confirm) {
2433
- console.log('用户点击确定');
2434
- } else if (res.cancel) {
2435
- console.log('用户点击取消');
2436
- }
2437
- }
2438
- });
2439
- ```
2440
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showmodal
2441
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
2442
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showmodal
2443
- * @uniPlatform
2444
- {
2445
- "app": {
2446
- "android": {
2447
- "osVer": "5.0",
2448
- "uniVer": "√",
2449
- "uniUtsPlugin": "x",
2450
- "unixVer": "3.91",
2451
- "unixUtsPlugin": "3.91"
2452
- },
2453
- "ios": {
2454
- "osVer": "12.0",
2455
- "uniVer": "√",
2456
- "uniUtsPlugin": "x",
2457
- "unixVer": "4.11",
2458
- "unixUtsPlugin": "4.11"
2459
- },
2460
- "harmony": {
2461
- "osVer": "3.0",
2462
- "uniVer": "4.23",
2463
- "unixVer": "4.61"
2464
- }
2465
- },
2466
- "mp": {
2467
- "weixin": {
2468
- "hostVer": "√",
2469
- "uniVer": "√",
2470
- "unixVer": "4.41"
2471
- },
2472
- "alipay": {
2473
- "hostVer": "√",
2474
- "uniVer": "√",
2475
- "unixVer": "x"
2476
- },
2477
- "baidu": {
2478
- "hostVer": "√",
2479
- "uniVer": "√",
2480
- "unixVer": "x"
2481
- },
2482
- "toutiao": {
2483
- "hostVer": "√",
2484
- "uniVer": "√",
2485
- "unixVer": "x"
2486
- },
2487
- "lark": {
2488
- "hostVer": "√",
2489
- "uniVer": "√",
2490
- "unixVer": "x"
2491
- },
2492
- "qq": {
2493
- "hostVer": "√",
2494
- "uniVer": "√",
2495
- "unixVer": "x"
2496
- },
2497
- "kuaishou": {
2498
- "hostVer": "√",
2499
- "uniVer": "√",
2500
- "unixVer": "x"
2501
- },
2502
- "jd": {
2503
- "hostVer": "√",
2504
- "uniVer": "√",
2505
- "unixVer": "x"
2506
- }
2507
- },
2508
- "web": {
2509
- "uniVer": "√",
2510
- "unixVer": "4.0"
2511
- }
2512
- }
2513
- */
2514
- showModal(options: ShowModalOptions): void,
2515
- // #endif
2516
- // #ifndef UNI-APP-X
2517
- /**
2518
- * @description 从底部向上弹出操作菜单
2519
- * @example
2520
- ```typescript
2521
- uni.showActionSheet({
2522
- itemList: ['A', 'B', 'C'],
2523
- success: function (res) {
2524
- console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
2525
- },
2526
- fail: function (res) {
2527
- console.log(res.errMsg);
2528
- }
2529
- });
2530
- ```
2531
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/prompt.html#showactionsheet
2532
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showactionsheet
2533
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#showactionsheet
2534
- * @uniPlatform
2535
- {
2536
- "app": {
2537
- "android": {
2538
- "osVer": "5.0",
2539
- "uniVer": "√",
2540
- "uniUtsPlugin": "x",
2541
- "unixVer": "3.91",
2542
- "unixUtsPlugin": "3.91"
2543
- },
2544
- "ios": {
2545
- "osVer": "12.0",
2546
- "uniVer": "√",
2547
- "uniUtsPlugin": "x",
2548
- "unixVer": "4.11",
2549
- "unixUtsPlugin": "4.11"
2550
- },
2551
- "harmony": {
2552
- "osVer": "3.0",
2553
- "uniVer": "4.23",
2554
- "unixVer": "4.61"
2555
- }
2556
- },
2557
- "mp": {
2558
- "weixin": {
2559
- "hostVer": "√",
2560
- "uniVer": "√",
2561
- "unixVer": "4.41"
2562
- },
2563
- "alipay": {
2564
- "hostVer": "√",
2565
- "uniVer": "√",
2566
- "unixVer": "x"
2567
- },
2568
- "baidu": {
2569
- "hostVer": "√",
2570
- "uniVer": "√",
2571
- "unixVer": "x"
2572
- },
2573
- "toutiao": {
2574
- "hostVer": "√",
2575
- "uniVer": "√",
2576
- "unixVer": "x"
2577
- },
2578
- "lark": {
2579
- "hostVer": "√",
2580
- "uniVer": "√",
2581
- "unixVer": "x"
2582
- },
2583
- "qq": {
2584
- "hostVer": "√",
2585
- "uniVer": "√",
2586
- "unixVer": "x"
2587
- },
2588
- "kuaishou": {
2589
- "hostVer": "√",
2590
- "uniVer": "√",
2591
- "unixVer": "x"
2592
- },
2593
- "jd": {
2594
- "hostVer": "√",
2595
- "uniVer": "√",
2596
- "unixVer": "x"
2597
- }
2598
- },
2599
- "web": {
2600
- "uniVer": "√",
2601
- "unixVer": "4.0"
2602
- }
2603
- }
2604
- */
2605
- showActionSheet(options: ShowActionSheetOptions): void
2606
- // #endif
2607
- }