@dcloudio/uni-app-x 0.7.15 → 0.7.17
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/CanvasRenderingContext2D.d.ts +1715 -48
- package/types/native/IUniElement.d.ts +242 -13
- package/types/native/IUniObjectElement.d.ts +124 -0
- package/types/native/Path2D.d.ts +231 -64
- package/types/native/UniApp.d.ts +110 -0
- package/types/native/UniElement.d.ts +4 -0
- package/types/native/UniNativePage.d.ts +21 -0
- package/types/native/UniProvider.d.ts +1 -0
- package/types/native/UniVideoElement.d.ts +5 -0
- package/types/native/global.d.ts +53 -16
- package/types/native/index.d.ts +1 -0
- package/types/uni/env/index.d.ts +18 -0
- 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-addPhoneContact/utssdk/global.d.ts +26 -0
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -0
- package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/interface.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +268 -0
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +5 -1
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -0
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1335 -0
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -0
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -0
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -0
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +47 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +393 -2
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +114 -41
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +201 -14
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +15 -0
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +179 -0
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +145 -2
- package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/global.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/interface.d.ts +28 -0
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +0 -64
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -0
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -0
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1068 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +8 -8
- package/types/uni/uts-plugin-extend/global.d.ts +1 -0
- package/types/uni/uts-plugin-extend/index.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -0
- package/types/uni-cloud/unicloud-db/index.ts +3 -3
- package/types/vue/CheckboxGroupChangeEvent.d.ts +9 -1
- package/types/vue/PickerViewChangeEvent.d.ts +8 -0
- package/types/vue/ProgressActiveendEvent.d.ts +4 -0
- package/types/vue/RadioGroupChangeEvent.d.ts +9 -1
- package/types/vue/SliderChangeEvent.d.ts +4 -0
- package/types/vue/SwitchChangeEvent.d.ts +5 -1
- package/types/vue/UniCanvasElement.d.ts +6 -1
- package/types/vue/UniCloudDBElement.d.ts +5 -0
- package/types/vue/UniFormElement.d.ts +6 -1
- package/types/vue/UniNavigatorElement.d.ts +5 -0
- package/types/vue/global.d.ts +10 -9
- package/types/uni-cloud/unicloud-db/index.d.ts +0 -81
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/// <reference path='./lib/uni-websocket/utssdk/global.d.ts' />
|
|
2
|
+
/// <reference path='./lib/uni-virtualPayment/utssdk/global.d.ts' />
|
|
2
3
|
/// <reference path='./lib/uni-theme/utssdk/global.d.ts' />
|
|
3
4
|
/// <reference path='./lib/uni-tabBar/utssdk/global.d.ts' />
|
|
4
5
|
/// <reference path='./lib/uni-storage/utssdk/global.d.ts' />
|
|
5
6
|
/// <reference path='./lib/uni-scanCode/utssdk/global.d.ts' />
|
|
6
7
|
/// <reference path='./lib/uni-rpx2px/utssdk/global.d.ts' />
|
|
7
8
|
/// <reference path='./lib/uni-route/utssdk/global.d.ts' />
|
|
9
|
+
/// <reference path='./lib/uni-requestAnimationFrame/utssdk/global.d.ts' />
|
|
8
10
|
/// <reference path='./lib/uni-pullDownRefresh/utssdk/global.d.ts' />
|
|
9
11
|
/// <reference path='./lib/uni-prompt/utssdk/global.d.ts' />
|
|
10
12
|
/// <reference path='./lib/uni-payment-wxpay/utssdk/global.d.ts' />
|
|
@@ -30,18 +32,24 @@
|
|
|
30
32
|
/// <reference path='./lib/uni-getLocation-system/utssdk/global.d.ts' />
|
|
31
33
|
/// <reference path='./lib/uni-getLocation/utssdk/global.d.ts' />
|
|
32
34
|
/// <reference path='./lib/uni-getLaunchOptionsSync/utssdk/global.d.ts' />
|
|
35
|
+
/// <reference path='./lib/uni-getEnterOptionsSync/utssdk/global.d.ts' />
|
|
33
36
|
/// <reference path='./lib/uni-getElementById/utssdk/global.d.ts' />
|
|
34
37
|
/// <reference path='./lib/uni-getDeviceInfo/utssdk/global.d.ts' />
|
|
35
38
|
/// <reference path='./lib/uni-getAppBaseInfo/utssdk/global.d.ts' />
|
|
36
39
|
/// <reference path='./lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts' />
|
|
37
40
|
/// <reference path='./lib/uni-getAccessibilityInfo/utssdk/global.d.ts' />
|
|
38
41
|
/// <reference path='./lib/uni-fileSystemManager/utssdk/global.d.ts' />
|
|
42
|
+
/// <reference path='./lib/uni-file/utssdk/global.d.ts' />
|
|
39
43
|
/// <reference path='./lib/uni-exit/utssdk/global.d.ts' />
|
|
40
44
|
/// <reference path='./lib/uni-event/utssdk/global.d.ts' />
|
|
45
|
+
/// <reference path='./lib/uni-dialogPage/utssdk/global.d.ts' />
|
|
41
46
|
/// <reference path='./lib/uni-createWebviewContext/utssdk/global.d.ts' />
|
|
42
47
|
/// <reference path='./lib/uni-createSelectorQuery/utssdk/global.d.ts' />
|
|
43
48
|
/// <reference path='./lib/uni-createRequestPermissionListener/utssdk/global.d.ts' />
|
|
44
49
|
/// <reference path='./lib/uni-createIntersectionObserver/utssdk/global.d.ts' />
|
|
45
50
|
/// <reference path='./lib/uni-clipboard/utssdk/global.d.ts' />
|
|
51
|
+
/// <reference path='./lib/uni-canvas/utssdk/global.d.ts' />
|
|
52
|
+
/// <reference path='./lib/uni-cancelAnimationFrame/utssdk/global.d.ts' />
|
|
46
53
|
/// <reference path='./lib/uni-base64ToArrayBuffer/utssdk/global.d.ts' />
|
|
47
54
|
/// <reference path='./lib/uni-arrayBufferToBase64/utssdk/global.d.ts' />
|
|
55
|
+
/// <reference path='./lib/uni-addPhoneContact/utssdk/global.d.ts' />
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from './lib/uni-websocket/utssdk'
|
|
2
|
+
export * from './lib/uni-virtualPayment/utssdk'
|
|
2
3
|
export * from './lib/uni-theme/utssdk'
|
|
3
4
|
export * from './lib/uni-tabBar/utssdk'
|
|
4
5
|
export * from './lib/uni-storage/utssdk'
|
|
5
6
|
export * from './lib/uni-scanCode/utssdk'
|
|
6
7
|
export * from './lib/uni-rpx2px/utssdk'
|
|
7
8
|
export * from './lib/uni-route/utssdk'
|
|
9
|
+
export * from './lib/uni-requestAnimationFrame/utssdk'
|
|
8
10
|
export * from './lib/uni-pullDownRefresh/utssdk'
|
|
9
11
|
export * from './lib/uni-prompt/utssdk'
|
|
10
12
|
export * from './lib/uni-payment-wxpay/utssdk'
|
|
@@ -30,18 +32,24 @@ export * from './lib/uni-getLocation-tencent/utssdk'
|
|
|
30
32
|
export * from './lib/uni-getLocation-system/utssdk'
|
|
31
33
|
export * from './lib/uni-getLocation/utssdk'
|
|
32
34
|
export * from './lib/uni-getLaunchOptionsSync/utssdk'
|
|
35
|
+
export * from './lib/uni-getEnterOptionsSync/utssdk'
|
|
33
36
|
export * from './lib/uni-getElementById/utssdk'
|
|
34
37
|
export * from './lib/uni-getDeviceInfo/utssdk'
|
|
35
38
|
export * from './lib/uni-getAppBaseInfo/utssdk'
|
|
36
39
|
export * from './lib/uni-getAppAuthorizeSetting/utssdk'
|
|
37
40
|
export * from './lib/uni-getAccessibilityInfo/utssdk'
|
|
38
41
|
export * from './lib/uni-fileSystemManager/utssdk'
|
|
42
|
+
export * from './lib/uni-file/utssdk'
|
|
39
43
|
export * from './lib/uni-exit/utssdk'
|
|
40
44
|
export * from './lib/uni-event/utssdk'
|
|
45
|
+
export * from './lib/uni-dialogPage/utssdk'
|
|
41
46
|
export * from './lib/uni-createWebviewContext/utssdk'
|
|
42
47
|
export * from './lib/uni-createSelectorQuery/utssdk'
|
|
43
48
|
export * from './lib/uni-createRequestPermissionListener/utssdk'
|
|
44
49
|
export * from './lib/uni-createIntersectionObserver/utssdk'
|
|
45
50
|
export * from './lib/uni-clipboard/utssdk'
|
|
51
|
+
export * from './lib/uni-canvas/utssdk'
|
|
52
|
+
export * from './lib/uni-cancelAnimationFrame/utssdk'
|
|
46
53
|
export * from './lib/uni-base64ToArrayBuffer/utssdk'
|
|
47
54
|
export * from './lib/uni-arrayBufferToBase64/utssdk'
|
|
55
|
+
export * from './lib/uni-addPhoneContact/utssdk'
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
AddPhoneContact as AddPhoneContactOrigin,
|
|
4
|
+
AddPhoneContactSuccess as AddPhoneContactSuccessOrigin,
|
|
5
|
+
UniError as UniErrorOrigin,
|
|
6
|
+
AddPhoneContactSuccessCallback as AddPhoneContactSuccessCallbackOrigin,
|
|
7
|
+
AddPhoneContactFail as AddPhoneContactFailOrigin,
|
|
8
|
+
AddPhoneContactFailCallback as AddPhoneContactFailCallbackOrigin,
|
|
9
|
+
AddPhoneContactComplete as AddPhoneContactCompleteOrigin,
|
|
10
|
+
AddPhoneContactCompleteCallback as AddPhoneContactCompleteCallbackOrigin,
|
|
11
|
+
AddPhoneContactOptions as AddPhoneContactOptionsOrigin,
|
|
12
|
+
Uni as UniOrigin
|
|
13
|
+
} from './interface'
|
|
14
|
+
|
|
15
|
+
declare global {
|
|
16
|
+
type AddPhoneContact = AddPhoneContactOrigin
|
|
17
|
+
type AddPhoneContactSuccess = AddPhoneContactSuccessOrigin
|
|
18
|
+
type UniError = UniErrorOrigin
|
|
19
|
+
type AddPhoneContactSuccessCallback = AddPhoneContactSuccessCallbackOrigin
|
|
20
|
+
type AddPhoneContactFail = AddPhoneContactFailOrigin
|
|
21
|
+
type AddPhoneContactFailCallback = AddPhoneContactFailCallbackOrigin
|
|
22
|
+
type AddPhoneContactComplete = AddPhoneContactCompleteOrigin
|
|
23
|
+
type AddPhoneContactCompleteCallback = AddPhoneContactCompleteCallbackOrigin
|
|
24
|
+
type AddPhoneContactOptions = AddPhoneContactOptionsOrigin
|
|
25
|
+
interface Uni extends UniOrigin { }
|
|
26
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
export {
|
|
3
|
+
AddPhoneContact,
|
|
4
|
+
AddPhoneContactSuccess,
|
|
5
|
+
UniError,
|
|
6
|
+
AddPhoneContactSuccessCallback,
|
|
7
|
+
AddPhoneContactFail,
|
|
8
|
+
AddPhoneContactFailCallback,
|
|
9
|
+
AddPhoneContactComplete,
|
|
10
|
+
AddPhoneContactCompleteCallback,
|
|
11
|
+
AddPhoneContactOptions,
|
|
12
|
+
} from './interface'
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
export interface Uni {
|
|
2
|
+
/**
|
|
3
|
+
* 手机通讯录联系人和联系方式的增加
|
|
4
|
+
* @tutorial https://uniapp.dcloud.net.cn/api/system/contact.html
|
|
5
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/system/contact.html
|
|
6
|
+
*
|
|
7
|
+
* @uniPlatform {
|
|
8
|
+
* "app": {
|
|
9
|
+
* "android": {
|
|
10
|
+
* "osVer": "5.0",
|
|
11
|
+
* "uniVer": "√",
|
|
12
|
+
* "unixVer": "x"
|
|
13
|
+
* },
|
|
14
|
+
* "ios": {
|
|
15
|
+
* "osVer": "12.0",
|
|
16
|
+
* "uniVer": "√",
|
|
17
|
+
* "unixVer": "x"
|
|
18
|
+
* },
|
|
19
|
+
* "harmony": {
|
|
20
|
+
* "osVer": "3.0",
|
|
21
|
+
* "uniVer": "4.25",
|
|
22
|
+
* "unixVer": "x"
|
|
23
|
+
* }
|
|
24
|
+
* },
|
|
25
|
+
* "web": {
|
|
26
|
+
* "uniVer": "x",
|
|
27
|
+
* "unixVer": "x"
|
|
28
|
+
* }
|
|
29
|
+
* "mp":{
|
|
30
|
+
* weixin: {
|
|
31
|
+
* hostVer: '√',
|
|
32
|
+
* uniVer: '√',
|
|
33
|
+
* unixVer: 'x'
|
|
34
|
+
* },
|
|
35
|
+
* alipay: {
|
|
36
|
+
* hostVer: '√',
|
|
37
|
+
* uniVer: '√',
|
|
38
|
+
* unixVer: 'x'
|
|
39
|
+
* },
|
|
40
|
+
* baidu: {
|
|
41
|
+
* hostVer: '√',
|
|
42
|
+
* uniVer: '√',
|
|
43
|
+
* unixVer: 'x'
|
|
44
|
+
* },
|
|
45
|
+
* toutiao: {
|
|
46
|
+
* hostVer: 'x',
|
|
47
|
+
* uniVer: 'x',
|
|
48
|
+
* unixVer: 'x'
|
|
49
|
+
* },
|
|
50
|
+
* lark: {
|
|
51
|
+
* hostVer: 'x',
|
|
52
|
+
* uniVer: 'x',
|
|
53
|
+
* unixVer: 'x'
|
|
54
|
+
* },
|
|
55
|
+
* qq: {
|
|
56
|
+
* hostVer: 'x',
|
|
57
|
+
* uniVer: 'x',
|
|
58
|
+
* unixVer: 'x'
|
|
59
|
+
* },
|
|
60
|
+
* kuaishou: {
|
|
61
|
+
* hostVer: '√',
|
|
62
|
+
* uniVer: '√',
|
|
63
|
+
* unixVer: 'x'
|
|
64
|
+
* },
|
|
65
|
+
* jd: {
|
|
66
|
+
* hostVer: 'x',
|
|
67
|
+
* uniVer: 'x',
|
|
68
|
+
* unixVer: 'x'
|
|
69
|
+
* }
|
|
70
|
+
* }
|
|
71
|
+
* }
|
|
72
|
+
*/
|
|
73
|
+
addPhoneContact: AddPhoneContact;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type AddPhoneContact = (options: AddPhoneContactOptions) => void;
|
|
77
|
+
export type AddPhoneContactSuccess = {};
|
|
78
|
+
export type UniError = {
|
|
79
|
+
errSubject: string,
|
|
80
|
+
errCode: number,
|
|
81
|
+
errMsg: string,
|
|
82
|
+
data?: object | null,
|
|
83
|
+
cause?: any | null
|
|
84
|
+
};
|
|
85
|
+
export type AddPhoneContactSuccessCallback = (result: AddPhoneContactSuccess) => void;
|
|
86
|
+
export type AddPhoneContactFail = UniError;
|
|
87
|
+
export type AddPhoneContactFailCallback = (result: AddPhoneContactFail) => void;
|
|
88
|
+
export type AddPhoneContactComplete = any;
|
|
89
|
+
export type AddPhoneContactCompleteCallback = (result: AddPhoneContactComplete) => void;
|
|
90
|
+
export type AddPhoneContactOptions = {
|
|
91
|
+
/**
|
|
92
|
+
* 头像本地文件路径
|
|
93
|
+
*/
|
|
94
|
+
photoFilePath?: string | null,
|
|
95
|
+
/**
|
|
96
|
+
* 昵称
|
|
97
|
+
*/
|
|
98
|
+
nickName?: string | null,
|
|
99
|
+
/**
|
|
100
|
+
* 姓氏
|
|
101
|
+
*/
|
|
102
|
+
lastName?: string | null,
|
|
103
|
+
/**
|
|
104
|
+
* 中间名
|
|
105
|
+
*/
|
|
106
|
+
middleName?: string | null,
|
|
107
|
+
/**
|
|
108
|
+
* 名字
|
|
109
|
+
*/
|
|
110
|
+
firstName?: string | null,
|
|
111
|
+
/**
|
|
112
|
+
* 备注
|
|
113
|
+
*/
|
|
114
|
+
remark?: string | null,
|
|
115
|
+
/**
|
|
116
|
+
* 手机号
|
|
117
|
+
*/
|
|
118
|
+
mobilePhoneNumber?: string | null,
|
|
119
|
+
/**
|
|
120
|
+
* 微信号
|
|
121
|
+
*/
|
|
122
|
+
weChatNumber?: string | null,
|
|
123
|
+
/**
|
|
124
|
+
* 联系地址国家
|
|
125
|
+
*/
|
|
126
|
+
addressCountry?: string | null,
|
|
127
|
+
/**
|
|
128
|
+
* 联系地址省份
|
|
129
|
+
*/
|
|
130
|
+
addressState?: string | null,
|
|
131
|
+
/**
|
|
132
|
+
* 联系地址城市
|
|
133
|
+
*/
|
|
134
|
+
addressCity?: string | null,
|
|
135
|
+
/**
|
|
136
|
+
* 联系地址街道
|
|
137
|
+
*/
|
|
138
|
+
addressStreet?: string | null,
|
|
139
|
+
/**
|
|
140
|
+
* 联系地址邮政编码
|
|
141
|
+
*/
|
|
142
|
+
addressPostalCode?: string | null,
|
|
143
|
+
/**
|
|
144
|
+
* 公司
|
|
145
|
+
*/
|
|
146
|
+
organization?: string | null,
|
|
147
|
+
/**
|
|
148
|
+
* 职位
|
|
149
|
+
*/
|
|
150
|
+
title?: string | null,
|
|
151
|
+
/**
|
|
152
|
+
* 工作传真
|
|
153
|
+
*/
|
|
154
|
+
workFaxNumber?: string | null,
|
|
155
|
+
/**
|
|
156
|
+
* 工作电话
|
|
157
|
+
*/
|
|
158
|
+
workPhoneNumber?: string | null,
|
|
159
|
+
/**
|
|
160
|
+
* 公司电话
|
|
161
|
+
*/
|
|
162
|
+
hostNumber?: string | null,
|
|
163
|
+
/**
|
|
164
|
+
* 电子邮件
|
|
165
|
+
*/
|
|
166
|
+
email?: string | null,
|
|
167
|
+
/**
|
|
168
|
+
* 网站
|
|
169
|
+
*/
|
|
170
|
+
url?: string | null,
|
|
171
|
+
/**
|
|
172
|
+
* 工作地址国家
|
|
173
|
+
*/
|
|
174
|
+
workAddressCountry?: string | null,
|
|
175
|
+
/**
|
|
176
|
+
* 工作地址省份
|
|
177
|
+
*/
|
|
178
|
+
workAddressState?: string | null,
|
|
179
|
+
/**
|
|
180
|
+
* 工作地址城市
|
|
181
|
+
*/
|
|
182
|
+
workAddressCity?: string | null,
|
|
183
|
+
/**
|
|
184
|
+
* 工作地址街道
|
|
185
|
+
*/
|
|
186
|
+
workAddressStreet?: string | null,
|
|
187
|
+
/**
|
|
188
|
+
* 工作地址邮政编码
|
|
189
|
+
*/
|
|
190
|
+
workAddressPostalCode?: string | null,
|
|
191
|
+
/**
|
|
192
|
+
* 住宅传真
|
|
193
|
+
*/
|
|
194
|
+
homeFaxNumber?: string | null,
|
|
195
|
+
/**
|
|
196
|
+
* 住宅电话
|
|
197
|
+
*/
|
|
198
|
+
homePhoneNumber?: string | null,
|
|
199
|
+
/**
|
|
200
|
+
* 住宅地址国家
|
|
201
|
+
*/
|
|
202
|
+
homeAddressCountry?: string | null,
|
|
203
|
+
/**
|
|
204
|
+
* 住宅地址省份
|
|
205
|
+
*/
|
|
206
|
+
homeAddressState?: string | null,
|
|
207
|
+
/**
|
|
208
|
+
* 住宅地址城市
|
|
209
|
+
*/
|
|
210
|
+
homeAddressCity?: string | null,
|
|
211
|
+
/**
|
|
212
|
+
* 住宅地址街道
|
|
213
|
+
*/
|
|
214
|
+
homeAddressStreet?: string | null,
|
|
215
|
+
/**
|
|
216
|
+
* 住宅地址邮政编码
|
|
217
|
+
*/
|
|
218
|
+
homeAddressPostalCode?: string | null,
|
|
219
|
+
/**
|
|
220
|
+
* 接口调用成功的回调函数
|
|
221
|
+
*/
|
|
222
|
+
success?: AddPhoneContactSuccessCallback | null,
|
|
223
|
+
/**
|
|
224
|
+
* 接口调用失败的回调函数
|
|
225
|
+
*/
|
|
226
|
+
fail?: AddPhoneContactFailCallback | null,
|
|
227
|
+
/**
|
|
228
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
229
|
+
*/
|
|
230
|
+
complete?: AddPhoneContactCompleteCallback | null
|
|
231
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface Uni {
|
|
2
|
+
/**
|
|
3
|
+
* 方法取消一个先前通过调用 window.requestAnimationFrame() 方法添加到计划中的动画帧请求
|
|
4
|
+
* @uniPlatform {
|
|
5
|
+
* "app": {
|
|
6
|
+
* "android": {
|
|
7
|
+
* "osVer": "5.0",
|
|
8
|
+
* "uniVer": "x",
|
|
9
|
+
* "unixVer": "4.25"
|
|
10
|
+
* },
|
|
11
|
+
* "ios": {
|
|
12
|
+
* "osVer": "12.0",
|
|
13
|
+
* "uniVer": "x",
|
|
14
|
+
* "unixVer": "4.25"
|
|
15
|
+
* }
|
|
16
|
+
* },
|
|
17
|
+
* "web": {
|
|
18
|
+
* "uniVer": "x",
|
|
19
|
+
* "unixVer": "4.25"
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
23
|
+
cancelAnimationFrame(taskId: number): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
CreateCanvasContextAsyncSuccessCallback as CreateCanvasContextAsyncSuccessCallbackOrigin,
|
|
4
|
+
CreateCanvasContextAsyncFailCallback as CreateCanvasContextAsyncFailCallbackOrigin,
|
|
5
|
+
CreateCanvasContextAsyncCompleteCallback as CreateCanvasContextAsyncCompleteCallbackOrigin,
|
|
6
|
+
CanvasContextToBlobCallback as CanvasContextToBlobCallbackOrigin,
|
|
7
|
+
CanvasContext as CanvasContextOrigin,
|
|
8
|
+
CreateCanvasContextAsyncOptions as CreateCanvasContextAsyncOptionsOrigin,
|
|
9
|
+
Uni as UniOrigin
|
|
10
|
+
} from './interface'
|
|
11
|
+
|
|
12
|
+
declare global {
|
|
13
|
+
type CreateCanvasContextAsyncSuccessCallback = CreateCanvasContextAsyncSuccessCallbackOrigin
|
|
14
|
+
type CreateCanvasContextAsyncFailCallback = CreateCanvasContextAsyncFailCallbackOrigin
|
|
15
|
+
type CreateCanvasContextAsyncCompleteCallback = CreateCanvasContextAsyncCompleteCallbackOrigin
|
|
16
|
+
type CanvasContextToBlobCallback = CanvasContextToBlobCallbackOrigin
|
|
17
|
+
type CanvasContext = CanvasContextOrigin
|
|
18
|
+
type CreateCanvasContextAsyncOptions = CreateCanvasContextAsyncOptionsOrigin
|
|
19
|
+
interface Uni extends UniOrigin { }
|
|
20
|
+
}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
export type CreateCanvasContextAsyncSuccessCallback = (context: CanvasContext) => void
|
|
2
|
+
export type CreateCanvasContextAsyncFailCallback = (error: UniError) => void
|
|
3
|
+
export type CreateCanvasContextAsyncCompleteCallback = () => void
|
|
4
|
+
|
|
5
|
+
// #ifdef WEB
|
|
6
|
+
export type CanvasContextToBlobCallback = (blob: Blob) => void
|
|
7
|
+
// #endif
|
|
8
|
+
|
|
9
|
+
export interface CanvasContext {
|
|
10
|
+
getContext(type: string): CanvasRenderingContext2D | null
|
|
11
|
+
|
|
12
|
+
// #ifdef WEB
|
|
13
|
+
/**
|
|
14
|
+
* 创造 Blob 对象
|
|
15
|
+
* @uniPlatform {
|
|
16
|
+
* "app": {
|
|
17
|
+
* "android": {
|
|
18
|
+
* "osVer": "5.0",
|
|
19
|
+
* "uniVer": "x",
|
|
20
|
+
* "unixVer": "x"
|
|
21
|
+
* },
|
|
22
|
+
* "ios": {
|
|
23
|
+
* "osVer": "10.0",
|
|
24
|
+
* "uniVer": "x",
|
|
25
|
+
* "unixVer": "x"
|
|
26
|
+
* }
|
|
27
|
+
* },
|
|
28
|
+
* "web": {
|
|
29
|
+
* "uniVer": "x",
|
|
30
|
+
* "unixVer": "4.25"
|
|
31
|
+
* }
|
|
32
|
+
* }
|
|
33
|
+
*/
|
|
34
|
+
toBlob(callback: CanvasContextToBlobCallback): void
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* 创造 Blob 对象
|
|
38
|
+
* @uniPlatform {
|
|
39
|
+
* "app": {
|
|
40
|
+
* "android": {
|
|
41
|
+
* "osVer": "5.0",
|
|
42
|
+
* "uniVer": "x",
|
|
43
|
+
* "unixVer": "x"
|
|
44
|
+
* },
|
|
45
|
+
* "ios": {
|
|
46
|
+
* "osVer": "10.0",
|
|
47
|
+
* "uniVer": "x",
|
|
48
|
+
* "unixVer": "x"
|
|
49
|
+
* }
|
|
50
|
+
* },
|
|
51
|
+
* "web": {
|
|
52
|
+
* "uniVer": "x",
|
|
53
|
+
* "unixVer": "4.25"
|
|
54
|
+
* }
|
|
55
|
+
* }
|
|
56
|
+
*/
|
|
57
|
+
toBlob(callback: CanvasContextToBlobCallback, type: string): void
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* 创造 Blob 对象
|
|
61
|
+
* @uniPlatform {
|
|
62
|
+
* "app": {
|
|
63
|
+
* "android": {
|
|
64
|
+
* "osVer": "5.0",
|
|
65
|
+
* "uniVer": "x",
|
|
66
|
+
* "unixVer": "x"
|
|
67
|
+
* },
|
|
68
|
+
* "ios": {
|
|
69
|
+
* "osVer": "10.0",
|
|
70
|
+
* "uniVer": "x",
|
|
71
|
+
* "unixVer": "x"
|
|
72
|
+
* }
|
|
73
|
+
* },
|
|
74
|
+
* "web": {
|
|
75
|
+
* "uniVer": "x",
|
|
76
|
+
* "unixVer": "4.25"
|
|
77
|
+
* }
|
|
78
|
+
* }
|
|
79
|
+
*/
|
|
80
|
+
toBlob(callback: CanvasContextToBlobCallback, type: string, quality: number): void
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* 返回一个包含图片展示的 data URI
|
|
84
|
+
* @uniPlatform {
|
|
85
|
+
* "app": {
|
|
86
|
+
* "android": {
|
|
87
|
+
* "osVer": "5.0",
|
|
88
|
+
* "uniVer": "x",
|
|
89
|
+
* "unixVer": "x"
|
|
90
|
+
* },
|
|
91
|
+
* "ios": {
|
|
92
|
+
* "osVer": "10.0",
|
|
93
|
+
* "uniVer": "x",
|
|
94
|
+
* "unixVer": "x"
|
|
95
|
+
* }
|
|
96
|
+
* },
|
|
97
|
+
* "web": {
|
|
98
|
+
* "uniVer": "x",
|
|
99
|
+
* "unixVer": "4.25"
|
|
100
|
+
* }
|
|
101
|
+
* }
|
|
102
|
+
*/
|
|
103
|
+
toDataUrl(): string
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* 返回一个包含图片展示的 data URI
|
|
107
|
+
* @uniPlatform {
|
|
108
|
+
* "app": {
|
|
109
|
+
* "android": {
|
|
110
|
+
* "osVer": "5.0",
|
|
111
|
+
* "uniVer": "x",
|
|
112
|
+
* "unixVer": "x"
|
|
113
|
+
* },
|
|
114
|
+
* "ios": {
|
|
115
|
+
* "osVer": "10.0",
|
|
116
|
+
* "uniVer": "x",
|
|
117
|
+
* "unixVer": "x"
|
|
118
|
+
* }
|
|
119
|
+
* },
|
|
120
|
+
* "web": {
|
|
121
|
+
* "uniVer": "x",
|
|
122
|
+
* "unixVer": "4.25"
|
|
123
|
+
* }
|
|
124
|
+
* }
|
|
125
|
+
*/
|
|
126
|
+
toDataUrl(type: string, encoderOptions?: string): string
|
|
127
|
+
// #endif
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export type CreateCanvasContextAsyncOptions = {
|
|
131
|
+
/**
|
|
132
|
+
* canvas 元素的 id 属性
|
|
133
|
+
* @uniPlatform {
|
|
134
|
+
* "app": {
|
|
135
|
+
* "android": {
|
|
136
|
+
* "osVer": "5.0",
|
|
137
|
+
* "uniVer": "x",
|
|
138
|
+
* "unixVer": "4.25"
|
|
139
|
+
* },
|
|
140
|
+
* "ios": {
|
|
141
|
+
* "osVer": "10.0",
|
|
142
|
+
* "uniVer": "x",
|
|
143
|
+
* "unixVer": "4.25"
|
|
144
|
+
* }
|
|
145
|
+
* },
|
|
146
|
+
* "web": {
|
|
147
|
+
* "uniVer": "x",
|
|
148
|
+
* "unixVer": "4.25"
|
|
149
|
+
* }
|
|
150
|
+
* }
|
|
151
|
+
*/
|
|
152
|
+
id: string.IDString
|
|
153
|
+
/**
|
|
154
|
+
* 组件或页面实例
|
|
155
|
+
* @uniPlatform {
|
|
156
|
+
* "app": {
|
|
157
|
+
* "android": {
|
|
158
|
+
* "osVer": "5.0",
|
|
159
|
+
* "uniVer": "x",
|
|
160
|
+
* "unixVer": "4.25"
|
|
161
|
+
* },
|
|
162
|
+
* "ios": {
|
|
163
|
+
* "osVer": "10.0",
|
|
164
|
+
* "uniVer": "x",
|
|
165
|
+
* "unixVer": "4.25"
|
|
166
|
+
* }
|
|
167
|
+
* },
|
|
168
|
+
* "web": {
|
|
169
|
+
* "uniVer": "x",
|
|
170
|
+
* "unixVer": "4.25"
|
|
171
|
+
* }
|
|
172
|
+
* }
|
|
173
|
+
*/
|
|
174
|
+
component?: ComponentPublicInstance
|
|
175
|
+
/**
|
|
176
|
+
* 接口调用成功的回调函数
|
|
177
|
+
* @uniPlatform {
|
|
178
|
+
* "app": {
|
|
179
|
+
* "android": {
|
|
180
|
+
* "osVer": "5.0",
|
|
181
|
+
* "uniVer": "x",
|
|
182
|
+
* "unixVer": "4.25"
|
|
183
|
+
* },
|
|
184
|
+
* "ios": {
|
|
185
|
+
* "osVer": "10.0",
|
|
186
|
+
* "uniVer": "x",
|
|
187
|
+
* "unixVer": "4.25"
|
|
188
|
+
* }
|
|
189
|
+
* },
|
|
190
|
+
* "web": {
|
|
191
|
+
* "uniVer": "x",
|
|
192
|
+
* "unixVer": "4.25"
|
|
193
|
+
* }
|
|
194
|
+
* }
|
|
195
|
+
*/
|
|
196
|
+
success?: CreateCanvasContextAsyncSuccessCallback
|
|
197
|
+
/**
|
|
198
|
+
* 接口调用失败的回调函数
|
|
199
|
+
* @uniPlatform {
|
|
200
|
+
* "app": {
|
|
201
|
+
* "android": {
|
|
202
|
+
* "osVer": "5.0",
|
|
203
|
+
* "uniVer": "x",
|
|
204
|
+
* "unixVer": "4.25"
|
|
205
|
+
* },
|
|
206
|
+
* "ios": {
|
|
207
|
+
* "osVer": "10.0",
|
|
208
|
+
* "uniVer": "x",
|
|
209
|
+
* "unixVer": "4.25"
|
|
210
|
+
* }
|
|
211
|
+
* },
|
|
212
|
+
* "web": {
|
|
213
|
+
* "uniVer": "x",
|
|
214
|
+
* "unixVer": "4.25"
|
|
215
|
+
* }
|
|
216
|
+
* }
|
|
217
|
+
*/
|
|
218
|
+
fail?: CreateCanvasContextAsyncFailCallback
|
|
219
|
+
/**
|
|
220
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
221
|
+
* @uniPlatform {
|
|
222
|
+
* "app": {
|
|
223
|
+
* "android": {
|
|
224
|
+
* "osVer": "5.0",
|
|
225
|
+
* "uniVer": "x",
|
|
226
|
+
* "unixVer": "4.25"
|
|
227
|
+
* },
|
|
228
|
+
* "ios": {
|
|
229
|
+
* "osVer": "10.0",
|
|
230
|
+
* "uniVer": "x",
|
|
231
|
+
* "unixVer": "4.25"
|
|
232
|
+
* }
|
|
233
|
+
* },
|
|
234
|
+
* "web": {
|
|
235
|
+
* "uniVer": "√",
|
|
236
|
+
* "unixVer": "4.25"
|
|
237
|
+
* }
|
|
238
|
+
* }
|
|
239
|
+
*/
|
|
240
|
+
complete?: CreateCanvasContextAsyncCompleteCallback
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface Uni {
|
|
244
|
+
/**
|
|
245
|
+
* 获取CanvasContext对象实例
|
|
246
|
+
*
|
|
247
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/createCanvasContextAsync.html
|
|
248
|
+
* @uniPlatform {
|
|
249
|
+
* "app": {
|
|
250
|
+
* "android": {
|
|
251
|
+
* "osVer": "5.0",
|
|
252
|
+
* "uniVer": "x",
|
|
253
|
+
* "unixVer": "4.25"
|
|
254
|
+
* },
|
|
255
|
+
* "ios": {
|
|
256
|
+
* "osVer": "12.0",
|
|
257
|
+
* "uniVer": "x",
|
|
258
|
+
* "unixVer": "4.25"
|
|
259
|
+
* }
|
|
260
|
+
* },
|
|
261
|
+
* "web": {
|
|
262
|
+
* "uniVer": "x",
|
|
263
|
+
* "unixVer": "4.25"
|
|
264
|
+
* }
|
|
265
|
+
* }
|
|
266
|
+
*/
|
|
267
|
+
createCanvasContextAsync(options: CreateCanvasContextAsyncOptions): void
|
|
268
|
+
}
|