@dcloudio/uni-app-x 0.7.59 → 0.7.60

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 (149) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +16 -8
  3. package/types/native/IUniElement.d.ts +0 -2
  4. package/types/native/UniFormControl.d.ts +1 -1
  5. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -0
  6. package/types/native/UniSwiperChangeEvent.d.ts +1 -0
  7. package/types/native/WebViewStyles.d.ts +1 -1
  8. package/types/native/global.d.ts +2 -0
  9. package/types/page.d.ts +134 -22
  10. package/types/uni/uni-camera-global.d.ts +4 -0
  11. package/types/uni/uni-camera.d.ts +10 -9
  12. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +3 -2
  13. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +3 -2
  14. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +9 -6
  15. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +3 -2
  16. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
  17. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +10 -8
  18. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +10 -10
  19. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +3 -2
  20. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +2 -2
  21. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +2 -2
  22. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +7 -6
  23. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +5 -3
  24. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +8 -8
  25. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +4 -1
  26. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +26 -11
  27. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
  28. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +3 -3
  29. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +11 -10
  30. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2 -2
  31. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +1 -1
  32. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +4 -4
  33. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +8 -8
  34. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +8 -6
  35. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
  36. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +4 -4
  37. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -7
  38. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
  39. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +1 -1
  40. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
  41. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +246 -236
  42. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +4 -4
  43. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +3 -2
  44. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +141 -243
  45. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -696
  46. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +10 -8
  47. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +387 -95
  48. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +401 -344
  49. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +52 -52
  50. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +2 -2
  51. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +11 -11
  52. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +5 -5
  53. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +24 -24
  54. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +4 -4
  55. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +39 -25
  56. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +3 -0
  57. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
  58. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
  59. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +4 -4
  60. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +20 -20
  61. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +18 -18
  62. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +49 -49
  63. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +5 -5
  64. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +26 -26
  65. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +14 -14
  66. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -2
  67. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -1
  68. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +153 -6
  69. package/types/uni-cloud/interface.d.ts +13 -9
  70. package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +0 -554
  71. package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +0 -224
  72. package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +0 -77
  73. package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +0 -365
  74. package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +0 -77
  75. package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +0 -972
  76. package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +0 -410
  77. package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +0 -459
  78. package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +0 -203
  79. package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +0 -2613
  80. package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +0 -152
  81. package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +0 -61
  82. package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +0 -548
  83. package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +0 -137
  84. package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +0 -1380
  85. package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +0 -76
  86. package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +0 -338
  87. package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +0 -102
  88. package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +0 -384
  89. package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +0 -5316
  90. package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +0 -35
  91. package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +0 -616
  92. package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +0 -2157
  93. package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +0 -895
  94. package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +0 -1755
  95. package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +0 -82
  96. package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +0 -295
  97. package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +0 -299
  98. package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +0 -1764
  99. package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +0 -1
  100. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +0 -1
  101. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +0 -736
  102. package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +0 -274
  103. package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +0 -198
  104. package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +0 -634
  105. package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +0 -980
  106. package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +0 -5550
  107. package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +0 -501
  108. package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +0 -83
  109. package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +0 -169
  110. package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +0 -102
  111. package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +0 -580
  112. package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +0 -100
  113. package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +0 -2980
  114. package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +0 -190
  115. package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +0 -1002
  116. package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +0 -3620
  117. package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +0 -1592
  118. package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +0 -1
  119. package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +0 -254
  120. package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +0 -112
  121. package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +0 -153
  122. package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +0 -833
  123. package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +0 -1
  124. package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +0 -1
  125. package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +0 -3
  126. package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +0 -518
  127. package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +0 -560
  128. package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +0 -2607
  129. package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +0 -189
  130. package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +0 -710
  131. package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +0 -2695
  132. package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +0 -80
  133. package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +0 -130
  134. package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +0 -719
  135. package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +0 -277
  136. package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +0 -1020
  137. package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +0 -1148
  138. package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +0 -1059
  139. package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +0 -1660
  140. package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +0 -1941
  141. package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +0 -726
  142. package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +0 -89
  143. package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +0 -212
  144. package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +0 -2359
  145. package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +0 -960
  146. package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +0 -204
  147. package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +0 -730
  148. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +0 -221
  149. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +0 -935
@@ -1 +0,0 @@
1
- export interface UniPaymentAlipayProvider extends UniPaymentProvider{}
@@ -1 +0,0 @@
1
- export interface UniPaymentHuaweiProvider extends UniPaymentProvider { }
@@ -1,3 +0,0 @@
1
- export interface UniPaymentWxpayProvider extends UniPaymentProvider {
2
- isWeChatInstalled : boolean
3
- }
@@ -1,518 +0,0 @@
1
- /**
2
- * 错误码
3
- */
4
- export type PreviewImageErrorCode =
5
- /**
6
- * 用户取消
7
- */
8
- 1101001 |
9
- /**
10
- * urls至少包含一张图片地址
11
- */
12
- 1101002 |
13
- /**
14
- * 文件不存在
15
- */
16
- 1101003 |
17
- /**
18
- * 图片加载失败
19
- */
20
- 1101004 |
21
- /**
22
- * 未获取权限
23
- */
24
- 1101005 |
25
- /**
26
- * 其他错误
27
- */
28
- 1101010;
29
-
30
- export interface IPreviewImageError extends IUniError {
31
- errCode : PreviewImageErrorCode
32
- };
33
- export type PreviewImageSuccess = {
34
- /**
35
- * 调用API的名称
36
- */
37
- errSubject : string,
38
- /**
39
- * 描述信息
40
- */
41
- errMsg : string
42
- }
43
- export type PreviewImageFail = IPreviewImageError;
44
- export type PreviewImageSuccessCallback = (callback : PreviewImageSuccess) => void
45
- export type PreviewImageFailCallback = (callback : PreviewImageFail) => void
46
- export type PreviewImageCompleteCallback = (callback : any) => void
47
-
48
- export type LongPressActionsSuccessResult = {
49
- /**
50
- * 接口调用失败的回调函数
51
- */
52
- tapIndex : number,
53
- /**
54
- * 接口调用结束的回调函数(调用成功、失败都会执行)
55
- */
56
- index : number
57
- };
58
-
59
- export type LongPressActionsFailResult = IPreviewImageError
60
- export type LongPressActionsOptions = {
61
- /**
62
- * 按钮的文字数组
63
- */
64
- itemList : string[],
65
- /**
66
- * 按钮的文字颜色,字符串格式,默认为"#000000"
67
- */
68
- itemColor : string | null,
69
- /**
70
- * 接口调用成功的回调函数
71
- */
72
- success : ((result : LongPressActionsSuccessResult) => void) | null,
73
- /**
74
- * 接口调用失败的回调函数
75
- */
76
- fail : ((result : LongPressActionsFailResult) => void) | null,
77
- /**
78
- * 接口调用结束的回调函数(调用成功、失败都会执行)
79
- */
80
- complete : ((result : any) => void) | null
81
- };
82
-
83
- export type PreviewImageOptions = {
84
- /**
85
- * current 为当前显示图片的链接/索引值,不填或填写的值无效则为 urls 的第一张。APP平台仅支持索引值。
86
- * @type string | number
87
- */
88
- current ?: any | null,
89
- /**
90
- * 需要预览的图片链接列表
91
- */
92
- urls : Array<string.ImageURIString>,
93
- /**
94
- * 是否显示长按菜单
95
- *
96
- * @uniPlatform {
97
- * "app": {
98
- * "android": {
99
- * "osVer": "5.0",
100
- * "uniVer": "√",
101
- * "unixVer": "x"
102
- * },
103
- * "ios": {
104
- * "osVer": "10.0",
105
- * "uniVer": "√",
106
- * "unixVer": "x"
107
- * },
108
- * "harmony": {
109
- * "osVer": "3.0",
110
- * "uniVer": "4.23",
111
- * "unixVer": "4.61"
112
- * }
113
- * },
114
- * "mp": {
115
- * "weixin": {
116
- * "hostVer": "√",
117
- * "uniVer": "√",
118
- * "unixVer": "4.41"
119
- * },
120
- * "alipay": {
121
- * "hostVer": "√",
122
- * "uniVer": "√",
123
- * "unixVer": "x"
124
- * },
125
- * "baidu": {
126
- * "hostVer": "√",
127
- * "uniVer": "√",
128
- * "unixVer": "x"
129
- * },
130
- * "toutiao": {
131
- * "hostVer": "√",
132
- * "uniVer": "√",
133
- * "unixVer": "x"
134
- * },
135
- * "lark": {
136
- * "hostVer": "√",
137
- * "uniVer": "√",
138
- * "unixVer": "x"
139
- * },
140
- * "qq": {
141
- * "hostVer": "√",
142
- * "uniVer": "√",
143
- * "unixVer": "x"
144
- * },
145
- * "kuaishou": {
146
- * "hostVer": "√",
147
- * "uniVer": "√",
148
- * "unixVer": "x"
149
- * },
150
- * "jd": {
151
- * "hostVer": "√",
152
- * "uniVer": "√",
153
- * "unixVer": "x"
154
- * }
155
- * },
156
- * "web": {
157
- * "uniVer": "√",
158
- * "unixVer": "x"
159
- * }
160
- * }
161
- */
162
- showmenu ?: boolean | null,
163
- /**
164
- * 图片指示器样式
165
- *
166
- * @uniPlatform {
167
- * "app": {
168
- * "android": {
169
- * "osVer": "5.0",
170
- * "uniVer": "√",
171
- * "unixVer": "3.9"
172
- * },
173
- * "ios": {
174
- * "osVer": "10.0",
175
- * "uniVer": "√",
176
- * "unixVer": "4.11"
177
- * },
178
- * "harmony": {
179
- * "osVer": "x",
180
- * "uniVer": "x",
181
- * "unixVer": "x"
182
- * }
183
- * },
184
- * "web": {
185
- * "uniVer": "√",
186
- * "unixVer": "x"
187
- * }
188
- * }
189
- */
190
- indicator ?:
191
- /**
192
- * 底部圆点指示器
193
- */
194
- 'default' |
195
- /**
196
- * 顶部数字指示器
197
- */
198
- 'number' |
199
- /**
200
- * 不显示指示器
201
- */
202
- 'none' |
203
- null,
204
- /**
205
- * 是否可循环预览
206
- * @type boolean
207
- * @uniPlatform {
208
- * "app": {
209
- * "android": {
210
- * "osVer": "5.0",
211
- * "uniVer": "√",
212
- * "unixVer": "3.9"
213
- * },
214
- * "ios": {
215
- * "osVer": "10.0",
216
- * "uniVer": "√",
217
- * "unixVer": "4.11"
218
- * },
219
- * "harmony": {
220
- * "osVer": "x",
221
- * "uniVer": "x",
222
- * "unixVer": "x"
223
- * }
224
- * },
225
- * "web": {
226
- * "uniVer": "√",
227
- * "unixVer": "x"
228
- * }
229
- * }
230
- */
231
- loop ?: boolean | null,
232
- /**
233
- * 长按图片显示操作菜单。
234
- * @uniPlatform {
235
- * "app": {
236
- * "android": {
237
- * "osVer": "5.0",
238
- * "uniVer": "√",
239
- * "unixVer": "4.51"
240
- * },
241
- * "ios": {
242
- * "osVer": "5.0",
243
- * "uniVer": "√",
244
- * "unixVer": "x"
245
- * },
246
- * "harmony": {
247
- * "osVer": "x",
248
- * "uniVer": "x",
249
- * "unixVer": "x"
250
- * }
251
- * },
252
- * "web": {
253
- * "osVer": "x",
254
- * "uniVer": "x",
255
- * "unixVer": "x"
256
- * },
257
- * "mp": {
258
- * "weixin": {
259
- * "hostVer": "√",
260
- * "uniVer": "√",
261
- * "unixVer": "4.41"
262
- * },
263
- * "alipay": {
264
- * "hostVer": "√",
265
- * "uniVer": "√",
266
- * "unixVer": "x"
267
- * },
268
- * "baidu": {
269
- * "hostVer": "√",
270
- * "uniVer": "√",
271
- * "unixVer": "x"
272
- * },
273
- * "toutiao": {
274
- * "hostVer": "√",
275
- * "uniVer": "√",
276
- * "unixVer": "x"
277
- * },
278
- * "lark": {
279
- * "hostVer": "√",
280
- * "uniVer": "√",
281
- * "unixVer": "x"
282
- * },
283
- * "qq": {
284
- * "hostVer": "√",
285
- * "uniVer": "√",
286
- * "unixVer": "x"
287
- * },
288
- * "kuaishou": {
289
- * "hostVer": "√",
290
- * "uniVer": "√",
291
- * "unixVer": "x"
292
- * },
293
- * "jd": {
294
- * "hostVer": "√",
295
- * "uniVer": "√",
296
- * "unixVer": "x"
297
- * }
298
- * }
299
- * }
300
- */
301
- longPressActions ?: LongPressActionsOptions | null,
302
- /**
303
- * 接口调用成功的回调函数
304
- */
305
- success ?: (PreviewImageSuccessCallback) | null,
306
- /**
307
- * 接口调用失败的回调函数
308
- */
309
- fail ?: (PreviewImageFailCallback) | null,
310
- /**
311
- * 接口调用结束的回调函数(调用成功、失败都会执行)
312
- */
313
- complete ?: (PreviewImageCompleteCallback) | null
314
- };
315
-
316
- export type PreviewImage = (options : PreviewImageOptions) => void;
317
-
318
- export type ClosePreviewImage = (options : ClosePreviewImageOptions) => void;
319
- export type ClosePreviewImageSuccess = {
320
- /**
321
- * 错误信息
322
- */
323
- errMsg : string
324
- };
325
-
326
- export type ClosePreviewImageFail = IPreviewImageError;
327
- export type ClosePreviewImageSuccessCallback = (callback : ClosePreviewImageSuccess) => void
328
- export type ClosePreviewImageFailCallback = (callback : ClosePreviewImageFail) => void
329
- export type ClosePreviewImageCompleteCallback = PreviewImageCompleteCallback
330
-
331
- export type ClosePreviewImageOptions = {
332
- /**
333
- * 接口调用成功的回调函数
334
- */
335
- success ?: (ClosePreviewImageSuccessCallback) | null,
336
- /**
337
- * 接口调用失败的回调函数
338
- */
339
- fail ?: (ClosePreviewImageFailCallback) | null,
340
- /**
341
- * 接口调用结束的回调函数(调用成功、失败都会执行)
342
- */
343
- complete ?: (ClosePreviewImageCompleteCallback) | null
344
- };
345
-
346
- export interface Uni {
347
- /**
348
- * 预览图片
349
- * @description 预览图片
350
- * @uniPlatform {
351
- * "app": {
352
- * "android": {
353
- * "osVer": "5.0",
354
- * "uniVer": "√",
355
- * "unixVer": "3.9+"
356
- * },
357
- * "ios": {
358
- * "osVer": "12.0",
359
- * "uniVer": "√",
360
- * "unixVer": "4.11"
361
- * },
362
- * "harmony": {
363
- * "osVer": "3.0",
364
- * "uniVer": "4.23",
365
- * "unixVer": "4.61"
366
- * }
367
- * },
368
- * "web": {
369
- * "uniVer": "√",
370
- * "unixVer": "4.0"
371
- * },
372
- * "mp": {
373
- * "weixin": {
374
- * "hostVer": "√",
375
- * "uniVer": "√",
376
- * "unixVer": "4.41"
377
- * },
378
- * "alipay": {
379
- * "hostVer": "√",
380
- * "uniVer": "√",
381
- * "unixVer": "x"
382
- * },
383
- * "baidu": {
384
- * "hostVer": "√",
385
- * "uniVer": "√",
386
- * "unixVer": "x"
387
- * },
388
- * "toutiao": {
389
- * "hostVer": "√",
390
- * "uniVer": "√",
391
- * "unixVer": "x"
392
- * },
393
- * "lark": {
394
- * "hostVer": "√",
395
- * "uniVer": "√",
396
- * "unixVer": "x"
397
- * },
398
- * "qq": {
399
- * "hostVer": "√",
400
- * "uniVer": "√",
401
- * "unixVer": "x"
402
- * },
403
- * "kuaishou": {
404
- * "hostVer": "√",
405
- * "uniVer": "√",
406
- * "unixVer": "x"
407
- * },
408
- * "jd": {
409
- * "hostVer": "x",
410
- * "uniVer": "x",
411
- * "unixVer": "x"
412
- * }
413
- * }
414
- * }
415
- * @uniVueVersion 2,3
416
- * @example
417
- * ```typescript
418
- * uni.previewImage({
419
- * urls:['/static/a.jpg','/static/b.jpg'],
420
- * success(e){
421
- * console.log(JSON.stringify(e))
422
- * }
423
- * })
424
- * ```
425
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/image.html#unipreviewimageobject
426
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html
427
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html
428
- * @autotest {
429
- generated:false
430
- }
431
- */
432
- previewImage(options : PreviewImageOptions) : void;
433
- /**
434
- * 关闭图片预览
435
- * @description 关闭图片预览
436
- * @uniPlatform {
437
- * "app": {
438
- * "android": {
439
- * "osVer": "5.0",
440
- * "uniVer": "√",
441
- * "unixVer": "3.9+"
442
- * },
443
- * "ios": {
444
- * "osVer": "12.0",
445
- * "uniVer": "√",
446
- * "unixVer": "4.11"
447
- * },
448
- * "harmony": {
449
- * "osVer": "3.0",
450
- * "uniVer": "4.23",
451
- * "unixVer": "4.61"
452
- * }
453
- * },
454
- * "mp": {
455
- * "weixin": {
456
- * "hostVer": "√",
457
- * "uniVer": "√",
458
- * "unixVer": "4.41"
459
- * },
460
- * "alipay": {
461
- * "hostVer": "√",
462
- * "uniVer": "√",
463
- * "unixVer": "x"
464
- * },
465
- * "baidu": {
466
- * "hostVer": "√",
467
- * "uniVer": "√",
468
- * "unixVer": "x"
469
- * },
470
- * "toutiao": {
471
- * "hostVer": "√",
472
- * "uniVer": "√",
473
- * "unixVer": "x"
474
- * },
475
- * "lark": {
476
- * "hostVer": "√",
477
- * "uniVer": "√",
478
- * "unixVer": "x"
479
- * },
480
- * "qq": {
481
- * "hostVer": "√",
482
- * "uniVer": "√",
483
- * "unixVer": "x"
484
- * },
485
- * "kuaishou": {
486
- * "hostVer": "√",
487
- * "uniVer": "√",
488
- * "unixVer": "x"
489
- * },
490
- * "jd": {
491
- * "hostVer": "√",
492
- * "uniVer": "√",
493
- * "unixVer": "x"
494
- * }
495
- * },
496
- * "web": {
497
- * "uniVer": "√",
498
- * "unixVer": "4.0"
499
- * }
500
- * }
501
- * @uniVueVersion 2,3
502
- * @example
503
- * ```typescript
504
- * uni.closePreviewImage({
505
- * success(e){
506
- * console.log(JSON.stringify(e))
507
- * }
508
- * })
509
- * ```
510
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/image.html#closepreviewimage
511
- * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html#closepreviewimage
512
- * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html#closepreviewimage
513
- * @autotest {
514
- generated:false
515
- }
516
- */
517
- closePreviewImage(options : ClosePreviewImageOptions) : void;
518
- }