@dcloudio/uni-app-x 0.3.0 → 0.4.0

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 (41) hide show
  1. package/.env +1 -0
  2. package/package.json +6 -3
  3. package/types/uni/ext/index.d.ts +19 -0
  4. package/types/uni/ext/lib/uni-audio/utssdk/index.d.ts +13 -0
  5. package/types/uni/ext/lib/uni-audio/utssdk/interface.d.ts +804 -0
  6. package/types/uni/ext/lib/uni-exit/utssdk/index.d.ts +19 -0
  7. package/types/uni/ext/lib/uni-exit/utssdk/interface.d.ts +63 -0
  8. package/types/uni/ext/lib/uni-file-manager/utssdk/index.d.ts +33 -0
  9. package/types/uni/ext/lib/uni-file-manager/utssdk/interface.d.ts +132 -0
  10. package/types/uni/ext/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +9 -0
  11. package/types/uni/ext/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +31 -0
  12. package/types/uni/ext/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +11 -0
  13. package/types/uni/ext/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +135 -0
  14. package/types/uni/ext/lib/uni-getAppBaseInfo/utssdk/index.d.ts +13 -0
  15. package/types/uni/ext/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +120 -0
  16. package/types/uni/ext/lib/uni-getDeviceInfo/utssdk/index.d.ts +13 -0
  17. package/types/uni/ext/lib/uni-getDeviceInfo/utssdk/interface.d.ts +144 -0
  18. package/types/uni/ext/lib/uni-getLocation-system/utssdk/index.d.ts +15 -0
  19. package/types/uni/ext/lib/uni-getLocation-system/utssdk/interface.d.ts +99 -0
  20. package/types/uni/ext/lib/uni-getLocation-tencent/utssdk/index.d.ts +15 -0
  21. package/types/uni/ext/lib/uni-getLocation-tencent/utssdk/interface.d.ts +93 -0
  22. package/types/uni/ext/lib/uni-getNetworkType/utssdk/index.d.ts +23 -0
  23. package/types/uni/ext/lib/uni-getNetworkType/utssdk/interface.d.ts +67 -0
  24. package/types/uni/ext/lib/uni-getRecorderManager/utssdk/index.d.ts +13 -0
  25. package/types/uni/ext/lib/uni-getRecorderManager/utssdk/interface.d.ts +213 -0
  26. package/types/uni/ext/lib/uni-getSystemInfo/utssdk/index.d.ts +29 -0
  27. package/types/uni/ext/lib/uni-getSystemInfo/utssdk/interface.d.ts +517 -0
  28. package/types/uni/ext/lib/uni-getSystemSetting/utssdk/index.d.ts +11 -0
  29. package/types/uni/ext/lib/uni-getSystemSetting/utssdk/interface.d.ts +61 -0
  30. package/types/uni/ext/lib/uni-media/utssdk/index.d.ts +93 -0
  31. package/types/uni/ext/lib/uni-media/utssdk/interface.d.ts +877 -0
  32. package/types/uni/ext/lib/uni-network/utssdk/index.d.ts +61 -0
  33. package/types/uni/ext/lib/uni-network/utssdk/interface.d.ts +569 -0
  34. package/types/uni/ext/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +23 -0
  35. package/types/uni/ext/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +67 -0
  36. package/types/uni/ext/lib/uni-prompt/utssdk/index.d.ts +69 -0
  37. package/types/uni/ext/lib/uni-prompt/utssdk/interface.d.ts +686 -0
  38. package/types/uni/ext/lib/uni-storage/utssdk/index.d.ts +87 -0
  39. package/types/uni/ext/lib/uni-storage/utssdk/interface.d.ts +575 -0
  40. package/types/uni/ext/lib/uni-websocket/utssdk/index.d.ts +49 -0
  41. package/types/uni/ext/lib/uni-websocket/utssdk/interface.d.ts +511 -0
@@ -0,0 +1,686 @@
1
+ /**
2
+ * uni.showToast成功回调参数
3
+ */
4
+ export type ShowToastSuccess = {
5
+ }
6
+
7
+ /**
8
+ * uni.showToast失败回调参数
9
+ */
10
+ export type ShowToastFail = {
11
+ /**
12
+ * 错误码
13
+ * 0:成功
14
+ * 1001:title is null
15
+ */
16
+ errCode: number,
17
+ /**
18
+ * 调用API的名称
19
+ */
20
+ errSubject: string,
21
+ /**
22
+ * 错误的详细信息
23
+ */
24
+ errMsg: string,
25
+ }
26
+
27
+ /**
28
+ * uni.showToast成功回调函数定义
29
+ */
30
+ export type ShowToastSuccessCallback = (res: ShowToastSuccess) => void
31
+ /**
32
+ * uni.showToast失败回调函数定义
33
+ */
34
+ export type ShowToastFailCallback = (res: ShowToastFail) => void
35
+ /**
36
+ * uni.showToast完成回调函数定义
37
+ */
38
+ export type ShowToastCompleteCallback = (res: any) => void
39
+
40
+ /**
41
+ * uni.showToast参数定义
42
+ */
43
+ export type ShowToastOptions = {
44
+ /**
45
+ * 提示的内容,长度与 icon 取值有关。
46
+ */
47
+ title: string,
48
+ /**
49
+ * 图标,有效值详见下方说明,默认:success。
50
+ * @description icon值说明 success: 显示成功图标,error: 显示错误图标; fail: 显示错误图标,此时title文本无长度显示; exception: 显示异常图标,此时title文本无长度显示; loading: 显示加载图标;none: 不显示图标。
51
+ */
52
+ icon: string | null,
53
+ /**
54
+ * 自定义图标的本地路径(app端暂不支持gif)
55
+ */
56
+ image: string | null,
57
+ /**
58
+ * 是否显示透明蒙层,防止触摸穿透,默认:false
59
+ */
60
+ mask: boolean | null,
61
+ /**
62
+ * 提示的延迟时间,单位毫秒,默认:1500
63
+ */
64
+ duration: number | null,
65
+ /**
66
+ * 纯文本轻提示显示位置,填写有效值后只有 title 属性生效,且不支持通过 uni.hideToast 隐藏。
67
+ * @description position值说明(仅App生效) top: 居上显示; center: 居中显示;bottom: 居底显示
68
+ */
69
+ position: string | null,
70
+ /**
71
+ * 接口调用成功的回调函数
72
+ */
73
+ success: ShowToastSuccessCallback | null,
74
+ /**
75
+ * 接口调用失败的回调函数
76
+ */
77
+ fail: ShowToastFailCallback | null,
78
+ /**
79
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
80
+ */
81
+ complete: ShowToastCompleteCallback | null
82
+ }
83
+
84
+ /**
85
+ * uni.showToast函数定义
86
+ * 弹出toast
87
+ *
88
+ * @param {ShowToastOptions} options
89
+ * @tutorial https://uniapp.dcloud.net.cn/api/ui/prompt.html#showtoast
90
+ * @uniPlatform {
91
+ * "app": {
92
+ * "android": {
93
+ * "osVer": "4.4.4",
94
+ * "uniVer": "√",
95
+ * "unixVer": "3.9.0"
96
+ * },
97
+ * "ios": {
98
+ * "osVer": "9.0",
99
+ * "uniVer": "√",
100
+ * "unixVer": "3.9.0"
101
+ * }
102
+ * }
103
+ * }
104
+ */
105
+ export type ShowToast = (options: ShowToastOptions) => void
106
+
107
+ /**
108
+ * uni.hideToast函数定义
109
+ * 隐藏toast
110
+ *
111
+ * @tutorial https://uniapp.dcloud.net.cn/api/ui/prompt.html#hidetoast
112
+ * @uniPlatform {
113
+ * "app": {
114
+ * "android": {
115
+ * "osVer": "4.4.4",
116
+ * "uniVer": "√",
117
+ * "unixVer": "3.9.0"
118
+ * },
119
+ * "ios": {
120
+ * "osVer": "9.0",
121
+ * "uniVer": "√",
122
+ * "unixVer": "3.9.0"
123
+ * }
124
+ * }
125
+ * }
126
+ */
127
+ export type HideToast = () => void
128
+
129
+
130
+ /**
131
+ * uni.showLoading成功回调参数
132
+ */
133
+ export type ShowLoadingSuccess = {
134
+ }
135
+ /**
136
+ * uni.showLoading失败回调参数
137
+ */
138
+ export type ShowLoadingFail = {
139
+ /**
140
+ * 错误码
141
+ * 0:成功
142
+ * 1001:title is null
143
+ */
144
+ errCode: number,
145
+ /**
146
+ * 调用API的名称
147
+ */
148
+ errSubject: string,
149
+ /**
150
+ * 错误的详细信息
151
+ */
152
+ errMsg: string,
153
+ }
154
+
155
+ /**
156
+ * uni.showLoading成功回调函数定义
157
+ */
158
+ export type ShowLoadingSuccessCallback = (res: ShowLoadingSuccess) => void
159
+ /**
160
+ * uni.showLoading失败回调函数定义
161
+ */
162
+ export type ShowLoadingFailCallback = (res: ShowLoadingFail) => void
163
+ /**
164
+ * uni.showLoading完成回调函数定义
165
+ */
166
+ export type ShowLoadingCompleteCallback = (res: any) => void
167
+
168
+ /**
169
+ * uni.showLoading参数定义
170
+ */
171
+ export type ShowLoadingOptions = {
172
+ /**
173
+ * 提示的内容,长度与 icon 取值有关。
174
+ */
175
+ title: string,
176
+ /**
177
+ * 是否显示透明蒙层,防止触摸穿透,默认:false
178
+ */
179
+ mask: boolean | null,
180
+ /**
181
+ * 接口调用成功的回调函数
182
+ */
183
+ success: ShowLoadingSuccessCallback | null,
184
+ /**
185
+ * 接口调用失败的回调函数
186
+ */
187
+ fail: ShowLoadingFailCallback | null,
188
+ /**
189
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
190
+ */
191
+ complete: ShowLoadingCompleteCallback | null
192
+ }
193
+
194
+ /**
195
+ * uni.showLoading函数定义
196
+ * 弹出loading
197
+ *
198
+ * @param {ShowLoadingOptions} options
199
+ * @tutorial https://uniapp.dcloud.net.cn/api/ui/prompt.html#showloading
200
+ * @uniPlatform {
201
+ * "app": {
202
+ * "android": {
203
+ * "osVer": "4.4.4",
204
+ * "uniVer": "√",
205
+ * "unixVer": "3.9.0"
206
+ * },
207
+ * "ios": {
208
+ * "osVer": "9.0",
209
+ * "uniVer": "√",
210
+ * "unixVer": "3.9.0"
211
+ * }
212
+ * }
213
+ * }
214
+ */
215
+ export type ShowLoading = (options: ShowLoadingOptions) => void
216
+
217
+ /**
218
+ * uni.hideLoading函数定义
219
+ * 隐藏loading
220
+ *
221
+ * @tutorial https://uniapp.dcloud.net.cn/api/ui/prompt.html#hideloading
222
+ * @uniPlatform {
223
+ * "app": {
224
+ * "android": {
225
+ * "osVer": "4.4.4",
226
+ * "uniVer": "√",
227
+ * "unixVer": "3.9.0"
228
+ * },
229
+ * "ios": {
230
+ * "osVer": "9.0",
231
+ * "uniVer": "√",
232
+ * "unixVer": "3.9.0"
233
+ * }
234
+ * }
235
+ * }
236
+ *
237
+ */
238
+ export type HideLoading = () => void
239
+
240
+ /**
241
+ * uni.showModal 成功回调参数
242
+ */
243
+ export type ShowModalSuccess = {
244
+ /**
245
+ * 为 true 时,表示用户点击了确定按钮
246
+ */
247
+ confirm: boolean,
248
+ /**
249
+ * 为 true 时,表示用户点击了取消(用于 Android 系统区分点击蒙层关闭还是点击取消按钮关闭)
250
+ */
251
+ cancel: boolean,
252
+ /**
253
+ * editable 为 true 时,用户输入的文本
254
+ */
255
+ content: string | null
256
+ }
257
+ /**
258
+ * uni.showModal 函数失败回调参数
259
+ */
260
+ export type ShowModalFail = {
261
+ /**
262
+ * 错误码
263
+ * 0:成功
264
+ */
265
+ errCode: number,
266
+ /**
267
+ * 调用API的名称
268
+ */
269
+ errSubject: string,
270
+ /**
271
+ * 错误的详细信息
272
+ */
273
+ errMsg: string,
274
+ }
275
+
276
+ /**
277
+ * uni.showModal成功回调函数定义
278
+ */
279
+ export type ShowModalSuccessCallback = (res: ShowModalSuccess) => void
280
+ /**
281
+ * uni.showModal失败回调函数定义
282
+ */
283
+ export type ShowModalFailCallback = (res: ShowModalFail) => void
284
+ /**
285
+ * uni.showModal完成回调函数定义
286
+ */
287
+ export type ShowModalCompleteCallback = (res: any) => void
288
+ /**
289
+ * uni.showModal 参数定义
290
+ */
291
+ export type ShowModalOptions = {
292
+ /**
293
+ * 提示的标题
294
+ */
295
+ title: string | null,
296
+ /**
297
+ * 提示的内容
298
+ */
299
+ content: string | null,
300
+ /**
301
+ * @default true
302
+ * 是否显示取消按钮,默认为 true
303
+ */
304
+ showCancel: boolean | null,
305
+ /**
306
+ * 取消按钮的文字,默认为"取消"
307
+ */
308
+ cancelText: string | null,
309
+ /**
310
+ * 取消按钮的文字颜色,默认为"#000000"
311
+ */
312
+ cancelColor: string | null,
313
+ /**
314
+ * 确定按钮的文字,默认为"确定"
315
+ */
316
+ confirmText: string | null,
317
+ /**
318
+ * 确定按钮的文字颜色
319
+ */
320
+ confirmColor: string | null,
321
+ /**
322
+ * @default false
323
+ * 是否显示输入框
324
+ */
325
+ editable: boolean | null,
326
+ /**
327
+ * 显示输入框时的提示文本
328
+ */
329
+ placeholderText: string | null,
330
+ /**
331
+ * 接口调用成功的回调函数
332
+ */
333
+ success: ShowModalSuccessCallback | null,
334
+ /**
335
+ * 接口调用失败的回调函数
336
+ */
337
+ fail: ShowModalFailCallback | null,
338
+ /**
339
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
340
+ */
341
+ complete: ShowModalCompleteCallback | null
342
+ }
343
+
344
+ /**
345
+ * uni.showModal 函数定义
346
+ *
347
+ * 弹出modal
348
+ *
349
+ * @param {ShowModalOptions} options
350
+ * @tutorial https://uniapp.dcloud.net.cn/api/ui/prompt.html#showmodal
351
+ * @uniPlatform {
352
+ * "app": {
353
+ * "android": {
354
+ * "osVer": "4.4.4",
355
+ * "uniVer": "√",
356
+ * "unixVer": "3.9.0"
357
+ * },
358
+ * "ios": {
359
+ * "osVer": "9.0",
360
+ * "uniVer": "√",
361
+ * "unixVer": "3.9.0"
362
+ * }
363
+ * }
364
+ * }
365
+ */
366
+ export type ShowModal = (options: ShowModalOptions) => void
367
+
368
+ /**
369
+ * uni.ShowActionSheet成功回调参数
370
+ */
371
+ export type ShowActionSheetSuccess = {
372
+ /**
373
+ * 用户点击的按钮,从上到下的顺序,从0开始
374
+ */
375
+ tapIndex: number | null,
376
+ }
377
+ /**
378
+ * uni.ShowActionSheet失败回调参数
379
+ */
380
+ export type ShowActionSheetFail = {
381
+ /**
382
+ * 错误码
383
+ * 0:成功
384
+ * 1001:parameter.itemList should have at least 1 item
385
+ * 1002:cancel
386
+ */
387
+ errCode: number,
388
+ /**
389
+ * 调用API的名称
390
+ */
391
+ errSubject: string,
392
+ /**
393
+ * 错误的详细信息
394
+ */
395
+ errMsg: string,
396
+ }
397
+
398
+ export type Popover = {
399
+ /**
400
+ * 指示区域坐标,使用原生 navigationBar 时一般需要加上 navigationBar 的高度
401
+ */
402
+ top: number,
403
+ /**
404
+ * 指示区域坐标
405
+ */
406
+ left: number,
407
+ /**
408
+ * 指示区域宽度
409
+ */
410
+ width: number,
411
+ /**
412
+ * 指示区域高度
413
+ */
414
+ height: number
415
+ }
416
+
417
+ /**
418
+ * uni.showActionSheet成功回调函数定义
419
+ */
420
+ export type ShowActionSheetSuccessCallback = (res: ShowActionSheetSuccess) => void
421
+ /**
422
+ * uni.showActionSheet成功回调函数定义
423
+ */
424
+ export type ShowActionSheetFailCallback = (res: ShowActionSheetFail) => void
425
+ /**
426
+ * uni.showActionSheet成功回调函数定义
427
+ */
428
+ export type ShowActionSheetCompleteCallback = (res: any) => void
429
+
430
+ /**
431
+ * uni.showActionSheet函数参数定义
432
+ */
433
+ export type ShowActionSheetOptions = {
434
+ /**
435
+ * 菜单标题
436
+ */
437
+ title: string | null,
438
+ /**
439
+ * 警示文案(同菜单标题, app无效)
440
+ */
441
+ alertText: string | null,
442
+ /**
443
+ * 按钮的文字数组
444
+ */
445
+ itemList: string[],
446
+ /**
447
+ * 按钮的文字颜色,字符串格式(iOS默认为系统控件颜色)
448
+ */
449
+ itemColor: string | null,
450
+ /**
451
+ * 大屏设备弹出原生选择按钮框的指示区域,默认居中显示
452
+ */
453
+ popover: Popover | null,
454
+ /**
455
+ * 接口调用成功的回调函数
456
+ */
457
+ success: ShowActionSheetSuccessCallback | null,
458
+ /**
459
+ * 接口调用失败的回调函数
460
+ */
461
+ fail: ShowActionSheetFailCallback | null,
462
+ /**
463
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
464
+ */
465
+ complete: ShowActionSheetCompleteCallback | null
466
+ }
467
+
468
+ /**
469
+ * uni.showActionSheet函数定义
470
+ *
471
+ * 弹出actionSheet
472
+ *
473
+ * @param {ShowActionSheetOptions} options
474
+ * @tutorial https://uniapp.dcloud.net.cn/api/ui/prompt.html#showactionsheet
475
+ * @uniPlatform {
476
+ * "app": {
477
+ * "android": {
478
+ * "osVer": "4.4.4",
479
+ * "uniVer": "√",
480
+ * "unixVer": "3.9.0"
481
+ * },
482
+ * "ios": {
483
+ * "osVer": "9.0",
484
+ * "uniVer": "√",
485
+ * "unixVer": "3.9.0"
486
+ * }
487
+ * }
488
+ * }
489
+ */
490
+ export type ShowActionSheet = (options: ShowActionSheetOptions) => void
491
+
492
+
493
+ export interface Uni {
494
+ /**
495
+ * @description 显示消息提示框
496
+ * @param {ShowToastOptions} option
497
+ * @example
498
+ * ```typescript
499
+ * uni.showToast({
500
+ * title: '标题',
501
+ * duration: 2000
502
+ * });
503
+ * ```
504
+ * @remark
505
+ * - showLoading 和 showToast 同时只能显示一个
506
+ * - showToast 应与 hideToast 配对使用
507
+ * @tutorial [](https://uniapp.dcloud.net.cn/api/ui/prompt.html#showtoast)
508
+ * @uniPlatform {
509
+ * "app": {
510
+ * "android": {
511
+ * "osVer": "4.4.4",
512
+ * "uniVer": "√",
513
+ * "unixVer": "3.9.0"
514
+ * },
515
+ * "ios": {
516
+ * "osVer": "9.0",
517
+ * "uniVer": "√",
518
+ * "unixVer": "3.9.0"
519
+ * }
520
+ * }
521
+ * }
522
+ * @uniVueVersion 2,3
523
+ * }
524
+ */
525
+ showToast: ShowToast,
526
+ /**
527
+ * @description 隐藏消息提示框。
528
+ * @example
529
+ * ```typescript
530
+ * uni.hideToast();
531
+ * ```
532
+ * @tutorial [](https://uniapp.dcloud.net.cn/api/ui/prompt.html#hidetoast)
533
+ * @uniPlatform {
534
+ * "app": {
535
+ * "android": {
536
+ * "osVer": "4.4.4",
537
+ * "uniVer": "√",
538
+ * "unixVer": "3.9.0"
539
+ * },
540
+ * "ios": {
541
+ * "osVer": "9.0",
542
+ * "uniVer": "√",
543
+ * "unixVer": "3.9.0"
544
+ * }
545
+ * }
546
+ * }
547
+ * @uniVueVersion 2,3
548
+ * }
549
+ */
550
+ hideToast: HideToast,
551
+ /**
552
+ * @description 显示 loading 提示框, 需主动调用 uni.hideLoading 才能关闭提示框。
553
+ * @param {ShowLoadingOptions} option
554
+ * @example
555
+ * ```typescript
556
+ * uni.showLoading({
557
+ * title: '加载中'
558
+ * });
559
+ * ```
560
+ * @remark
561
+ * - showLoading 和 showToast 同时只能显示一个
562
+ * - showToast 应与 hideToast 配对使用
563
+ * @tutorial [](https://uniapp.dcloud.net.cn/api/ui/prompt.html#showloading)
564
+ * @uniPlatform {
565
+ * "app": {
566
+ * "android": {
567
+ * "osVer": "4.4.4",
568
+ * "uniVer": "√",
569
+ * "unixVer": "3.9.0"
570
+ * },
571
+ * "ios": {
572
+ * "osVer": "9.0",
573
+ * "uniVer": "√",
574
+ * "unixVer": "3.9.0"
575
+ * }
576
+ * }
577
+ * }
578
+ * @uniVueVersion 2,3
579
+ * }
580
+ */
581
+ showLoading: ShowLoading,
582
+ /**
583
+ * @description 隐藏 loading 提示框。
584
+ * @example
585
+ * ```typescript
586
+ * uni.showLoading({
587
+ * title: '加载中'
588
+ * });
589
+ *
590
+ * setTimeout(function () {
591
+ * uni.hideLoading();
592
+ * }, 2000);
593
+ *
594
+ * ```
595
+ * @tutorial [](https://uniapp.dcloud.net.cn/api/ui/prompt.html#hideloading)
596
+ * @uniPlatform {
597
+ * "app": {
598
+ * "android": {
599
+ * "osVer": "4.4.4",
600
+ * "uniVer": "√",
601
+ * "unixVer": "3.9.0"
602
+ * },
603
+ * "ios": {
604
+ * "osVer": "9.0",
605
+ * "uniVer": "√",
606
+ * "unixVer": "3.9.0"
607
+ * }
608
+ * }
609
+ * }
610
+ * @uniVueVersion 2,3
611
+ * }
612
+ */
613
+ hideLoading: HideLoading,
614
+ /**
615
+ * @description 显示模态弹窗,可以只有一个确定按钮,也可以同时有确定和取消按钮。类似于一个API整合了 html 中:alert、confirm。
616
+ * @param {ShowModalOptions} option
617
+ * @example
618
+ * ```typescript
619
+ * uni.showModal({
620
+ * title: '提示',
621
+ * content: '这是一个模态弹窗',
622
+ * success: function (res) {
623
+ * if (res.confirm) {
624
+ * console.log('用户点击确定');
625
+ * } else if (res.cancel) {
626
+ * console.log('用户点击取消');
627
+ * }
628
+ * }
629
+ * });
630
+ *
631
+ *
632
+ * ```
633
+ * @tutorial [](https://uniapp.dcloud.net.cn/api/ui/prompt.html#showmodal)
634
+ * @uniPlatform {
635
+ * "app": {
636
+ * "android": {
637
+ * "osVer": "4.4.4",
638
+ * "uniVer": "√",
639
+ * "unixVer": "3.9.0"
640
+ * },
641
+ * "ios": {
642
+ * "osVer": "9.0",
643
+ * "uniVer": "√",
644
+ * "unixVer": "3.9.0"
645
+ * }
646
+ * }
647
+ * }
648
+ * @uniVueVersion 2,3
649
+ * }
650
+ */
651
+ showModal: ShowModal,
652
+ /**
653
+ * @description 从底部向上弹出操作菜单
654
+ * @param {ShowActionSheetOptions} option
655
+ * @example
656
+ * ```typescript
657
+ * uni.showActionSheet({
658
+ * itemList: ['A', 'B', 'C'],
659
+ * success: function (res) {
660
+ * console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
661
+ * },
662
+ * fail: function (res) {
663
+ * console.log(res.errMsg);
664
+ * }
665
+ * });
666
+ * ```
667
+ * @tutorial [](https://uniapp.dcloud.net.cn/api/ui/prompt.html#showactionsheet)
668
+ * @uniPlatform {
669
+ * "app": {
670
+ * "android": {
671
+ * "osVer": "4.4.4",
672
+ * "uniVer": "√",
673
+ * "unixVer": "3.9.0"
674
+ * },
675
+ * "ios": {
676
+ * "osVer": "9.0",
677
+ * "uniVer": "√",
678
+ * "unixVer": "3.9.0"
679
+ * }
680
+ * }
681
+ * }
682
+ * @uniVueVersion 2,3
683
+ * }
684
+ */
685
+ showActionSheet: ShowActionSheet
686
+ }