@dcloudio/uni-app-x 0.7.44 → 0.7.45
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/native/IUniElement.d.ts +3 -1
- package/types/native/UniNativePage.d.ts +3 -20
- package/types/native/UniPageBody.d.ts +110 -0
- 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-arrayBufferToBase64/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +30 -30
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +615 -76
- package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/global.d.ts +18 -0
- package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +277 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +84 -87
package/package.json
CHANGED
|
@@ -1811,6 +1811,8 @@ export interface UniElement {
|
|
|
1811
1811
|
|
|
1812
1812
|
/**
|
|
1813
1813
|
* 创建一个新的动画并应用于元素,然后立即执行动画。
|
|
1814
|
+
* @param {any} keyframes 关键帧对象数组或一个关键帧对象。
|
|
1815
|
+
* @param {any} options 动画属性配置。
|
|
1814
1816
|
* @uniPlatform {
|
|
1815
1817
|
* "app": {
|
|
1816
1818
|
* "android": {
|
|
@@ -1837,7 +1839,7 @@ export interface UniElement {
|
|
|
1837
1839
|
* }
|
|
1838
1840
|
* }
|
|
1839
1841
|
*/
|
|
1840
|
-
animate(keyframes : any, options :
|
|
1842
|
+
animate(keyframes : any, options : any) : UniAnimation | null
|
|
1841
1843
|
}
|
|
1842
1844
|
|
|
1843
1845
|
export type INode = UniElement
|
|
@@ -6,6 +6,7 @@ import { NativeLoadFontFaceOptions } from "./NativeLoadFontFaceOptions"
|
|
|
6
6
|
import { UniCallbackWrapper } from "./UniCallbackWrapper"
|
|
7
7
|
import { ViewToTempFilePathOptions } from "./ViewToTempFilePathOptions"
|
|
8
8
|
import { UniSafeAreaInsets } from "./UniSafeAreaInsets"
|
|
9
|
+
import { UniPageBody } from "./UniPageBody"
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* @package io.dcloud.uniapp.runtime
|
|
@@ -27,7 +28,7 @@ export interface UniNativePage {
|
|
|
27
28
|
*/
|
|
28
29
|
readonly document: UniDocument
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
31
|
+
* 页面内容区域信息
|
|
31
32
|
* @uniPlatform {
|
|
32
33
|
* "app": {
|
|
33
34
|
* "android": {
|
|
@@ -43,25 +44,7 @@ export interface UniNativePage {
|
|
|
43
44
|
* }
|
|
44
45
|
* }
|
|
45
46
|
*/
|
|
46
|
-
readonly
|
|
47
|
-
/**
|
|
48
|
-
* 可使用窗口高度
|
|
49
|
-
* @uniPlatform {
|
|
50
|
-
* "app": {
|
|
51
|
-
* "android": {
|
|
52
|
-
* "osVer": "5.0",
|
|
53
|
-
* "uniVer": "x",
|
|
54
|
-
* "unixVer": "4.51"
|
|
55
|
-
* },
|
|
56
|
-
* "ios": {
|
|
57
|
-
* "osVer": "12.0",
|
|
58
|
-
* "uniVer": "x",
|
|
59
|
-
* "unixVer": "4.51"
|
|
60
|
-
* }
|
|
61
|
-
* }
|
|
62
|
-
* }
|
|
63
|
-
*/
|
|
64
|
-
readonly innerHeight: number
|
|
47
|
+
readonly pageBody: UniPageBody
|
|
65
48
|
/**
|
|
66
49
|
* 安全区域插入位置(与屏幕边界的距离)信息
|
|
67
50
|
* @uniPlatform {
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export type UniPageBody = {
|
|
2
|
+
/**
|
|
3
|
+
* 页面内容区域左上角横坐标
|
|
4
|
+
* @uniPlatform {
|
|
5
|
+
* "app": {
|
|
6
|
+
* "android": {
|
|
7
|
+
* "osVer": "5.0",
|
|
8
|
+
* "uniVer": "x",
|
|
9
|
+
* "unixVer": "4.51"
|
|
10
|
+
* },
|
|
11
|
+
* "ios": {
|
|
12
|
+
* "osVer": "12.0",
|
|
13
|
+
* "uniVer": "x",
|
|
14
|
+
* "unixVer": "4.51"
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
*/
|
|
19
|
+
readonly left: number
|
|
20
|
+
/**
|
|
21
|
+
* 页面内容区域右下角横坐标
|
|
22
|
+
* @uniPlatform {
|
|
23
|
+
* "app": {
|
|
24
|
+
* "android": {
|
|
25
|
+
* "osVer": "5.0",
|
|
26
|
+
* "uniVer": "x",
|
|
27
|
+
* "unixVer": "4.51"
|
|
28
|
+
* },
|
|
29
|
+
* "ios": {
|
|
30
|
+
* "osVer": "12.0",
|
|
31
|
+
* "uniVer": "x",
|
|
32
|
+
* "unixVer": "4.51"
|
|
33
|
+
* }
|
|
34
|
+
* }
|
|
35
|
+
* }
|
|
36
|
+
*/
|
|
37
|
+
readonly right: number
|
|
38
|
+
/**
|
|
39
|
+
* 页面内容区域左上角纵坐标
|
|
40
|
+
* @uniPlatform {
|
|
41
|
+
* "app": {
|
|
42
|
+
* "android": {
|
|
43
|
+
* "osVer": "5.0",
|
|
44
|
+
* "uniVer": "x",
|
|
45
|
+
* "unixVer": "4.51"
|
|
46
|
+
* },
|
|
47
|
+
* "ios": {
|
|
48
|
+
* "osVer": "12.0",
|
|
49
|
+
* "uniVer": "x",
|
|
50
|
+
* "unixVer": "4.51"
|
|
51
|
+
* }
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
*/
|
|
55
|
+
readonly top: number
|
|
56
|
+
/**
|
|
57
|
+
* 页面内容区域右下角纵坐标
|
|
58
|
+
* @uniPlatform {
|
|
59
|
+
* "app": {
|
|
60
|
+
* "android": {
|
|
61
|
+
* "osVer": "5.0",
|
|
62
|
+
* "uniVer": "x",
|
|
63
|
+
* "unixVer": "4.51"
|
|
64
|
+
* },
|
|
65
|
+
* "ios": {
|
|
66
|
+
* "osVer": "12.0",
|
|
67
|
+
* "uniVer": "x",
|
|
68
|
+
* "unixVer": "4.51"
|
|
69
|
+
* }
|
|
70
|
+
* }
|
|
71
|
+
* }
|
|
72
|
+
*/
|
|
73
|
+
readonly bottom: number
|
|
74
|
+
/**
|
|
75
|
+
* 页面内容区域宽度
|
|
76
|
+
* @uniPlatform {
|
|
77
|
+
* "app": {
|
|
78
|
+
* "android": {
|
|
79
|
+
* "osVer": "5.0",
|
|
80
|
+
* "uniVer": "x",
|
|
81
|
+
* "unixVer": "4.51"
|
|
82
|
+
* },
|
|
83
|
+
* "ios": {
|
|
84
|
+
* "osVer": "12.0",
|
|
85
|
+
* "uniVer": "x",
|
|
86
|
+
* "unixVer": "4.51"
|
|
87
|
+
* }
|
|
88
|
+
* }
|
|
89
|
+
* }
|
|
90
|
+
*/
|
|
91
|
+
readonly width: number
|
|
92
|
+
/**
|
|
93
|
+
* 页面内容区域高度
|
|
94
|
+
* @uniPlatform {
|
|
95
|
+
* "app": {
|
|
96
|
+
* "android": {
|
|
97
|
+
* "osVer": "5.0",
|
|
98
|
+
* "uniVer": "x",
|
|
99
|
+
* "unixVer": "4.51"
|
|
100
|
+
* },
|
|
101
|
+
* "ios": {
|
|
102
|
+
* "osVer": "12.0",
|
|
103
|
+
* "uniVer": "x",
|
|
104
|
+
* "unixVer": "4.51"
|
|
105
|
+
* }
|
|
106
|
+
* }
|
|
107
|
+
* }
|
|
108
|
+
*/
|
|
109
|
+
readonly height: number
|
|
110
|
+
}
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
/// <reference path='./lib/uni-rpx2px/utssdk/global.d.ts' />
|
|
62
62
|
/// <reference path='./lib/uni-scanCode/utssdk/global.d.ts' />
|
|
63
63
|
/// <reference path='./lib/uni-shareWithSystem/utssdk/global.d.ts' />
|
|
64
|
+
/// <reference path='./lib/uni-sse/utssdk/global.d.ts' />
|
|
64
65
|
/// <reference path='./lib/uni-storage/utssdk/global.d.ts' />
|
|
65
66
|
/// <reference path='./lib/uni-tabBar/utssdk/global.d.ts' />
|
|
66
67
|
/// <reference path='./lib/uni-theme/utssdk/global.d.ts' />
|
|
@@ -61,6 +61,7 @@ export * from './lib/uni-route/utssdk'
|
|
|
61
61
|
export * from './lib/uni-rpx2px/utssdk'
|
|
62
62
|
export * from './lib/uni-scanCode/utssdk'
|
|
63
63
|
export * from './lib/uni-shareWithSystem/utssdk'
|
|
64
|
+
export * from './lib/uni-sse/utssdk'
|
|
64
65
|
export * from './lib/uni-storage/utssdk'
|
|
65
66
|
export * from './lib/uni-tabBar/utssdk'
|
|
66
67
|
export * from './lib/uni-theme/utssdk'
|
|
@@ -218,7 +218,7 @@ export type ChooseMediaOptions = {
|
|
|
218
218
|
count ?: number | null
|
|
219
219
|
/**
|
|
220
220
|
* album 从相册选视频,camera 使用相机拍摄,合法值:'image'、'video'、'mix'
|
|
221
|
-
* @defaultValue ['image', 'video']
|
|
221
|
+
* @defaultValue ['image', 'video']
|
|
222
222
|
* @uniPlatform {
|
|
223
223
|
* "app": {
|
|
224
224
|
* "android": {
|
|
@@ -241,7 +241,7 @@ export type ChooseMediaOptions = {
|
|
|
241
241
|
mediaType ?: (string[]) | null,
|
|
242
242
|
/**
|
|
243
243
|
* album 从相册选视频,camera 使用相机拍摄
|
|
244
|
-
* @defaultValue ['album', 'camera']
|
|
244
|
+
* @defaultValue ['album', 'camera']
|
|
245
245
|
* @uniPlatform {
|
|
246
246
|
* "app": {
|
|
247
247
|
* "android": {
|
|
@@ -680,6 +680,6 @@ export interface Uni {
|
|
|
680
680
|
* }
|
|
681
681
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html
|
|
682
682
|
*/
|
|
683
|
-
chooseMedia :
|
|
683
|
+
chooseMedia(options : ChooseMediaOptions) : void;
|
|
684
684
|
|
|
685
685
|
}
|
|
@@ -3,33 +3,33 @@
|
|
|
3
3
|
export type GetAccessibilityInfo = () => UTSJSONObject;
|
|
4
4
|
|
|
5
5
|
export interface Uni {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
6
|
+
/**
|
|
7
|
+
* 获取无障碍服务信息
|
|
8
|
+
* @uniPlatform
|
|
9
|
+
* {
|
|
10
|
+
* "app": {
|
|
11
|
+
* "android": {
|
|
12
|
+
* "osVer": "5.0",
|
|
13
|
+
* "uniVer": "x",
|
|
14
|
+
* "unixVer": "3.9+"
|
|
15
|
+
* },
|
|
16
|
+
* "ios": {
|
|
17
|
+
* "osVer": "x",
|
|
18
|
+
* "uniVer": "x",
|
|
19
|
+
* "unixVer": "x"
|
|
20
|
+
* },
|
|
21
|
+
* "harmony": {
|
|
22
|
+
* "osVer": "x",
|
|
23
|
+
* "uniVer": "x",
|
|
24
|
+
* "unixVer": "x"
|
|
25
|
+
* }
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
28
|
+
* @example
|
|
29
|
+
```typescript
|
|
30
|
+
uni.getAccessibilityInfo()
|
|
31
|
+
```
|
|
32
|
+
* @return {object}
|
|
33
|
+
*/
|
|
34
|
+
getAccessibilityInfo() : UTSJSONObject;
|
|
35
|
+
}
|
|
@@ -4942,7 +4942,7 @@ export type ChooseFileSuccess = {
|
|
|
4942
4942
|
*/
|
|
4943
4943
|
tempFilePaths: string[],
|
|
4944
4944
|
/**
|
|
4945
|
-
* 文件的本地文件列表,每一项是一个 File
|
|
4945
|
+
* 文件的本地文件列表,每一项是一个 File 对象
|
|
4946
4946
|
* @type ChooseFileSuccessCallbackResultFile | ChooseFileSuccessCallbackResultFile [] | File | File []
|
|
4947
4947
|
*/
|
|
4948
4948
|
tempFiles: ChooseFileTempFile[],
|
|
@@ -4973,7 +4973,7 @@ export type ChooseFileOptions = {
|
|
|
4973
4973
|
*/
|
|
4974
4974
|
count?: number | null,
|
|
4975
4975
|
/**
|
|
4976
|
-
* 选择文件的类型,默认all,可选
|
|
4976
|
+
* 选择文件的类型,默认all,可选
|
|
4977
4977
|
* - image: 选择图片文件
|
|
4978
4978
|
* - video: 选择视频文件
|
|
4979
4979
|
* - audio: 选择音频文件
|
|
@@ -5953,5 +5953,5 @@ export interface Uni {
|
|
|
5953
5953
|
* }
|
|
5954
5954
|
* }
|
|
5955
5955
|
*/
|
|
5956
|
-
chooseFile:
|
|
5956
|
+
chooseFile(options: ChooseFileOptions): void;
|
|
5957
5957
|
}
|