@dcloudio/uni-app-x 0.7.121 → 0.7.122
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/README.md +87 -0
- package/package.json +1 -1
- package/types/dom2-internal/UniCommon.d.ts +7 -2
- package/types/dom2-internal/UniNativeDefines.d.ts +7 -2
- package/types/uni/uts-plugin-api/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +323 -1294
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/interface.d.ts +944 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/global.d.ts +16 -6
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/index.d.ts +9 -3
- package/types/uni/uts-plugin-api/lib/uni-compass/utssdk/interface.d.ts +353 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +144 -110
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
- package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/interface.d.ts +418 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +83 -124
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
- package/types/uni/uts-plugin-biz/global.d.ts +9 -0
- package/types/uni/uts-plugin-biz/index.d.ts +9 -0
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/global.d.ts +59 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/index.d.ts +29 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/interface.d.ts +371 -0
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/interface.d.ts +944 -0
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/interface.d.ts +353 -0
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
- package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/interface.d.ts +1172 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +6 -1
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
- package/types/uni/uts-plugin-component/global.d.ts +8 -1
- package/types/uni/uts-plugin-component/index.d.ts +8 -1
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
- package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +1342 -371
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/interface.d.ts +944 -0
- package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/interface.d.ts +353 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +144 -110
- package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +13 -4
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/interface.d.ts +420 -0
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +132 -75
- package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +0 -12
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +0 -917
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +0 -1095
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +0 -253
|
@@ -6,7 +6,6 @@ export type RequestAnimationFrameCallback = (time: number) => void
|
|
|
6
6
|
|
|
7
7
|
export type CanvasContextToBlobCallback = (blob: Blob) => void
|
|
8
8
|
|
|
9
|
-
|
|
10
9
|
export interface CanvasContext {
|
|
11
10
|
getContext(type: '2d'): CanvasRenderingContext2D | null
|
|
12
11
|
|
|
@@ -567,6 +566,8 @@ export interface CanvasContext {
|
|
|
567
566
|
cancelAnimationFrame(taskId: number): void;
|
|
568
567
|
}
|
|
569
568
|
|
|
569
|
+
|
|
570
|
+
|
|
570
571
|
export type CreateCanvasContextAsyncOptions = {
|
|
571
572
|
/**
|
|
572
573
|
* canvas 元素的 id 属性
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
CompassErrorCode as CompassErrorCodeOrigin,
|
|
4
|
+
ICompassError as ICompassErrorOrigin,
|
|
5
|
+
CompassSuccess as CompassSuccessOrigin,
|
|
6
|
+
CompassAccuracy as CompassAccuracyOrigin,
|
|
7
|
+
CompassFail as CompassFailOrigin,
|
|
8
|
+
CompassSuccessCallback as CompassSuccessCallbackOrigin,
|
|
9
|
+
CompassFailCallback as CompassFailCallbackOrigin,
|
|
10
|
+
CompassComplete as CompassCompleteOrigin,
|
|
11
|
+
CompassCompleteCallback as CompassCompleteCallbackOrigin,
|
|
12
|
+
StartCompassOptions as StartCompassOptionsOrigin,
|
|
13
|
+
StopCompassOptions as StopCompassOptionsOrigin,
|
|
14
|
+
OnCompassChangeSuccess as OnCompassChangeSuccessOrigin,
|
|
15
|
+
OnCompassChange as OnCompassChangeOrigin,
|
|
16
|
+
Uni as UniOrigin
|
|
17
|
+
} from './interface'
|
|
18
|
+
|
|
19
|
+
declare global {
|
|
20
|
+
type CompassErrorCode = CompassErrorCodeOrigin
|
|
21
|
+
type ICompassError = ICompassErrorOrigin
|
|
22
|
+
type CompassSuccess = CompassSuccessOrigin
|
|
23
|
+
type CompassAccuracy = CompassAccuracyOrigin
|
|
24
|
+
type CompassFail = CompassFailOrigin
|
|
25
|
+
type CompassSuccessCallback = CompassSuccessCallbackOrigin
|
|
26
|
+
type CompassFailCallback = CompassFailCallbackOrigin
|
|
27
|
+
type CompassComplete = CompassCompleteOrigin
|
|
28
|
+
type CompassCompleteCallback = CompassCompleteCallbackOrigin
|
|
29
|
+
type StartCompassOptions = StartCompassOptionsOrigin
|
|
30
|
+
type StopCompassOptions = StopCompassOptionsOrigin
|
|
31
|
+
type OnCompassChangeSuccess = OnCompassChangeSuccessOrigin
|
|
32
|
+
type OnCompassChange = OnCompassChangeOrigin
|
|
33
|
+
interface Uni extends UniOrigin { }
|
|
34
|
+
}
|
|
35
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
export {
|
|
3
|
+
CompassErrorCode,
|
|
4
|
+
ICompassError,
|
|
5
|
+
CompassSuccess,
|
|
6
|
+
CompassAccuracy,
|
|
7
|
+
CompassFail,
|
|
8
|
+
CompassSuccessCallback,
|
|
9
|
+
CompassFailCallback,
|
|
10
|
+
CompassComplete,
|
|
11
|
+
CompassCompleteCallback,
|
|
12
|
+
StartCompassOptions,
|
|
13
|
+
StopCompassOptions,
|
|
14
|
+
OnCompassChangeSuccess,
|
|
15
|
+
OnCompassChange,
|
|
16
|
+
} from './interface'
|
|
17
|
+
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
export type CompassErrorCode =
|
|
2
|
+
601 |
|
|
3
|
+
602 |
|
|
4
|
+
603 |
|
|
5
|
+
604 |
|
|
6
|
+
701 |
|
|
7
|
+
702 |
|
|
8
|
+
703 |
|
|
9
|
+
704 |
|
|
10
|
+
801 |
|
|
11
|
+
802 |
|
|
12
|
+
803 |
|
|
13
|
+
804 |
|
|
14
|
+
501 |
|
|
15
|
+
502 |
|
|
16
|
+
503 |
|
|
17
|
+
504 |
|
|
18
|
+
901
|
|
19
|
+
|
|
20
|
+
export interface ICompassError extends IUniError {
|
|
21
|
+
errCode : CompassErrorCode
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type CompassSuccess = {
|
|
25
|
+
errMsg ?: string | null
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type CompassAccuracy = number | string | null
|
|
29
|
+
|
|
30
|
+
export type CompassFail = ICompassError
|
|
31
|
+
export type CompassSuccessCallback = (res : CompassSuccess) => void
|
|
32
|
+
export type CompassFailCallback = (res : CompassFail) => void
|
|
33
|
+
export type CompassComplete = CompassSuccess | CompassFail
|
|
34
|
+
export type CompassCompleteCallback = (res : CompassComplete) => void
|
|
35
|
+
|
|
36
|
+
export type StartCompassOptions = {
|
|
37
|
+
success ?: CompassSuccessCallback | null
|
|
38
|
+
fail ?: CompassFailCallback | null
|
|
39
|
+
complete ?: CompassCompleteCallback | null
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type StopCompassOptions = {
|
|
43
|
+
success ?: CompassSuccessCallback | null
|
|
44
|
+
fail ?: CompassFailCallback | null
|
|
45
|
+
complete ?: CompassCompleteCallback | null
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type OnCompassChangeSuccess = {
|
|
49
|
+
direction : number
|
|
50
|
+
accuracy ?: CompassAccuracy
|
|
51
|
+
errMsg ?: string | null
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type OnCompassChange = (result : OnCompassChangeSuccess) => void
|
|
55
|
+
|
|
56
|
+
export interface Uni {
|
|
57
|
+
/**
|
|
58
|
+
* 监听罗盘数据变化事件。频率:5 次/秒,接口调用后会自动开始监听
|
|
59
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/compass.html#oncompasschange
|
|
60
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/compass.html#oncompasschange
|
|
61
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/compass.html#oncompasschange
|
|
62
|
+
*
|
|
63
|
+
* @uniPlatform {
|
|
64
|
+
* "app": {
|
|
65
|
+
* "android": {
|
|
66
|
+
* "osVer": "5.0",
|
|
67
|
+
* "uniVer": "5.08",
|
|
68
|
+
* "unixVer": "5.08"
|
|
69
|
+
* },
|
|
70
|
+
* "ios": {
|
|
71
|
+
* "osVer": "12.0",
|
|
72
|
+
* "uniVer": "5.08",
|
|
73
|
+
* "unixVer": "5.08"
|
|
74
|
+
* },
|
|
75
|
+
* "harmony": {
|
|
76
|
+
* "osVer": "5.0.0",
|
|
77
|
+
* "uniVer": "5.08",
|
|
78
|
+
* "unixVer": "5.08",
|
|
79
|
+
* "unixvVer": "5.08"
|
|
80
|
+
* }
|
|
81
|
+
* },
|
|
82
|
+
* "web": {
|
|
83
|
+
* "uniVer": "√",
|
|
84
|
+
* "unixVer": "4.0"
|
|
85
|
+
* },
|
|
86
|
+
* "mp":{
|
|
87
|
+
* "weixin": {
|
|
88
|
+
* "hostVer": "√",
|
|
89
|
+
* "uniVer": "√",
|
|
90
|
+
* "unixVer": "4.41"
|
|
91
|
+
* },
|
|
92
|
+
* "alipay": {
|
|
93
|
+
* "hostVer": "x",
|
|
94
|
+
* "uniVer": "x",
|
|
95
|
+
* "unixVer": "x"
|
|
96
|
+
* },
|
|
97
|
+
* "baidu": {
|
|
98
|
+
* "hostVer": "x",
|
|
99
|
+
* "uniVer": "x",
|
|
100
|
+
* "unixVer": "x"
|
|
101
|
+
* },
|
|
102
|
+
* "toutiao": {
|
|
103
|
+
* "hostVer": "x",
|
|
104
|
+
* "uniVer": "x",
|
|
105
|
+
* "unixVer": "x"
|
|
106
|
+
* },
|
|
107
|
+
* "lark": {
|
|
108
|
+
* "hostVer": "x",
|
|
109
|
+
* "uniVer": "x",
|
|
110
|
+
* "unixVer": "x"
|
|
111
|
+
* },
|
|
112
|
+
* "qq": {
|
|
113
|
+
* "hostVer": "x",
|
|
114
|
+
* "uniVer": "x",
|
|
115
|
+
* "unixVer": "x"
|
|
116
|
+
* },
|
|
117
|
+
* "kuaishou": {
|
|
118
|
+
* "hostVer": "x",
|
|
119
|
+
* "uniVer": "x",
|
|
120
|
+
* "unixVer": "x"
|
|
121
|
+
* },
|
|
122
|
+
* "jd": {
|
|
123
|
+
* "hostVer": "x",
|
|
124
|
+
* "uniVer": "x",
|
|
125
|
+
* "unixVer": "x"
|
|
126
|
+
* }
|
|
127
|
+
* }
|
|
128
|
+
* }
|
|
129
|
+
*/
|
|
130
|
+
onCompassChange(callback : OnCompassChange) : void;
|
|
131
|
+
/**
|
|
132
|
+
* 取消监听罗盘数据
|
|
133
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/compass.html#offcompasschange
|
|
134
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/compass.html#offcompasschange
|
|
135
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/compass.html#offcompasschange
|
|
136
|
+
*
|
|
137
|
+
* @uniPlatform {
|
|
138
|
+
* "app": {
|
|
139
|
+
* "android": {
|
|
140
|
+
* "osVer": "5.0",
|
|
141
|
+
* "uniVer": "5.08",
|
|
142
|
+
* "unixVer": "5.08"
|
|
143
|
+
* },
|
|
144
|
+
* "ios": {
|
|
145
|
+
* "osVer": "12.0",
|
|
146
|
+
* "uniVer": "5.08",
|
|
147
|
+
* "unixVer": "5.08"
|
|
148
|
+
* },
|
|
149
|
+
* "harmony": {
|
|
150
|
+
* "osVer": "5.0.0",
|
|
151
|
+
* "uniVer": "5.08",
|
|
152
|
+
* "unixVer": "5.08",
|
|
153
|
+
* "unixvVer": "5.08"
|
|
154
|
+
* }
|
|
155
|
+
* },
|
|
156
|
+
* "web": {
|
|
157
|
+
* "uniVer": "√",
|
|
158
|
+
* "unixVer": "4.0"
|
|
159
|
+
* },
|
|
160
|
+
* "mp":{
|
|
161
|
+
* "weixin": {
|
|
162
|
+
* "hostVer": "2.9.3",
|
|
163
|
+
* "uniVer": "√",
|
|
164
|
+
* "unixVer": "4.41"
|
|
165
|
+
* },
|
|
166
|
+
* "alipay": {
|
|
167
|
+
* "hostVer": "x",
|
|
168
|
+
* "uniVer": "x",
|
|
169
|
+
* "unixVer": "x"
|
|
170
|
+
* },
|
|
171
|
+
* "baidu": {
|
|
172
|
+
* "hostVer": "x",
|
|
173
|
+
* "uniVer": "x",
|
|
174
|
+
* "unixVer": "x"
|
|
175
|
+
* },
|
|
176
|
+
* "toutiao": {
|
|
177
|
+
* "hostVer": "x",
|
|
178
|
+
* "uniVer": "x",
|
|
179
|
+
* "unixVer": "x"
|
|
180
|
+
* },
|
|
181
|
+
* "lark": {
|
|
182
|
+
* "hostVer": "x",
|
|
183
|
+
* "uniVer": "x",
|
|
184
|
+
* "unixVer": "x"
|
|
185
|
+
* },
|
|
186
|
+
* "qq": {
|
|
187
|
+
* "hostVer": "x",
|
|
188
|
+
* "uniVer": "x",
|
|
189
|
+
* "unixVer": "x"
|
|
190
|
+
* },
|
|
191
|
+
* "kuaishou": {
|
|
192
|
+
* "hostVer": "x",
|
|
193
|
+
* "uniVer": "x",
|
|
194
|
+
* "unixVer": "x"
|
|
195
|
+
* },
|
|
196
|
+
* "jd": {
|
|
197
|
+
* "hostVer": "x",
|
|
198
|
+
* "uniVer": "x",
|
|
199
|
+
* "unixVer": "x"
|
|
200
|
+
* }
|
|
201
|
+
* }
|
|
202
|
+
* }
|
|
203
|
+
*/
|
|
204
|
+
offCompassChange(callback : OnCompassChange) : void;
|
|
205
|
+
/**
|
|
206
|
+
* 开始监听罗盘数据
|
|
207
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/compass.html#startcompass
|
|
208
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/compass.html#startcompass
|
|
209
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/compass.html#startcompass
|
|
210
|
+
*
|
|
211
|
+
* @uniPlatform {
|
|
212
|
+
* "app": {
|
|
213
|
+
* "android": {
|
|
214
|
+
* "osVer": "5.0",
|
|
215
|
+
* "uniVer": "5.08",
|
|
216
|
+
* "unixVer": "5.08"
|
|
217
|
+
* },
|
|
218
|
+
* "ios": {
|
|
219
|
+
* "osVer": "12.0",
|
|
220
|
+
* "uniVer": "5.08",
|
|
221
|
+
* "unixVer": "5.08"
|
|
222
|
+
* },
|
|
223
|
+
* "harmony": {
|
|
224
|
+
* "osVer": "5.0.0",
|
|
225
|
+
* "uniVer": "5.08",
|
|
226
|
+
* "unixVer": "5.08",
|
|
227
|
+
* "unixvVer": "5.08"
|
|
228
|
+
* }
|
|
229
|
+
* },
|
|
230
|
+
* "web": {
|
|
231
|
+
* "uniVer": "√",
|
|
232
|
+
* "unixVer": "4.0"
|
|
233
|
+
* },
|
|
234
|
+
* "mp":{
|
|
235
|
+
* "weixin": {
|
|
236
|
+
* "hostVer": "√",
|
|
237
|
+
* "uniVer": "√",
|
|
238
|
+
* "unixVer": "4.41"
|
|
239
|
+
* },
|
|
240
|
+
* "alipay": {
|
|
241
|
+
* "hostVer": "x",
|
|
242
|
+
* "uniVer": "x",
|
|
243
|
+
* "unixVer": "x"
|
|
244
|
+
* },
|
|
245
|
+
* "baidu": {
|
|
246
|
+
* "hostVer": "x",
|
|
247
|
+
* "uniVer": "x",
|
|
248
|
+
* "unixVer": "x"
|
|
249
|
+
* },
|
|
250
|
+
* "toutiao": {
|
|
251
|
+
* "hostVer": "x",
|
|
252
|
+
* "uniVer": "x",
|
|
253
|
+
* "unixVer": "x"
|
|
254
|
+
* },
|
|
255
|
+
* "lark": {
|
|
256
|
+
* "hostVer": "x",
|
|
257
|
+
* "uniVer": "x",
|
|
258
|
+
* "unixVer": "x"
|
|
259
|
+
* },
|
|
260
|
+
* "qq": {
|
|
261
|
+
* "hostVer": "x",
|
|
262
|
+
* "uniVer": "x",
|
|
263
|
+
* "unixVer": "x"
|
|
264
|
+
* },
|
|
265
|
+
* "kuaishou": {
|
|
266
|
+
* "hostVer": "x",
|
|
267
|
+
* "uniVer": "x",
|
|
268
|
+
* "unixVer": "x"
|
|
269
|
+
* },
|
|
270
|
+
* "jd": {
|
|
271
|
+
* "hostVer": "x",
|
|
272
|
+
* "uniVer": "x",
|
|
273
|
+
* "unixVer": "x"
|
|
274
|
+
* }
|
|
275
|
+
* }
|
|
276
|
+
* }
|
|
277
|
+
*/
|
|
278
|
+
startCompass(options ?: StartCompassOptions | null) : void;
|
|
279
|
+
/**
|
|
280
|
+
* 停止监听罗盘数据
|
|
281
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/compass.html#stopcompass
|
|
282
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/compass.html#stopcompass
|
|
283
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/compass.html#stopcompass
|
|
284
|
+
*
|
|
285
|
+
* @uniPlatform {
|
|
286
|
+
* "app": {
|
|
287
|
+
* "android": {
|
|
288
|
+
* "osVer": "5.0",
|
|
289
|
+
* "uniVer": "5.08",
|
|
290
|
+
* "unixVer": "5.08"
|
|
291
|
+
* },
|
|
292
|
+
* "ios": {
|
|
293
|
+
* "osVer": "12.0",
|
|
294
|
+
* "uniVer": "5.08",
|
|
295
|
+
* "unixVer": "5.08"
|
|
296
|
+
* },
|
|
297
|
+
* "harmony": {
|
|
298
|
+
* "osVer": "5.0.0",
|
|
299
|
+
* "uniVer": "5.08",
|
|
300
|
+
* "unixVer": "5.08",
|
|
301
|
+
* "unixvVer": "5.08"
|
|
302
|
+
* }
|
|
303
|
+
* },
|
|
304
|
+
* "web": {
|
|
305
|
+
* "uniVer": "√",
|
|
306
|
+
* "unixVer": "4.0"
|
|
307
|
+
* },
|
|
308
|
+
* "mp":{
|
|
309
|
+
* "weixin": {
|
|
310
|
+
* "hostVer": "√",
|
|
311
|
+
* "uniVer": "√",
|
|
312
|
+
* "unixVer": "4.41"
|
|
313
|
+
* },
|
|
314
|
+
* "alipay": {
|
|
315
|
+
* "hostVer": "x",
|
|
316
|
+
* "uniVer": "x",
|
|
317
|
+
* "unixVer": "x"
|
|
318
|
+
* },
|
|
319
|
+
* "baidu": {
|
|
320
|
+
* "hostVer": "x",
|
|
321
|
+
* "uniVer": "x",
|
|
322
|
+
* "unixVer": "x"
|
|
323
|
+
* },
|
|
324
|
+
* "toutiao": {
|
|
325
|
+
* "hostVer": "x",
|
|
326
|
+
* "uniVer": "x",
|
|
327
|
+
* "unixVer": "x"
|
|
328
|
+
* },
|
|
329
|
+
* "lark": {
|
|
330
|
+
* "hostVer": "x",
|
|
331
|
+
* "uniVer": "x",
|
|
332
|
+
* "unixVer": "x"
|
|
333
|
+
* },
|
|
334
|
+
* "qq": {
|
|
335
|
+
* "hostVer": "x",
|
|
336
|
+
* "uniVer": "x",
|
|
337
|
+
* "unixVer": "x"
|
|
338
|
+
* },
|
|
339
|
+
* "kuaishou": {
|
|
340
|
+
* "hostVer": "x",
|
|
341
|
+
* "uniVer": "x",
|
|
342
|
+
* "unixVer": "x"
|
|
343
|
+
* },
|
|
344
|
+
* "jd": {
|
|
345
|
+
* "hostVer": "x",
|
|
346
|
+
* "uniVer": "x",
|
|
347
|
+
* "unixVer": "x"
|
|
348
|
+
* }
|
|
349
|
+
* }
|
|
350
|
+
* }
|
|
351
|
+
*/
|
|
352
|
+
stopCompass(options ?: StopCompassOptions | null) : void;
|
|
353
|
+
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
UniEditorElementOptions as UniEditorElementOptionsOrigin,
|
|
7
7
|
UniEditorElementInsertImageOptions as UniEditorElementInsertImageOptionsOrigin,
|
|
8
8
|
UniEditorElementInsertTextOptions as UniEditorElementInsertTextOptionsOrigin,
|
|
9
|
+
UniEditorElementInsertLinkOptions as UniEditorElementInsertLinkOptionsOrigin,
|
|
9
10
|
UniEditorElementInsertMentionOptions as UniEditorElementInsertMentionOptionsOrigin,
|
|
10
11
|
UniEditorElementSetContentsOptions as UniEditorElementSetContentsOptionsOrigin,
|
|
11
12
|
UniEditorElementGetSelectionTextOptionsRes as UniEditorElementGetSelectionTextOptionsResOrigin,
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
type UniEditorElementOptions = UniEditorElementOptionsOrigin
|
|
27
28
|
type UniEditorElementInsertImageOptions = UniEditorElementInsertImageOptionsOrigin
|
|
28
29
|
type UniEditorElementInsertTextOptions = UniEditorElementInsertTextOptionsOrigin
|
|
30
|
+
type UniEditorElementInsertLinkOptions = UniEditorElementInsertLinkOptionsOrigin
|
|
29
31
|
type UniEditorElementInsertMentionOptions = UniEditorElementInsertMentionOptionsOrigin
|
|
30
32
|
type UniEditorElementSetContentsOptions = UniEditorElementSetContentsOptionsOrigin
|
|
31
33
|
type UniEditorElementGetSelectionTextOptionsRes = UniEditorElementGetSelectionTextOptionsResOrigin
|