@dcloudio/uni-app-x 0.7.37 → 0.7.38
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 +1 -1
- package/types/UniPage.d.ts +44 -9
- package/types/app.d.ts +8 -5
- package/types/native/AsyncApiResult.d.ts +1 -0
- package/types/native/IUniElement.d.ts +34 -0
- package/types/native/UniElement.d.ts +2 -1
- package/types/native/UniTextElement.d.ts +1 -0
- package/types/native/global.d.ts +10 -0
- package/types/page.d.ts +5 -5
- package/types/uni/env/index.d.ts +15 -1
- package/types/uni/global.d.ts +1 -0
- package/types/uni/index.d.ts +1 -0
- package/types/uni/uni-map-tencent-global.d.ts +33 -0
- package/types/uni/uni-map-tencent-map.d.ts +52 -0
- package/types/uni/uts-plugin-api/global.d.ts +3 -0
- package/types/uni/uts-plugin-api/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +217 -0
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +212 -219
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +130 -4
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +647 -7
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/global.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +153 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1995 -1726
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +102 -18
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1123 -1044
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +327 -296
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +33 -28
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +210 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +2687 -13
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +42 -0
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +1178 -2
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +882 -0
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +152 -12
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +152 -12
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +760 -4
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +0 -45
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +126 -0
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +38 -3
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +13 -13
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +3119 -1
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +300 -6
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +42 -0
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1686 -266
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +15 -15
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3618 -1675
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +42 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +9 -9
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +252 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +532 -245
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +1260 -0
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +58 -58
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +42 -0
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +42 -0
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +614 -15
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +420 -0
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +50 -8
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +267 -99
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +978 -12
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +37 -5
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +379 -1
- package/types/uni/uts-plugin-extend/README.md +3 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +73 -73
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +302 -302
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +431 -11
- 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 +6 -6
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +73 -73
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +2 -2
- package/types/uni-cloud/interface.d.ts +91 -0
- package/uts-plugin.d.ts +3 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
ChooseLocationErrorCode as ChooseLocationErrorCodeOrigin,
|
|
4
|
+
ChooseLocationSuccess as ChooseLocationSuccessOrigin,
|
|
5
|
+
ChooseLocationFail as ChooseLocationFailOrigin,
|
|
6
|
+
ChooseLocationComplete as ChooseLocationCompleteOrigin,
|
|
7
|
+
ChooseLocationOptions as ChooseLocationOptionsOrigin,
|
|
8
|
+
ChooseLocation as ChooseLocationOrigin,
|
|
9
|
+
Uni as UniOrigin
|
|
10
|
+
} from './interface'
|
|
11
|
+
|
|
12
|
+
declare global {
|
|
13
|
+
type ChooseLocationErrorCode = ChooseLocationErrorCodeOrigin
|
|
14
|
+
type ChooseLocationSuccess = ChooseLocationSuccessOrigin
|
|
15
|
+
type ChooseLocationFail = ChooseLocationFailOrigin
|
|
16
|
+
type ChooseLocationComplete = ChooseLocationCompleteOrigin
|
|
17
|
+
type ChooseLocationOptions = ChooseLocationOptionsOrigin
|
|
18
|
+
type ChooseLocation = ChooseLocationOrigin
|
|
19
|
+
interface Uni extends UniOrigin { }
|
|
20
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* chooseLocation 错误码
|
|
3
|
+
* - 4: 框架内部异常
|
|
4
|
+
*/
|
|
5
|
+
export type ChooseLocationErrorCode = 4
|
|
6
|
+
export interface ChooseLocationSuccess extends AsyncApiSuccessResult {
|
|
7
|
+
name : string,
|
|
8
|
+
address : string,
|
|
9
|
+
latitude : number,
|
|
10
|
+
longitude : number
|
|
11
|
+
}
|
|
12
|
+
type ChooseLocationSuccessCallback = (result : ChooseLocationSuccess) => void
|
|
13
|
+
|
|
14
|
+
export interface ChooseLocationFail extends IUniError {
|
|
15
|
+
errCode : ChooseLocationErrorCode
|
|
16
|
+
}
|
|
17
|
+
type ChooseLocationFailCallback = (result : ChooseLocationFail) => void
|
|
18
|
+
|
|
19
|
+
export type ChooseLocationComplete = AsyncApiResult
|
|
20
|
+
type ChooseLocationCompleteCallback = (result : ChooseLocationComplete) => void
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* uni.chooseLocation函数参数定义
|
|
24
|
+
*/
|
|
25
|
+
export type ChooseLocationOptions = {
|
|
26
|
+
/**
|
|
27
|
+
* 指示位置的经度
|
|
28
|
+
*/
|
|
29
|
+
latitude ?: number | null,
|
|
30
|
+
/**
|
|
31
|
+
* 指示位置的纬度
|
|
32
|
+
*/
|
|
33
|
+
longitude ?: number | null,
|
|
34
|
+
/**
|
|
35
|
+
* 指示位置的名称
|
|
36
|
+
*/
|
|
37
|
+
keyword ?: string | null,
|
|
38
|
+
/**
|
|
39
|
+
* 接口调用成功的回调函数
|
|
40
|
+
*/
|
|
41
|
+
success ?: ChooseLocationSuccessCallback | null,
|
|
42
|
+
/**
|
|
43
|
+
* 接口调用失败的回调函数
|
|
44
|
+
*/
|
|
45
|
+
fail ?: ChooseLocationFailCallback | null,
|
|
46
|
+
/**
|
|
47
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
48
|
+
*/
|
|
49
|
+
complete ?: ChooseLocationCompleteCallback | null
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 打开地图选择位置
|
|
54
|
+
*
|
|
55
|
+
* @param {ChooseLocationOptions} options
|
|
56
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/prompt.html#chooselocation
|
|
57
|
+
* @uniPlatform {
|
|
58
|
+
* "app": {
|
|
59
|
+
* "android": {
|
|
60
|
+
* "osVer": "5.0",
|
|
61
|
+
* "uniVer": "√",
|
|
62
|
+
* "unixVer": "3.9.0"
|
|
63
|
+
* },
|
|
64
|
+
* "ios": {
|
|
65
|
+
* "osVer": "12.0",
|
|
66
|
+
* "uniVer": "√",
|
|
67
|
+
* "unixVer": "4.11"
|
|
68
|
+
* },
|
|
69
|
+
* "harmony": {
|
|
70
|
+
* "osVer": "3.0",
|
|
71
|
+
* "uniVer": "4.23",
|
|
72
|
+
* "unixVer": "x"
|
|
73
|
+
* }
|
|
74
|
+
* },
|
|
75
|
+
* "web": {
|
|
76
|
+
* "uniVer": "√",
|
|
77
|
+
* "unixVer": "4.0"
|
|
78
|
+
* }
|
|
79
|
+
* }
|
|
80
|
+
*/
|
|
81
|
+
export type ChooseLocation = (options : ChooseLocationOptions) => void;
|
|
82
|
+
|
|
83
|
+
export interface Uni {
|
|
84
|
+
/**
|
|
85
|
+
* @description 打开地图选择位置
|
|
86
|
+
* @example
|
|
87
|
+
* ```typescript
|
|
88
|
+
uni.chooseLocation({
|
|
89
|
+
success: (res) => {
|
|
90
|
+
console.log('res: ', res)
|
|
91
|
+
},
|
|
92
|
+
fail: (err) => {
|
|
93
|
+
console.log('err: ', err)
|
|
94
|
+
},
|
|
95
|
+
complete: (res) => {
|
|
96
|
+
console.log('complete: ', res)
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
* ```
|
|
100
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/choose-location.html
|
|
101
|
+
* @uniPlatform {
|
|
102
|
+
* "app": {
|
|
103
|
+
* "android": {
|
|
104
|
+
* "osVer": "5.0",
|
|
105
|
+
* "uniVer": "√",
|
|
106
|
+
* "unixVer": "4.33"
|
|
107
|
+
* },
|
|
108
|
+
* "ios": {
|
|
109
|
+
* "osVer": "12.0",
|
|
110
|
+
* "uniVer": "√",
|
|
111
|
+
* "unixVer": "4.33"
|
|
112
|
+
* },
|
|
113
|
+
* "harmony": {
|
|
114
|
+
* "osVer": "3.0",
|
|
115
|
+
* "uniVer": "4.23",
|
|
116
|
+
* "unixVer": "x"
|
|
117
|
+
* }
|
|
118
|
+
* },
|
|
119
|
+
* "web": {
|
|
120
|
+
* "uniVer": "√",
|
|
121
|
+
* "unixVer": "4.0"
|
|
122
|
+
* }
|
|
123
|
+
* }
|
|
124
|
+
*/
|
|
125
|
+
chooseLocation(options : ChooseLocationOptions) : void;
|
|
126
|
+
}
|
|
127
|
+
// #ifdef APP-ANDROID
|
|
128
|
+
// @ts-expect-error
|
|
129
|
+
export class ChooseLocationSuccessImpl extends AsyncApiSuccessResult implements ChooseLocationSuccess {
|
|
130
|
+
name : string
|
|
131
|
+
address : string
|
|
132
|
+
latitude : number
|
|
133
|
+
longitude : number
|
|
134
|
+
// @ts-expect-error
|
|
135
|
+
override errMsg : string
|
|
136
|
+
constructor(name : string, address : string, latitude : number, longitude : number, errMsg : string = 'chooseLocation:ok') {
|
|
137
|
+
super()
|
|
138
|
+
this.errMsg = errMsg
|
|
139
|
+
this.name = name
|
|
140
|
+
this.address = address
|
|
141
|
+
this.latitude = latitude
|
|
142
|
+
this.longitude = longitude
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
export class ChooseLocationFailImpl extends UniError implements ChooseLocationFail {
|
|
146
|
+
override errCode : ChooseLocationErrorCode
|
|
147
|
+
constructor(errMsg : string = 'chooseLocation:fail cancel', errCode : ChooseLocationErrorCode = 4) {
|
|
148
|
+
super(errMsg)
|
|
149
|
+
this.errCode = errCode
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// #endif
|
|
@@ -26,7 +26,7 @@ export interface Uni {
|
|
|
26
26
|
* "weixin": {
|
|
27
27
|
* "hostVer": "√",
|
|
28
28
|
* "uniVer": "√",
|
|
29
|
-
* "unixVer": "
|
|
29
|
+
* "unixVer": "4.35"
|
|
30
30
|
* },
|
|
31
31
|
* "alipay": {
|
|
32
32
|
* "hostVer": "√",
|
|
@@ -98,7 +98,7 @@ export interface Uni {
|
|
|
98
98
|
* "weixin": {
|
|
99
99
|
* "hostVer": "√",
|
|
100
100
|
* "uniVer": "√",
|
|
101
|
-
* "unixVer": "
|
|
101
|
+
* "unixVer": "4.35"
|
|
102
102
|
* },
|
|
103
103
|
* "alipay": {
|
|
104
104
|
* "hostVer": "√",
|
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CreateInnerAudioContext as CreateInnerAudioContextOrigin,
|
|
4
4
|
InnerAudioContext as InnerAudioContextOrigin,
|
|
5
|
+
CreateInnerAudioContextErrorCode as CreateInnerAudioContextErrorCodeOrigin,
|
|
6
|
+
ICreateInnerAudioContextFail as ICreateInnerAudioContextFailOrigin,
|
|
5
7
|
Uni as UniOrigin
|
|
6
8
|
} from './interface'
|
|
7
9
|
|
|
8
10
|
declare global {
|
|
9
11
|
type CreateInnerAudioContext = CreateInnerAudioContextOrigin
|
|
10
12
|
type InnerAudioContext = InnerAudioContextOrigin
|
|
13
|
+
type CreateInnerAudioContextErrorCode = CreateInnerAudioContextErrorCodeOrigin
|
|
14
|
+
type ICreateInnerAudioContextFail = ICreateInnerAudioContextFailOrigin
|
|
11
15
|
interface Uni extends UniOrigin { }
|
|
12
16
|
}
|