@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
|
@@ -11,6 +11,11 @@ import { CanvasRenderingContext2D } from "./CanvasRenderingContext2D"
|
|
|
11
11
|
* @package io.dcloud.uniapp.runtime
|
|
12
12
|
*/
|
|
13
13
|
export interface UniElement {
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
readonly __v_skip?: boolean
|
|
18
|
+
|
|
14
19
|
/**
|
|
15
20
|
* 只读属性 获取当前元素的的 class 属性的动态集合。
|
|
16
21
|
*/
|
|
@@ -261,6 +266,7 @@ export interface UniElement {
|
|
|
261
266
|
|
|
262
267
|
/**
|
|
263
268
|
* 将指定的监听器注册到元素对象上,当该对象触发指定的事件时,指定的回调函数就会被执行。
|
|
269
|
+
* @internal
|
|
264
270
|
* @param {string} type 事件类型
|
|
265
271
|
* @param {(event: T) => R} callback 事件监听器 T表示event类型,R表示返回值类型
|
|
266
272
|
*/
|
|
@@ -268,6 +274,7 @@ export interface UniElement {
|
|
|
268
274
|
|
|
269
275
|
/**
|
|
270
276
|
* 删除使用 addEventListener 方法添加的事件监听器。
|
|
277
|
+
* @internal
|
|
271
278
|
* @param type 事件类型
|
|
272
279
|
* @param callbackWrapper 事件监听回调封装类
|
|
273
280
|
*/
|
|
@@ -286,11 +293,32 @@ export interface UniElement {
|
|
|
286
293
|
|
|
287
294
|
/**
|
|
288
295
|
* 向一个指定的事件目标派发一个 Event,并以合适的顺序(同步地)调用此事件的监听器回调函数。
|
|
296
|
+
* @internal
|
|
289
297
|
* @param {string} type 事件类型
|
|
290
298
|
* @param {UniEvent} value 事件返回对象
|
|
291
299
|
*/
|
|
292
300
|
dispatchEvent(type: string, value: UniEvent): void
|
|
293
301
|
|
|
302
|
+
/**
|
|
303
|
+
* 向一个指定的事件目标派发一个 Event,并以合适的顺序(同步地)调用此事件的监听器回调函数。
|
|
304
|
+
* @param {UniEvent} value 事件返回对象
|
|
305
|
+
* @uniPlatform {
|
|
306
|
+
* "app": {
|
|
307
|
+
* "android": {
|
|
308
|
+
* "osVer": "5.0",
|
|
309
|
+
* "uniVer": "x",
|
|
310
|
+
* "unixVer": "4.25"
|
|
311
|
+
* },
|
|
312
|
+
* "ios": {
|
|
313
|
+
* "osVer": "12.0",
|
|
314
|
+
* "uniVer": "x",
|
|
315
|
+
* "unixVer": "4.25"
|
|
316
|
+
* }
|
|
317
|
+
* }
|
|
318
|
+
* }
|
|
319
|
+
*/
|
|
320
|
+
dispatchEvent(value: UniEvent): void
|
|
321
|
+
|
|
294
322
|
/**
|
|
295
323
|
* 使界面滚动到给定元素的指定坐标位置 仅scroll-view、list-view组件支持
|
|
296
324
|
* @param {number} x x轴要滚动到坐标位置(单位px)
|
|
@@ -326,6 +354,63 @@ export interface UniElement {
|
|
|
326
354
|
* 使元素丢失焦点 仅input、Textarea组件支持
|
|
327
355
|
*/
|
|
328
356
|
blur(): void
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* 获取元素android原生view
|
|
360
|
+
* @uniPlatform {
|
|
361
|
+
* "app": {
|
|
362
|
+
* "android": {
|
|
363
|
+
* "osVer": "5.0",
|
|
364
|
+
* "uniVer": "x",
|
|
365
|
+
* "unixVer": "4.25"
|
|
366
|
+
* },
|
|
367
|
+
* "ios": {
|
|
368
|
+
* "osVer": "12.0",
|
|
369
|
+
* "uniVer": "x",
|
|
370
|
+
* "unixVer": "x"
|
|
371
|
+
* }
|
|
372
|
+
* }
|
|
373
|
+
* }
|
|
374
|
+
*/
|
|
375
|
+
getAndroidView(): View | null
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* 获取元素android原生view 通过泛型定义view类型
|
|
379
|
+
* @uniPlatform {
|
|
380
|
+
* "app": {
|
|
381
|
+
* "android": {
|
|
382
|
+
* "osVer": "5.0",
|
|
383
|
+
* "uniVer": "x",
|
|
384
|
+
* "unixVer": "4.25"
|
|
385
|
+
* },
|
|
386
|
+
* "ios": {
|
|
387
|
+
* "osVer": "12.0",
|
|
388
|
+
* "uniVer": "x",
|
|
389
|
+
* "unixVer": "x"
|
|
390
|
+
* }
|
|
391
|
+
* }
|
|
392
|
+
* }
|
|
393
|
+
*/
|
|
394
|
+
getAndroidView<T>(): T | null
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* 获取元素android原生activity
|
|
398
|
+
* @uniPlatform {
|
|
399
|
+
* "app": {
|
|
400
|
+
* "android": {
|
|
401
|
+
* "osVer": "5.0",
|
|
402
|
+
* "uniVer": "x",
|
|
403
|
+
* "unixVer": "4.25"
|
|
404
|
+
* },
|
|
405
|
+
* "ios": {
|
|
406
|
+
* "osVer": "12.0",
|
|
407
|
+
* "uniVer": "x",
|
|
408
|
+
* "unixVer": "x"
|
|
409
|
+
* }
|
|
410
|
+
* }
|
|
411
|
+
* }
|
|
412
|
+
*/
|
|
413
|
+
getAndroidActivity(): Activity | null
|
|
329
414
|
}
|
|
330
415
|
|
|
331
416
|
export type INode = UniElement
|
|
@@ -757,17 +842,17 @@ export interface UniNestedScrollBodyElement extends UniElement {}
|
|
|
757
842
|
* "app": {
|
|
758
843
|
* "android": {
|
|
759
844
|
* "osVer": "5.0",
|
|
760
|
-
* "uniVer": "
|
|
761
|
-
* "unixVer": "
|
|
845
|
+
* "uniVer": "√",
|
|
846
|
+
* "unixVer": "4.25"
|
|
762
847
|
* },
|
|
763
848
|
* "ios": {
|
|
764
849
|
* "osVer": "12.0",
|
|
765
|
-
* "uniVer": "
|
|
766
|
-
* "unixVer": "
|
|
850
|
+
* "uniVer": "√",
|
|
851
|
+
* "unixVer": "4.25"
|
|
767
852
|
* }
|
|
768
853
|
* },
|
|
769
854
|
* "web": {
|
|
770
|
-
* "uniVer": "
|
|
855
|
+
* "uniVer": "√",
|
|
771
856
|
* "unixVer": "4.21"
|
|
772
857
|
* }
|
|
773
858
|
* }
|
|
@@ -775,14 +860,158 @@ export interface UniNestedScrollBodyElement extends UniElement {}
|
|
|
775
860
|
export interface UniCanvasElement extends UniElement {
|
|
776
861
|
/**
|
|
777
862
|
* Canvas宽度
|
|
778
|
-
|
|
779
|
-
|
|
863
|
+
* @uniPlatform {
|
|
864
|
+
* "app": {
|
|
865
|
+
* "android": {
|
|
866
|
+
* "osVer": "5.0",
|
|
867
|
+
* "uniVer": "√",
|
|
868
|
+
* "unixVer": "4.25"
|
|
869
|
+
* },
|
|
870
|
+
* "ios": {
|
|
871
|
+
* "osVer": "12.0",
|
|
872
|
+
* "uniVer": "√",
|
|
873
|
+
* "unixVer": "4.25"
|
|
874
|
+
* }
|
|
875
|
+
* },
|
|
876
|
+
* "web": {
|
|
877
|
+
* "uniVer": "√",
|
|
878
|
+
* "unixVer": "4.21"
|
|
879
|
+
* }
|
|
880
|
+
* }
|
|
881
|
+
*/
|
|
882
|
+
width: number
|
|
780
883
|
/**
|
|
781
884
|
* Canvas高度
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
885
|
+
* @uniPlatform {
|
|
886
|
+
* "app": {
|
|
887
|
+
* "android": {
|
|
888
|
+
* "osVer": "5.0",
|
|
889
|
+
* "uniVer": "√",
|
|
890
|
+
* "unixVer": "4.25"
|
|
891
|
+
* },
|
|
892
|
+
* "ios": {
|
|
893
|
+
* "osVer": "12.0",
|
|
894
|
+
* "uniVer": "√",
|
|
895
|
+
* "unixVer": "4.25"
|
|
896
|
+
* }
|
|
897
|
+
* },
|
|
898
|
+
* "web": {
|
|
899
|
+
* "uniVer": "√",
|
|
900
|
+
* "unixVer": "4.21"
|
|
901
|
+
* }
|
|
902
|
+
* }
|
|
903
|
+
*/
|
|
904
|
+
height: number
|
|
905
|
+
/**
|
|
906
|
+
* 返回 Canvas 的绘图上下文
|
|
907
|
+
* @uniPlatform {
|
|
908
|
+
* "app": {
|
|
909
|
+
* "android": {
|
|
910
|
+
* "osVer": "5.0",
|
|
911
|
+
* "uniVer": "√",
|
|
912
|
+
* "unixVer": "4.25"
|
|
913
|
+
* },
|
|
914
|
+
* "ios": {
|
|
915
|
+
* "osVer": "12.0",
|
|
916
|
+
* "uniVer": "√",
|
|
917
|
+
* "unixVer": "4.25"
|
|
918
|
+
* }
|
|
919
|
+
* },
|
|
920
|
+
* "web": {
|
|
921
|
+
* "uniVer": "√",
|
|
922
|
+
* "unixVer": "4.21"
|
|
923
|
+
* }
|
|
924
|
+
* }
|
|
925
|
+
*/
|
|
926
|
+
getContext(contentType: string): CanvasRenderingContext2D | null
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
// 允许instanceof检查
|
|
930
|
+
export let UniElement: {
|
|
931
|
+
prototype: UniElement
|
|
932
|
+
new (): UniElement
|
|
933
|
+
}
|
|
934
|
+
export let UniButtonElement: {
|
|
935
|
+
prototype: UniButtonElement
|
|
936
|
+
new (): UniButtonElement
|
|
937
|
+
}
|
|
938
|
+
export let UniCanvasElement: {
|
|
939
|
+
prototype: UniCanvasElement
|
|
940
|
+
new (): UniCanvasElement
|
|
941
|
+
}
|
|
942
|
+
export let UniCommentElement: {
|
|
943
|
+
prototype: UniCommentElement
|
|
944
|
+
new (): UniCommentElement
|
|
945
|
+
}
|
|
946
|
+
export let UniImageElement: {
|
|
947
|
+
prototype: UniImageElement
|
|
948
|
+
new (): UniImageElement
|
|
949
|
+
}
|
|
950
|
+
export let Image: {
|
|
951
|
+
prototype: Image
|
|
952
|
+
new(width?: number, height?: number): Image
|
|
953
|
+
}
|
|
954
|
+
export let UniInputElement: {
|
|
955
|
+
prototype: UniInputElement
|
|
956
|
+
new (): UniInputElement
|
|
957
|
+
}
|
|
958
|
+
export let UniListItemElement: {
|
|
959
|
+
prototype: UniListItemElement
|
|
960
|
+
new (): UniListItemElement
|
|
961
|
+
}
|
|
962
|
+
export let UniListViewElement: {
|
|
963
|
+
prototype: UniListViewElement
|
|
964
|
+
new (): UniListViewElement
|
|
965
|
+
}
|
|
966
|
+
export let UniNestedScrollBodyElement: {
|
|
967
|
+
prototype: UniNestedScrollBodyElement
|
|
968
|
+
new (): UniNestedScrollBodyElement
|
|
969
|
+
}
|
|
970
|
+
export let UniNestedScrollHeaderElement: {
|
|
971
|
+
prototype: UniNestedScrollHeaderElement
|
|
972
|
+
new (): UniNestedScrollHeaderElement
|
|
973
|
+
}
|
|
974
|
+
export let UniRichTextElement: {
|
|
975
|
+
prototype: UniRichTextElement
|
|
976
|
+
new (): UniRichTextElement
|
|
977
|
+
}
|
|
978
|
+
export let UniScrollViewElement: {
|
|
979
|
+
prototype: UniScrollViewElement
|
|
980
|
+
new (): UniScrollViewElement
|
|
981
|
+
}
|
|
982
|
+
export let UniStickyHeaderElement: {
|
|
983
|
+
prototype: UniStickyHeaderElement
|
|
984
|
+
new (): UniStickyHeaderElement
|
|
985
|
+
}
|
|
986
|
+
export let UniStickySectionElement: {
|
|
987
|
+
prototype: UniStickySectionElement
|
|
988
|
+
new (): UniStickySectionElement
|
|
989
|
+
}
|
|
990
|
+
export let UniSwiperElement: {
|
|
991
|
+
prototype: UniSwiperElement
|
|
992
|
+
new (): UniSwiperElement
|
|
993
|
+
}
|
|
994
|
+
export let UniSwiperItemElement: {
|
|
995
|
+
prototype: UniSwiperItemElement
|
|
996
|
+
new (): UniSwiperItemElement
|
|
997
|
+
}
|
|
998
|
+
export let UniTabsElement: {
|
|
999
|
+
prototype: UniTabsElement
|
|
1000
|
+
new (): UniTabsElement
|
|
1001
|
+
}
|
|
1002
|
+
export let UniTextElement: {
|
|
1003
|
+
prototype: UniTextElement
|
|
1004
|
+
new (): UniTextElement
|
|
1005
|
+
}
|
|
1006
|
+
export let UniTextareaElement: {
|
|
1007
|
+
prototype: UniTextareaElement
|
|
1008
|
+
new (): UniTextareaElement
|
|
1009
|
+
}
|
|
1010
|
+
export let UniViewElement: {
|
|
1011
|
+
prototype: UniViewElement
|
|
1012
|
+
new (): UniViewElement
|
|
1013
|
+
}
|
|
1014
|
+
export let UniWebViewElement: {
|
|
1015
|
+
prototype: UniWebViewElement
|
|
1016
|
+
new (): UniWebViewElement
|
|
788
1017
|
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { UniElement } from "./IUniElement"
|
|
2
|
+
import { UniCustomEvent } from "./UniCustomEvent"
|
|
3
|
+
/**
|
|
4
|
+
* UniObject 元素对象
|
|
5
|
+
* @package io.dcloud.uniapp.runtime
|
|
6
|
+
* @uniPlatform {
|
|
7
|
+
* "app": {
|
|
8
|
+
* "android": {
|
|
9
|
+
* "osVer": "5.0",
|
|
10
|
+
* "uniVer": "x",
|
|
11
|
+
* "unixVer": "4.25"
|
|
12
|
+
* },
|
|
13
|
+
* "ios": {
|
|
14
|
+
* "osVer": "12.0",
|
|
15
|
+
* "uniVer": "x",
|
|
16
|
+
* "unixVer": "4.25"
|
|
17
|
+
* }
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
*/
|
|
21
|
+
export interface UniObjectElement extends UniElement {
|
|
22
|
+
/**
|
|
23
|
+
* 绑定安卓平台原生view
|
|
24
|
+
* @uniPlatform {
|
|
25
|
+
* "app": {
|
|
26
|
+
* "android": {
|
|
27
|
+
* "osVer": "5.0",
|
|
28
|
+
* "uniVer": "x",
|
|
29
|
+
* "unixVer": "4.25"
|
|
30
|
+
* },
|
|
31
|
+
* "ios": {
|
|
32
|
+
* "osVer": "12.0",
|
|
33
|
+
* "uniVer": "x",
|
|
34
|
+
* "unixVer": "x"
|
|
35
|
+
* }
|
|
36
|
+
* }
|
|
37
|
+
* }
|
|
38
|
+
*/
|
|
39
|
+
bindAndroidView(view: View): void
|
|
40
|
+
/**
|
|
41
|
+
* 绑定IOS平台原生view
|
|
42
|
+
* @uniPlatform {
|
|
43
|
+
* "app": {
|
|
44
|
+
* "android": {
|
|
45
|
+
* "osVer": "5.0",
|
|
46
|
+
* "uniVer": "x",
|
|
47
|
+
* "unixVer": "x"
|
|
48
|
+
* },
|
|
49
|
+
* "ios": {
|
|
50
|
+
* "osVer": "12.0",
|
|
51
|
+
* "uniVer": "x",
|
|
52
|
+
* "unixVer": "4.25"
|
|
53
|
+
* }
|
|
54
|
+
* }
|
|
55
|
+
* }
|
|
56
|
+
*/
|
|
57
|
+
bindIOSView(view: UIView): void
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export let UniObjectElement: {
|
|
61
|
+
prototype: UniObjectElement;
|
|
62
|
+
new(): UniObjectElement;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* UniObject自定义事件
|
|
67
|
+
* @package io.dcloud.uniapp.runtime
|
|
68
|
+
* @uniPlatform {
|
|
69
|
+
* "app": {
|
|
70
|
+
* "android": {
|
|
71
|
+
* "osVer": "5.0",
|
|
72
|
+
* "uniVer": "x",
|
|
73
|
+
* "unixVer": "4.25"
|
|
74
|
+
* },
|
|
75
|
+
* "ios": {
|
|
76
|
+
* "osVer": "12.0",
|
|
77
|
+
* "uniVer": "x",
|
|
78
|
+
* "unixVer": "4.25"
|
|
79
|
+
* }
|
|
80
|
+
* }
|
|
81
|
+
* }
|
|
82
|
+
*/
|
|
83
|
+
export class UniObjectCustomEvent extends UniCustomEvent<UTSJSONObject> {
|
|
84
|
+
/**
|
|
85
|
+
* 事件类型
|
|
86
|
+
*/
|
|
87
|
+
type: string
|
|
88
|
+
detail : UTSJSONObject
|
|
89
|
+
|
|
90
|
+
constructor(type: string, detail: UTSJSONObject)
|
|
91
|
+
constructor(type: string)
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @package io.dcloud.uniapp.runtime
|
|
96
|
+
*/
|
|
97
|
+
export class UniObjectInitEventDetail {
|
|
98
|
+
readonly element : UniObjectElement
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* UniObject init事件event
|
|
103
|
+
* @package io.dcloud.uniapp.runtime
|
|
104
|
+
* @uniPlatform {
|
|
105
|
+
* "app": {
|
|
106
|
+
* "android": {
|
|
107
|
+
* "osVer": "5.0",
|
|
108
|
+
* "uniVer": "x",
|
|
109
|
+
* "unixVer": "4.25"
|
|
110
|
+
* },
|
|
111
|
+
* "ios": {
|
|
112
|
+
* "osVer": "12.0",
|
|
113
|
+
* "uniVer": "x",
|
|
114
|
+
* "unixVer": "4.25"
|
|
115
|
+
* }
|
|
116
|
+
* }
|
|
117
|
+
* }
|
|
118
|
+
*/
|
|
119
|
+
export class UniObjectInitEvent extends UniCustomEvent<UniObjectInitEventDetail> {
|
|
120
|
+
detail : UniObjectInitEventDetail
|
|
121
|
+
type: string
|
|
122
|
+
|
|
123
|
+
constructor(type: string, detail: UniObjectInitEventDetail)
|
|
124
|
+
}
|