@dcloudio/uni-app-x 0.7.4 → 0.7.5
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/app.d.ts +9 -9
- package/types/native/CSSStyleDeclaration.d.ts +4 -2
- package/types/native/IUniElement.d.ts +26 -4
- package/types/native/UniApp.d.ts +2 -2
- package/types/native/UniCustomEvent.d.ts +25 -0
- package/types/native/UniElement.d.ts +6 -3
- package/types/native/{Event.d.ts → UniEvent.d.ts} +8 -2
- package/types/native/UniImageErrorEvent.d.ts +16 -0
- package/types/native/UniImageLoadEvent.d.ts +20 -0
- package/types/native/UniInputBlurEvent.d.ts +20 -0
- package/types/native/UniInputConfirmEvent.d.ts +16 -0
- package/types/native/{InputEvent.d.ts → UniInputEvent.d.ts} +6 -3
- package/types/native/{TextareaFocusEvent.d.ts → UniInputFocusEvent.d.ts} +6 -3
- package/types/native/UniInputKeyboardHeightChangeEvent.d.ts +20 -0
- package/types/native/{NestedPreScrollEvent.d.ts → UniNestedPreScrollEvent.d.ts} +26 -22
- package/types/native/UniPage.d.ts +4 -4
- package/types/native/UniPageEvent.d.ts +11 -0
- package/types/native/UniPageScrollEvent.d.ts +14 -0
- package/types/native/{PointerEvent.d.ts → UniPointerEvent.d.ts} +11 -4
- package/types/native/UniRefresherEvent.d.ts +14 -0
- package/types/native/{ResizeEvent.d.ts → UniResizeEvent.d.ts} +6 -3
- package/types/native/{RichTextItemClickEvent.d.ts → UniRichTextItemClickEvent.d.ts} +5 -2
- package/types/native/{ScrollEvent.d.ts → UniScrollEvent.d.ts} +6 -3
- package/types/native/UniScrollToLowerEvent.d.ts +16 -0
- package/types/native/UniScrollToUpperEvent.d.ts +16 -0
- package/types/native/{StartNestedScrollEvent.d.ts → UniStartNestedScrollEvent.d.ts} +6 -3
- package/types/native/{StopNestedScrollEvent.d.ts → UniStopNestedScrollEvent.d.ts} +5 -2
- package/types/native/{SwiperAnimationFinishEvent.d.ts → UniSwiperAnimationFinishEvent.d.ts} +5 -2
- package/types/native/{SwiperChangeEvent.d.ts → UniSwiperChangeEvent.d.ts} +5 -2
- package/types/native/{SwiperTransitionEvent.d.ts → UniSwiperTransitionEvent.d.ts} +5 -2
- package/types/native/{TabTapEvent.d.ts → UniTabTapEvent.d.ts} +6 -3
- package/types/native/UniTextElement.d.ts +3 -0
- package/types/native/UniTextareaBlurEvent.d.ts +20 -0
- package/types/native/{InputFocusEvent.d.ts → UniTextareaFocusEvent.d.ts} +7 -3
- package/types/native/UniTextareaLineChangeEvent.d.ts +24 -0
- package/types/native/{TouchEvent.d.ts → UniTouchEvent.d.ts} +13 -6
- package/types/native/UniVideoElement.d.ts +5 -5
- package/types/native/{WebViewDownloadEvent.d.ts → UniWebViewDownloadEvent.d.ts} +10 -4
- package/types/native/{WebViewErrorEvent.d.ts → UniWebViewErrorEvent.d.ts} +10 -4
- package/types/native/UniWebViewLoadEvent.d.ts +27 -0
- package/types/native/UniWebViewLoadingEvent.d.ts +28 -0
- package/types/native/UniWebViewMessageEvent.d.ts +27 -0
- package/types/native/UniWebViewServiceMessageEvent.d.ts +1 -1
- package/types/native/global.d.ts +238 -111
- package/types/native/index.d.ts +34 -34
- package/types/page.d.ts +19 -19
- package/types/uni/core/lib/base/event/interface.d.ts +244 -4
- package/types/uni/core/lib/base/interceptor/interface.d.ts +2 -2
- package/types/uni/core/lib/lifecycle/interface.d.ts +26 -1
- package/types/uni/core/lib/performance/interface.d.ts +26 -1
- package/types/uni/core/lib/route/interface.d.ts +30 -30
- package/types/uni/core/lib/ui/create-selector-query/interface.d.ts +73 -73
- package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +2 -2
- package/types/uni/core/lib/ui/load-font-face/interface.d.ts +9 -9
- package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +37 -37
- package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +122 -2
- package/types/uni/core/lib/ui/set-navigation-bar-color/interface.d.ts +7 -7
- package/types/uni/core/lib/ui/set-navigation-bar-title/interface.d.ts +6 -6
- package/types/uni/core/lib/ui/tab-bar/interface.d.ts +489 -9
- package/types/uni/uts-plugin-api/global.d.ts +1 -0
- package/types/uni/uts-plugin-api/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -0
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +44 -0
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +11 -7
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -2
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +26 -22
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +8 -4
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +33 -29
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +8 -4
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +18 -14
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +106 -94
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +6 -2
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +11 -3
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +176 -152
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +67 -19
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +51 -11
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +238 -186
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +17 -18
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +26 -4
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +13 -2
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +93 -32
- package/types/vue/CheckboxGroupChangeEvent.d.ts +9 -2
- package/types/vue/LifeCycle.d.ts +3 -3
- package/types/vue/PickerViewChangeEvent.d.ts +9 -2
- package/types/vue/ProgressActiveendEvent.d.ts +9 -2
- package/types/vue/RadioGroupChangeEvent.d.ts +9 -2
- package/types/vue/SliderChangeEvent.d.ts +9 -2
- package/types/vue/SwitchChangeEvent.d.ts +9 -2
- package/types/vue/UniFormElement.d.ts +16 -3
- package/types/native/CustomEvent.d.ts +0 -18
- package/types/native/ImageErrorEvent.d.ts +0 -13
- package/types/native/ImageLoadEvent.d.ts +0 -17
- package/types/native/InputBlurEvent.d.ts +0 -17
- package/types/native/InputConfirmEvent.d.ts +0 -13
- package/types/native/InputKeyboardHeightChangeEvent.d.ts +0 -17
- package/types/native/PageEvent.d.ts +0 -8
- package/types/native/PageScrollEvent.d.ts +0 -11
- package/types/native/RefresherEvent.d.ts +0 -10
- package/types/native/ScrollToLowerEvent.d.ts +0 -13
- package/types/native/ScrollToUpperEvent.d.ts +0 -13
- package/types/native/TextareaBlurEvent.d.ts +0 -17
- package/types/native/TextareaLineChangeEvent.d.ts +0 -21
- package/types/native/WebViewLoadedEvent.d.ts +0 -21
- package/types/native/WebViewLoadingEvent.d.ts +0 -22
- package/types/native/WebViewMessageEvent.d.ts +0 -21
|
@@ -6,20 +6,24 @@ export interface Uni {
|
|
|
6
6
|
* @param {GetSystemInfoOptions} options
|
|
7
7
|
* @return {void}
|
|
8
8
|
* @tutorial http://uniapp.dcloud.io/api/system/info?id=getsysteminfo
|
|
9
|
-
* @uniPlatform
|
|
10
|
-
* {
|
|
11
|
-
* "app": {
|
|
12
|
-
* "android": {
|
|
13
|
-
* "osVer": "
|
|
14
|
-
* "uniVer": "√",
|
|
15
|
-
* "unixVer": "3.9+"
|
|
16
|
-
* },
|
|
17
|
-
* "ios": {
|
|
18
|
-
* "osVer": "9.0",
|
|
19
|
-
* "uniVer": "√",
|
|
20
|
-
* "unixVer": "x"
|
|
21
|
-
* }
|
|
22
|
-
* }
|
|
9
|
+
* @uniPlatform
|
|
10
|
+
* {
|
|
11
|
+
* "app": {
|
|
12
|
+
* "android": {
|
|
13
|
+
* "osVer": "5.0",
|
|
14
|
+
* "uniVer": "√",
|
|
15
|
+
* "unixVer": "3.9+"
|
|
16
|
+
* },
|
|
17
|
+
* "ios": {
|
|
18
|
+
* "osVer": "9.0",
|
|
19
|
+
* "uniVer": "√",
|
|
20
|
+
* "unixVer": "x"
|
|
21
|
+
* }
|
|
22
|
+
* },
|
|
23
|
+
* "web": {
|
|
24
|
+
* "uniVer": "√",
|
|
25
|
+
* "unixVer": "4.0"
|
|
26
|
+
* }
|
|
23
27
|
* }
|
|
24
28
|
* @example
|
|
25
29
|
```typescript
|
|
@@ -42,20 +46,24 @@ export interface Uni {
|
|
|
42
46
|
* @param {void}
|
|
43
47
|
* @return {GetSystemInfoResult}
|
|
44
48
|
* @tutorial http://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
|
|
45
|
-
* @uniPlatform
|
|
46
|
-
* {
|
|
47
|
-
* "app": {
|
|
48
|
-
* "android": {
|
|
49
|
-
* "osVer": "
|
|
50
|
-
* "uniVer": "√",
|
|
51
|
-
* "unixVer": "3.9+"
|
|
52
|
-
* },
|
|
53
|
-
* "ios": {
|
|
54
|
-
* "osVer": "9.0",
|
|
55
|
-
* "uniVer": "√",
|
|
56
|
-
* "unixVer": "x"
|
|
57
|
-
* }
|
|
58
|
-
* }
|
|
49
|
+
* @uniPlatform
|
|
50
|
+
* {
|
|
51
|
+
* "app": {
|
|
52
|
+
* "android": {
|
|
53
|
+
* "osVer": "5.0",
|
|
54
|
+
* "uniVer": "√",
|
|
55
|
+
* "unixVer": "3.9+"
|
|
56
|
+
* },
|
|
57
|
+
* "ios": {
|
|
58
|
+
* "osVer": "9.0",
|
|
59
|
+
* "uniVer": "√",
|
|
60
|
+
* "unixVer": "x"
|
|
61
|
+
* }
|
|
62
|
+
* },
|
|
63
|
+
* "web": {
|
|
64
|
+
* "uniVer": "√",
|
|
65
|
+
* "unixVer": "4.0"
|
|
66
|
+
* }
|
|
59
67
|
* }
|
|
60
68
|
* @example
|
|
61
69
|
```typescript
|
|
@@ -71,20 +79,24 @@ export interface Uni {
|
|
|
71
79
|
* @param {void}
|
|
72
80
|
* @return {GetWindowInfoResult} result
|
|
73
81
|
* @tutorial http://uniapp.dcloud.io/api/system/getWindowInfo.html
|
|
74
|
-
* @uniPlatform
|
|
75
|
-
* {
|
|
76
|
-
* "app": {
|
|
77
|
-
* "android": {
|
|
78
|
-
* "osVer": "
|
|
79
|
-
* "uniVer": "√",
|
|
80
|
-
* "unixVer": "3.9+"
|
|
81
|
-
* },
|
|
82
|
-
* "ios": {
|
|
83
|
-
* "osVer": "9.0",
|
|
84
|
-
* "uniVer": "√",
|
|
85
|
-
* "unixVer": "x"
|
|
86
|
-
* }
|
|
87
|
-
* }
|
|
82
|
+
* @uniPlatform
|
|
83
|
+
* {
|
|
84
|
+
* "app": {
|
|
85
|
+
* "android": {
|
|
86
|
+
* "osVer": "5.0",
|
|
87
|
+
* "uniVer": "√",
|
|
88
|
+
* "unixVer": "3.9+"
|
|
89
|
+
* },
|
|
90
|
+
* "ios": {
|
|
91
|
+
* "osVer": "9.0",
|
|
92
|
+
* "uniVer": "√",
|
|
93
|
+
* "unixVer": "x"
|
|
94
|
+
* }
|
|
95
|
+
* },
|
|
96
|
+
* "web": {
|
|
97
|
+
* "uniVer": "√",
|
|
98
|
+
* "unixVer": "4.0"
|
|
99
|
+
* }
|
|
88
100
|
* }
|
|
89
101
|
* @example
|
|
90
102
|
```typescript
|
|
@@ -169,20 +181,20 @@ export type GetSystemInfoResult = {
|
|
|
169
181
|
/**
|
|
170
182
|
* 应用资源(wgt)的版本名称。
|
|
171
183
|
*
|
|
172
|
-
* @uniPlatform
|
|
173
|
-
* {
|
|
174
|
-
* "app": {
|
|
175
|
-
* "android": {
|
|
176
|
-
* "osVer": "
|
|
177
|
-
* "uniVer": "√",
|
|
178
|
-
* "unixVer": "x"
|
|
179
|
-
* },
|
|
180
|
-
* "ios": {
|
|
181
|
-
* "osVer": "9.0",
|
|
182
|
-
* "uniVer": "√",
|
|
183
|
-
* "unixVer": "x"
|
|
184
|
-
* }
|
|
185
|
-
* }
|
|
184
|
+
* @uniPlatform
|
|
185
|
+
* {
|
|
186
|
+
* "app": {
|
|
187
|
+
* "android": {
|
|
188
|
+
* "osVer": "5.0",
|
|
189
|
+
* "uniVer": "√",
|
|
190
|
+
* "unixVer": "x"
|
|
191
|
+
* },
|
|
192
|
+
* "ios": {
|
|
193
|
+
* "osVer": "9.0",
|
|
194
|
+
* "uniVer": "√",
|
|
195
|
+
* "unixVer": "x"
|
|
196
|
+
* }
|
|
197
|
+
* }
|
|
186
198
|
* }
|
|
187
199
|
*/
|
|
188
200
|
appWgtVersion?: string | null,
|
|
@@ -246,20 +258,20 @@ export type GetSystemInfoResult = {
|
|
|
246
258
|
/**
|
|
247
259
|
* 操作系统主题
|
|
248
260
|
*
|
|
249
|
-
* @uniPlatform
|
|
250
|
-
* {
|
|
251
|
-
* "app": {
|
|
252
|
-
* "android": {
|
|
253
|
-
* "osVer": "
|
|
254
|
-
* "uniVer": "√",
|
|
255
|
-
* "unixVer": "√"
|
|
256
|
-
* },
|
|
257
|
-
* "ios": {
|
|
258
|
-
* "osVer": "9.0",
|
|
259
|
-
* "uniVer": "√",
|
|
260
|
-
* "unixVer": "x"
|
|
261
|
-
* }
|
|
262
|
-
* }
|
|
261
|
+
* @uniPlatform
|
|
262
|
+
* {
|
|
263
|
+
* "app": {
|
|
264
|
+
* "android": {
|
|
265
|
+
* "osVer": "5.0",
|
|
266
|
+
* "uniVer": "√",
|
|
267
|
+
* "unixVer": "√"
|
|
268
|
+
* },
|
|
269
|
+
* "ios": {
|
|
270
|
+
* "osVer": "9.0",
|
|
271
|
+
* "uniVer": "√",
|
|
272
|
+
* "unixVer": "x"
|
|
273
|
+
* }
|
|
274
|
+
* }
|
|
263
275
|
* }
|
|
264
276
|
*/
|
|
265
277
|
osTheme?: 'light' | 'dark' | null,
|
|
@@ -298,11 +310,11 @@ export type GetSystemInfoResult = {
|
|
|
298
310
|
/**
|
|
299
311
|
* 用户标识。小程序端为空
|
|
300
312
|
*/
|
|
301
|
-
ua: string,
|
|
302
|
-
/**
|
|
303
|
-
* uni 编译器版本
|
|
304
|
-
* @deprecated 已废弃,仅为了向下兼容保留
|
|
305
|
-
*/
|
|
313
|
+
ua: string,
|
|
314
|
+
/**
|
|
315
|
+
* uni 编译器版本
|
|
316
|
+
* @deprecated 已废弃,仅为了向下兼容保留
|
|
317
|
+
*/
|
|
306
318
|
uniCompileVersion: string,
|
|
307
319
|
/**
|
|
308
320
|
* uni 编译器版本
|
|
@@ -315,11 +327,11 @@ export type GetSystemInfoResult = {
|
|
|
315
327
|
/**
|
|
316
328
|
* uni 运行时版本
|
|
317
329
|
*/
|
|
318
|
-
uniRuntimeVersion: string,
|
|
319
|
-
/**
|
|
320
|
-
* uni 编译器版本号
|
|
321
|
-
* @deprecated 已废弃,仅为了向下兼容保留
|
|
322
|
-
*/
|
|
330
|
+
uniRuntimeVersion: string,
|
|
331
|
+
/**
|
|
332
|
+
* uni 编译器版本号
|
|
333
|
+
* @deprecated 已废弃,仅为了向下兼容保留
|
|
334
|
+
*/
|
|
323
335
|
uniCompileVersionCode: number,
|
|
324
336
|
/**
|
|
325
337
|
* uni 编译器版本号
|
|
@@ -361,20 +373,20 @@ export type GetSystemInfoResult = {
|
|
|
361
373
|
/**
|
|
362
374
|
* Android 系统API库的版本。
|
|
363
375
|
*
|
|
364
|
-
* @uniPlatform
|
|
365
|
-
* {
|
|
366
|
-
* "app": {
|
|
367
|
-
* "android": {
|
|
368
|
-
* "osVer": "
|
|
369
|
-
* "uniVer": "√",
|
|
370
|
-
* "unixVer": "√"
|
|
371
|
-
* },
|
|
372
|
-
* "ios": {
|
|
373
|
-
* "osVer": "x",
|
|
374
|
-
* "uniVer": "x",
|
|
375
|
-
* "unixVer": "x"
|
|
376
|
-
* }
|
|
377
|
-
* }
|
|
376
|
+
* @uniPlatform
|
|
377
|
+
* {
|
|
378
|
+
* "app": {
|
|
379
|
+
* "android": {
|
|
380
|
+
* "osVer": "5.0",
|
|
381
|
+
* "uniVer": "√",
|
|
382
|
+
* "unixVer": "√"
|
|
383
|
+
* },
|
|
384
|
+
* "ios": {
|
|
385
|
+
* "osVer": "x",
|
|
386
|
+
* "uniVer": "x",
|
|
387
|
+
* "unixVer": "x"
|
|
388
|
+
* }
|
|
389
|
+
* }
|
|
378
390
|
* }
|
|
379
391
|
*/
|
|
380
392
|
osAndroidAPILevel?: number | null
|
|
@@ -8,7 +8,7 @@ export interface Uni {
|
|
|
8
8
|
* @uniPlatform {
|
|
9
9
|
* "app": {
|
|
10
10
|
* "android": {
|
|
11
|
-
* "osVer": "
|
|
11
|
+
* "osVer": "5.0",
|
|
12
12
|
* "uniVer": "3.94+",
|
|
13
13
|
* "unixVer": "3.94+"
|
|
14
14
|
* },
|
|
@@ -17,7 +17,11 @@ export interface Uni {
|
|
|
17
17
|
* "uniVer": "x",
|
|
18
18
|
* "unixVer": "x"
|
|
19
19
|
* }
|
|
20
|
-
* }
|
|
20
|
+
* },
|
|
21
|
+
* "web": {
|
|
22
|
+
* "uniVer": "x",
|
|
23
|
+
* "unixVer": "x"
|
|
24
|
+
* }
|
|
21
25
|
* }
|
|
22
26
|
* @example
|
|
23
27
|
```typescript
|
|
@@ -91,7 +91,7 @@ export type ChooseImageOptions = {
|
|
|
91
91
|
* @uniPlatform {
|
|
92
92
|
* "app": {
|
|
93
93
|
* "android": {
|
|
94
|
-
* "osVer": "
|
|
94
|
+
* "osVer": "5.0",
|
|
95
95
|
* "uniVer": "√",
|
|
96
96
|
* "unixVer": "x"
|
|
97
97
|
* }
|
|
@@ -619,7 +619,11 @@ export interface Uni {
|
|
|
619
619
|
* "uniVer": "√",
|
|
620
620
|
* "unixVer": "3.9+"
|
|
621
621
|
* }
|
|
622
|
-
* }
|
|
622
|
+
* },
|
|
623
|
+
* "web": {
|
|
624
|
+
* "uniVer": "√",
|
|
625
|
+
* "unixVer": "4.0"
|
|
626
|
+
* }
|
|
623
627
|
* }
|
|
624
628
|
* @uniVueVersion 2,3
|
|
625
629
|
* @example
|
|
@@ -647,7 +651,11 @@ export interface Uni {
|
|
|
647
651
|
* "uniVer": "√",
|
|
648
652
|
* "unixVer": "3.9+"
|
|
649
653
|
* }
|
|
650
|
-
* }
|
|
654
|
+
* },
|
|
655
|
+
* "web": {
|
|
656
|
+
* "uniVer": "√",
|
|
657
|
+
* "unixVer": "4.0"
|
|
658
|
+
* }
|
|
651
659
|
* }
|
|
652
660
|
* @uniVueVersion 2,3
|
|
653
661
|
* @example
|