@dcloudio/uni-app-x 0.7.15 → 0.7.16
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 +1610 -45
- 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/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
|
@@ -150,8 +150,8 @@ export interface Uni {
|
|
|
150
150
|
* "app": {
|
|
151
151
|
* "android": {
|
|
152
152
|
* "osVer": "4.4",
|
|
153
|
-
* "uniVer": "4.
|
|
154
|
-
* "unixVer": "4.
|
|
153
|
+
* "uniVer": "4.25",
|
|
154
|
+
* "unixVer": "4.25"
|
|
155
155
|
* },
|
|
156
156
|
* "ios": {
|
|
157
157
|
* "osVer": "12.0",
|
|
@@ -224,12 +224,12 @@ export interface Uni {
|
|
|
224
224
|
* "android": {
|
|
225
225
|
* "osVer": "5.0",
|
|
226
226
|
* "uniVer": "x",
|
|
227
|
-
* "unixVer": "4.
|
|
227
|
+
* "unixVer": "4.25"
|
|
228
228
|
* },
|
|
229
229
|
* "ios": {
|
|
230
230
|
* "osVer": "12.0",
|
|
231
231
|
* "uniVer": "x",
|
|
232
|
-
* "unixVer": "4.
|
|
232
|
+
* "unixVer": "4.25"
|
|
233
233
|
* }
|
|
234
234
|
* },
|
|
235
235
|
* "web": {
|
|
@@ -738,12 +738,12 @@ export type BadgeOptions = {
|
|
|
738
738
|
* "android": {
|
|
739
739
|
* "osVer": "4.4",
|
|
740
740
|
* "uniVer": "x",
|
|
741
|
-
* "unixVer": "4.
|
|
741
|
+
* "unixVer": "4.25"
|
|
742
742
|
* },
|
|
743
743
|
* "ios": {
|
|
744
744
|
* "osVer": "12.0",
|
|
745
745
|
* "uniVer": "x",
|
|
746
|
-
* "unixVer": "4.
|
|
746
|
+
* "unixVer": "4.25"
|
|
747
747
|
* }
|
|
748
748
|
* },
|
|
749
749
|
* "web": {
|
|
@@ -761,12 +761,12 @@ export type BadgeOptions = {
|
|
|
761
761
|
* "android": {
|
|
762
762
|
* "osVer": "4.4",
|
|
763
763
|
* "uniVer": "x",
|
|
764
|
-
* "unixVer": "4.
|
|
764
|
+
* "unixVer": "4.25"
|
|
765
765
|
* },
|
|
766
766
|
* "ios": {
|
|
767
767
|
* "osVer": "12.0",
|
|
768
768
|
* "uniVer": "x",
|
|
769
|
-
* "unixVer": "4.
|
|
769
|
+
* "unixVer": "4.25"
|
|
770
770
|
* }
|
|
771
771
|
* },
|
|
772
772
|
* "web": {
|
|
@@ -11,3 +11,4 @@
|
|
|
11
11
|
/// <reference path='./lib/uni-memory/utssdk/global.d.ts' />
|
|
12
12
|
/// <reference path='./lib/uni-preloadPage/utssdk/global.d.ts' />
|
|
13
13
|
/// <reference path='./lib/uni-theme/utssdk/global.d.ts' />
|
|
14
|
+
/// <reference path='./lib/uni-createMediaQueryObserver/utssdk/global.d.ts' />
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MediaQueryObserver as MediaQueryObserverOrigin,
|
|
3
|
+
MediaQueryObserveResult as MediaQueryObserveResultOrigin,
|
|
4
|
+
DescriptorOptions as DescriptorOptionsOrigin,
|
|
5
|
+
Uni as UniOrigin
|
|
6
|
+
} from './interface'
|
|
7
|
+
|
|
8
|
+
declare global {
|
|
9
|
+
type MediaQueryObserver = MediaQueryObserverOrigin
|
|
10
|
+
type MediaQueryObserveResult = MediaQueryObserveResultOrigin
|
|
11
|
+
type DescriptorOptions = DescriptorOptionsOrigin
|
|
12
|
+
interface Uni extends UniOrigin { }
|
|
13
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export type DescriptorOptions = {
|
|
2
|
+
/**
|
|
3
|
+
* 屏幕方向( landscape 或 portrait )
|
|
4
|
+
* - landscape:
|
|
5
|
+
* - portrait:
|
|
6
|
+
*/
|
|
7
|
+
orientation: 'landscape' | 'portrait';
|
|
8
|
+
/**
|
|
9
|
+
* 页面宽度( px 为单位)
|
|
10
|
+
*/
|
|
11
|
+
width?: number;
|
|
12
|
+
/**
|
|
13
|
+
* 页面高度( px 为单位)
|
|
14
|
+
*/
|
|
15
|
+
height?: number;
|
|
16
|
+
/**
|
|
17
|
+
* 页面最小宽度( px 为单位)
|
|
18
|
+
*/
|
|
19
|
+
'min-width'?: number;
|
|
20
|
+
/**
|
|
21
|
+
* 页面最小高度( px 为单位)
|
|
22
|
+
*/
|
|
23
|
+
'min-height'?: number;
|
|
24
|
+
/**
|
|
25
|
+
* 页面最大宽度( px 为单位)
|
|
26
|
+
*/
|
|
27
|
+
'max-width'?: number;
|
|
28
|
+
/**
|
|
29
|
+
* 页面最大高度( px 为单位)
|
|
30
|
+
*/
|
|
31
|
+
'max-height'?: number;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type MediaQueryObserveResult = {
|
|
35
|
+
/**
|
|
36
|
+
* 页面的当前状态是否满足所指定的 media query
|
|
37
|
+
*/
|
|
38
|
+
matches: boolean;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type MediaQueryObserver = {
|
|
42
|
+
/**
|
|
43
|
+
* 开始监听页面 media query 变化情况
|
|
44
|
+
*/
|
|
45
|
+
observe(descriptor: DescriptorOptions, callback: (result: MediaQueryObserveResult) => void): void;
|
|
46
|
+
/**
|
|
47
|
+
* 停止监听,回调函数将不再触发
|
|
48
|
+
*/
|
|
49
|
+
disconnect(): void;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
export interface Uni {
|
|
54
|
+
/**
|
|
55
|
+
* 创建并返回一个 MediaQueryObserver 对象实例。context: 自定义组件实例。
|
|
56
|
+
*
|
|
57
|
+
* @tutorial http://uniapp.dcloud.io/api/ui/media-query-observer?id=createmediaqueryobserver
|
|
58
|
+
* @tutorial-uni-app http://uniapp.dcloud.io/api/ui/media-query-observer?id=createmediaqueryobserver
|
|
59
|
+
* @uniPlatform {
|
|
60
|
+
* "app": {
|
|
61
|
+
* "android": {
|
|
62
|
+
* "osVer": "5.0",
|
|
63
|
+
* "uniVer": "√",
|
|
64
|
+
* "unixVer": "x"
|
|
65
|
+
* },
|
|
66
|
+
* "ios": {
|
|
67
|
+
* "osVer": "12.0",
|
|
68
|
+
* "uniVer": "√",
|
|
69
|
+
* "unixVer": "x"
|
|
70
|
+
* },
|
|
71
|
+
* "harmony": {
|
|
72
|
+
* "osVer": "x",
|
|
73
|
+
* "uniVer": "x",
|
|
74
|
+
* "unixVer": "x"
|
|
75
|
+
* }
|
|
76
|
+
* },
|
|
77
|
+
* "mp": {
|
|
78
|
+
* "weixin": {
|
|
79
|
+
* "hostVer": "√",
|
|
80
|
+
* "uniVer": "√",
|
|
81
|
+
* "unixVer": "x"
|
|
82
|
+
* },
|
|
83
|
+
* "alipay": {
|
|
84
|
+
* "hostVer": "√",
|
|
85
|
+
* "uniVer": "√",
|
|
86
|
+
* "unixVer": "x"
|
|
87
|
+
* },
|
|
88
|
+
* "baidu": {
|
|
89
|
+
* "hostVer": "√",
|
|
90
|
+
* "uniVer": "√",
|
|
91
|
+
* "unixVer": "x"
|
|
92
|
+
* },
|
|
93
|
+
* "toutiao": {
|
|
94
|
+
* "hostVer": "√",
|
|
95
|
+
* "uniVer": "√",
|
|
96
|
+
* "unixVer": "x"
|
|
97
|
+
* },
|
|
98
|
+
* "lark": {
|
|
99
|
+
* "hostVer": "√",
|
|
100
|
+
* "uniVer": "√",
|
|
101
|
+
* "unixVer": "x"
|
|
102
|
+
* },
|
|
103
|
+
* "qq": {
|
|
104
|
+
* "hostVer": "√",
|
|
105
|
+
* "uniVer": "√",
|
|
106
|
+
* "unixVer": "x"
|
|
107
|
+
* },
|
|
108
|
+
* "kuaishou": {
|
|
109
|
+
* "hostVer": "x",
|
|
110
|
+
* "uniVer": "x",
|
|
111
|
+
* "unixVer": "x"
|
|
112
|
+
* },
|
|
113
|
+
* "jd": {
|
|
114
|
+
* "hostVer": "x",
|
|
115
|
+
* "uniVer": "x",
|
|
116
|
+
* "unixVer": "x"
|
|
117
|
+
* }
|
|
118
|
+
* },
|
|
119
|
+
* "web": {
|
|
120
|
+
* "uniVer": "√",
|
|
121
|
+
* "unixVer": "4.0"
|
|
122
|
+
* }
|
|
123
|
+
* }
|
|
124
|
+
*/
|
|
125
|
+
createMediaQueryObserver(context?: any): MediaQueryObserver
|
|
126
|
+
}
|
|
@@ -185,7 +185,7 @@ export const mixinDatacom = defineMixin({
|
|
|
185
185
|
// changed,发生变化的属性名,类型为Array,例如 ['collection', 'action']
|
|
186
186
|
onMixinDatacomPropsChange(_ : boolean, changed : Array<string>) {
|
|
187
187
|
},
|
|
188
|
-
mixinDatacomEasyGet(options ?: MixinDatacomEasyGetOptions) {
|
|
188
|
+
mixinDatacomEasyGet(options ?: MixinDatacomEasyGetOptions | null) {
|
|
189
189
|
if (this.mixinDatacomLoading) {
|
|
190
190
|
return
|
|
191
191
|
}
|
|
@@ -213,7 +213,7 @@ export const mixinDatacom = defineMixin({
|
|
|
213
213
|
options?.complete?.()
|
|
214
214
|
})
|
|
215
215
|
},
|
|
216
|
-
mixinDatacomGet(options ?: MixinDatacomGetOptions) : Promise<UniCloudDBGetResult> {
|
|
216
|
+
mixinDatacomGet(options ?: MixinDatacomGetOptions | null) : Promise<UniCloudDBGetResult> {
|
|
217
217
|
let db = uniCloud.databaseForJQL()
|
|
218
218
|
|
|
219
219
|
let collection = Array.isArray(this.collection) ? db.collection(...(this.collection as Array<any>)) : db.collection(this.collection)
|
|
@@ -311,4 +311,4 @@ export const mixinDatacom = defineMixin({
|
|
|
311
311
|
return query.get(getOptions)
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
-
})
|
|
314
|
+
})
|
|
@@ -19,12 +19,20 @@ export class UniCheckboxGroupChangeEvent extends UniCustomEvent<UniCheckboxGroup
|
|
|
19
19
|
/**
|
|
20
20
|
* @package io.dcloud.uniapp.framework
|
|
21
21
|
*/
|
|
22
|
-
interface UniCheckboxGroupElement extends UniElement {}
|
|
22
|
+
export interface UniCheckboxGroupElement extends UniElement {}
|
|
23
|
+
export let UniCheckboxGroupElement: {
|
|
24
|
+
prototype: UniCheckboxGroupElement
|
|
25
|
+
new (): UniCheckboxGroupElement
|
|
26
|
+
}
|
|
23
27
|
|
|
24
28
|
/**
|
|
25
29
|
* @package io.dcloud.uniapp.framework
|
|
26
30
|
*/
|
|
27
31
|
export interface UniCheckboxElement extends UniElement {}
|
|
32
|
+
export let UniCheckboxElement: {
|
|
33
|
+
prototype: UniCheckboxElement
|
|
34
|
+
new (): UniCheckboxElement
|
|
35
|
+
}
|
|
28
36
|
|
|
29
37
|
export type CheckboxGroupChangeEvent = UniCheckboxGroupChangeEvent
|
|
30
38
|
export const CheckboxGroupChangeEvent: typeof UniCheckboxGroupChangeEvent
|
|
@@ -20,11 +20,19 @@ export class UniPickerViewChangeEvent extends UniCustomEvent<UniPickerViewChange
|
|
|
20
20
|
* @package io.dcloud.uniapp.framework
|
|
21
21
|
*/
|
|
22
22
|
export interface UniPickerViewElement extends UniElement {}
|
|
23
|
+
export let UniPickerViewElement: {
|
|
24
|
+
prototype: UniPickerViewElement
|
|
25
|
+
new (): UniPickerViewElement
|
|
26
|
+
}
|
|
23
27
|
|
|
24
28
|
/**
|
|
25
29
|
* @package io.dcloud.uniapp.framework
|
|
26
30
|
*/
|
|
27
31
|
export interface UniPickerViewColumnElement extends UniElement {}
|
|
32
|
+
export let UniPickerViewColumnElement: {
|
|
33
|
+
prototype: UniPickerViewColumnElement
|
|
34
|
+
new (): UniPickerViewColumnElement
|
|
35
|
+
}
|
|
28
36
|
|
|
29
37
|
export type PickerViewChangeEvent = UniPickerViewChangeEvent
|
|
30
38
|
export const PickerViewChangeEvent: typeof UniPickerViewChangeEvent
|
|
@@ -20,6 +20,10 @@ export class UniProgressActiveendEvent extends UniCustomEvent<UniProgressActivee
|
|
|
20
20
|
* @package io.dcloud.uniapp.framework
|
|
21
21
|
*/
|
|
22
22
|
export interface UniProgressElement extends UniElement {}
|
|
23
|
+
export let UniProgressElement: {
|
|
24
|
+
prototype: UniProgressElement
|
|
25
|
+
new (): UniProgressElement
|
|
26
|
+
}
|
|
23
27
|
|
|
24
28
|
export type ProgressActiveendEvent = UniProgressActiveendEvent
|
|
25
29
|
export const ProgressActiveendEvent: typeof UniProgressActiveendEvent
|
|
@@ -19,12 +19,20 @@ export class UniRadioGroupChangeEvent extends UniCustomEvent<UniRadioGroupChange
|
|
|
19
19
|
/**
|
|
20
20
|
* @package io.dcloud.uniapp.framework
|
|
21
21
|
*/
|
|
22
|
-
interface UniRadioElement extends UniElement {}
|
|
22
|
+
export interface UniRadioElement extends UniElement {}
|
|
23
|
+
export let UniRadioElement: {
|
|
24
|
+
prototype: UniRadioElement
|
|
25
|
+
new (): UniRadioElement
|
|
26
|
+
}
|
|
23
27
|
|
|
24
28
|
/**
|
|
25
29
|
* @package io.dcloud.uniapp.framework
|
|
26
30
|
*/
|
|
27
31
|
export interface UniRadioGroupElement extends UniElement {}
|
|
32
|
+
export let UniRadioGroupElement: {
|
|
33
|
+
prototype: UniRadioGroupElement
|
|
34
|
+
new (): UniRadioGroupElement
|
|
35
|
+
}
|
|
28
36
|
|
|
29
37
|
export type RadioGroupChangeEvent = UniRadioGroupChangeEvent
|
|
30
38
|
export const RadioGroupChangeEvent: typeof UniRadioGroupChangeEvent
|
|
@@ -23,6 +23,10 @@ export interface UniSliderElement extends UniElement {
|
|
|
23
23
|
get value(): number
|
|
24
24
|
set value(value: number)
|
|
25
25
|
}
|
|
26
|
+
export let UniSliderElement: {
|
|
27
|
+
prototype: UniSliderElement
|
|
28
|
+
new (): UniSliderElement
|
|
29
|
+
}
|
|
26
30
|
|
|
27
31
|
export type SliderChangeEvent = UniSliderChangeEvent
|
|
28
32
|
export const SliderChangeEvent: typeof UniSliderChangeEvent
|
|
@@ -19,7 +19,11 @@ export class UniSwitchChangeEvent extends UniCustomEvent<UniSwitchChangeEventDet
|
|
|
19
19
|
/**
|
|
20
20
|
* @package io.dcloud.uniapp.framework
|
|
21
21
|
*/
|
|
22
|
-
interface UniSwitchElement extends UniElementImpl {}
|
|
22
|
+
export interface UniSwitchElement extends UniElementImpl {}
|
|
23
|
+
export let UniSwitchElement: {
|
|
24
|
+
prototype: UniSwitchElement
|
|
25
|
+
new (): UniSwitchElement
|
|
26
|
+
}
|
|
23
27
|
|
|
24
28
|
export type SwitchChangeEvent = UniSwitchChangeEvent
|
|
25
29
|
export const SwitchChangeEvent: typeof UniSwitchChangeEvent
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @package io.dcloud.uniapp.framework
|
|
5
5
|
*/
|
|
6
|
-
interface UniCanvasElement extends UniElement {
|
|
6
|
+
export interface UniCanvasElement extends UniElement {
|
|
7
7
|
/**
|
|
8
8
|
* UniCanvasElement.getContext() 方法返回 canvas 的上下文,如果上下文没有定义则返回 null。
|
|
9
9
|
*
|
|
@@ -18,6 +18,11 @@ interface UniCanvasElement extends UniElement {
|
|
|
18
18
|
toDataURL(type?: string, quality?: any): string;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
export let UniCanvasElement: {
|
|
22
|
+
prototype: UniCanvasElement;
|
|
23
|
+
new(): UniCanvasElement;
|
|
24
|
+
};
|
|
25
|
+
|
|
21
26
|
type PredefinedColorSpace = "display-p3" | "srgb";
|
|
22
27
|
|
|
23
28
|
interface CanvasRenderingContext2DSettings {
|
|
@@ -210,3 +210,8 @@ export interface UniCloudDBElement extends UniElement {
|
|
|
210
210
|
*/
|
|
211
211
|
update(id: string, value: UTSJSONObject, options?: UTSJSONObject | null): void
|
|
212
212
|
}
|
|
213
|
+
|
|
214
|
+
export let UniCloudDBElement: {
|
|
215
|
+
prototype: UniCloudDBElement
|
|
216
|
+
new (): UniCloudDBElement
|
|
217
|
+
}
|
|
@@ -5,7 +5,12 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @package io.dcloud.uniapp.framework
|
|
7
7
|
*/
|
|
8
|
-
interface UniFormElement extends UniElement, IUniForm {}
|
|
8
|
+
export interface UniFormElement extends UniElement, IUniForm {}
|
|
9
|
+
|
|
10
|
+
export let UniFormElement: {
|
|
11
|
+
prototype: UniFormElement
|
|
12
|
+
new (): UniFormElement
|
|
13
|
+
}
|
|
9
14
|
|
|
10
15
|
/**
|
|
11
16
|
* @package io.dcloud.uniapp.framework
|
package/types/vue/global.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ declare global {
|
|
|
79
79
|
type UniSliderChangeEvent = UniSliderChangeEventOrigin
|
|
80
80
|
var UniSliderChangeEventDetail: typeof UniSliderChangeEventDetailOrigin
|
|
81
81
|
type UniSliderChangeEventDetail = UniSliderChangeEventDetailOrigin
|
|
82
|
-
var UniSliderElement: UniSliderElementOrigin
|
|
82
|
+
var UniSliderElement: typeof UniSliderElementOrigin
|
|
83
83
|
type UniSliderElement = UniSliderElementOrigin
|
|
84
84
|
var SliderChangeEvent: typeof SliderChangeEventOrigin
|
|
85
85
|
type SliderChangeEvent = SliderChangeEventOrigin
|
|
@@ -90,7 +90,7 @@ declare global {
|
|
|
90
90
|
type UniSwitchChangeEvent = UniSwitchChangeEventOrigin
|
|
91
91
|
var UniSwitchChangeEventDetail: typeof UniSwitchChangeEventDetailOrigin
|
|
92
92
|
type UniSwitchChangeEventDetail = UniSwitchChangeEventDetailOrigin
|
|
93
|
-
var UniSwitchElement: UniSwitchElementOrigin
|
|
93
|
+
var UniSwitchElement: typeof UniSwitchElementOrigin
|
|
94
94
|
type UniSwitchElement = UniSwitchElementOrigin
|
|
95
95
|
var SwitchChangeEvent: typeof SwitchChangeEventOrigin
|
|
96
96
|
type SwitchChangeEvent = SwitchChangeEventOrigin
|
|
@@ -101,16 +101,16 @@ declare global {
|
|
|
101
101
|
type UniCheckboxGroupChangeEventDetail = UniCheckboxGroupChangeEventDetailOrigin
|
|
102
102
|
var UniCheckboxGroupChangeEvent: typeof UniCheckboxGroupChangeEventOrigin
|
|
103
103
|
type UniCheckboxGroupChangeEvent = UniCheckboxGroupChangeEventOrigin
|
|
104
|
-
var UniCheckboxElement: UniCheckboxElementOrigin
|
|
104
|
+
var UniCheckboxElement: typeof UniCheckboxElementOrigin
|
|
105
105
|
type UniCheckboxElement = UniCheckboxElementOrigin
|
|
106
106
|
var CheckboxGroupChangeEvent: typeof CheckboxGroupChangeEventOrigin
|
|
107
107
|
type CheckboxGroupChangeEvent = CheckboxGroupChangeEventOrigin
|
|
108
108
|
var CheckboxGroupChangeEventDetail: typeof CheckboxGroupChangeEventDetailOrigin
|
|
109
109
|
type CheckboxGroupChangeEventDetail = CheckboxGroupChangeEventDetailOrigin
|
|
110
110
|
// pickerview
|
|
111
|
-
var UniPickerViewColumnElement: UniPickerViewColumnElementOrigin
|
|
111
|
+
var UniPickerViewColumnElement: typeof UniPickerViewColumnElementOrigin
|
|
112
112
|
type UniPickerViewColumnElement = UniPickerViewColumnElementOrigin
|
|
113
|
-
var UniPickerViewElement: UniPickerViewElementOrigin
|
|
113
|
+
var UniPickerViewElement: typeof UniPickerViewElementOrigin
|
|
114
114
|
type UniPickerViewElement = UniPickerViewElementOrigin
|
|
115
115
|
var UniPickerViewChangeEventDetail: UniPickerViewChangeEventDetailOrigin
|
|
116
116
|
type UniPickerViewChangeEventDetail = UniPickerViewChangeEventDetailOrigin
|
|
@@ -121,7 +121,7 @@ declare global {
|
|
|
121
121
|
var PickerViewChangeEventDetail: typeof PickerViewChangeEventDetailOrigin
|
|
122
122
|
type PickerViewChangeEventDetail = PickerViewChangeEventDetailOrigin
|
|
123
123
|
// Progress
|
|
124
|
-
var UniProgressElement: UniProgressElementOrigin
|
|
124
|
+
var UniProgressElement: typeof UniProgressElementOrigin
|
|
125
125
|
type UniProgressElement = UniProgressElementOrigin
|
|
126
126
|
var UniProgressActiveendEvent: typeof UniProgressActiveendEventOrigin
|
|
127
127
|
type UniProgressActiveendEvent = UniProgressActiveendEventOrigin
|
|
@@ -132,7 +132,7 @@ declare global {
|
|
|
132
132
|
var ProgressActiveendEventDetail: typeof ProgressActiveendEventDetailOrigin
|
|
133
133
|
type ProgressActiveendEventDetail = ProgressActiveendEventDetailOrigin
|
|
134
134
|
// radio
|
|
135
|
-
var UniRadioGroupElement: UniRadioGroupElementOrigin
|
|
135
|
+
var UniRadioGroupElement: typeof UniRadioGroupElementOrigin
|
|
136
136
|
type UniRadioGroupElement = UniRadioGroupElementOrigin
|
|
137
137
|
var UniRadioGroupChangeEvent: UniRadioGroupChangeEventOrigin
|
|
138
138
|
type UniRadioGroupChangeEvent = UniRadioGroupChangeEventOrigin
|
|
@@ -143,9 +143,9 @@ declare global {
|
|
|
143
143
|
var RadioGroupChangeEventDetail: RadioGroupChangeEventDetailOrigin
|
|
144
144
|
type RadioGroupChangeEventDetail = RadioGroupChangeEventDetailOrigin
|
|
145
145
|
// navigator
|
|
146
|
-
var UniNavigatorElement: UniNavigatorElementOrigin
|
|
146
|
+
var UniNavigatorElement: typeof UniNavigatorElementOrigin
|
|
147
147
|
// form
|
|
148
|
-
var UniFormElement: UniFormElementOrigin
|
|
148
|
+
var UniFormElement: typeof UniFormElementOrigin
|
|
149
149
|
type UniFormElement = UniFormElementOrigin
|
|
150
150
|
var UniFormSubmitEventDetail: UniFormSubmitEventDetailOrigin
|
|
151
151
|
type UniFormSubmitEventDetail = UniFormSubmitEventDetailOrigin
|
|
@@ -170,6 +170,7 @@ declare global {
|
|
|
170
170
|
type UniCloudDBComponentPaginationType = UniCloudDBComponentPaginationTypeOrigin
|
|
171
171
|
type UniCloudDBComponentUpdateOptions = UniCloudDBComponentUpdateOptionsOrigin
|
|
172
172
|
type UniCloudDBElement = UniCloudDBElementOrigin
|
|
173
|
+
var UniCloudDBElement: typeof UniCloudDBElementOrigin
|
|
173
174
|
// lifecycle
|
|
174
175
|
var onHide: typeof onHideOrigin
|
|
175
176
|
var onLaunch: typeof onLaunchOrigin
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
type UTSJSONObject = {};
|
|
2
|
-
type UniCloudDBGetResult = {};
|
|
3
|
-
type SuccessCallback<T> = (res: T | null) => void | null;
|
|
4
|
-
type FailCallback = (err: any | null) => void | null;
|
|
5
|
-
type CompleteCallback = () => void | null;
|
|
6
|
-
export type MixinDatacomPaginationType = {
|
|
7
|
-
current: number;
|
|
8
|
-
size: number;
|
|
9
|
-
count: number;
|
|
10
|
-
};
|
|
11
|
-
export type MixinDatacomGetOptions = {
|
|
12
|
-
collection?: UTSJSONObject;
|
|
13
|
-
field?: string;
|
|
14
|
-
orderBy?: string;
|
|
15
|
-
where?: any;
|
|
16
|
-
pageData?: string;
|
|
17
|
-
pageCurrent?: number;
|
|
18
|
-
pageSize?: number;
|
|
19
|
-
getCount?: boolean;
|
|
20
|
-
getTree?: any;
|
|
21
|
-
getTreePath?: UTSJSONObject;
|
|
22
|
-
startWith?: string;
|
|
23
|
-
limitLevel?: number;
|
|
24
|
-
groupBy?: string;
|
|
25
|
-
groupField?: string;
|
|
26
|
-
distinct?: boolean;
|
|
27
|
-
pageIndistinct?: boolean;
|
|
28
|
-
foreignKey?: string;
|
|
29
|
-
loadtime?: string;
|
|
30
|
-
manual?: boolean;
|
|
31
|
-
};
|
|
32
|
-
export type MixinDatacomEasyGetOptions = {
|
|
33
|
-
success?: SuccessCallback<UniCloudDBGetResult>;
|
|
34
|
-
fail?: FailCallback;
|
|
35
|
-
complete?: CompleteCallback;
|
|
36
|
-
};
|
|
37
|
-
// export declare const mixinDatacom: any;
|
|
38
|
-
export {};
|
|
39
|
-
|
|
40
|
-
declare module 'index' {
|
|
41
|
-
export interface SlotsType<T> {}
|
|
42
|
-
export interface UTSJSONObject {}
|
|
43
|
-
export interface MixinDatacomPaginationType {}
|
|
44
|
-
export interface UniCloudError {}
|
|
45
|
-
export interface MixinDatacomEasyGetOptions {}
|
|
46
|
-
export interface UniCloudDBGetResult {}
|
|
47
|
-
export interface MixinDatacomGetOptions {}
|
|
48
|
-
export interface UniCloudDBFilter {}
|
|
49
|
-
export interface UniCloudDBQuery {}
|
|
50
|
-
|
|
51
|
-
export const mixinDatacom: {
|
|
52
|
-
slots: SlotsType<{
|
|
53
|
-
default: {
|
|
54
|
-
data: Array<UTSJSONObject>,
|
|
55
|
-
loading: boolean,
|
|
56
|
-
hasMore: boolean,
|
|
57
|
-
pagination: MixinDatacomPaginationType,
|
|
58
|
-
error: UniCloudError | null
|
|
59
|
-
}
|
|
60
|
-
}>,
|
|
61
|
-
props: {
|
|
62
|
-
[key: string]: {
|
|
63
|
-
type: any,
|
|
64
|
-
default: any
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
data(): {
|
|
68
|
-
mixinDatacomResData: Array<UTSJSONObject>,
|
|
69
|
-
mixinDatacomLoading: boolean,
|
|
70
|
-
mixinDatacomHasMore: boolean,
|
|
71
|
-
mixinDatacomPage: MixinDatacomPaginationType,
|
|
72
|
-
mixinDatacomError: UniCloudError | null
|
|
73
|
-
},
|
|
74
|
-
created(): void,
|
|
75
|
-
methods: {
|
|
76
|
-
onMixinDatacomPropsChange(_: boolean, changed: Array<string>): void,
|
|
77
|
-
mixinDatacomEasyGet(options?: MixinDatacomEasyGetOptions): void,
|
|
78
|
-
mixinDatacomGet(options?: MixinDatacomGetOptions): Promise<UniCloudDBGetResult>
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
}
|