@dcloudio/uni-app-x 0.7.58 → 0.7.59

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 (138) hide show
  1. package/package.json +6 -2
  2. package/types/index.d.ts +1 -0
  3. package/types/native/CSSStyleDeclaration.d.ts +31 -6
  4. package/types/native/DOMRect.d.ts +60 -10
  5. package/types/native/IUniElement.d.ts +459 -0
  6. package/types/native/UniElement.d.ts +3 -2
  7. package/types/native/UniPage.d.ts +2 -2
  8. package/types/native/UniWebViewContentHeightChangeEvent.d.ts +31 -0
  9. package/types/native/UniWebViewElement.d.ts +3 -1
  10. package/types/native/global.d.ts +8 -0
  11. package/types/native/index.d.ts +1 -0
  12. package/types/uni/env/index.d.ts +5 -5
  13. package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +554 -0
  14. package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +224 -0
  15. package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +77 -0
  16. package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +365 -0
  17. package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +77 -0
  18. package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +972 -0
  19. package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +410 -0
  20. package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +459 -0
  21. package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +203 -0
  22. package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +2613 -0
  23. package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +152 -0
  24. package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +61 -0
  25. package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +548 -0
  26. package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +137 -0
  27. package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +1380 -0
  28. package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +76 -0
  29. package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +338 -0
  30. package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +102 -0
  31. package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +384 -0
  32. package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +5316 -0
  33. package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +35 -0
  34. package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +616 -0
  35. package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +2157 -0
  36. package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +895 -0
  37. package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +1755 -0
  38. package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +82 -0
  39. package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +295 -0
  40. package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +299 -0
  41. package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +1764 -0
  42. package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +1 -0
  43. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +1 -0
  44. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +736 -0
  45. package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +274 -0
  46. package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +198 -0
  47. package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +634 -0
  48. package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +980 -0
  49. package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +5550 -0
  50. package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +501 -0
  51. package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +83 -0
  52. package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +169 -0
  53. package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +102 -0
  54. package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +580 -0
  55. package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +100 -0
  56. package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +2980 -0
  57. package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +190 -0
  58. package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +1002 -0
  59. package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +3620 -0
  60. package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +1592 -0
  61. package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +1 -0
  62. package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +254 -0
  63. package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +112 -0
  64. package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +153 -0
  65. package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +833 -0
  66. package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +1 -0
  67. package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +1 -0
  68. package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +3 -0
  69. package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +518 -0
  70. package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +560 -0
  71. package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +2607 -0
  72. package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +189 -0
  73. package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +710 -0
  74. package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +2695 -0
  75. package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +80 -0
  76. package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +130 -0
  77. package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +719 -0
  78. package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +277 -0
  79. package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +1020 -0
  80. package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +1148 -0
  81. package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +1059 -0
  82. package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +1660 -0
  83. package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +1941 -0
  84. package/types/uni/uts-plugin-api/global.d.ts +3 -0
  85. package/types/uni/uts-plugin-api/index.d.ts +3 -0
  86. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/global.d.ts +8 -0
  87. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/index.d.ts +4 -0
  88. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
  89. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +4 -0
  90. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +2 -0
  91. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +16 -6
  92. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
  93. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +2 -0
  94. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +1 -0
  95. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +45 -0
  96. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +3 -0
  97. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +238 -233
  98. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
  99. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +28 -1
  100. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +0 -9
  101. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +67 -239
  102. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +24 -4
  103. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +4 -0
  104. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +2 -0
  105. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +293 -179
  106. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +118 -78
  107. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +8 -0
  108. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +4 -0
  109. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3932 -3514
  110. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +4 -0
  111. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +2 -0
  112. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +778 -290
  113. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/global.d.ts +4 -0
  114. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/index.d.ts +2 -0
  115. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +2254 -1281
  116. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
  117. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +36 -0
  118. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +17 -0
  119. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +180 -0
  120. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/global.d.ts +8 -0
  121. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/index.d.ts +4 -0
  122. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -0
  123. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +2 -2
  124. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +126 -67
  125. package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +726 -0
  126. package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +89 -0
  127. package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +212 -0
  128. package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +2359 -0
  129. package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +960 -0
  130. package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +204 -0
  131. package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +730 -0
  132. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +221 -0
  133. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +935 -0
  134. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -0
  135. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -0
  136. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +203 -1
  137. package/types/uni-cloud/interface.d.ts +229 -0
  138. package/types/vite.d.ts +269 -0
@@ -0,0 +1,554 @@
1
+ export type Popover = {
2
+ /**
3
+ * 指示区域坐标,使用原生 navigationBar 时一般需要加上 navigationBar 的高度
4
+ */
5
+ top: number,
6
+ /**
7
+ * 指示区域坐标
8
+ */
9
+ left: number,
10
+ /**
11
+ * 指示区域宽度
12
+ */
13
+ width: number,
14
+ /**
15
+ * 指示区域高度
16
+ */
17
+ height: number
18
+ }
19
+
20
+ /**
21
+ * showActionSheet 错误码
22
+ * - 4: 框架内部异常
23
+ */
24
+ export type ShowActionSheetErrorCode = 4
25
+ export interface ShowActionSheetSuccess {
26
+ errMsg: string
27
+ tapIndex: number
28
+ }
29
+ type ShowActionSheetSuccessCallback = (result: ShowActionSheetSuccess) => void
30
+
31
+ export interface ShowActionSheetFail extends IUniError {
32
+ errCode: ShowActionSheetErrorCode
33
+ }
34
+ type ShowActionSheetFailCallback = (result: ShowActionSheetFail) => void
35
+
36
+ export type ShowActionSheetComplete = any
37
+ type ShowActionSheetCompleteCallback = (result: ShowActionSheetComplete) => void
38
+
39
+ /**
40
+ * uni.showActionSheet函数参数定义
41
+ */
42
+ export type ShowActionSheetOptions = {
43
+ /**
44
+ * 菜单标题
45
+ */
46
+ title?: string | null,
47
+ /**
48
+ * 警示文案(仅微信小程序真机有效)
49
+ */
50
+ alertText?: string | null,
51
+ /**
52
+ * 按钮的文字数组
53
+ */
54
+ itemList: string[],
55
+ /**
56
+ * 按钮的文字颜色,字符串格式
57
+ */
58
+ itemColor?: string.ColorString | null,
59
+ /**
60
+ * 大屏设备弹出原生选择按钮框的指示区域,默认居中显示
61
+ */
62
+ popover?: Popover | null,
63
+ /**
64
+ * 菜单标题文字颜色,字符串格式
65
+ * @uniPlatform {
66
+ * "app": {
67
+ * "android": {
68
+ * "osVer": "5.0",
69
+ * "uniVer": "√",
70
+ * "uniUtsPlugin": "x",
71
+ * "unixVer": "4.51",
72
+ * "unixUtsPlugin": "4.51"
73
+ * },
74
+ * "ios": {
75
+ * "osVer": "12.0",
76
+ * "uniVer": "√",
77
+ * "uniUtsPlugin": "x",
78
+ * "unixVer": "4.51",
79
+ * "unixUtsPlugin": "4.51"
80
+ * },
81
+ * "harmony": {
82
+ * "osVer": "3.0",
83
+ * "uniVer": "4.23",
84
+ * "unixVer": "4.61"
85
+ * }
86
+ * },
87
+ * "mp": {
88
+ * "weixin": {
89
+ * "hostVer": "√",
90
+ * "uniVer": "√",
91
+ * "unixVer": "x"
92
+ * },
93
+ * "alipay": {
94
+ * "hostVer": "√",
95
+ * "uniVer": "√",
96
+ * "unixVer": "x"
97
+ * },
98
+ * "baidu": {
99
+ * "hostVer": "√",
100
+ * "uniVer": "√",
101
+ * "unixVer": "x"
102
+ * },
103
+ * "toutiao": {
104
+ * "hostVer": "√",
105
+ * "uniVer": "√",
106
+ * "unixVer": "x"
107
+ * },
108
+ * "lark": {
109
+ * "hostVer": "√",
110
+ * "uniVer": "√",
111
+ * "unixVer": "x"
112
+ * },
113
+ * "qq": {
114
+ * "hostVer": "√",
115
+ * "uniVer": "√",
116
+ * "unixVer": "x"
117
+ * },
118
+ * "kuaishou": {
119
+ * "hostVer": "√",
120
+ * "uniVer": "√",
121
+ * "unixVer": "x"
122
+ * },
123
+ * "jd": {
124
+ * "hostVer": "√",
125
+ * "uniVer": "√",
126
+ * "unixVer": "x"
127
+ * }
128
+ * },
129
+ * "web": {
130
+ * "uniVer": "√",
131
+ * "unixVer": "4.51"
132
+ * }
133
+ * }
134
+ */
135
+ titleColor?: string.ColorString | null,
136
+ /**
137
+ * 取消按钮的文字,默认为"取消"
138
+ * @uniPlatform {
139
+ * "app": {
140
+ * "android": {
141
+ * "osVer": "5.0",
142
+ * "uniVer": "√",
143
+ * "uniUtsPlugin": "x",
144
+ * "unixVer": "4.51",
145
+ * "unixUtsPlugin": "4.51"
146
+ * },
147
+ * "ios": {
148
+ * "osVer": "12.0",
149
+ * "uniVer": "√",
150
+ * "uniUtsPlugin": "x",
151
+ * "unixVer": "4.51",
152
+ * "unixUtsPlugin": "4.51"
153
+ * },
154
+ * "harmony": {
155
+ * "osVer": "3.0",
156
+ * "uniVer": "4.23",
157
+ * "unixVer": "4.61"
158
+ * }
159
+ * },
160
+ * "mp": {
161
+ * "weixin": {
162
+ * "hostVer": "√",
163
+ * "uniVer": "√",
164
+ * "unixVer": "x"
165
+ * },
166
+ * "alipay": {
167
+ * "hostVer": "√",
168
+ * "uniVer": "√",
169
+ * "unixVer": "x"
170
+ * },
171
+ * "baidu": {
172
+ * "hostVer": "√",
173
+ * "uniVer": "√",
174
+ * "unixVer": "x"
175
+ * },
176
+ * "toutiao": {
177
+ * "hostVer": "√",
178
+ * "uniVer": "√",
179
+ * "unixVer": "x"
180
+ * },
181
+ * "lark": {
182
+ * "hostVer": "√",
183
+ * "uniVer": "√",
184
+ * "unixVer": "x"
185
+ * },
186
+ * "qq": {
187
+ * "hostVer": "√",
188
+ * "uniVer": "√",
189
+ * "unixVer": "x"
190
+ * },
191
+ * "kuaishou": {
192
+ * "hostVer": "√",
193
+ * "uniVer": "√",
194
+ * "unixVer": "x"
195
+ * },
196
+ * "jd": {
197
+ * "hostVer": "√",
198
+ * "uniVer": "√",
199
+ * "unixVer": "x"
200
+ * }
201
+ * },
202
+ * "web": {
203
+ * "uniVer": "√",
204
+ * "unixVer": "4.51"
205
+ * }
206
+ * }
207
+ */
208
+ cancelText?: string | null,
209
+ /**
210
+ * 取消按钮的文字颜色,字符串格式
211
+ * @uniPlatform {
212
+ * "app": {
213
+ * "android": {
214
+ * "osVer": "5.0",
215
+ * "uniVer": "√",
216
+ * "uniUtsPlugin": "x",
217
+ * "unixVer": "4.51",
218
+ * "unixUtsPlugin": "4.51"
219
+ * },
220
+ * "ios": {
221
+ * "osVer": "12.0",
222
+ * "uniVer": "√",
223
+ * "uniUtsPlugin": "x",
224
+ * "unixVer": "4.51",
225
+ * "unixUtsPlugin": "4.51"
226
+ * },
227
+ * "harmony": {
228
+ * "osVer": "3.0",
229
+ * "uniVer": "4.23",
230
+ * "unixVer": "4.61"
231
+ * }
232
+ * },
233
+ * "mp": {
234
+ * "weixin": {
235
+ * "hostVer": "√",
236
+ * "uniVer": "√",
237
+ * "unixVer": "x"
238
+ * },
239
+ * "alipay": {
240
+ * "hostVer": "√",
241
+ * "uniVer": "√",
242
+ * "unixVer": "x"
243
+ * },
244
+ * "baidu": {
245
+ * "hostVer": "√",
246
+ * "uniVer": "√",
247
+ * "unixVer": "x"
248
+ * },
249
+ * "toutiao": {
250
+ * "hostVer": "√",
251
+ * "uniVer": "√",
252
+ * "unixVer": "x"
253
+ * },
254
+ * "lark": {
255
+ * "hostVer": "√",
256
+ * "uniVer": "√",
257
+ * "unixVer": "x"
258
+ * },
259
+ * "qq": {
260
+ * "hostVer": "√",
261
+ * "uniVer": "√",
262
+ * "unixVer": "x"
263
+ * },
264
+ * "kuaishou": {
265
+ * "hostVer": "√",
266
+ * "uniVer": "√",
267
+ * "unixVer": "x"
268
+ * },
269
+ * "jd": {
270
+ * "hostVer": "√",
271
+ * "uniVer": "√",
272
+ * "unixVer": "x"
273
+ * }
274
+ * },
275
+ * "web": {
276
+ * "uniVer": "√",
277
+ * "unixVer": "4.51"
278
+ * }
279
+ * }
280
+ */
281
+ cancelColor?: string.ColorString | null,
282
+ /**
283
+ * 弹框背景颜色
284
+ * @uniPlatform {
285
+ * "app": {
286
+ * "android": {
287
+ * "osVer": "5.0",
288
+ * "uniVer": "√",
289
+ * "uniUtsPlugin": "x",
290
+ * "unixVer": "4.51",
291
+ * "unixUtsPlugin": "4.51"
292
+ * },
293
+ * "ios": {
294
+ * "osVer": "12.0",
295
+ * "uniVer": "√",
296
+ * "uniUtsPlugin": "x",
297
+ * "unixVer": "4.51",
298
+ * "unixUtsPlugin": "4.51"
299
+ * },
300
+ * "harmony": {
301
+ * "osVer": "3.0",
302
+ * "uniVer": "4.23",
303
+ * "unixVer": "4.61"
304
+ * }
305
+ * },
306
+ * "mp": {
307
+ * "weixin": {
308
+ * "hostVer": "√",
309
+ * "uniVer": "√",
310
+ * "unixVer": "x"
311
+ * },
312
+ * "alipay": {
313
+ * "hostVer": "√",
314
+ * "uniVer": "√",
315
+ * "unixVer": "x"
316
+ * },
317
+ * "baidu": {
318
+ * "hostVer": "√",
319
+ * "uniVer": "√",
320
+ * "unixVer": "x"
321
+ * },
322
+ * "toutiao": {
323
+ * "hostVer": "√",
324
+ * "uniVer": "√",
325
+ * "unixVer": "x"
326
+ * },
327
+ * "lark": {
328
+ * "hostVer": "√",
329
+ * "uniVer": "√",
330
+ * "unixVer": "x"
331
+ * },
332
+ * "qq": {
333
+ * "hostVer": "√",
334
+ * "uniVer": "√",
335
+ * "unixVer": "x"
336
+ * },
337
+ * "kuaishou": {
338
+ * "hostVer": "√",
339
+ * "uniVer": "√",
340
+ * "unixVer": "x"
341
+ * },
342
+ * "jd": {
343
+ * "hostVer": "√",
344
+ * "uniVer": "√",
345
+ * "unixVer": "x"
346
+ * }
347
+ * },
348
+ * "web": {
349
+ * "uniVer": "√",
350
+ * "unixVer": "4.51"
351
+ * }
352
+ * }
353
+ */
354
+ backgroundColor?: string.ColorString | null,
355
+ /**
356
+ * 接口调用成功的回调函数
357
+ */
358
+ success?: ShowActionSheetSuccessCallback | null,
359
+ /**
360
+ * 接口调用失败的回调函数
361
+ */
362
+ fail?: ShowActionSheetFailCallback | null,
363
+ /**
364
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
365
+ */
366
+ complete?: ShowActionSheetCompleteCallback | null
367
+ };
368
+
369
+ export type ShowActionSheet = (options: ShowActionSheetOptions) => void;
370
+
371
+ export interface Uni {
372
+ /**
373
+ * @description 从底部向上弹出操作菜单
374
+ * @example
375
+ * ```typescript
376
+ * uni.showActionSheet({
377
+ * itemList: ['A', 'B', 'C'],
378
+ * success: function (res) {
379
+ * console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
380
+ * },
381
+ * fail: function (res) {
382
+ * console.log(res.errMsg);
383
+ * }
384
+ * });
385
+ * ```
386
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/show-action-sheet.html#showactionsheet
387
+ * @uniPlatform {
388
+ * "app": {
389
+ * "android": {
390
+ * "osVer": "5.0",
391
+ * "uniVer": "√",
392
+ * "uniUtsPlugin": "x",
393
+ * "unixVer": "3.91",
394
+ * "unixUtsPlugin": "3.91"
395
+ * },
396
+ * "ios": {
397
+ * "osVer": "12.0",
398
+ * "uniVer": "√",
399
+ * "uniUtsPlugin": "x",
400
+ * "unixVer": "4.11",
401
+ * "unixUtsPlugin": "4.11"
402
+ * },
403
+ * "harmony": {
404
+ * "osVer": "3.0",
405
+ * "uniVer": "4.23",
406
+ * "unixVer": "4.61"
407
+ * }
408
+ * },
409
+ * "mp": {
410
+ * "weixin": {
411
+ * "hostVer": "√",
412
+ * "uniVer": "√",
413
+ * "unixVer": "4.41"
414
+ * },
415
+ * "alipay": {
416
+ * "hostVer": "√",
417
+ * "uniVer": "√",
418
+ * "unixVer": "x"
419
+ * },
420
+ * "baidu": {
421
+ * "hostVer": "√",
422
+ * "uniVer": "√",
423
+ * "unixVer": "x"
424
+ * },
425
+ * "toutiao": {
426
+ * "hostVer": "√",
427
+ * "uniVer": "√",
428
+ * "unixVer": "x"
429
+ * },
430
+ * "lark": {
431
+ * "hostVer": "√",
432
+ * "uniVer": "√",
433
+ * "unixVer": "x"
434
+ * },
435
+ * "qq": {
436
+ * "hostVer": "√",
437
+ * "uniVer": "√",
438
+ * "unixVer": "x"
439
+ * },
440
+ * "kuaishou": {
441
+ * "hostVer": "√",
442
+ * "uniVer": "√",
443
+ * "unixVer": "x"
444
+ * },
445
+ * "jd": {
446
+ * "hostVer": "√",
447
+ * "uniVer": "√",
448
+ * "unixVer": "x"
449
+ * }
450
+ * },
451
+ * "web": {
452
+ * "uniVer": "√",
453
+ * "unixVer": "4.0"
454
+ * }
455
+ * }
456
+ */
457
+ showActionSheet(options: ShowActionSheetOptions): void;
458
+
459
+ /**
460
+ * @description 关闭操作菜单
461
+ * @example
462
+ * ```typescript
463
+ * uni.hideActionSheet();
464
+ * ```
465
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/hide-action-sheet.html#hideactionsheet
466
+ * @uniPlatform {
467
+ * "app": {
468
+ * "android": {
469
+ * "osVer": "5.0",
470
+ * "uniVer": "√",
471
+ * "uniUtsPlugin": "x",
472
+ * "unixVer": "4.51",
473
+ * "unixUtsPlugin": "4.51"
474
+ * },
475
+ * "ios": {
476
+ * "osVer": "12.0",
477
+ * "uniVer": "√",
478
+ * "uniUtsPlugin": "x",
479
+ * "unixVer": "4.51",
480
+ * "unixUtsPlugin": "4.51"
481
+ * },
482
+ * "harmony": {
483
+ * "osVer": "3.0",
484
+ * "uniVer": "4.23",
485
+ * "unixVer": "4.61"
486
+ * }
487
+ * },
488
+ * "mp": {
489
+ * "weixin": {
490
+ * "hostVer": "√",
491
+ * "uniVer": "√",
492
+ * "unixVer": "x"
493
+ * },
494
+ * "alipay": {
495
+ * "hostVer": "√",
496
+ * "uniVer": "√",
497
+ * "unixVer": "x"
498
+ * },
499
+ * "baidu": {
500
+ * "hostVer": "√",
501
+ * "uniVer": "√",
502
+ * "unixVer": "x"
503
+ * },
504
+ * "toutiao": {
505
+ * "hostVer": "√",
506
+ * "uniVer": "√",
507
+ * "unixVer": "x"
508
+ * },
509
+ * "lark": {
510
+ * "hostVer": "√",
511
+ * "uniVer": "√",
512
+ * "unixVer": "x"
513
+ * },
514
+ * "qq": {
515
+ * "hostVer": "√",
516
+ * "uniVer": "√",
517
+ * "unixVer": "x"
518
+ * },
519
+ * "kuaishou": {
520
+ * "hostVer": "√",
521
+ * "uniVer": "√",
522
+ * "unixVer": "x"
523
+ * },
524
+ * "jd": {
525
+ * "hostVer": "√",
526
+ * "uniVer": "√",
527
+ * "unixVer": "x"
528
+ * }
529
+ * },
530
+ * "web": {
531
+ * "uniVer": "√",
532
+ * "unixVer": "4.51"
533
+ * }
534
+ * }
535
+ */
536
+ hideActionSheet(): void;
537
+ }
538
+
539
+ export class ShowActionSheetSuccessImpl implements ShowActionSheetSuccess {
540
+ tapIndex: number
541
+ errMsg: string
542
+ constructor(tapIndex: number, errMsg: string = 'showActionSheet:ok') {
543
+ this.errMsg = errMsg
544
+ this.tapIndex = tapIndex
545
+ }
546
+ }
547
+ export class ShowActionSheetFailImpl extends UniError implements ShowActionSheetFail {
548
+ override errCode: ShowActionSheetErrorCode
549
+ constructor(errMsg: string = 'showActionSheet:fail cancel', errCode: ShowActionSheetErrorCode = 4) {
550
+ super()
551
+ this.errMsg = errMsg
552
+ this.errCode = errCode
553
+ }
554
+ }