@dcloudio/uni-app-x 0.4.4 → 0.4.6
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/.env +2 -1
- package/package.json +5 -3
- package/tsconfig.json +5 -0
- package/types/app.d.ts +986 -0
- package/types/common.d.ts +7 -0
- package/types/index.d.ts +3 -0
- package/types/native/AsyncApiResult.d.ts +1 -0
- package/types/native/CSSStyleDeclaration.d.ts +20 -0
- package/types/native/CustomEvent.d.ts +3 -0
- package/types/native/DOMRect.d.ts +56 -0
- package/types/native/DrawableContext.d.ts +102 -11
- package/types/native/Event.d.ts +25 -8
- package/types/native/IApp.d.ts +1 -0
- package/types/native/IDocument.d.ts +1 -0
- package/types/native/INode.d.ts +140 -5
- package/types/native/IPage.d.ts +1 -0
- package/types/native/IPageManager.d.ts +1 -0
- package/types/native/ITabsNode.d.ts +1 -0
- package/types/native/IWebViewNode.d.ts +28 -0
- package/types/native/ImageErrorEvent.d.ts +13 -0
- package/types/native/ImageLoadEvent.d.ts +17 -0
- package/types/native/MouseEvent.d.ts +44 -2
- package/types/native/NodeData.d.ts +1 -0
- package/types/native/PageEvent.d.ts +1 -0
- package/types/native/PageScrollEvent.d.ts +3 -0
- package/types/native/ResizeEvent.d.ts +26 -6
- package/types/native/RichTextItemClickEvent.d.ts +21 -0
- package/types/native/ScrollEvent.d.ts +27 -9
- package/types/native/SourceError.d.ts +38 -0
- package/types/native/TabTapEvent.d.ts +10 -2
- package/types/native/TouchEvent.d.ts +37 -10
- package/types/native/UTSError.d.ts +5 -2
- package/types/native/UTSPromise.d.ts +74 -0
- package/types/native/UniAggregateError.d.ts +17 -0
- package/types/native/UniAppManager.d.ts +1 -0
- package/types/native/UniError.d.ts +54 -5
- package/types/native/WebViewErrorEvent.d.ts +13 -0
- package/types/native/WebViewLoadedEvent.d.ts +8 -0
- package/types/native/WebViewLoadingEvent.d.ts +8 -0
- package/types/native/WebViewMessageEvent.d.ts +13 -0
- package/types/native/index.d.ts +15 -1
- package/types/page.d.ts +1729 -0
- package/types/shims-vue.d.ts +12 -0
- package/types/uni/core/lib/performance/index.d.ts +21 -0
- package/types/uni/core/lib/performance/interface.d.ts +152 -0
- package/types/uni/core/lib/ui/create-selector-query/index.d.ts +4 -0
- package/types/uni/ext/index.d.ts +0 -1
- package/types/uni/ext/lib/uni-audio/utssdk/index.d.ts +4 -0
- package/types/uni/ext/lib/uni-exit/utssdk/interface.d.ts +4 -4
- package/types/uni/ext/lib/uni-file-manager/utssdk/index.d.ts +2 -0
- package/types/uni/ext/lib/uni-file-manager/utssdk/interface.d.ts +6 -6
- package/types/uni/ext/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +1 -1
- package/types/uni/ext/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1 -1
- package/types/uni/ext/lib/uni-getLocation-system/utssdk/interface.d.ts +39 -17
- package/types/uni/ext/lib/uni-getNetworkType/utssdk/interface.d.ts +3 -10
- package/types/uni/ext/lib/uni-getRecorderManager/utssdk/index.d.ts +2 -0
- package/types/uni/ext/lib/uni-getSystemInfo/utssdk/interface.d.ts +3 -10
- package/types/uni/ext/lib/uni-media/utssdk/interface.d.ts +55 -55
- package/types/uni/ext/lib/uni-network/utssdk/app-ios/index.d.ts +67 -0
- package/types/uni/ext/lib/uni-network/utssdk/app-ios/interface.d.ts +530 -0
- package/types/uni/ext/lib/uni-network/utssdk/index.d.ts +10 -4
- package/types/uni/ext/lib/uni-network/utssdk/interface.d.ts +37 -77
- package/types/uni/ext/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +3 -3
- package/types/uni/ext/lib/uni-prompt/utssdk/index.d.ts +0 -8
- package/types/uni/ext/lib/uni-prompt/utssdk/interface.d.ts +35 -112
- package/types/uni/ext/lib/uni-storage/utssdk/interface.d.ts +13 -13
- package/types/uni/ext/lib/uni-websocket/utssdk/index.d.ts +2 -0
- package/types/uni/ext/lib/uni-websocket/utssdk/interface.d.ts +11 -18
- package/types/uni-cloud/index.d.ts +333 -274
- package/types/vue/index.d.ts +1 -1
- package/types/uni/ext/lib/uni-getLocation-tencent/utssdk/index.d.ts +0 -15
- package/types/uni/ext/lib/uni-getLocation-tencent/utssdk/interface.d.ts +0 -93
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
export interface Uni {
|
|
2
|
-
/**
|
|
3
|
-
* 获取当前的地理位置、速度
|
|
4
|
-
*
|
|
5
|
-
* @tutorial http://uniapp.dcloud.io/api/location/location?id=getlocation
|
|
6
|
-
*/
|
|
7
|
-
getLocation: GetLocation;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type GetLocation = (options: GetLocationOptions) => void;
|
|
11
|
-
export type GetLocationSuccess = {
|
|
12
|
-
/**
|
|
13
|
-
* 纬度,浮点数,范围为-90~90,负数表示南纬
|
|
14
|
-
*/
|
|
15
|
-
latitude: number,
|
|
16
|
-
/**
|
|
17
|
-
* 经度,范围为-180~180,负数表示西经
|
|
18
|
-
*/
|
|
19
|
-
longitude: number,
|
|
20
|
-
/**
|
|
21
|
-
* 速度,浮点数,单位m/s
|
|
22
|
-
*/
|
|
23
|
-
speed: number,
|
|
24
|
-
/**
|
|
25
|
-
* 位置的精确度
|
|
26
|
-
*/
|
|
27
|
-
accuracy: number,
|
|
28
|
-
/**
|
|
29
|
-
* 高度,单位 m
|
|
30
|
-
*/
|
|
31
|
-
altitude: number,
|
|
32
|
-
/**
|
|
33
|
-
* 垂直精度,单位 m(Android 无法获取,返回 0)
|
|
34
|
-
*/
|
|
35
|
-
verticalAccuracy: number,
|
|
36
|
-
/**
|
|
37
|
-
* 水平精度,单位 m
|
|
38
|
-
*/
|
|
39
|
-
horizontalAccuracy: number,
|
|
40
|
-
/**
|
|
41
|
-
* 地址信息
|
|
42
|
-
*/
|
|
43
|
-
address: any | null
|
|
44
|
-
};
|
|
45
|
-
type GetLocationSuccessCallback = (result: GetLocationSuccess) => void;
|
|
46
|
-
export type GetLocationFail = UniError;
|
|
47
|
-
type UniError = {
|
|
48
|
-
errSubject: string,
|
|
49
|
-
errCode: number,
|
|
50
|
-
errMsg: string,
|
|
51
|
-
data: object | null,
|
|
52
|
-
cause: any | null
|
|
53
|
-
};
|
|
54
|
-
type GetLocationFailCallback = (result: GetLocationFail) => void;
|
|
55
|
-
type GetLocationComplete = any;
|
|
56
|
-
type GetLocationCompleteCallback = (result: GetLocationComplete) => void;
|
|
57
|
-
export type GetLocationOptions = {
|
|
58
|
-
/**
|
|
59
|
-
* 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于uni.openLocation的坐标
|
|
60
|
-
*/
|
|
61
|
-
type: string | null,
|
|
62
|
-
/**
|
|
63
|
-
* 传入 true 会返回高度信息,由于获取高度需要较高精确度,会减慢接口返回速度
|
|
64
|
-
* @type boolean
|
|
65
|
-
*/
|
|
66
|
-
altitude: boolean | null,
|
|
67
|
-
/**
|
|
68
|
-
* 传入 true 会解析地址
|
|
69
|
-
* @type boolean
|
|
70
|
-
*/
|
|
71
|
-
geocode: boolean | null,
|
|
72
|
-
/**
|
|
73
|
-
* 高精度定位超时时间(ms),指定时间内返回最高精度,该值3000ms以上高精度定位才有效果
|
|
74
|
-
*/
|
|
75
|
-
highAccuracyExpireTime: number | null,
|
|
76
|
-
/**
|
|
77
|
-
* 开启高精度定位
|
|
78
|
-
* @type boolean
|
|
79
|
-
*/
|
|
80
|
-
isHighAccuracy: boolean | null,
|
|
81
|
-
/**
|
|
82
|
-
* 接口调用成功的回调函数
|
|
83
|
-
*/
|
|
84
|
-
success: GetLocationSuccessCallback | null,
|
|
85
|
-
/**
|
|
86
|
-
* 接口调用失败的回调函数
|
|
87
|
-
*/
|
|
88
|
-
fail: GetLocationFailCallback | null,
|
|
89
|
-
/**
|
|
90
|
-
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
91
|
-
*/
|
|
92
|
-
complete: GetLocationCompleteCallback | null
|
|
93
|
-
};
|