@dcloudio/uni-app-x 0.7.10 → 0.7.12
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/.prettierrc +5 -0
- package/package.json +2 -2
- package/types/native/IUniElement.d.ts +30 -47
- package/types/native/UniApp.d.ts +17 -4
- package/types/native/UniDocument.d.ts +52 -4
- package/types/native/UniNativePage.d.ts +59 -32
- package/types/native/UniNestedPreScrollEvent.d.ts +45 -46
- package/types/native/UniTabsElement.d.ts +51 -21
- package/types/native/UniTextElement.d.ts +18 -1
- package/types/uni/global.d.ts +0 -1
- package/types/uni/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/global.d.ts +12 -0
- package/types/uni/uts-plugin-api/index.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +412 -0
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +36 -6
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +277 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +41 -14
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +17 -17
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +15 -15
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +73 -0
- package/types/uni/{core/lib/lifecycle → uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk}/global.d.ts +2 -0
- package/types/uni/{core/lib/lifecycle → uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk}/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +39 -0
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +157 -0
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +9 -9
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/{core/lib/base/interceptor → uts-plugin-api/lib/uni-interceptor/utssdk}/global.d.ts +0 -2
- package/types/uni/{core/lib/base/interceptor → uts-plugin-api/lib/uni-interceptor/utssdk}/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +152 -0
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +557 -0
- package/types/uni/{core/lib/ui/set-navigation-bar-color → uts-plugin-api/lib/uni-navigationBar/utssdk}/global.d.ts +20 -4
- package/types/uni/{core/lib/ui/set-navigation-bar-title → uts-plugin-api/lib/uni-navigationBar/utssdk}/index.d.ts +10 -2
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +794 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +5 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +107 -39
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/{core/lib/ui/page-scroll-to → uts-plugin-api/lib/uni-pageScrollTo/utssdk}/global.d.ts +2 -4
- package/types/uni/{core/lib/ui/page-scroll-to → uts-plugin-api/lib/uni-pageScrollTo/utssdk}/index.d.ts +1 -2
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +143 -0
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +45 -45
- package/types/uni/{core/lib/ui/pull-down-refresh → uts-plugin-api/lib/uni-pullDownRefresh/utssdk}/global.d.ts +2 -4
- package/types/uni/{core/lib/ui/pull-down-refresh → uts-plugin-api/lib/uni-pullDownRefresh/utssdk}/index.d.ts +1 -2
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +174 -0
- package/types/uni/{core/lib/route → uts-plugin-api/lib/uni-route/utssdk}/global.d.ts +0 -10
- package/types/uni/{core/lib/route → uts-plugin-api/lib/uni-route/utssdk}/index.d.ts +0 -5
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2020 -0
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +21 -21
- package/types/uni/{core/lib/ui/tab-bar → uts-plugin-api/lib/uni-tabBar/utssdk}/global.d.ts +4 -2
- package/types/uni/{core/lib/ui/tab-bar → uts-plugin-api/lib/uni-tabBar/utssdk}/index.d.ts +2 -1
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +926 -0
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +26 -26
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +59 -9
- package/types/uni/core/global.d.ts +0 -13
- package/types/uni/core/index.d.ts +0 -13
- package/types/uni/core/lib/base/event/interface.d.ts +0 -277
- package/types/uni/core/lib/base/interceptor/interface.d.ts +0 -150
- package/types/uni/core/lib/interface.d.ts +0 -28
- package/types/uni/core/lib/lifecycle/interface.d.ts +0 -37
- package/types/uni/core/lib/performance/interface.d.ts +0 -157
- package/types/uni/core/lib/route/interface.d.ts +0 -2031
- package/types/uni/core/lib/ui/create-selector-query/interface.d.ts +0 -412
- package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +0 -73
- package/types/uni/core/lib/ui/load-font-face/interface.d.ts +0 -560
- package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +0 -145
- package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +0 -176
- package/types/uni/core/lib/ui/set-navigation-bar-color/index.d.ts +0 -13
- package/types/uni/core/lib/ui/set-navigation-bar-color/interface.d.ts +0 -431
- package/types/uni/core/lib/ui/set-navigation-bar-title/global.d.ts +0 -28
- package/types/uni/core/lib/ui/set-navigation-bar-title/interface.d.ts +0 -368
- package/types/uni/core/lib/ui/tab-bar/interface.d.ts +0 -928
- package/types/uni/{core/lib/ui/create-selector-query → uts-plugin-api/lib/uni-createSelectorQuery/utssdk}/global.d.ts +0 -0
- package/types/uni/{core/lib/ui/create-selector-query → uts-plugin-api/lib/uni-createSelectorQuery/utssdk}/index.d.ts +0 -0
- package/types/uni/{core/lib/base/event → uts-plugin-api/lib/uni-event/utssdk}/global.d.ts +0 -0
- package/types/uni/{core/lib/base/event → uts-plugin-api/lib/uni-event/utssdk}/index.d.ts +0 -0
- package/types/uni/{core/lib/ui/get-element-by-id → uts-plugin-api/lib/uni-getElementById/utssdk}/global.d.ts +0 -0
- package/types/uni/{core/lib/ui/get-element-by-id → uts-plugin-api/lib/uni-getElementById/utssdk}/index.d.ts +0 -0
- package/types/uni/{core/lib/performance → uts-plugin-api/lib/uni-getPerformance/utssdk}/global.d.ts +0 -0
- package/types/uni/{core/lib/performance → uts-plugin-api/lib/uni-getPerformance/utssdk}/index.d.ts +0 -0
- package/types/uni/{core/lib/ui/load-font-face → uts-plugin-api/lib/uni-loadFontFace/utssdk}/global.d.ts +2 -2
- package/types/uni/{core/lib/ui/load-font-face → uts-plugin-api/lib/uni-loadFontFace/utssdk}/index.d.ts +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type OnLaunchOptions = {
|
|
2
|
+
path: string
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export type GetLaunchOptionsSync = () => OnLaunchOptions
|
|
6
|
+
|
|
7
|
+
export interface Uni {
|
|
8
|
+
/**
|
|
9
|
+
* 获取本次启动时的参数。返回值与App.onLaunch的回调参数一致
|
|
10
|
+
*
|
|
11
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
|
|
12
|
+
* @uniPlatform {
|
|
13
|
+
* "app": {
|
|
14
|
+
* "android": {
|
|
15
|
+
* "osVer": "5.0",
|
|
16
|
+
* "uniVer": "√",
|
|
17
|
+
* "unixVer": "3.91"
|
|
18
|
+
* },
|
|
19
|
+
* "ios": {
|
|
20
|
+
* "osVer": "12.0",
|
|
21
|
+
* "uniVer": "√",
|
|
22
|
+
* "unixVer": "4.11"
|
|
23
|
+
* }
|
|
24
|
+
* },
|
|
25
|
+
* "mp": {
|
|
26
|
+
* "weixin": {
|
|
27
|
+
* "hostVer": "√",
|
|
28
|
+
* "uniVer": "√",
|
|
29
|
+
* "unixVer": "x"
|
|
30
|
+
* },
|
|
31
|
+
* },
|
|
32
|
+
* "web": {
|
|
33
|
+
* "uniVer": "√",
|
|
34
|
+
* "unixVer": "4.0"
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
*/
|
|
38
|
+
getLaunchOptionsSync(): OnLaunchOptions
|
|
39
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
export type GetPerformance = () => Performance
|
|
2
|
+
|
|
3
|
+
export type PerformanceObserverCallback = (
|
|
4
|
+
entries: PerformanceObserverEntryList,
|
|
5
|
+
) => void
|
|
6
|
+
|
|
7
|
+
export type PerformanceEntry = {
|
|
8
|
+
/**
|
|
9
|
+
* 指标类型
|
|
10
|
+
* @type string
|
|
11
|
+
*/
|
|
12
|
+
entryType: string
|
|
13
|
+
/**
|
|
14
|
+
* 指标名称
|
|
15
|
+
* @type string
|
|
16
|
+
*/
|
|
17
|
+
name: string
|
|
18
|
+
/**
|
|
19
|
+
* 耗时 ms。仅对于表示阶段的指标有效。
|
|
20
|
+
* @type number
|
|
21
|
+
*/
|
|
22
|
+
duration: number
|
|
23
|
+
/**
|
|
24
|
+
* 开始时间,不同指标的具体含义会有差异。
|
|
25
|
+
* @type number
|
|
26
|
+
*/
|
|
27
|
+
startTime: number
|
|
28
|
+
/**
|
|
29
|
+
* 页面路径。仅 render 和 navigation 类型指标有效。
|
|
30
|
+
* @type string
|
|
31
|
+
*/
|
|
32
|
+
path: string | null
|
|
33
|
+
/**
|
|
34
|
+
* 页面跳转来源页面路径。仅 route 指标有效。
|
|
35
|
+
* @type string
|
|
36
|
+
*/
|
|
37
|
+
referrerPath: string | null
|
|
38
|
+
/**
|
|
39
|
+
* path 对应页面实例 Id(随机生成,不保证递增)。仅 render/navigation 指标有效。
|
|
40
|
+
* @type number
|
|
41
|
+
*/
|
|
42
|
+
pageId: number | null
|
|
43
|
+
/**
|
|
44
|
+
* referrerPath对应页面实例 Id(随机生成,不保证递增)。仅 route 指标有效。
|
|
45
|
+
* @type number
|
|
46
|
+
*/
|
|
47
|
+
referrerPageId: number | null
|
|
48
|
+
/**
|
|
49
|
+
* 路由真正响应开始时间。仅 navigation 类型指标有效。
|
|
50
|
+
* @type number
|
|
51
|
+
*/
|
|
52
|
+
navigationStart: number | null
|
|
53
|
+
/**
|
|
54
|
+
* 路由详细类型,与路由方法对应。仅 navigation 类型指标有效。
|
|
55
|
+
* @type string
|
|
56
|
+
*/
|
|
57
|
+
navigationType: string | null
|
|
58
|
+
/**
|
|
59
|
+
* 首次渲染参数在渲染层收到的时间。仅 firstRender 指标有效。
|
|
60
|
+
* @type number
|
|
61
|
+
*/
|
|
62
|
+
initDataRecvTime: number | null
|
|
63
|
+
/**
|
|
64
|
+
* 渲染层执行渲染结束时间。仅 firstRender 指标有效。
|
|
65
|
+
* @type number
|
|
66
|
+
*/
|
|
67
|
+
viewLayerRenderEndTime: number | null
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type PerformanceObserverOptions = {
|
|
71
|
+
buffered?: boolean
|
|
72
|
+
entryTypes?: string[]
|
|
73
|
+
type?: string
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface PerformanceObserver {
|
|
77
|
+
/**
|
|
78
|
+
* 开始监听
|
|
79
|
+
*/
|
|
80
|
+
observe(options: PerformanceObserverOptions): void
|
|
81
|
+
/**
|
|
82
|
+
* 停止监听
|
|
83
|
+
*/
|
|
84
|
+
disconnect(): void
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface PerformanceObserverEntryList {
|
|
88
|
+
/**
|
|
89
|
+
* 该方法返回当前列表中的所有性能数据
|
|
90
|
+
*/
|
|
91
|
+
getEntries(): PerformanceEntry[]
|
|
92
|
+
/**
|
|
93
|
+
* 获取当前列表中所有类型为 [entryType] 的性能数据
|
|
94
|
+
*/
|
|
95
|
+
getEntriesByType(entryType: string): PerformanceEntry[]
|
|
96
|
+
/**
|
|
97
|
+
* 获取当前列表中所有名称为 [name] 且类型为 [entryType] 的性能数据
|
|
98
|
+
*/
|
|
99
|
+
getEntriesByName(name: string, entryType: string): PerformanceEntry[]
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface Performance {
|
|
103
|
+
/**
|
|
104
|
+
* 创建全局性能事件监听器
|
|
105
|
+
*/
|
|
106
|
+
createObserver(callback: PerformanceObserverCallback): PerformanceObserver
|
|
107
|
+
/**
|
|
108
|
+
* 该方法返回当前缓冲区中的所有性能数据
|
|
109
|
+
*/
|
|
110
|
+
getEntries(): PerformanceEntry[]
|
|
111
|
+
/**
|
|
112
|
+
* 获取当前缓冲区中所有类型为 [entryType] 的性能数据
|
|
113
|
+
*/
|
|
114
|
+
getEntriesByType(entryType: string): PerformanceEntry[]
|
|
115
|
+
/**
|
|
116
|
+
* 获取当前缓冲区中所有名称为 [name] 且类型为 [entryType] 的性能数据
|
|
117
|
+
*/
|
|
118
|
+
getEntriesByName(name: string, entryType: string): PerformanceEntry[]
|
|
119
|
+
/**
|
|
120
|
+
* 设置缓冲区大小,默认缓冲 30 条性能数据
|
|
121
|
+
*/
|
|
122
|
+
setBufferSize(size: number): void
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface Uni {
|
|
126
|
+
/**
|
|
127
|
+
* 返回一个Performance对象实例
|
|
128
|
+
*
|
|
129
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/getPerformance
|
|
130
|
+
* @uniPlatform {
|
|
131
|
+
* "app": {
|
|
132
|
+
* "android": {
|
|
133
|
+
* "osVer": "5.0",
|
|
134
|
+
* "uniVer": "√",
|
|
135
|
+
* "unixVer": "3.91"
|
|
136
|
+
* },
|
|
137
|
+
* "ios": {
|
|
138
|
+
* "osVer": "10.0",
|
|
139
|
+
* "uniVer": "√",
|
|
140
|
+
* "unixVer": "x"
|
|
141
|
+
* }
|
|
142
|
+
* },
|
|
143
|
+
* "mp": {
|
|
144
|
+
* "weixin": {
|
|
145
|
+
* "hostVer": "√",
|
|
146
|
+
* "uniVer": "√",
|
|
147
|
+
* "unixVer": "x"
|
|
148
|
+
* },
|
|
149
|
+
* },
|
|
150
|
+
* "web": {
|
|
151
|
+
* "uniVer": "x",
|
|
152
|
+
* "unixVer": "x"
|
|
153
|
+
* }
|
|
154
|
+
* }
|
|
155
|
+
*/
|
|
156
|
+
getPerformance: Performance
|
|
157
|
+
}
|
|
@@ -15,9 +15,9 @@ export interface Uni {
|
|
|
15
15
|
* "unixVer": "3.9+"
|
|
16
16
|
* },
|
|
17
17
|
* "ios": {
|
|
18
|
-
* "osVer": "
|
|
18
|
+
* "osVer": "12.0",
|
|
19
19
|
* "uniVer": "√",
|
|
20
|
-
* "unixVer": "
|
|
20
|
+
* "unixVer": "4.11"
|
|
21
21
|
* }
|
|
22
22
|
* },
|
|
23
23
|
* "web": {
|
|
@@ -55,9 +55,9 @@ export interface Uni {
|
|
|
55
55
|
* "unixVer": "3.9+"
|
|
56
56
|
* },
|
|
57
57
|
* "ios": {
|
|
58
|
-
* "osVer": "
|
|
58
|
+
* "osVer": "12.0",
|
|
59
59
|
* "uniVer": "√",
|
|
60
|
-
* "unixVer": "
|
|
60
|
+
* "unixVer": "4.11"
|
|
61
61
|
* }
|
|
62
62
|
* },
|
|
63
63
|
* "web": {
|
|
@@ -88,9 +88,9 @@ export interface Uni {
|
|
|
88
88
|
* "unixVer": "3.9+"
|
|
89
89
|
* },
|
|
90
90
|
* "ios": {
|
|
91
|
-
* "osVer": "
|
|
91
|
+
* "osVer": "12.0",
|
|
92
92
|
* "uniVer": "√",
|
|
93
|
-
* "unixVer": "
|
|
93
|
+
* "unixVer": "4.11"
|
|
94
94
|
* }
|
|
95
95
|
* },
|
|
96
96
|
* "web": {
|
|
@@ -190,7 +190,7 @@ export type GetSystemInfoResult = {
|
|
|
190
190
|
* "unixVer": "x"
|
|
191
191
|
* },
|
|
192
192
|
* "ios": {
|
|
193
|
-
* "osVer": "
|
|
193
|
+
* "osVer": "12.0",
|
|
194
194
|
* "uniVer": "√",
|
|
195
195
|
* "unixVer": "x"
|
|
196
196
|
* }
|
|
@@ -267,9 +267,9 @@ export type GetSystemInfoResult = {
|
|
|
267
267
|
* "unixVer": "√"
|
|
268
268
|
* },
|
|
269
269
|
* "ios": {
|
|
270
|
-
* "osVer": "
|
|
270
|
+
* "osVer": "12.0",
|
|
271
271
|
* "uniVer": "√",
|
|
272
|
-
* "unixVer": "
|
|
272
|
+
* "unixVer": "4.11"
|
|
273
273
|
* }
|
|
274
274
|
* }
|
|
275
275
|
* }
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// 本文件为自动构建生成
|
|
2
2
|
import {
|
|
3
|
-
Interceptor as InterceptorOrigin,
|
|
4
3
|
AddInterceptorOptions as AddInterceptorOptionsOrigin,
|
|
5
4
|
RemoveInterceptorOptions as RemoveInterceptorOptionsOrigin,
|
|
6
5
|
AddInterceptor as AddInterceptorOrigin,
|
|
@@ -9,7 +8,6 @@ import {
|
|
|
9
8
|
} from './interface'
|
|
10
9
|
|
|
11
10
|
declare global {
|
|
12
|
-
type Interceptor = InterceptorOrigin
|
|
13
11
|
type AddInterceptorOptions = AddInterceptorOptionsOrigin
|
|
14
12
|
type RemoveInterceptorOptions = RemoveInterceptorOptionsOrigin
|
|
15
13
|
type AddInterceptor = AddInterceptorOrigin
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { Interceptor } from '@dcloudio/uni-runtime'
|
|
2
|
+
|
|
3
|
+
export type AddInterceptorOptions = Interceptor
|
|
4
|
+
export type RemoveInterceptorOptions = Interceptor
|
|
5
|
+
|
|
6
|
+
export type AddInterceptor = (
|
|
7
|
+
name: string,
|
|
8
|
+
interceptor: AddInterceptorOptions,
|
|
9
|
+
) => void
|
|
10
|
+
|
|
11
|
+
export type RemoveInterceptor = (
|
|
12
|
+
name: string,
|
|
13
|
+
interceptor: RemoveInterceptorOptions | null,
|
|
14
|
+
) => void
|
|
15
|
+
|
|
16
|
+
export interface Uni {
|
|
17
|
+
/**
|
|
18
|
+
* 添加拦截器
|
|
19
|
+
* @param name 需要拦截的 API 名称
|
|
20
|
+
* @param interceptor 拦截器
|
|
21
|
+
* @uniPlatform {
|
|
22
|
+
* "app": {
|
|
23
|
+
* "android": {
|
|
24
|
+
* "osVer": "5.0",
|
|
25
|
+
* "uniVer": "√",
|
|
26
|
+
* "unixVer": "3.97"
|
|
27
|
+
* },
|
|
28
|
+
* "ios": {
|
|
29
|
+
* "osVer": "12.0",
|
|
30
|
+
* "uniVer": "√",
|
|
31
|
+
* "unixVer": "4.11"
|
|
32
|
+
* }
|
|
33
|
+
* },
|
|
34
|
+
* "mp": {
|
|
35
|
+
* "weixin": {
|
|
36
|
+
* "hostVer": "√",
|
|
37
|
+
* "uniVer": "√",
|
|
38
|
+
* "unixVer": "x"
|
|
39
|
+
* },
|
|
40
|
+
* "alipay": {
|
|
41
|
+
* "hostVer": "√",
|
|
42
|
+
* "uniVer": "√",
|
|
43
|
+
* "unixVer": "x"
|
|
44
|
+
* },
|
|
45
|
+
* "baidu": {
|
|
46
|
+
* "hostVer": "√",
|
|
47
|
+
* "uniVer": "√",
|
|
48
|
+
* "unixVer": "x"
|
|
49
|
+
* },
|
|
50
|
+
* "toutiao": {
|
|
51
|
+
* "hostVer": "√",
|
|
52
|
+
* "uniVer": "√",
|
|
53
|
+
* "unixVer": "x"
|
|
54
|
+
* },
|
|
55
|
+
* "lark": {
|
|
56
|
+
* "hostVer": "√",
|
|
57
|
+
* "uniVer": "√",
|
|
58
|
+
* "unixVer": "x"
|
|
59
|
+
* },
|
|
60
|
+
* "qq": {
|
|
61
|
+
* "hostVer": "√",
|
|
62
|
+
* "uniVer": "√",
|
|
63
|
+
* "unixVer": "x"
|
|
64
|
+
* },
|
|
65
|
+
* "kuaishou": {
|
|
66
|
+
* "hostVer": "√",
|
|
67
|
+
* "uniVer": "√",
|
|
68
|
+
* "unixVer": "x"
|
|
69
|
+
* },
|
|
70
|
+
* "jd": {
|
|
71
|
+
* "hostVer": "√",
|
|
72
|
+
* "uniVer": "√",
|
|
73
|
+
* "unixVer": "x"
|
|
74
|
+
* }
|
|
75
|
+
* },
|
|
76
|
+
* "web": {
|
|
77
|
+
* "uniVer": "√",
|
|
78
|
+
* "unixVer": "4.0"
|
|
79
|
+
* }
|
|
80
|
+
* }
|
|
81
|
+
*/
|
|
82
|
+
addInterceptor(name: string, interceptor: AddInterceptorOptions): void
|
|
83
|
+
/**
|
|
84
|
+
* 删除拦截器
|
|
85
|
+
* @param name 需要删除拦截器的 API 名称
|
|
86
|
+
* @param interceptor 拦截器
|
|
87
|
+
* @uniPlatform {
|
|
88
|
+
* "app": {
|
|
89
|
+
* "android": {
|
|
90
|
+
* "osVer": "5.0",
|
|
91
|
+
* "uniVer": "√",
|
|
92
|
+
* "unixVer": "3.97"
|
|
93
|
+
* },
|
|
94
|
+
* "ios": {
|
|
95
|
+
* "osVer": "12.0",
|
|
96
|
+
* "uniVer": "√",
|
|
97
|
+
* "unixVer": "4.11"
|
|
98
|
+
* }
|
|
99
|
+
* },
|
|
100
|
+
* "mp": {
|
|
101
|
+
* "weixin": {
|
|
102
|
+
* "hostVer": "√",
|
|
103
|
+
* "uniVer": "√",
|
|
104
|
+
* "unixVer": "x"
|
|
105
|
+
* },
|
|
106
|
+
* "alipay": {
|
|
107
|
+
* "hostVer": "√",
|
|
108
|
+
* "uniVer": "√",
|
|
109
|
+
* "unixVer": "x"
|
|
110
|
+
* },
|
|
111
|
+
* "baidu": {
|
|
112
|
+
* "hostVer": "√",
|
|
113
|
+
* "uniVer": "√",
|
|
114
|
+
* "unixVer": "x"
|
|
115
|
+
* },
|
|
116
|
+
* "toutiao": {
|
|
117
|
+
* "hostVer": "√",
|
|
118
|
+
* "uniVer": "√",
|
|
119
|
+
* "unixVer": "x"
|
|
120
|
+
* },
|
|
121
|
+
* "lark": {
|
|
122
|
+
* "hostVer": "√",
|
|
123
|
+
* "uniVer": "√",
|
|
124
|
+
* "unixVer": "x"
|
|
125
|
+
* },
|
|
126
|
+
* "qq": {
|
|
127
|
+
* "hostVer": "√",
|
|
128
|
+
* "uniVer": "√",
|
|
129
|
+
* "unixVer": "x"
|
|
130
|
+
* },
|
|
131
|
+
* "kuaishou": {
|
|
132
|
+
* "hostVer": "√",
|
|
133
|
+
* "uniVer": "√",
|
|
134
|
+
* "unixVer": "x"
|
|
135
|
+
* },
|
|
136
|
+
* "jd": {
|
|
137
|
+
* "hostVer": "√",
|
|
138
|
+
* "uniVer": "√",
|
|
139
|
+
* "unixVer": "x"
|
|
140
|
+
* }
|
|
141
|
+
* },
|
|
142
|
+
* "web": {
|
|
143
|
+
* "uniVer": "√",
|
|
144
|
+
* "unixVer": "4.0"
|
|
145
|
+
* }
|
|
146
|
+
* }
|
|
147
|
+
*/
|
|
148
|
+
removeInterceptor(
|
|
149
|
+
name: string,
|
|
150
|
+
interceptor?: RemoveInterceptorOptions | null,
|
|
151
|
+
): void
|
|
152
|
+
}
|