@dcloudio/uni-app-x 0.7.4 → 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.
Files changed (114) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +9 -9
  3. package/types/native/CSSStyleDeclaration.d.ts +4 -2
  4. package/types/native/IUniElement.d.ts +26 -4
  5. package/types/native/UniApp.d.ts +2 -2
  6. package/types/native/UniCustomEvent.d.ts +25 -0
  7. package/types/native/UniElement.d.ts +6 -3
  8. package/types/native/{Event.d.ts → UniEvent.d.ts} +18 -4
  9. package/types/native/UniForm.d.ts +8 -0
  10. package/types/native/UniImageErrorEvent.d.ts +16 -0
  11. package/types/native/UniImageLoadEvent.d.ts +20 -0
  12. package/types/native/UniInputBlurEvent.d.ts +20 -0
  13. package/types/native/UniInputConfirmEvent.d.ts +16 -0
  14. package/types/native/{InputEvent.d.ts → UniInputEvent.d.ts} +6 -3
  15. package/types/native/{TextareaFocusEvent.d.ts → UniInputFocusEvent.d.ts} +6 -3
  16. package/types/native/UniInputKeyboardHeightChangeEvent.d.ts +20 -0
  17. package/types/native/{NestedPreScrollEvent.d.ts → UniNestedPreScrollEvent.d.ts} +26 -22
  18. package/types/native/UniPage.d.ts +4 -4
  19. package/types/native/UniPageEvent.d.ts +11 -0
  20. package/types/native/UniPageScrollEvent.d.ts +14 -0
  21. package/types/native/{PointerEvent.d.ts → UniPointerEvent.d.ts} +11 -4
  22. package/types/native/UniRefresherEvent.d.ts +14 -0
  23. package/types/native/{ResizeEvent.d.ts → UniResizeEvent.d.ts} +6 -3
  24. package/types/native/{RichTextItemClickEvent.d.ts → UniRichTextItemClickEvent.d.ts} +5 -2
  25. package/types/native/{ScrollEvent.d.ts → UniScrollEvent.d.ts} +6 -3
  26. package/types/native/UniScrollToLowerEvent.d.ts +16 -0
  27. package/types/native/UniScrollToUpperEvent.d.ts +16 -0
  28. package/types/native/{StartNestedScrollEvent.d.ts → UniStartNestedScrollEvent.d.ts} +6 -3
  29. package/types/native/{StopNestedScrollEvent.d.ts → UniStopNestedScrollEvent.d.ts} +5 -2
  30. package/types/native/{SwiperAnimationFinishEvent.d.ts → UniSwiperAnimationFinishEvent.d.ts} +5 -2
  31. package/types/native/{SwiperChangeEvent.d.ts → UniSwiperChangeEvent.d.ts} +5 -2
  32. package/types/native/{SwiperTransitionEvent.d.ts → UniSwiperTransitionEvent.d.ts} +5 -2
  33. package/types/native/{TabTapEvent.d.ts → UniTabTapEvent.d.ts} +6 -3
  34. package/types/native/UniTextElement.d.ts +3 -0
  35. package/types/native/UniTextareaBlurEvent.d.ts +20 -0
  36. package/types/native/{InputFocusEvent.d.ts → UniTextareaFocusEvent.d.ts} +7 -3
  37. package/types/native/UniTextareaLineChangeEvent.d.ts +24 -0
  38. package/types/native/{TouchEvent.d.ts → UniTouchEvent.d.ts} +13 -6
  39. package/types/native/UniVideoElement.d.ts +5 -5
  40. package/types/native/{WebViewDownloadEvent.d.ts → UniWebViewDownloadEvent.d.ts} +10 -4
  41. package/types/native/{WebViewErrorEvent.d.ts → UniWebViewErrorEvent.d.ts} +10 -4
  42. package/types/native/UniWebViewLoadEvent.d.ts +27 -0
  43. package/types/native/UniWebViewLoadingEvent.d.ts +28 -0
  44. package/types/native/UniWebViewMessageEvent.d.ts +27 -0
  45. package/types/native/UniWebViewServiceMessageEvent.d.ts +1 -1
  46. package/types/native/global.d.ts +238 -111
  47. package/types/native/index.d.ts +35 -34
  48. package/types/page.d.ts +19 -19
  49. package/types/uni/core/lib/base/event/interface.d.ts +244 -4
  50. package/types/uni/core/lib/base/interceptor/interface.d.ts +2 -2
  51. package/types/uni/core/lib/lifecycle/interface.d.ts +26 -1
  52. package/types/uni/core/lib/performance/interface.d.ts +26 -1
  53. package/types/uni/core/lib/route/interface.d.ts +30 -30
  54. package/types/uni/core/lib/ui/create-selector-query/interface.d.ts +73 -73
  55. package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +2 -2
  56. package/types/uni/core/lib/ui/load-font-face/interface.d.ts +9 -9
  57. package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +37 -37
  58. package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +122 -2
  59. package/types/uni/core/lib/ui/set-navigation-bar-color/interface.d.ts +7 -7
  60. package/types/uni/core/lib/ui/set-navigation-bar-title/interface.d.ts +6 -6
  61. package/types/uni/core/lib/ui/tab-bar/interface.d.ts +489 -9
  62. package/types/uni/uts-plugin-api/global.d.ts +2 -1
  63. package/types/uni/uts-plugin-api/index.d.ts +2 -1
  64. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -0
  65. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -0
  66. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +44 -0
  67. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +11 -7
  68. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -2
  69. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +22 -18
  70. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +1 -1
  71. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +4 -4
  72. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +8 -4
  73. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +33 -29
  74. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +7 -3
  75. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +18 -14
  76. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +106 -94
  77. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +1 -1
  78. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +6 -2
  79. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +11 -3
  80. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +176 -152
  81. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +66 -18
  82. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +51 -11
  83. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +238 -186
  84. package/types/uni/uts-plugin-biz/global.d.ts +1 -1
  85. package/types/uni/uts-plugin-biz/index.d.ts +1 -1
  86. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +17 -18
  87. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +26 -4
  88. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +13 -2
  89. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +93 -32
  90. package/types/vue/CheckboxGroupChangeEvent.d.ts +9 -2
  91. package/types/vue/LifeCycle.d.ts +3 -3
  92. package/types/vue/PickerViewChangeEvent.d.ts +9 -2
  93. package/types/vue/ProgressActiveendEvent.d.ts +9 -2
  94. package/types/vue/RadioGroupChangeEvent.d.ts +9 -2
  95. package/types/vue/SliderChangeEvent.d.ts +9 -2
  96. package/types/vue/SwitchChangeEvent.d.ts +9 -2
  97. package/types/vue/UniFormElement.d.ts +18 -4
  98. package/uts-plugin.d.ts +6 -6
  99. package/types/native/CustomEvent.d.ts +0 -18
  100. package/types/native/ImageErrorEvent.d.ts +0 -13
  101. package/types/native/ImageLoadEvent.d.ts +0 -17
  102. package/types/native/InputBlurEvent.d.ts +0 -17
  103. package/types/native/InputConfirmEvent.d.ts +0 -13
  104. package/types/native/InputKeyboardHeightChangeEvent.d.ts +0 -17
  105. package/types/native/PageEvent.d.ts +0 -8
  106. package/types/native/PageScrollEvent.d.ts +0 -11
  107. package/types/native/RefresherEvent.d.ts +0 -10
  108. package/types/native/ScrollToLowerEvent.d.ts +0 -13
  109. package/types/native/ScrollToUpperEvent.d.ts +0 -13
  110. package/types/native/TextareaBlurEvent.d.ts +0 -17
  111. package/types/native/TextareaLineChangeEvent.d.ts +0 -21
  112. package/types/native/WebViewLoadedEvent.d.ts +0 -21
  113. package/types/native/WebViewLoadingEvent.d.ts +0 -22
  114. package/types/native/WebViewMessageEvent.d.ts +0 -21
@@ -0,0 +1,16 @@
1
+ import { UniEvent } from "./UniEvent"
2
+
3
+ /**
4
+ * @package io.dcloud.uniapp.runtime
5
+ */
6
+ export class UniScrollToLowerEvent extends UniEvent {
7
+ detail: {
8
+ /**
9
+ * 滚动方向 bottom 或 right
10
+ */
11
+ direction: string
12
+ }
13
+ }
14
+
15
+ export type ScrollToLowerEvent = UniScrollToLowerEvent
16
+ export const ScrollToLowerEvent: typeof UniScrollToLowerEvent
@@ -0,0 +1,16 @@
1
+ import { UniEvent } from "./UniEvent"
2
+
3
+ /**
4
+ * @package io.dcloud.uniapp.runtime
5
+ */
6
+ export class UniScrollToUpperEvent extends UniEvent {
7
+ detail: {
8
+ /**
9
+ * 滚动方向 top 或 left
10
+ */
11
+ direction: string
12
+ }
13
+ }
14
+
15
+ export type ScrollToUpperEvent = UniScrollToUpperEvent
16
+ export const ScrollToUpperEvent: typeof UniScrollToUpperEvent
@@ -1,10 +1,10 @@
1
- import { Event } from "./Event";
1
+ import { UniEvent } from "./UniEvent";
2
2
  import { UniElement } from "./IUniElement";
3
3
 
4
4
  /**
5
5
  * @package io.dcloud.uniapp.runtime
6
6
  */
7
- export class StartNestedScrollEvent extends Event {
7
+ export class UniStartNestedScrollEvent extends UniEvent {
8
8
  /**
9
9
  * 开始滚动子节点对象
10
10
  */
@@ -28,4 +28,7 @@ export class StartNestedScrollEvent extends Event {
28
28
  * }
29
29
  */
30
30
  isTouch: boolean
31
- }
31
+ }
32
+
33
+ export type StartNestedScrollEvent = UniStartNestedScrollEvent
34
+ export const StartNestedScrollEvent: typeof UniStartNestedScrollEvent
@@ -1,4 +1,4 @@
1
- import { Event } from "./Event";
1
+ import { UniEvent } from "./UniEvent";
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
@@ -17,10 +17,13 @@ import { Event } from "./Event";
17
17
  * }
18
18
  * }
19
19
  */
20
- export class StopNestedScrollEvent extends Event {
20
+ export class UniStopNestedScrollEvent extends UniEvent {
21
21
 
22
22
  /**
23
23
  * 是否由触摸行为发生的Event
24
24
  */
25
25
  isTouch: boolean
26
26
  }
27
+
28
+ export type StopNestedScrollEvent = UniStopNestedScrollEvent
29
+ export const StopNestedScrollEvent: typeof UniStopNestedScrollEvent
@@ -1,9 +1,9 @@
1
- import { Event } from "./Event"
1
+ import { UniEvent } from "./UniEvent"
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- export class SwiperAnimationFinishEvent extends Event {
6
+ export class UniSwiperAnimationFinishEvent extends UniEvent {
7
7
  detail: {
8
8
  /**
9
9
  * 发生动画结束事件的滑块下标
@@ -15,3 +15,6 @@ export class SwiperAnimationFinishEvent extends Event {
15
15
  source: string
16
16
  }
17
17
  }
18
+
19
+ export type SwiperAnimationFinishEvent = UniSwiperAnimationFinishEvent
20
+ export const SwiperAnimationFinishEvent: typeof UniSwiperAnimationFinishEvent
@@ -1,9 +1,9 @@
1
- import { Event } from "./Event"
1
+ import { UniEvent } from "./UniEvent"
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- export class SwiperChangeEvent extends Event {
6
+ export class UniSwiperChangeEvent extends UniEvent {
7
7
  detail: {
8
8
  /**
9
9
  * 发生change事件的滑块下标
@@ -15,3 +15,6 @@ export class SwiperChangeEvent extends Event {
15
15
  source: string
16
16
  }
17
17
  }
18
+
19
+ export type SwiperChangeEvent = UniSwiperChangeEvent
20
+ export const SwiperChangeEvent: typeof UniSwiperChangeEvent
@@ -1,9 +1,9 @@
1
- import { Event } from "./Event"
1
+ import { UniEvent } from "./UniEvent"
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- export class SwiperTransitionEvent extends Event {
6
+ export class UniSwiperTransitionEvent extends UniEvent {
7
7
  detail: {
8
8
  /**
9
9
  * 横向偏移量,单位是逻辑像素px
@@ -15,3 +15,6 @@ export class SwiperTransitionEvent extends Event {
15
15
  dy: number
16
16
  }
17
17
  }
18
+
19
+ export type SwiperTransitionEvent = UniSwiperTransitionEvent
20
+ export const SwiperTransitionEvent: typeof UniSwiperTransitionEvent
@@ -1,10 +1,10 @@
1
- import { Event } from "./Event"
1
+ import { UniEvent } from "./UniEvent"
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  * @autodoc false
6
6
  */
7
- export class TabTapEvent extends Event {
7
+ export class UniTabTapEvent extends UniEvent {
8
8
  /**
9
9
  * `tabBar`事件触发的类型
10
10
  */
@@ -13,4 +13,7 @@ export class TabTapEvent extends Event {
13
13
  * 点击的`tabBar`的某一项
14
14
  */
15
15
  index: number
16
- }
16
+ }
17
+
18
+ export type TabTapEvent = UniTabTapEvent
19
+ export const TabTapEvent: typeof UniTabTapEvent
@@ -1,5 +1,7 @@
1
1
  import { UniElementImpl } from "./UniElement"
2
2
  import { UniTextElement } from "./IUniElement"
3
+ import { PageNode } from "./PageNode"
4
+ import { INodeData } from "./NodeData"
3
5
  /**
4
6
  * text元素对象
5
7
  * @package io.dcloud.uniapp.runtime
@@ -11,4 +13,5 @@ export class UniTextElementImpl extends UniElementImpl implements UniTextElement
11
13
  */
12
14
  value: string
13
15
  getTextExtra(): any | null
16
+ constructor (data: INodeData, pageNode?: PageNode)
14
17
  }
@@ -0,0 +1,20 @@
1
+ import { UniEvent } from "./UniEvent"
2
+
3
+ /**
4
+ * @package io.dcloud.uniapp.runtime
5
+ */
6
+ export class UniTextareaBlurEvent extends UniEvent {
7
+ detail: {
8
+ /**
9
+ * 输入框内容
10
+ */
11
+ value: string,
12
+ /**
13
+ * 选择区域的起始位置
14
+ */
15
+ cursor: number
16
+ }
17
+ }
18
+
19
+ export type TextareaBlurEvent = UniTextareaBlurEvent
20
+ export const TextareaBlurEvent: typeof UniTextareaBlurEvent
@@ -1,9 +1,9 @@
1
- import { Event } from "./Event";
1
+ import { UniEvent } from "./UniEvent"
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- export class InputFocusEvent extends Event {
6
+ export class UniTextareaFocusEvent extends UniEvent {
7
7
  detail: {
8
8
  /**
9
9
  * 键盘高度
@@ -17,7 +17,7 @@ export class InputFocusEvent extends Event {
17
17
  * },
18
18
  * "web": {
19
19
  * "uniVer": "x",
20
- * "unixVer": "4.0+"
20
+ * "unixVer": "4.0"
21
21
  * }
22
22
  * }
23
23
  */
@@ -28,3 +28,7 @@ export class InputFocusEvent extends Event {
28
28
  value: string
29
29
  }
30
30
  }
31
+
32
+
33
+ export type TextareaFocusEvent = UniTextareaFocusEvent
34
+ export const TextareaFocusEvent: typeof UniTextareaFocusEvent
@@ -0,0 +1,24 @@
1
+ import { UniEvent } from "./UniEvent"
2
+
3
+ /**
4
+ * @package io.dcloud.uniapp.runtime
5
+ */
6
+ export class UniTextareaLineChangeEvent extends UniEvent {
7
+ detail: {
8
+ /**
9
+ * 行数
10
+ */
11
+ lineCount: number,
12
+ /**
13
+ * textarea的高度
14
+ */
15
+ heightRpx: number,
16
+ /**
17
+ * textarea的高度
18
+ */
19
+ height: number
20
+ }
21
+ }
22
+
23
+ export type TextareaLineChangeEvent = UniTextareaLineChangeEvent
24
+ export const TextareaLineChangeEvent: typeof UniTextareaLineChangeEvent
@@ -1,9 +1,9 @@
1
- import { Event } from "./Event"
1
+ import { UniEvent } from "./UniEvent"
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- export class Touch {
6
+ export class UniTouch {
7
7
  /**
8
8
  * 相对于页面可显示区域左边的距离
9
9
  */
@@ -41,13 +41,20 @@ export class Touch {
41
41
  /**
42
42
  * @package io.dcloud.uniapp.runtime
43
43
  */
44
- export class TouchEvent extends Event {
44
+ export class UniTouchEvent extends UniEvent {
45
45
  /**
46
46
  * 当前停留在屏幕中的触摸点信息的数组
47
47
  */
48
- touches: Touch[]
48
+ touches: UniTouch[]
49
49
  /**
50
50
  * 当前变化的触摸点信息的数组
51
51
  */
52
- changedTouches: Touch[]
53
- }
52
+ changedTouches: UniTouch[]
53
+ }
54
+
55
+
56
+ export type Touch = UniTouch
57
+ export const Touch: typeof UniTouch
58
+
59
+ export type TouchEvent = UniTouchEvent
60
+ export const TouchEvent: typeof UniTouchEvent
@@ -37,7 +37,7 @@ export interface UniVideoElement extends UniElement {
37
37
  * 进入全屏
38
38
  * @param {RequestFullScreenOptions} direction 0|正常竖向, 90|屏幕逆时针90度, -90|屏幕顺时针90度
39
39
  */
40
- requestFullScreen(direction: RequestFullScreenOptions | null): void
40
+ requestFullScreen(direction?: RequestFullScreenOptions | null): void
41
41
  /**
42
42
  * 退出全屏
43
43
  */
@@ -48,15 +48,15 @@ export type Danmu = {
48
48
  /**
49
49
  * 弹幕文字
50
50
  */
51
- text: string | null
51
+ text?: string | null
52
52
  /**
53
53
  * 弹幕颜色
54
54
  */
55
- color: string | null
55
+ color?: string | null
56
56
  /**
57
57
  * 显示时刻
58
58
  */
59
- time: number | null
59
+ time?: number | null
60
60
  }
61
61
 
62
62
  export type RequestFullScreenOptions = {
@@ -66,5 +66,5 @@ export type RequestFullScreenOptions = {
66
66
  * - 90: 屏幕逆时针90度
67
67
  * - -90: 屏幕顺时针90度
68
68
  */
69
- direction: number | null
69
+ direction?: number | null
70
70
  }
@@ -1,9 +1,9 @@
1
- import { CustomEvent } from "./CustomEvent"
1
+ import { UniCustomEvent } from "./UniCustomEvent"
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- export class WebViewDownloadEventDetail {
6
+ export class UniWebViewDownloadEventDetail {
7
7
  /**
8
8
  * 下载链接
9
9
  */
@@ -29,9 +29,15 @@ export class WebViewDownloadEventDetail {
29
29
  /**
30
30
  * @package io.dcloud.uniapp.runtime
31
31
  */
32
- export class WebViewDownloadEvent extends CustomEvent<WebViewDownloadEventDetail> {
32
+ export class UniWebViewDownloadEvent extends UniCustomEvent<UniWebViewDownloadEventDetail> {
33
33
  /**
34
34
  * 事件类型,固定值download
35
35
  */
36
36
  type: string
37
- }
37
+ }
38
+
39
+ export type WebViewDownloadEventDetail = UniWebViewDownloadEventDetail
40
+ export const WebViewDownloadEventDetail: typeof UniWebViewDownloadEventDetail
41
+
42
+ export type WebViewDownloadEvent = UniWebViewDownloadEvent
43
+ export const WebViewDownloadEvent: typeof UniWebViewDownloadEvent
@@ -1,9 +1,9 @@
1
- import { CustomEvent } from "./CustomEvent"
1
+ import { UniCustomEvent } from "./UniCustomEvent"
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- export class WebViewErrorEventDetail {
6
+ export class UniWebViewErrorEventDetail {
7
7
  /**
8
8
  * 统一错误主题(模块)名称,固定值uni-web-view
9
9
  */
@@ -24,9 +24,15 @@ export class WebViewErrorEventDetail {
24
24
  /**
25
25
  * @package io.dcloud.uniapp.runtime
26
26
  */
27
- export class WebViewErrorEvent extends CustomEvent<WebViewErrorEventDetail> {
27
+ export class UniWebViewErrorEvent extends UniCustomEvent<UniWebViewErrorEventDetail> {
28
28
  /**
29
29
  * 事件类型,固定值error
30
30
  */
31
31
  type: string
32
- }
32
+ }
33
+
34
+ export type WebViewErrorEventDetail = UniWebViewErrorEventDetail
35
+ export const WebViewErrorEventDetail: typeof UniWebViewErrorEventDetail
36
+
37
+ export type WebViewErrorEvent = UniWebViewErrorEvent
38
+ export const WebViewErrorEvent: typeof UniWebViewErrorEvent
@@ -0,0 +1,27 @@
1
+ import { UniCustomEvent } from "./UniCustomEvent"
2
+
3
+ /**
4
+ * @package io.dcloud.uniapp.runtime
5
+ */
6
+ export class UniWebViewLoadEventDetail {
7
+ /**
8
+ * 加载完成的网页链接
9
+ */
10
+ url: string
11
+ }
12
+
13
+ /**
14
+ * @package io.dcloud.uniapp.runtime
15
+ */
16
+ export class UniWebViewLoadEvent extends UniCustomEvent<UniWebViewLoadEventDetail> {
17
+ /**
18
+ * 事件类型,固定值load
19
+ */
20
+ type: string
21
+ }
22
+
23
+ export type WebViewLoadedEventDetail = UniWebViewLoadEventDetail
24
+ export const WebViewLoadedEventDetail: typeof UniWebViewLoadEventDetail
25
+
26
+ export type WebViewLoadedEvent = UniWebViewLoadEvent
27
+ export const WebViewLoadedEvent: typeof UniWebViewLoadEvent
@@ -0,0 +1,28 @@
1
+ import { UniCustomEvent } from "./UniCustomEvent"
2
+ import { UniEvent } from "./UniEvent"
3
+
4
+ /**
5
+ * @package io.dcloud.uniapp.runtime
6
+ */
7
+ export class UniWebViewLoadingEventDetail extends UniEvent {
8
+ /**
9
+ * 加载中的网页链接
10
+ */
11
+ url: string
12
+ }
13
+
14
+ /**
15
+ * @package io.dcloud.uniapp.runtime
16
+ */
17
+ export class UniWebViewLoadingEvent extends UniCustomEvent<UniWebViewLoadingEventDetail> {
18
+ /**
19
+ * 事件类型,固定值loading
20
+ */
21
+ type: string
22
+ }
23
+
24
+ export type WebViewLoadingEventDetail = UniWebViewLoadingEventDetail
25
+ export const WebViewLoadingEventDetail: typeof UniWebViewLoadingEventDetail
26
+
27
+ export type WebViewLoadingEvent = UniWebViewLoadingEvent
28
+ export const WebViewLoadingEvent: typeof UniWebViewLoadingEvent
@@ -0,0 +1,27 @@
1
+ import { UniCustomEvent } from "./UniCustomEvent"
2
+
3
+ /**
4
+ * @package io.dcloud.uniapp.runtime
5
+ */
6
+ export class UniWebViewMessageEventDetail {
7
+ /**
8
+ * 消息包含的数据
9
+ */
10
+ data: Map<string, any | null> | null
11
+ }
12
+
13
+ /**
14
+ * @package io.dcloud.uniapp.runtime
15
+ */
16
+ export class UniWebViewMessageEvent extends UniCustomEvent<UniWebViewMessageEventDetail> {
17
+ /**
18
+ * 事件类型,固定值message
19
+ */
20
+ type: string
21
+ }
22
+
23
+ export type WebViewMessageEventDetail = UniWebViewMessageEventDetail
24
+ export const WebViewMessageEventDetail: typeof UniWebViewMessageEventDetail
25
+
26
+ export type WebViewMessageEvent = UniWebViewMessageEvent
27
+ export const WebViewMessageEvent: typeof UniWebViewMessageEvent
@@ -1,4 +1,4 @@
1
- import { PageEvent } from './PageEvent'
1
+ import { PageEvent } from './UniPageEvent'
2
2
 
3
3
  export class UniWebViewServiceMessageEvent extends PageEvent {
4
4