@dcloudio/uni-app-x 0.6.8 → 0.7.0

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.
Files changed (37) hide show
  1. package/package.json +1 -1
  2. package/types/native/CustomEvent.d.ts +2 -1
  3. package/types/native/Event.d.ts +8 -3
  4. package/types/native/IUniElement.d.ts +748 -0
  5. package/types/native/InputFocusEvent.d.ts +30 -17
  6. package/types/native/SourceError.d.ts +10 -0
  7. package/types/native/StartNestedScrollEvent.d.ts +2 -2
  8. package/types/native/UniApp.d.ts +66 -0
  9. package/types/native/UniCallbackWrapper.d.ts +7 -0
  10. package/types/native/UniDocument.d.ts +33 -0
  11. package/types/native/UniElement.d.ts +24 -108
  12. package/types/native/UniPage.d.ts +96 -0
  13. package/types/native/UniPageManager.d.ts +17 -0
  14. package/types/native/UniTabsElement.d.ts +20 -81
  15. package/types/native/UniTextElement.d.ts +3 -11
  16. package/types/native/UniVideoElement.d.ts +2 -2
  17. package/types/native/UniWebViewElement.d.ts +3 -24
  18. package/types/native/ViewToTempFilePathOptions.d.ts +38 -0
  19. package/types/native/global.d.ts +92 -76
  20. package/types/native/index.d.ts +7 -8
  21. package/types/uni/core/lib/ui/tab-bar/interface.d.ts +1 -0
  22. package/types/uni/uts-plugin-api/index.d.ts +1 -1
  23. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +1 -1
  24. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2 -2
  25. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +2 -2
  26. package/types/uni/uts-plugin-biz/index.d.ts +1 -0
  27. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +34 -0
  28. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +128 -0
  29. package/types/vue/UniCanvasElement.d.ts +270 -0
  30. package/types/native/Element.d.ts +0 -288
  31. package/types/native/IApp.d.ts +0 -28
  32. package/types/native/IComment.d.ts +0 -5
  33. package/types/native/IDocument.d.ts +0 -42
  34. package/types/native/IPage.d.ts +0 -135
  35. package/types/native/IPageManager.d.ts +0 -15
  36. package/types/native/ITextNode.d.ts +0 -6
  37. package/types/native/UniAppManager.d.ts +0 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.6.8",
3
+ "version": "0.7.0",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "author": "DCloud",
@@ -12,6 +12,7 @@ export class CustomEventOptions<T>{
12
12
  * @package io.dcloud.uniapp.runtime
13
13
  */
14
14
  export class CustomEvent<T> extends Event {
15
- get detail(): T
15
+ detail: T
16
+ constructor (type: string, detail: T)
16
17
  constructor (type: string, options: CustomEventOptions<T>)
17
18
  }
@@ -1,4 +1,4 @@
1
- import { Element } from "./Element"
1
+ import { UniElement } from "./IUniElement"
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
@@ -23,11 +23,11 @@ export class Event {
23
23
  /**
24
24
  * 触发事件的组件
25
25
  */
26
- target: Element
26
+ target?: UniElement | null
27
27
  /**
28
28
  * 当前组件
29
29
  */
30
- currentTarget: Element
30
+ currentTarget?: UniElement | null
31
31
  /**
32
32
  * 事件发生时的时间戳
33
33
  */
@@ -41,3 +41,8 @@ export class Event {
41
41
  */
42
42
  preventDefault(): void
43
43
  }
44
+
45
+ export class KeyEvent extends Event{
46
+ readonly keyCode:number
47
+ readonly keyType:string
48
+ }