@dcloudio/uni-app-x 0.5.17 → 0.6.1

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 (117) hide show
  1. package/options.d.ts +9 -0
  2. package/package.json +4 -3
  3. package/types/app.d.ts +59 -166
  4. package/types/index.d.ts +1 -2
  5. package/types/native/AsyncApiResult.d.ts +1 -1
  6. package/types/native/CSSStyleDeclaration.d.ts +1 -1
  7. package/types/native/CustomEvent.d.ts +3 -3
  8. package/types/native/DOMRect.d.ts +2 -2
  9. package/types/native/DrawableContext.d.ts +149 -149
  10. package/types/native/Element.d.ts +11 -9
  11. package/types/native/Event.d.ts +38 -38
  12. package/types/native/IApp.d.ts +2 -2
  13. package/types/native/IComment.d.ts +5 -0
  14. package/types/native/IDocument.d.ts +5 -4
  15. package/types/native/INavigationBar.d.ts +1 -1
  16. package/types/native/IPage.d.ts +15 -10
  17. package/types/native/IPageManager.d.ts +2 -2
  18. package/types/native/ITextNode.d.ts +6 -0
  19. package/types/native/IUniError.d.ts +18 -18
  20. package/types/native/ImageErrorEvent.d.ts +2 -2
  21. package/types/native/ImageLoadEvent.d.ts +2 -2
  22. package/types/native/InputBlurEvent.d.ts +8 -8
  23. package/types/native/InputConfirmEvent.d.ts +8 -8
  24. package/types/native/InputEvent.d.ts +20 -20
  25. package/types/native/InputFocusEvent.d.ts +13 -13
  26. package/types/native/InputKeyboardHeightChangeEvent.d.ts +12 -12
  27. package/types/native/MouseEvent.d.ts +58 -58
  28. package/types/native/NestedPreScrollEvent.d.ts +41 -22
  29. package/types/native/NodeData.d.ts +2 -2
  30. package/types/native/PageEvent.d.ts +2 -2
  31. package/types/native/PageScrollEvent.d.ts +5 -5
  32. package/types/native/RefresherEvent.d.ts +2 -2
  33. package/types/native/ResizeEvent.d.ts +27 -27
  34. package/types/native/RichTextItemClickEvent.d.ts +2 -2
  35. package/types/native/ScrollEvent.d.ts +28 -28
  36. package/types/native/ScrollToLowerEvent.d.ts +6 -6
  37. package/types/native/ScrollToUpperEvent.d.ts +6 -6
  38. package/types/native/SnapshotOptions.d.ts +8 -8
  39. package/types/native/SourceError.d.ts +1 -1
  40. package/types/native/StartNestedScrollEvent.d.ts +26 -7
  41. package/types/native/StopNestedScrollEvent.d.ts +26 -0
  42. package/types/native/SwiperAnimationFinishEvent.d.ts +12 -6
  43. package/types/native/SwiperChangeEvent.d.ts +12 -6
  44. package/types/native/SwiperTransitionEvent.d.ts +12 -6
  45. package/types/native/TabTapEvent.d.ts +11 -9
  46. package/types/native/TextareaBlurEvent.d.ts +12 -12
  47. package/types/native/TextareaFocusEvent.d.ts +12 -12
  48. package/types/native/TextareaLineChangeEvent.d.ts +16 -16
  49. package/types/native/TouchEvent.d.ts +43 -43
  50. package/types/native/UTSAndroidHookProxy.d.ts +6 -6
  51. package/types/native/UniAggregateError.d.ts +4 -2
  52. package/types/native/UniAppManager.d.ts +3 -3
  53. package/types/native/UniElement.d.ts +30 -15
  54. package/types/native/UniError.d.ts +7 -7
  55. package/types/native/UniTabsElement.d.ts +4 -3
  56. package/types/native/UniTextElement.d.ts +3 -3
  57. package/types/native/UniVideoElement.d.ts +4 -4
  58. package/types/native/UniWebViewElement.d.ts +3 -3
  59. package/types/native/WebViewDownloadEvent.d.ts +3 -3
  60. package/types/native/WebViewErrorEvent.d.ts +3 -3
  61. package/types/native/WebViewLoadedEvent.d.ts +3 -3
  62. package/types/native/WebViewLoadingEvent.d.ts +4 -3
  63. package/types/native/WebViewMessageEvent.d.ts +3 -3
  64. package/types/native/WebViewStyles.d.ts +3 -3
  65. package/types/native/global.d.ts +262 -0
  66. package/types/native/index.d.ts +61 -58
  67. package/types/native-global/index.d.ts +1 -0
  68. package/types/page.d.ts +26 -8
  69. package/types/uni/core/index.d.ts +3 -3
  70. package/types/uni/core/lib/base/event/index.d.ts +1 -0
  71. package/types/uni/core/lib/base/interceptor/index.d.ts +1 -0
  72. package/types/uni/core/lib/lifecycle/index.d.ts +1 -0
  73. package/types/uni/core/lib/performance/index.d.ts +1 -0
  74. package/types/uni/core/lib/route/index.d.ts +13 -0
  75. package/types/uni/core/lib/route/interface.d.ts +31 -5
  76. package/types/uni/core/lib/ui/create-selector-query/index.d.ts +1 -0
  77. package/types/uni/core/lib/ui/get-element-by-id/index.d.ts +1 -0
  78. package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +1 -1
  79. package/types/uni/core/lib/ui/load-font-face/index.d.ts +1 -0
  80. package/types/uni/core/lib/ui/page-scroll-to/index.d.ts +1 -0
  81. package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +1 -1
  82. package/types/uni/core/lib/ui/pull-down-refresh/index.d.ts +1 -0
  83. package/types/uni/core/lib/ui/set-navigation-bar-color/index.d.ts +5 -0
  84. package/types/uni/core/lib/ui/set-navigation-bar-color/interface.d.ts +9 -1
  85. package/types/uni/core/lib/ui/set-navigation-bar-title/index.d.ts +5 -0
  86. package/types/uni/core/lib/ui/set-navigation-bar-title/interface.d.ts +10 -1
  87. package/types/uni/core/lib/ui/tab-bar/index.d.ts +1 -0
  88. package/types/uni/uts-plugin-api/index.d.ts +1 -0
  89. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +1 -0
  90. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +2 -2
  91. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +1 -0
  92. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +1 -0
  93. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +1 -0
  94. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +1 -0
  95. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +1 -0
  96. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -0
  97. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +1 -0
  98. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +1 -0
  99. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +1 -0
  100. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
  101. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +27 -6
  102. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +1 -0
  103. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +1 -0
  104. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +1 -0
  105. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +1 -0
  106. package/types/uni/uts-plugin-api/lib/uni-push/utssdk/index.d.ts +1 -0
  107. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +1 -0
  108. package/types/uni/uts-plugin-api/lib/uni-verify/utssdk/index.d.ts +46 -0
  109. package/types/uni/uts-plugin-api/lib/uni-verify/utssdk/interface.d.ts +201 -0
  110. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +1 -0
  111. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +1 -0
  112. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +3 -3
  113. package/types/uni/uts-plugin-modules/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -0
  114. package/types/uni/uts-plugin-modules/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +88 -13
  115. package/types/vue/UniCloudDBElement.d.ts +1 -1
  116. package/uts-plugin.d.ts +17 -4
  117. package/types/shims-vue.d.ts +0 -14
@@ -1,53 +1,53 @@
1
- /// <reference path='./Event.d.ts' />
1
+ import { Event } from "./Event"
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- declare class Touch {
7
- /**
8
- * 相对于页面可显示区域左边的距离
9
- */
10
- clientX : number
11
- /**
12
- * 相对于页面可显示区域顶部的距离
13
- */
14
- clientY : number
15
- /**
16
- * 触摸点的标识符。这个值在这根手指所引发的所有事件中保持一致,直到手指抬起。
17
- */
18
- identifier : number
19
- /**
20
- * 相对于文档左边的距离
21
- */
22
- pageX : number
23
- /**
24
- * 相对于文档顶部的距离
25
- */
26
- pageY : number
27
- /**
28
- * 相对于屏幕左边距离
29
- */
30
- screenX : number
31
- /**
32
- * 相对于屏幕顶部的距离
33
- */
34
- screenY : number
35
- /**
36
- * 返回当前触摸点按下的压力大小
37
- */
38
- force ?: number
6
+ export class Touch {
7
+ /**
8
+ * 相对于页面可显示区域左边的距离
9
+ */
10
+ clientX: number
11
+ /**
12
+ * 相对于页面可显示区域顶部的距离
13
+ */
14
+ clientY: number
15
+ /**
16
+ * 触摸点的标识符。这个值在这根手指所引发的所有事件中保持一致,直到手指抬起。
17
+ */
18
+ identifier: number
19
+ /**
20
+ * 相对于文档左边的距离
21
+ */
22
+ pageX: number
23
+ /**
24
+ * 相对于文档顶部的距离
25
+ */
26
+ pageY: number
27
+ /**
28
+ * 相对于屏幕左边距离
29
+ */
30
+ screenX: number
31
+ /**
32
+ * 相对于屏幕顶部的距离
33
+ */
34
+ screenY: number
35
+ /**
36
+ * 返回当前触摸点按下的压力大小
37
+ */
38
+ force?: number
39
39
  }
40
40
 
41
41
  /**
42
42
  * @package io.dcloud.uniapp.runtime
43
43
  */
44
- declare class TouchEvent extends Event {
45
- /**
46
- * 当前停留在屏幕中的触摸点信息的数组
47
- */
48
- touches : Touch[]
49
- /**
50
- * 当前变化的触摸点信息的数组
51
- */
52
- changedTouches : Touch[]
44
+ export class TouchEvent extends Event {
45
+ /**
46
+ * 当前停留在屏幕中的触摸点信息的数组
47
+ */
48
+ touches: Touch[]
49
+ /**
50
+ * 当前变化的触摸点信息的数组
51
+ */
52
+ changedTouches: Touch[]
53
53
  }
@@ -5,10 +5,10 @@
5
5
  * @package io.dcloud.uts
6
6
  * @autodoc false
7
7
  */
8
- declare interface UTSAndroidHookProxy {
9
- /**
10
- * 安卓原生应用初始化时会调用此接口 可在此处进行相关资源数据初始化 和 模块注册逻辑
11
- * @param application 安卓原生上下文
12
- */
13
- onCreate(application: Application): void
8
+ export interface UTSAndroidHookProxy {
9
+ /**
10
+ * 安卓原生应用初始化时会调用此接口 可在此处进行相关资源数据初始化 和 模块注册逻辑
11
+ * @param application 安卓原生上下文
12
+ */
13
+ onCreate(application: Application): void
14
14
  }
@@ -1,14 +1,16 @@
1
+ import { SourceError } from "./SourceError";
2
+
1
3
  /**
2
4
  * 由多个SourceError源错误组成的错误信息对象
3
5
  * @package io.dcloud.uniapp
4
6
  */
5
- declare class UniAggregateError extends SourceError {
7
+ export class UniAggregateError extends SourceError {
6
8
 
7
9
  /**
8
10
  * 创建由多个源错误组成的 UniAggregateError 对象
9
11
  * @param message 源错误描述信息
10
12
  */
11
- constructor(errors: Array<SourceError>);
13
+ constructor (errors: Array<SourceError>);
12
14
 
13
15
  /**
14
16
  * 源错误描述信息
@@ -1,14 +1,14 @@
1
- /// <reference path='./IPage.d.ts' />
1
+ import { IPage } from "./IPage"
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.appframe
5
5
  * @autodoc false
6
6
  */
7
- declare const UniAppManager: {
7
+ export const UniAppManager: {
8
8
  getCurrentApp(): CurrentApp
9
9
  }
10
10
 
11
- declare interface CurrentApp {
11
+ export interface CurrentApp {
12
12
  pageManager: {
13
13
  createPage(url: string, id: unknown, styles: unknown): IPage
14
14
  }
@@ -1,11 +1,17 @@
1
- /// <reference path='./Element.d.ts' />
1
+ import { CSSStyleDeclaration } from "./CSSStyleDeclaration";
2
+ import { DOMRect } from "./DOMRect";
3
+ import { DrawableContext } from "./DrawableContext";
4
+ import { Element } from "./Element";
5
+ import { Event } from './Event'
6
+ import { TakeSnapshotOptions } from "./SnapshotOptions";
2
7
 
3
8
  /**
4
9
  * view元素对象
5
10
  * @package io.dcloud.uniapp.runtime
6
11
  * @autodoc false
7
12
  */
8
- declare class UniElement implements Element {
13
+ export class UniElement implements Element {
14
+ classList: string[];
9
15
  firstChild: Element;
10
16
  lastChild: Element;
11
17
  parentNode: Element;
@@ -17,8 +23,8 @@ declare class UniElement implements Element {
17
23
  childNodes: Element[];
18
24
  tagName: string;
19
25
  nodeName: string;
20
- dataset: Map<string, any>;
21
- attributes: Map<string, any>;
26
+ dataset: Map<string, any | null>;
27
+ attributes: Map<string, any | null>;
22
28
  style: CSSStyleDeclaration;
23
29
  scrollWidth: number;
24
30
  scrollHeight: number;
@@ -56,7 +62,7 @@ declare class UniElement implements Element {
56
62
  * @package io.dcloud.uniapp.runtime
57
63
  * @autodoc false
58
64
  */
59
- declare interface UniViewElement extends UniElement {
65
+ export interface UniViewElement extends UniElement {
60
66
  }
61
67
 
62
68
  /**
@@ -64,7 +70,7 @@ declare interface UniViewElement extends UniElement {
64
70
  * @package io.dcloud.uniapp.runtime
65
71
  * @autodoc false
66
72
  */
67
- declare interface UniScrollViewElement extends UniElement {
73
+ export interface UniScrollViewElement extends UniElement {
68
74
  }
69
75
 
70
76
  /**
@@ -72,7 +78,7 @@ declare interface UniScrollViewElement extends UniElement {
72
78
  * @package io.dcloud.uniapp.runtime
73
79
  * @autodoc false
74
80
  */
75
- declare interface UniListViewElement extends UniScrollViewElement {
81
+ export interface UniListViewElement extends UniScrollViewElement {
76
82
  }
77
83
 
78
84
  /**
@@ -80,7 +86,7 @@ declare interface UniListViewElement extends UniScrollViewElement {
80
86
  * @package io.dcloud.uniapp.runtime
81
87
  * @autodoc false
82
88
  */
83
- declare interface UniListItemElement extends UniElement {
89
+ export interface UniListItemElement extends UniElement {
84
90
  }
85
91
 
86
92
  /**
@@ -88,7 +94,7 @@ declare interface UniListItemElement extends UniElement {
88
94
  * @package io.dcloud.uniapp.runtime
89
95
  * @autodoc false
90
96
  */
91
- declare interface UniSwiperElement extends UniElement {
97
+ export interface UniSwiperElement extends UniElement {
92
98
  }
93
99
 
94
100
  /**
@@ -96,7 +102,7 @@ declare interface UniSwiperElement extends UniElement {
96
102
  * @package io.dcloud.uniapp.runtime
97
103
  * @autodoc false
98
104
  */
99
- declare interface UniSwiperItemElement extends UniElement {
105
+ export interface UniSwiperItemElement extends UniElement {
100
106
  }
101
107
 
102
108
  /**
@@ -104,7 +110,7 @@ declare interface UniSwiperItemElement extends UniElement {
104
110
  * @package io.dcloud.uniapp.runtime
105
111
  * @autodoc false
106
112
  */
107
- declare interface UniImageElement extends UniElement {
113
+ export interface UniImageElement extends UniElement {
108
114
  }
109
115
 
110
116
  /**
@@ -112,7 +118,7 @@ declare interface UniImageElement extends UniElement {
112
118
  * @package io.dcloud.uniapp.runtime
113
119
  * @autodoc false
114
120
  */
115
- declare interface UniInputElement extends UniElement {
121
+ export interface UniInputElement extends UniElement {
116
122
  }
117
123
 
118
124
  /**
@@ -120,7 +126,7 @@ declare interface UniInputElement extends UniElement {
120
126
  * @package io.dcloud.uniapp.runtime
121
127
  * @autodoc false
122
128
  */
123
- declare interface UniTextareaElement extends UniElement {
129
+ export interface UniTextareaElement extends UniElement {
124
130
  }
125
131
 
126
132
  /**
@@ -128,7 +134,7 @@ declare interface UniTextareaElement extends UniElement {
128
134
  * @package io.dcloud.uniapp.runtime
129
135
  * @autodoc false
130
136
  */
131
- declare interface UniRichTextElement extends UniElement {
137
+ export interface UniRichTextElement extends UniElement {
132
138
  }
133
139
 
134
140
  /**
@@ -136,5 +142,14 @@ declare interface UniRichTextElement extends UniElement {
136
142
  * @package io.dcloud.uniapp.runtime
137
143
  * @autodoc false
138
144
  */
139
- declare interface UniStickyHeaderElement extends UniElement {
145
+ export interface UniStickyHeaderElement extends UniElement {
146
+ }
147
+
148
+
149
+ /**
150
+ * sticky-section元素对象
151
+ * @package io.dcloud.uniapp.runtime
152
+ * @autodoc false
153
+ */
154
+ export interface UniStickySectionElement extends UniElement {
140
155
  }
@@ -1,20 +1,20 @@
1
- /// <reference path="./IUniError.d.ts" />
1
+ import { IUniError } from "./IUniError";
2
2
 
3
3
  /**
4
4
  * uni api统一错误信息对象
5
5
  * @package io.dcloud.uniapp
6
6
  */
7
- declare class UniError extends Error implements IUniError {
7
+ export class UniError extends Error implements IUniError {
8
8
  /**
9
9
  * 创建一个新的 UniError 对象
10
10
  */
11
- constructor();
11
+ constructor ();
12
12
 
13
13
  /**
14
14
  * 创建一个指定错误描述信息的 UniError 对象
15
15
  * @param message 统一错误描述信息
16
16
  */
17
- constructor(message: string);
17
+ constructor (message: string);
18
18
 
19
19
  /**
20
20
  * 创建一个指定错误描述信息和源错误的 UniError 对象
@@ -29,7 +29,7 @@ declare class UniError extends Error implements IUniError {
29
29
  }
30
30
  ```
31
31
  */
32
- constructor(message: string, options: UTSJSONObject);
32
+ constructor (message: string, options: UTSJSONObject);
33
33
 
34
34
  /**
35
35
  * 创建一个指定错误主题、错误码和错误描述信息的 UniError 对象
@@ -41,7 +41,7 @@ declare class UniError extends Error implements IUniError {
41
41
  let uerr = new UniError("uni-testAPI", 12001, "system not support");
42
42
  ```
43
43
  */
44
- constructor(errSubject: string, errCode: number, errMsg: string);
44
+ constructor (errSubject: string, errCode: number, errMsg: string);
45
45
 
46
46
  /**
47
47
  * 统一错误主题(模块)名称
@@ -62,7 +62,7 @@ declare class UniError extends Error implements IUniError {
62
62
  * 错误信息中包含的数据
63
63
  */
64
64
  data: any | null;
65
-
65
+
66
66
  /**
67
67
  * 源错误信息,可以包含多个错误,详见SourceError
68
68
  */
@@ -1,11 +1,12 @@
1
- /// <reference path='./UniElement.d.ts' />
1
+ import { Element } from "./Element";
2
+ import { UniElement } from "./UniElement";
2
3
 
3
4
  /**
4
5
  * tabs元素对象
5
6
  * @package io.dcloud.uniapp.runtime
6
7
  * @autodoc false
7
8
  */
8
- declare interface UniTabsElement extends UniElement {
9
+ export interface UniTabsElement extends UniElement {
9
10
  /**
10
11
  * 添加item
11
12
  * @param pageId 页面id
@@ -86,4 +87,4 @@ declare interface UniTabsElement extends UniElement {
86
87
  currentItemId: string | null
87
88
  }
88
89
 
89
- type ITabsNode = UniTabsElement
90
+ export type ITabsNode = UniTabsElement
@@ -1,6 +1,6 @@
1
- /// <reference path='./UniElement.d.ts' />
1
+ import { UniElement } from "./UniElement"
2
2
 
3
- interface TextElement {
3
+ export interface TextElement {
4
4
  /**
5
5
  * 只读属性 text元素的文案内容
6
6
  */
@@ -13,7 +13,7 @@ interface TextElement {
13
13
  * @package io.dcloud.uniapp.runtime
14
14
  * @autodoc false
15
15
  */
16
- declare class UniTextElement extends UniElement implements TextElement {
16
+ export class UniTextElement extends UniElement implements TextElement {
17
17
  /**
18
18
  * 只读属性 text元素的文案内容
19
19
  */
@@ -1,11 +1,11 @@
1
- /// <reference path='./Element.d.ts' />
1
+ import { Element } from "./Element"
2
2
 
3
3
  /**
4
4
  * video元素对象
5
5
  * @package io.dcloud.uniapp.runtime
6
6
  * @autodoc false
7
7
  */
8
- declare interface UniVideoElement extends Element {
8
+ export interface UniVideoElement extends Element {
9
9
  /**
10
10
  * 播放
11
11
  */
@@ -44,7 +44,7 @@ declare interface UniVideoElement extends Element {
44
44
  exitFullScreen(): void
45
45
  }
46
46
 
47
- declare type Danmu = {
47
+ export type Danmu = {
48
48
  /**
49
49
  * 弹幕文字
50
50
  */
@@ -59,7 +59,7 @@ declare type Danmu = {
59
59
  time: number | null
60
60
  }
61
61
 
62
- declare type RequestFullScreenOptions = {
62
+ export type RequestFullScreenOptions = {
63
63
  /**
64
64
  * direction
65
65
  * - 0: 正常竖向
@@ -1,11 +1,11 @@
1
- /// <reference path='./UniElement.d.ts' />
1
+ import { UniElement } from "./UniElement"
2
2
 
3
3
  /**
4
4
  * web-view元素对象
5
5
  * @package io.dcloud.uniapp.runtime
6
6
  * @autodoc false
7
7
  */
8
- declare interface UniWebViewElement extends UniElement {
8
+ export interface UniWebViewElement extends UniElement {
9
9
  /**
10
10
  * 后退
11
11
  */
@@ -28,4 +28,4 @@ declare interface UniWebViewElement extends UniElement {
28
28
  evalJS(js: string): void
29
29
  }
30
30
 
31
- type IWebViewNode = UniWebViewElement
31
+ export type IWebViewNode = UniWebViewElement
@@ -1,9 +1,9 @@
1
- /// <reference path='./Event.d.ts' />
1
+ import { CustomEvent } from "./CustomEvent"
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- declare class WebViewDownloadEventDetail {
6
+ export class WebViewDownloadEventDetail {
7
7
  /**
8
8
  * 下载链接
9
9
  */
@@ -29,7 +29,7 @@ declare class WebViewDownloadEventDetail {
29
29
  /**
30
30
  * @package io.dcloud.uniapp.runtime
31
31
  */
32
- declare class WebViewDownloadEvent extends CustomEvent<WebViewDownloadEventDetail> {
32
+ export class WebViewDownloadEvent extends CustomEvent<WebViewDownloadEventDetail> {
33
33
  /**
34
34
  * 事件类型,固定值download
35
35
  */
@@ -1,9 +1,9 @@
1
- /// <reference path='./Event.d.ts' />
1
+ import { CustomEvent } from "./CustomEvent"
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- declare class WebViewErrorEventDetail {
6
+ export class WebViewErrorEventDetail {
7
7
  /**
8
8
  * 统一错误主题(模块)名称,固定值uni-web-view
9
9
  */
@@ -24,7 +24,7 @@ declare class WebViewErrorEventDetail {
24
24
  /**
25
25
  * @package io.dcloud.uniapp.runtime
26
26
  */
27
- declare class WebViewErrorEvent extends CustomEvent<WebViewErrorEventDetail> {
27
+ export class WebViewErrorEvent extends CustomEvent<WebViewErrorEventDetail> {
28
28
  /**
29
29
  * 事件类型,固定值error
30
30
  */
@@ -1,9 +1,9 @@
1
- /// <reference path='./Event.d.ts' />
1
+ import { CustomEvent } from "./CustomEvent"
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- declare class WebViewLoadedEventDetail {
6
+ export class WebViewLoadedEventDetail {
7
7
  /**
8
8
  * 加载完成的网页链接
9
9
  */
@@ -13,7 +13,7 @@ declare class WebViewLoadedEventDetail {
13
13
  /**
14
14
  * @package io.dcloud.uniapp.runtime
15
15
  */
16
- declare class WebViewLoadedEvent extends CustomEvent<WebViewLoadedEventDetail> {
16
+ export class WebViewLoadedEvent extends CustomEvent<WebViewLoadedEventDetail> {
17
17
  /**
18
18
  * 事件类型,固定值loaded
19
19
  */
@@ -1,9 +1,10 @@
1
- /// <reference path='./Event.d.ts' />
1
+ import { CustomEvent } from "./CustomEvent"
2
+ import { Event } from "./Event"
2
3
 
3
4
  /**
4
5
  * @package io.dcloud.uniapp.runtime
5
6
  */
6
- declare class WebViewLoadingEventDetail extends Event {
7
+ export class WebViewLoadingEventDetail extends Event {
7
8
  /**
8
9
  * 加载中的网页链接
9
10
  */
@@ -13,7 +14,7 @@ declare class WebViewLoadingEventDetail extends Event {
13
14
  /**
14
15
  * @package io.dcloud.uniapp.runtime
15
16
  */
16
- declare class WebViewLoadingEvent extends CustomEvent<WebViewLoadingEventDetail> {
17
+ export class WebViewLoadingEvent extends CustomEvent<WebViewLoadingEventDetail> {
17
18
  /**
18
19
  * 事件类型,固定值loading
19
20
  */
@@ -1,9 +1,9 @@
1
- /// <reference path='./Event.d.ts' />
1
+ import { CustomEvent } from "./CustomEvent"
2
2
 
3
3
  /**
4
4
  * @package io.dcloud.uniapp.runtime
5
5
  */
6
- declare class WebViewMessageEventDetail {
6
+ export class WebViewMessageEventDetail {
7
7
  /**
8
8
  * 消息包含的数据
9
9
  */
@@ -13,7 +13,7 @@ declare class WebViewMessageEventDetail {
13
13
  /**
14
14
  * @package io.dcloud.uniapp.runtime
15
15
  */
16
- declare class WebViewMessageEvent extends CustomEvent<WebViewMessageEventDetail> {
16
+ export class WebViewMessageEvent extends CustomEvent<WebViewMessageEventDetail> {
17
17
  /**
18
18
  * 事件类型,固定值message
19
19
  */
@@ -1,18 +1,18 @@
1
1
  /**
2
2
  * web-view组件的样式
3
3
  */
4
- declare class WebViewStyles {
4
+ export class WebViewStyles {
5
5
  /**
6
6
  * 网络地址页面加载进度条样式,设置为 false 时表示不显示加载进度条。
7
7
  * @default false
8
8
  */
9
- progress: WebViewProgressStyles|boolean
9
+ progress: WebViewProgressStyles | boolean
10
10
  }
11
11
 
12
12
  /**
13
13
  * web-view组件的进度条样式
14
14
  */
15
- declare class WebViewProgressStyles {
15
+ export class WebViewProgressStyles {
16
16
  /**
17
17
  * 网页加载进度条颜色,默认值为 #00FF00 。
18
18
  */