@dcloudio/uni-app-x 0.7.5 → 0.7.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/package.json +1 -1
- package/types/native/UniEvent.d.ts +11 -3
- package/types/native/UniForm.d.ts +8 -0
- package/types/native/index.d.ts +1 -0
- package/types/page.d.ts +7 -7
- package/types/uni/uts-plugin-api/global.d.ts +1 -1
- package/types/uni/uts-plugin-api/index.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-biz/global.d.ts +1 -1
- package/types/uni/uts-plugin-biz/index.d.ts +1 -1
- package/types/vue/UniFormElement.d.ts +2 -1
- package/uts-plugin.d.ts +6 -6
package/package.json
CHANGED
|
@@ -16,6 +16,14 @@ export class UniEvent {
|
|
|
16
16
|
* @param {string} eventInit 事件初始参数。支持字段:`bubbles`表明该事件是否冒泡。可选,默认为false;`cancelable`表明该事件是否可以被取消。可选,默认为false。
|
|
17
17
|
*/
|
|
18
18
|
constructor (type: string, eventInit: UTSJSONObject)
|
|
19
|
+
/**
|
|
20
|
+
* 是否冒泡
|
|
21
|
+
*/
|
|
22
|
+
bubbles: boolean
|
|
23
|
+
/**
|
|
24
|
+
* 是否可以取消
|
|
25
|
+
*/
|
|
26
|
+
cancelable: boolean
|
|
19
27
|
/**
|
|
20
28
|
* 事件类型
|
|
21
29
|
*/
|
|
@@ -42,9 +50,9 @@ export class UniEvent {
|
|
|
42
50
|
preventDefault(): void
|
|
43
51
|
}
|
|
44
52
|
|
|
45
|
-
export class UniKeyEvent extends UniEvent{
|
|
46
|
-
readonly keyCode:number
|
|
47
|
-
readonly keyType:string
|
|
53
|
+
export class UniKeyEvent extends UniEvent {
|
|
54
|
+
readonly keyCode: number
|
|
55
|
+
readonly keyType: string
|
|
48
56
|
}
|
|
49
57
|
|
|
50
58
|
export type Event = UniEvent
|
package/types/native/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export * from './UniImageLoadEvent'
|
|
|
42
42
|
export * from './UniImageErrorEvent'
|
|
43
43
|
export * from './UniFormControlElement'
|
|
44
44
|
export * from './UniFormControl'
|
|
45
|
+
export * from './UniForm'
|
|
45
46
|
export * from './UniEvent'
|
|
46
47
|
export * from './UniError'
|
|
47
48
|
export * from './UniElement'
|
package/types/page.d.ts
CHANGED
|
@@ -845,7 +845,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
845
845
|
* },
|
|
846
846
|
* "web": {
|
|
847
847
|
* "uniVer": "x",
|
|
848
|
-
* "unixVer": "
|
|
848
|
+
* "unixVer": "x"
|
|
849
849
|
* }
|
|
850
850
|
*}
|
|
851
851
|
*/
|
|
@@ -913,7 +913,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
913
913
|
* },
|
|
914
914
|
* "web": {
|
|
915
915
|
* "uniVer": "x",
|
|
916
|
-
* "unixVer": "
|
|
916
|
+
* "unixVer": "x"
|
|
917
917
|
* }
|
|
918
918
|
*}
|
|
919
919
|
*/
|
|
@@ -981,7 +981,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
981
981
|
* },
|
|
982
982
|
* "web": {
|
|
983
983
|
* "uniVer": "x",
|
|
984
|
-
* "unixVer": "
|
|
984
|
+
* "unixVer": "x"
|
|
985
985
|
* }
|
|
986
986
|
*}
|
|
987
987
|
*/
|
|
@@ -1251,7 +1251,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1251
1251
|
* },
|
|
1252
1252
|
* "web": {
|
|
1253
1253
|
* "uniVer": "√",
|
|
1254
|
-
* "unixVer": "
|
|
1254
|
+
* "unixVer": "x"
|
|
1255
1255
|
* }
|
|
1256
1256
|
*}
|
|
1257
1257
|
*/
|
|
@@ -1385,7 +1385,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1385
1385
|
* },
|
|
1386
1386
|
* "web": {
|
|
1387
1387
|
* "uniVer": "√",
|
|
1388
|
-
* "unixVer": "
|
|
1388
|
+
* "unixVer": "x"
|
|
1389
1389
|
* }
|
|
1390
1390
|
*}
|
|
1391
1391
|
*/
|
|
@@ -1451,7 +1451,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1451
1451
|
* },
|
|
1452
1452
|
* "web": {
|
|
1453
1453
|
* "uniVer": "√",
|
|
1454
|
-
* "unixVer": "
|
|
1454
|
+
* "unixVer": "x"
|
|
1455
1455
|
* }
|
|
1456
1456
|
*}
|
|
1457
1457
|
*/
|
|
@@ -1517,7 +1517,7 @@ interface PageInstance<D extends AnyObject = any, T extends AnyObject = any> ext
|
|
|
1517
1517
|
* },
|
|
1518
1518
|
* "web": {
|
|
1519
1519
|
* "uniVer": "√",
|
|
1520
|
-
* "unixVer": "
|
|
1520
|
+
* "unixVer": "x"
|
|
1521
1521
|
* }
|
|
1522
1522
|
*}
|
|
1523
1523
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference path='./lib/uni-websocket/utssdk/global.d.ts' />
|
|
2
1
|
/// <reference path='./lib/uni-storage/utssdk/global.d.ts' />
|
|
2
|
+
/// <reference path='./lib/uni-websocket/utssdk/global.d.ts' />
|
|
3
3
|
/// <reference path='./lib/uni-prompt/utssdk/global.d.ts' />
|
|
4
4
|
/// <reference path='./lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts' />
|
|
5
5
|
/// <reference path='./lib/uni-network/utssdk/global.d.ts' />
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './lib/uni-websocket/utssdk'
|
|
2
1
|
export * from './lib/uni-storage/utssdk'
|
|
2
|
+
export * from './lib/uni-websocket/utssdk'
|
|
3
3
|
export * from './lib/uni-prompt/utssdk'
|
|
4
4
|
export * from './lib/uni-openAppAuthorizeSetting/utssdk'
|
|
5
5
|
export * from './lib/uni-network/utssdk'
|
package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts
CHANGED
|
@@ -5,17 +5,17 @@ export type RequestPermissionListenerCompleteCallback = (permissions : Array<str
|
|
|
5
5
|
export interface RequestPermissionListener {
|
|
6
6
|
/**
|
|
7
7
|
* 监听申请系统权限
|
|
8
|
-
* @param {RequestPermissionListenerRequestCallback} callback
|
|
8
|
+
* @param {RequestPermissionListenerRequestCallback} callback 申请系统权限回调,permissions为触发权限申请的所有权限
|
|
9
9
|
*/
|
|
10
10
|
onRequest(callback : RequestPermissionListenerRequestCallback) : void
|
|
11
11
|
/**
|
|
12
12
|
* 监听弹出系统权限授权框
|
|
13
|
-
* @param {RequestPermissionListenerConfirmCallback} callback
|
|
13
|
+
* @param {RequestPermissionListenerConfirmCallback} callback 弹出系统权限授权框回调,permissions为触发弹出权限授权框的所有权限
|
|
14
14
|
*/
|
|
15
15
|
onConfirm(callback : RequestPermissionListenerConfirmCallback) : void
|
|
16
16
|
/**
|
|
17
17
|
* 监听权限申请完成
|
|
18
|
-
* @param {RequestPermissionListenerCompleteCallback} callback
|
|
18
|
+
* @param {RequestPermissionListenerCompleteCallback} callback 权限申请完成回调,permissions为申请完成的所有权限
|
|
19
19
|
*/
|
|
20
20
|
onComplete(callback : RequestPermissionListenerCompleteCallback) : void
|
|
21
21
|
/**
|
|
@@ -282,7 +282,7 @@ export type GetFileInfoOptions = {
|
|
|
282
282
|
/**
|
|
283
283
|
* md5 / sha1
|
|
284
284
|
*/
|
|
285
|
-
digestAlgorithm: "md5" | "sha1" |null,
|
|
285
|
+
digestAlgorithm: "md5" | "sha1" | null,
|
|
286
286
|
/**
|
|
287
287
|
* 接口调用的回调函数
|
|
288
288
|
*/
|
|
@@ -303,19 +303,19 @@ export class Stats implements io.dcloud.uts.log.LogSelf,io.dcloud.uts.json.IJson
|
|
|
303
303
|
size: number = 0;
|
|
304
304
|
lastAccessedTime: number = 0;
|
|
305
305
|
lastModifiedTime: number = 0;
|
|
306
|
-
|
|
306
|
+
|
|
307
307
|
mIsFile:boolean = false
|
|
308
308
|
constructor(){
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
|
|
311
311
|
isDirectory():boolean{
|
|
312
312
|
return !this.mIsFile
|
|
313
313
|
}
|
|
314
|
-
|
|
314
|
+
|
|
315
315
|
isFile():boolean{
|
|
316
316
|
return this.mIsFile
|
|
317
317
|
}
|
|
318
|
-
|
|
318
|
+
|
|
319
319
|
override toLog():any|null{
|
|
320
320
|
return this.toJSON()
|
|
321
321
|
}
|
|
@@ -84,7 +84,7 @@ export type GetAppAuthorizeSettingResult = {
|
|
|
84
84
|
* - authorized: 已经获得授权,无需再次请求授权
|
|
85
85
|
* - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
|
|
86
86
|
* - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
|
|
87
|
-
* - config error: Android
|
|
87
|
+
* - config error: Android平台:表示没有配置 `android.permission.CAMERA` 权限,[权限配置详情](https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html#permissions);iOS平台没有该值
|
|
88
88
|
* @type 'authorized' | 'denied' | 'not determined' | 'config error'
|
|
89
89
|
*/
|
|
90
90
|
cameraAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error',
|
|
@@ -93,7 +93,7 @@ export type GetAppAuthorizeSettingResult = {
|
|
|
93
93
|
* - authorized: 已经获得授权,无需再次请求授权
|
|
94
94
|
* - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
|
|
95
95
|
* - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
|
|
96
|
-
* - config error: Android
|
|
96
|
+
* - config error: Android平台:表示没有配置 `android.permission.ACCESS_COARSE_LOCATION` 权限,[权限配置详情](https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html#permissions);iOS平台:表示没有在 `manifest.json -> App模块配置` 中配置 `Geolocation(定位)` 模块
|
|
97
97
|
* @type 'authorized' | 'denied' | 'not determined' | 'config error'
|
|
98
98
|
*/
|
|
99
99
|
locationAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error',
|
|
@@ -130,7 +130,7 @@ export type GetAppAuthorizeSettingResult = {
|
|
|
130
130
|
* - authorized: 已经获得授权,无需再次请求授权
|
|
131
131
|
* - denied: 请求授权被拒绝,无法再次请求授权;(此情况需要引导用户打开系统设置,在设置页中打开权限)
|
|
132
132
|
* - not determined: 尚未请求授权,会在App下一次调用系统相应权限时请求;(仅 iOS 会出现。此种情况下引导用户打开系统设置,不展示开关)
|
|
133
|
-
* - config error: Android
|
|
133
|
+
* - config error: Android平台:表示没有配置 `android.permission.RECORD_AUDIO` 权限,[权限配置详情](https://uniapp.dcloud.net.cn/tutorial/app-nativeresource-android.html#permissions);iOS平台没有该值
|
|
134
134
|
* @type 'authorized' | 'denied' | 'not determined' | 'config error'
|
|
135
135
|
*/
|
|
136
136
|
microphoneAuthorized: 'authorized' | 'denied' | 'not determined' | 'config error',
|
|
@@ -34,7 +34,7 @@ export interface Uni {
|
|
|
34
34
|
* }
|
|
35
35
|
*/
|
|
36
36
|
getLocation(options: GetLocationOptions):void;
|
|
37
|
-
|
|
37
|
+
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
|
|
@@ -108,7 +108,7 @@ export type GetLocationOptions = {
|
|
|
108
108
|
* 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于uni.openLocation的坐标,web端需配置定位 SDK 信息才可支持 gcj02
|
|
109
109
|
* @defaultValue wgs84
|
|
110
110
|
*/
|
|
111
|
-
type?: "
|
|
111
|
+
type?: "wgs84" | "gcj02" | "gps" | null,
|
|
112
112
|
/**
|
|
113
113
|
* 传入 true 会返回高度信息,由于获取高度需要较高精确度,会减慢接口返回速度
|
|
114
114
|
* @type boolean
|
|
@@ -27,9 +27,9 @@ export type ShowToastOptions = {
|
|
|
27
27
|
title: string,
|
|
28
28
|
/**
|
|
29
29
|
* 图标,有效值详见下方说明,默认:success。
|
|
30
|
-
* @description icon值说明 success: 显示成功图标,error: 显示错误图标; loading: 显示加载图标;none: 不显示图标。
|
|
30
|
+
* @description icon值说明 success: 显示成功图标,error: 显示错误图标; fail: 显示错误图标,此时title文本无长度显示; exception: 显示异常图标,此时title文本无长度显示; loading: 显示加载图标;none: 不显示图标。
|
|
31
31
|
*/
|
|
32
|
-
icon?: "success" | "error" | "loading" | "none" | null,
|
|
32
|
+
icon?: "success" | "error" | "fail" | "exception" | "loading" | "none" | null,
|
|
33
33
|
/**
|
|
34
34
|
* 自定义图标的本地路径(app端暂不支持gif)
|
|
35
35
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference path='./lib/uni-verify/utssdk/global.d.ts' />
|
|
2
1
|
/// <reference path='./lib/uni-push/utssdk/global.d.ts' />
|
|
3
2
|
/// <reference path='./lib/uni-facialRecognitionVerify/utssdk/global.d.ts' />
|
|
3
|
+
/// <reference path='./lib/uni-verify/utssdk/global.d.ts' />
|
|
4
4
|
/// <reference path='./lib/uni-ad/utssdk/global.d.ts' />
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference path="../native/UniElement.d.ts" />
|
|
2
2
|
/// <reference path="../native/UniCustomEvent.d.ts" />
|
|
3
|
+
/// <reference path="../native/UniForm.d.ts" />
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* @package io.dcloud.uniapp.framework
|
|
6
7
|
*/
|
|
7
|
-
interface UniFormElement extends UniElement {
|
|
8
|
+
interface UniFormElement extends UniElement, UniForm {
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
/**
|
package/uts-plugin.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference path='./types/uni/base/index.d.ts' />
|
|
2
|
-
/// <reference path='./types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/
|
|
3
|
-
/// <reference path='./types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/
|
|
4
|
-
/// <reference path='./types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/
|
|
5
|
-
/// <reference path='./types/uni/uts-plugin-api/lib/uni-network/utssdk/
|
|
6
|
-
/// <reference path='./types/uni/uts-plugin-api/lib/uni-prompt/utssdk/
|
|
7
|
-
/// <reference path='./types/uni/uts-plugin-api/lib/uni-storage/utssdk/
|
|
2
|
+
/// <reference path='./types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts' />
|
|
3
|
+
/// <reference path='./types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts' />
|
|
4
|
+
/// <reference path='./types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts' />
|
|
5
|
+
/// <reference path='./types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts' />
|
|
6
|
+
/// <reference path='./types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts' />
|
|
7
|
+
/// <reference path='./types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts' />
|
|
8
8
|
|
|
9
9
|
import {
|
|
10
10
|
UniError as UniErrorOrigin,
|