@dcloudio/uni-app-x 0.7.39 → 0.7.40
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.
- package/package.json +9 -7
- package/types/UniPage.d.ts +168 -22
- package/types/app.d.ts +31 -31
- package/types/native/CSSStyleDeclaration.d.ts +16 -2
- package/types/native/DOMRect.d.ts +430 -10
- package/types/native/DrawableContext.d.ts +1137 -45
- package/types/native/IUniElement.d.ts +1875 -93
- package/types/native/UniNativePage.d.ts +94 -0
- package/types/native/UniResizeObserver.d.ts +215 -5
- package/types/native/UniSafeArea.d.ts +185 -0
- package/types/native/UniVideoElement.d.ts +432 -0
- package/types/native/global.d.ts +7 -0
- package/types/native/index.d.ts +1 -0
- package/types/uni/uni-map-tencent-map.d.ts +12 -8
- package/types/uni/uts-plugin-api/global.d.ts +62 -61
- package/types/uni/uts-plugin-api/index.d.ts +62 -61
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -0
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +64 -63
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1150 -186
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +64 -63
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +550 -550
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +69 -72
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1508 -77
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +284 -63
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +2 -9
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +57 -57
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +312 -110
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +62 -62
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +472 -72
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +126 -78
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +317 -66
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +570 -63
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +570 -63
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +110 -66
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +595 -177
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +45 -1
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1387 -182
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +67 -67
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +162 -63
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +241 -64
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +4089 -659
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +460 -252
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2345 -213
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1205 -149
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +328 -63
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +317 -66
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +120 -71
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2157 -437
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +467 -315
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1608 -630
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2492 -504
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +176 -130
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +704 -58
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1230 -454
- package/types/uni/uts-plugin-biz/global.d.ts +6 -5
- package/types/uni/uts-plugin-biz/index.d.ts +6 -5
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -123
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +60 -47
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +71 -71
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -38
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -19
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +502 -255
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +48 -48
- package/types/uni/uts-plugin-extend/global.d.ts +0 -4
- package/types/uni/uts-plugin-extend/index.d.ts +0 -4
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4399 -339
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
|
@@ -57,7 +57,8 @@ export type ChooseLocationErrorCode =
|
|
|
57
57
|
*/
|
|
58
58
|
4;
|
|
59
59
|
|
|
60
|
-
export interface ChooseLocationSuccess
|
|
60
|
+
export interface ChooseLocationSuccess {
|
|
61
|
+
errMsg: string,
|
|
61
62
|
name: string,
|
|
62
63
|
address: string,
|
|
63
64
|
latitude: number,
|
|
@@ -70,7 +71,7 @@ export interface ChooseLocationFail extends IUniError {
|
|
|
70
71
|
}
|
|
71
72
|
type ChooseLocationFailCallback = (result: ChooseLocationFail) => void
|
|
72
73
|
|
|
73
|
-
export type ChooseLocationComplete =
|
|
74
|
+
export type ChooseLocationComplete = any
|
|
74
75
|
type ChooseLocationCompleteCallback = (result: ChooseLocationComplete) => void
|
|
75
76
|
|
|
76
77
|
/**
|
|
@@ -318,84 +319,81 @@ export interface Uni {
|
|
|
318
319
|
* ```
|
|
319
320
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/choose-location.html
|
|
320
321
|
* @uniPlatform {
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
*
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
*
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
*
|
|
362
|
-
*
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
*
|
|
366
|
-
*
|
|
367
|
-
*
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
*
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
*
|
|
377
|
-
*
|
|
378
|
-
*
|
|
379
|
-
*
|
|
380
|
-
*
|
|
381
|
-
*
|
|
382
|
-
*
|
|
383
|
-
*
|
|
322
|
+
* "app": {
|
|
323
|
+
* "android": {
|
|
324
|
+
* "osVer": "5.0",
|
|
325
|
+
* "uniVer": "√",
|
|
326
|
+
* "unixVer": "4.33"
|
|
327
|
+
* },
|
|
328
|
+
* "ios": {
|
|
329
|
+
* "osVer": "12.0",
|
|
330
|
+
* "uniVer": "√",
|
|
331
|
+
* "unixVer": "4.33"
|
|
332
|
+
* },
|
|
333
|
+
* "harmony": {
|
|
334
|
+
* "osVer": "3.0",
|
|
335
|
+
* "uniVer": "4.23",
|
|
336
|
+
* "unixVer": "x"
|
|
337
|
+
* }
|
|
338
|
+
* },
|
|
339
|
+
* "mp": {
|
|
340
|
+
* "weixin": {
|
|
341
|
+
* "hostVer": "1.9.6",
|
|
342
|
+
* "uniVer": "√",
|
|
343
|
+
* "unixVer": "4.41"
|
|
344
|
+
* },
|
|
345
|
+
* "alipay": {
|
|
346
|
+
* "hostVer": "√",
|
|
347
|
+
* "uniVer": "√",
|
|
348
|
+
* "unixVer": "x"
|
|
349
|
+
* },
|
|
350
|
+
* "baidu": {
|
|
351
|
+
* "hostVer": "√",
|
|
352
|
+
* "uniVer": "√",
|
|
353
|
+
* "unixVer": "x"
|
|
354
|
+
* },
|
|
355
|
+
* "toutiao": {
|
|
356
|
+
* "hostVer": "√",
|
|
357
|
+
* "uniVer": "√",
|
|
358
|
+
* "unixVer": "x"
|
|
359
|
+
* },
|
|
360
|
+
* "lark": {
|
|
361
|
+
* "hostVer": "√",
|
|
362
|
+
* "uniVer": "√",
|
|
363
|
+
* "unixVer": "x"
|
|
364
|
+
* },
|
|
365
|
+
* "qq": {
|
|
366
|
+
* "hostVer": "√",
|
|
367
|
+
* "uniVer": "√",
|
|
368
|
+
* "unixVer": "x"
|
|
369
|
+
* },
|
|
370
|
+
* "kuaishou": {
|
|
371
|
+
* "hostVer": "√",
|
|
372
|
+
* "uniVer": "√",
|
|
373
|
+
* "unixVer": "x"
|
|
374
|
+
* },
|
|
375
|
+
* "jd": {
|
|
376
|
+
* "hostVer": "√",
|
|
377
|
+
* "uniVer": "√",
|
|
378
|
+
* "unixVer": "x"
|
|
379
|
+
* }
|
|
380
|
+
* },
|
|
381
|
+
* "web": {
|
|
382
|
+
* "uniVer": "√",
|
|
383
|
+
* "unixVer": "4.0"
|
|
384
|
+
* }
|
|
384
385
|
* }
|
|
386
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.chooseLocation.html
|
|
385
387
|
*/
|
|
386
388
|
chooseLocation(options: ChooseLocationOptions): void;
|
|
387
389
|
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
export class ChooseLocationSuccessImpl extends AsyncApiSuccessResult implements ChooseLocationSuccess {
|
|
390
|
+
export class ChooseLocationSuccessImpl implements ChooseLocationSuccess {
|
|
391
|
+
errMsg: string
|
|
391
392
|
name: string
|
|
392
393
|
address: string
|
|
393
394
|
latitude: number
|
|
394
395
|
longitude: number
|
|
395
|
-
// @ts-expect-error
|
|
396
|
-
override errMsg: string
|
|
397
396
|
constructor(name: string, address: string, latitude: number, longitude: number, errMsg: string = 'chooseLocation:ok') {
|
|
398
|
-
super()
|
|
399
397
|
this.errMsg = errMsg
|
|
400
398
|
this.name = name
|
|
401
399
|
this.address = address
|
|
@@ -411,4 +409,3 @@ export class ChooseLocationFailImpl extends UniError implements ChooseLocationFa
|
|
|
411
409
|
this.errMsg = errMsg
|
|
412
410
|
}
|
|
413
411
|
}
|
|
414
|
-
// #endif
|