@dcloudio/uni-app-x 0.7.79 → 0.7.81

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 (147) hide show
  1. package/package.json +1 -1
  2. package/types/dom2/UniCSSProperty.d.ts +0 -1
  3. package/types/dom2/UniCSSTransition.d.ts +30 -6
  4. package/types/dom2/UniElement.d.ts +5 -0
  5. package/types/dom2/UniNativeBaseView.d.ts +5 -3
  6. package/types/dom2/UniNativeDefines.d.ts +10 -10
  7. package/types/dom2/UniPage.d.ts +36 -3
  8. package/types/dom2/UniTextElement.d.ts +5 -0
  9. package/types/dom2/global.d.ts +21 -7
  10. package/types/dom2/sharedData.d.ts +10 -1
  11. package/types/dom2-internal/UniElement.d.ts +15 -0
  12. package/types/native/UniPage.d.ts +97 -1
  13. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +7 -6
  14. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +4 -3
  15. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +2 -1
  16. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +7 -6
  17. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +4 -3
  18. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +69 -23
  19. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +7 -40
  20. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +4 -20
  21. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +66 -495
  22. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +9 -8
  23. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +5 -4
  24. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +29 -28
  25. package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/global.d.ts +10 -0
  26. package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/index.d.ts +5 -0
  27. package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +400 -212
  28. package/types/uni/uts-plugin-component/lib/uni-web-view-global/utssdk/interface.d.ts +5 -0
  29. package/types/node_modules/.package-lock.json +0 -20
  30. package/types/node_modules/typescript/LICENSE.txt +0 -55
  31. package/types/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
  32. package/types/node_modules/typescript/bin/tsc +0 -2
  33. package/types/node_modules/typescript/bin/tsserver +0 -2
  34. package/types/node_modules/typescript/lib/cancellationToken.js +0 -90
  35. package/types/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -1880
  36. package/types/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -1880
  37. package/types/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -1880
  38. package/types/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -1880
  39. package/types/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -1880
  40. package/types/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -1880
  41. package/types/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -1880
  42. package/types/node_modules/typescript/lib/lib.d.ts +0 -22
  43. package/types/node_modules/typescript/lib/lib.decorators.d.ts +0 -386
  44. package/types/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
  45. package/types/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -33
  46. package/types/node_modules/typescript/lib/lib.dom.d.ts +0 -28596
  47. package/types/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -475
  48. package/types/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
  49. package/types/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
  50. package/types/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
  51. package/types/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
  52. package/types/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -495
  53. package/types/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
  54. package/types/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
  55. package/types/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
  56. package/types/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
  57. package/types/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
  58. package/types/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
  59. package/types/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
  60. package/types/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
  61. package/types/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
  62. package/types/node_modules/typescript/lib/lib.es2017.d.ts +0 -25
  63. package/types/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
  64. package/types/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
  65. package/types/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
  66. package/types/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
  67. package/types/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
  68. package/types/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
  69. package/types/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
  70. package/types/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
  71. package/types/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -43
  72. package/types/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
  73. package/types/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
  74. package/types/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
  75. package/types/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
  76. package/types/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
  77. package/types/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
  78. package/types/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
  79. package/types/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
  80. package/types/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
  81. package/types/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
  82. package/types/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
  83. package/types/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
  84. package/types/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -727
  85. package/types/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
  86. package/types/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
  87. package/types/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
  88. package/types/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
  89. package/types/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
  90. package/types/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
  91. package/types/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -97
  92. package/types/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -42
  93. package/types/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -37
  94. package/types/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
  95. package/types/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
  96. package/types/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
  97. package/types/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
  98. package/types/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
  99. package/types/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -76
  100. package/types/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
  101. package/types/node_modules/typescript/lib/lib.es2022.d.ts +0 -26
  102. package/types/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -73
  103. package/types/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
  104. package/types/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -117
  105. package/types/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
  106. package/types/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
  107. package/types/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts +0 -39
  108. package/types/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
  109. package/types/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
  110. package/types/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
  111. package/types/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
  112. package/types/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
  113. package/types/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
  114. package/types/node_modules/typescript/lib/lib.es5.d.ts +0 -4585
  115. package/types/node_modules/typescript/lib/lib.es6.d.ts +0 -23
  116. package/types/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
  117. package/types/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -106
  118. package/types/node_modules/typescript/lib/lib.esnext.d.ts +0 -28
  119. package/types/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
  120. package/types/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -185
  121. package/types/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
  122. package/types/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
  123. package/types/node_modules/typescript/lib/lib.esnext.object.d.ts +0 -29
  124. package/types/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -35
  125. package/types/node_modules/typescript/lib/lib.esnext.regexp.d.ts +0 -25
  126. package/types/node_modules/typescript/lib/lib.esnext.string.d.ts +0 -29
  127. package/types/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
  128. package/types/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -33
  129. package/types/node_modules/typescript/lib/lib.webworker.d.ts +0 -9431
  130. package/types/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
  131. package/types/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -276
  132. package/types/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -1880
  133. package/types/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -1880
  134. package/types/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -1880
  135. package/types/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -1880
  136. package/types/node_modules/typescript/lib/tsc.js +0 -129741
  137. package/types/node_modules/typescript/lib/tsserver.js +0 -621
  138. package/types/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  139. package/types/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  140. package/types/node_modules/typescript/lib/typesMap.json +0 -497
  141. package/types/node_modules/typescript/lib/typescript.d.ts +0 -11240
  142. package/types/node_modules/typescript/lib/typescript.js +0 -194910
  143. package/types/node_modules/typescript/lib/typingsInstaller.js +0 -236
  144. package/types/node_modules/typescript/lib/watchGuard.js +0 -53
  145. package/types/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -1880
  146. package/types/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -1880
  147. package/types/node_modules/typescript/package.json +0 -116
@@ -1,243 +1,431 @@
1
- export type WebViewProgressStyles = {
2
- color ?: string.ColorString | null,
3
- show ?: boolean | null
4
- }
1
+ export type WebViewProgressStyles = {
2
+ color : string.ColorString
3
+ }
4
+
5
+ export type WebViewStyles = {
6
+ progress : WebViewProgressStyles | boolean
7
+ }
8
+
9
+ export type UniWebviewContextLoadDataOptions = {
10
+ /**
11
+ * 要加载的内容,编码后的字符串
12
+ * @uniPlatform {
13
+ * "app": {
14
+ * "android": {
15
+ * "osVer": "5.0",
16
+ * "uniVer": "x",
17
+ * "unixVer": "4.71"
18
+ * },
19
+ * "ios": {
20
+ * "osVer": "12.0",
21
+ * "uniVer": "x",
22
+ * "unixVer": "4.71"
23
+ * },
24
+ * "harmony": {
25
+ * "osVer": "5.0.0",
26
+ * "uniVer": "4.71",
27
+ * "unixVer": "4.71"
28
+ * }
29
+ * }
30
+ * }
31
+ */
32
+ data : string,
33
+ /**
34
+ * 页面的基础 URL
35
+ * @uniPlatform {
36
+ * "app": {
37
+ * "android": {
38
+ * "osVer": "5.0",
39
+ * "uniVer": "x",
40
+ * "unixVer": "4.71"
41
+ * },
42
+ * "ios": {
43
+ * "osVer": "12.0",
44
+ * "uniVer": "x",
45
+ * "unixVer": "4.71"
46
+ * },
47
+ * "harmony": {
48
+ * "osVer": "5.0.0",
49
+ * "uniVer": "4.71",
50
+ * "unixVer": "4.71"
51
+ * }
52
+ * }
53
+ * }
54
+ */
55
+ baseURL ?: string | null,
56
+ /**
57
+ * 加载的页面内容类型,默认值为 "text/html"
58
+ * @defaultValue 'text/html'
59
+ * @uniPlatform {
60
+ * "app": {
61
+ * "android": {
62
+ * "osVer": "5.0",
63
+ * "uniVer": "x",
64
+ * "unixVer": "4.71"
65
+ * },
66
+ * "ios": {
67
+ * "osVer": "12.0",
68
+ * "uniVer": "x",
69
+ * "unixVer": "4.71"
70
+ * },
71
+ * "harmony": {
72
+ * "osVer": "5.0.0",
73
+ * "uniVer": "4.71",
74
+ * "unixVer": "4.71"
75
+ * }
76
+ * }
77
+ * }
78
+ */
79
+ mimeType ?: string | null,
80
+ /**
81
+ * 页面内容的编码类型,默认值为 "utf-8"
82
+ * @defaultValue 'utf-8'
83
+ * @uniPlatform {
84
+ * "app": {
85
+ * "android": {
86
+ * "osVer": "5.0",
87
+ * "uniVer": "x",
88
+ * "unixVer": "4.71"
89
+ * },
90
+ * "ios": {
91
+ * "osVer": "12.0",
92
+ * "uniVer": "x",
93
+ * "unixVer": "4.71"
94
+ * },
95
+ * "harmony": {
96
+ * "osVer": "5.0.0",
97
+ * "uniVer": "4.71",
98
+ * "unixVer": "4.71"
99
+ * }
100
+ * }
101
+ * }
102
+ */
103
+ encoding ?: string | null
104
+ }
5
105
 
6
- export type WebViewStyles = {
7
- progress ?: WebViewProgressStyles | boolean | null
8
- }
106
+ export type UniWebViewContextLoadDataOptions = UniWebviewContextLoadDataOptions
9
107
 
10
- export type UniWebviewContextLoadDataOptions = {
11
- /**
12
- * 要加载的内容,编码后的字符串
13
- * @uniPlatform {
14
- * "app": {
15
- * "android": {
16
- * "osVer": "5.0",
17
- * "uniVer": "x",
18
- * "unixVer": "4.85"
108
+ export type UniWebViewElementLoadDataOptions = {
109
+ /**
110
+ * 要加载的内容,编码后的字符串
111
+ * @uniPlatform {
112
+ * "app": {
113
+ * "android": {
114
+ * "osVer": "5.0",
115
+ * "uniVer": "x",
116
+ * "unixVer": "4.65"
117
+ * },
118
+ * "ios": {
119
+ * "osVer": "12.0",
120
+ * "uniVer": "x",
121
+ * "unixVer": "4.65"
19
122
  * },
20
- * "ios": {
21
- * "osVer": "12.0",
22
- * "uniVer": "x",
23
- * "unixVer": "4.85"
24
- * }
25
- * }
26
- * }
27
- */
28
- data : string,
29
- /**
30
- * 页面的基础 URL
31
- * @uniPlatform {
32
- * "app": {
33
- * "android": {
34
- * "osVer": "5.0",
35
- * "uniVer": "x",
36
- * "unixVer": "4.85"
123
+ * "harmony": {
124
+ * "osVer": "5.0.0",
125
+ * "uniVer": "4.65",
126
+ * "unixVer": "4.65"
127
+ * }
128
+ * }
129
+ * }
130
+ */
131
+ data : string,
132
+ /**
133
+ * 页面的基础 URL
134
+ * @uniPlatform {
135
+ * "app": {
136
+ * "android": {
137
+ * "osVer": "5.0",
138
+ * "uniVer": "x",
139
+ * "unixVer": "4.65"
140
+ * },
141
+ * "ios": {
142
+ * "osVer": "12.0",
143
+ * "uniVer": "x",
144
+ * "unixVer": "4.65"
37
145
  * },
38
- * "ios": {
39
- * "osVer": "12.0",
40
- * "uniVer": "x",
41
- * "unixVer": "4.85"
42
- * }
43
- * }
44
- * }
45
- */
46
- baseURL ?: string | null,
47
- /**
48
- * 加载的页面内容类型,默认值为 "text/html"
49
- * @defaultValue 'text/html'
50
- * @uniPlatform {
51
- * "app": {
52
- * "android": {
53
- * "osVer": "5.0",
54
- * "uniVer": "x",
55
- * "unixVer": "4.85"
146
+ * "harmony": {
147
+ * "osVer": "5.0.0",
148
+ * "uniVer": "4.65",
149
+ * "unixVer": "4.65"
150
+ * }
151
+ * }
152
+ * }
153
+ */
154
+ baseURL ?: string | null,
155
+ /**
156
+ * 加载的页面内容类型,默认值为 "text/html"
157
+ * @defaultValue 'text/html'
158
+ * @uniPlatform {
159
+ * "app": {
160
+ * "android": {
161
+ * "osVer": "5.0",
162
+ * "uniVer": "x",
163
+ * "unixVer": "4.65"
164
+ * },
165
+ * "ios": {
166
+ * "osVer": "12.0",
167
+ * "uniVer": "x",
168
+ * "unixVer": "4.65"
56
169
  * },
57
- * "ios": {
58
- * "osVer": "12.0",
59
- * "uniVer": "x",
60
- * "unixVer": "4.85"
61
- * }
62
- * }
63
- * }
64
- */
65
- mimeType ?: string | null,
66
- /**
67
- * 页面内容的编码类型,默认值为 "utf-8"
68
- * @defaultValue 'utf-8'
69
- * @uniPlatform {
70
- * "app": {
71
- * "android": {
72
- * "osVer": "5.0",
73
- * "uniVer": "x",
74
- * "unixVer": "4.85"
170
+ * "harmony": {
171
+ * "osVer": "5.0.0",
172
+ * "uniVer": "4.65",
173
+ * "unixVer": "4.65"
174
+ * }
175
+ * }
176
+ * }
177
+ */
178
+ mimeType ?: string | null,
179
+ /**
180
+ * 页面内容的编码类型,默认值为 "utf-8"
181
+ * @defaultValue 'utf-8'
182
+ * @uniPlatform {
183
+ * "app": {
184
+ * "android": {
185
+ * "osVer": "5.0",
186
+ * "uniVer": "x",
187
+ * "unixVer": "4.65"
188
+ * },
189
+ * "ios": {
190
+ * "osVer": "12.0",
191
+ * "uniVer": "x",
192
+ * "unixVer": "4.65"
75
193
  * },
76
- * "ios": {
77
- * "osVer": "12.0",
78
- * "uniVer": "x",
79
- * "unixVer": "4.85"
80
- * }
81
- * }
82
- * }
83
- */
84
- encoding ?: string | null
85
- }
86
-
87
- export interface WebviewContext {
88
- /**
89
- * 前进到 web-view 组件网页加载历史的下一页,如果不存在下一页则没有任何效果
90
- * @uniPlatform {
91
- * "app": {
92
- * "android": {
93
- * "osVer": "5.0",
94
- * "uniVer": "x",
95
- * "unixVer": "4.85"
194
+ * "harmony": {
195
+ * "osVer": "5.0.0",
196
+ * "uniVer": "4.65",
197
+ * "unixVer": "4.65"
198
+ * }
199
+ * }
200
+ * }
201
+ */
202
+ encoding ?: string | null
203
+ }
204
+
205
+
206
+ export interface WebviewContext {
207
+ /**
208
+ * 前进到 web-view 组件网页加载历史的下一页,如果不存在下一页则没有任何效果
209
+ * @uniPlatform {
210
+ * "app": {
211
+ * "android": {
212
+ * "osVer": "5.0",
213
+ * "uniVer": "x",
214
+ * "unixVer": "3.9.0"
215
+ * },
216
+ * "ios": {
217
+ * "osVer": "12.0",
218
+ * "uniVer": "x",
219
+ * "unixVer": "4.11"
96
220
  * },
97
- * "ios": {
98
- * "osVer": "12.0",
99
- * "uniVer": "x",
100
- * "unixVer": "4.85"
101
- * }
102
- * }
103
- * }
104
- */
105
- forward() : void
106
- /**
107
- * 后退到 web-view 组件网页加载历史的上一页,如果不存在上一页则没有任何效果
108
- * @uniPlatform {
109
- * "app": {
110
- * "android": {
111
- * "osVer": "5.0",
112
- * "uniVer": "x",
113
- * "unixVer": "4.85"
221
+ * "harmony": {
222
+ * "osVer": "5.0.0",
223
+ * "uniVer": "4.61",
224
+ * "unixVer": "4.61"
225
+ * }
226
+ * }
227
+ * }
228
+ */
229
+ forward() : void
230
+ /**
231
+ * 后退到 web-view 组件网页加载历史的上一页,如果不存在上一页则没有任何效果
232
+ * @uniPlatform {
233
+ * "app": {
234
+ * "android": {
235
+ * "osVer": "5.0",
236
+ * "uniVer": "x",
237
+ * "unixVer": "3.9.0"
238
+ * },
239
+ * "ios": {
240
+ * "osVer": "12.0",
241
+ * "uniVer": "x",
242
+ * "unixVer": "4.11"
114
243
  * },
115
- * "ios": {
116
- * "osVer": "12.0",
117
- * "uniVer": "x",
118
- * "unixVer": "4.85"
119
- * }
120
- * }
121
- * }
122
- */
123
- back() : void
124
- /**
125
- * 重新加载 web-view 组件当前页面
126
- * @uniPlatform {
127
- * "app": {
128
- * "android": {
129
- * "osVer": "5.0",
130
- * "uniVer": "x",
131
- * "unixVer": "4.85"
244
+ * "harmony": {
245
+ * "osVer": "5.0.0",
246
+ * "uniVer": "4.61",
247
+ * "unixVer": "4.61"
248
+ * }
249
+ * }
250
+ * }
251
+ */
252
+ back() : void
253
+ /**
254
+ * 重新加载 web-view 组件当前页面
255
+ * @uniPlatform {
256
+ * "app": {
257
+ * "android": {
258
+ * "osVer": "5.0",
259
+ * "uniVer": "x",
260
+ * "unixVer": "3.9.0"
261
+ * },
262
+ * "ios": {
263
+ * "osVer": "12.0",
264
+ * "uniVer": "x",
265
+ * "unixVer": "4.11"
132
266
  * },
133
- * "ios": {
134
- * "osVer": "12.0",
135
- * "uniVer": "x",
136
- * "unixVer": "4.85"
137
- * }
138
- * }
139
- * }
140
- */
141
- reload() : void
142
- /**
143
- * 停止加载 web-view 组件当前网页,该方法不能阻止已经加载的 html 文档,但是能够阻止未完成的图片及延迟加载的资源
144
- * @uniPlatform {
145
- * "app": {
146
- * "android": {
147
- * "osVer": "5.0",
148
- * "uniVer": "x",
149
- * "unixVer": "4.85"
267
+ * "harmony": {
268
+ * "osVer": "5.0.0",
269
+ * "uniVer": "4.61",
270
+ * "unixVer": "4.61"
271
+ * }
272
+ * }
273
+ * }
274
+ */
275
+ reload() : void
276
+ /**
277
+ * 停止加载 web-view 组件当前网页,该方法不能阻止已经加载的 html 文档,但是能够阻止未完成的图片及延迟加载的资源
278
+ * @uniPlatform {
279
+ * "app": {
280
+ * "android": {
281
+ * "osVer": "5.0",
282
+ * "uniVer": "x",
283
+ * "unixVer": "3.9.0"
284
+ * },
285
+ * "ios": {
286
+ * "osVer": "12.0",
287
+ * "uniVer": "x",
288
+ * "unixVer": "4.11"
150
289
  * },
151
- * "ios": {
152
- * "osVer": "12.0",
153
- * "uniVer": "x",
154
- * "unixVer": "4.85"
155
- * }
156
- * }
157
- * }
158
- */
159
- stop() : void
160
- /**
161
- * 在网页中执行指定的js脚本,在 uvue 页面中可通过此方法向 web-view 组件加载的页面发送数据
162
- * @uniPlatform {
163
- * "app": {
164
- * "android": {
165
- * "osVer": "5.0",
166
- * "uniVer": "x",
167
- * "unixVer": "4.85"
290
+ * "harmony": {
291
+ * "osVer": "5.0.0",
292
+ * "uniVer": "4.61",
293
+ * "unixVer": "4.61"
294
+ * }
295
+ * }
296
+ * }
297
+ */
298
+ stop() : void
299
+ /**
300
+ * 在网页中执行指定的js脚本,在 uvue 页面中可通过此方法向 web-view 组件加载的页面发送数据
301
+ * @uniPlatform {
302
+ * "app": {
303
+ * "android": {
304
+ * "osVer": "5.0",
305
+ * "uniVer": "x",
306
+ * "unixVer": "3.9.0"
307
+ * },
308
+ * "ios": {
309
+ * "osVer": "12.0",
310
+ * "uniVer": "x",
311
+ * "unixVer": "4.11"
168
312
  * },
169
- * "ios": {
170
- * "osVer": "12.0",
171
- * "uniVer": "x",
172
- * "unixVer": "4.85"
173
- * }
174
- * }
175
- * }
176
- */
177
- evalJS(js : string) : void
178
- /**
179
- * 获取webview内容高度
180
- * @uniPlatform {
181
- * "app": {
182
- * "android": {
183
- * "osVer": "5.0",
184
- * "uniVer": "x",
185
- * "unixVer": "4.85"
313
+ * "harmony": {
314
+ * "osVer": "5.0.0",
315
+ * "uniVer": "4.61",
316
+ * "unixVer": "4.61"
317
+ * }
318
+ * }
319
+ * }
320
+ */
321
+ evalJS(js : string) : void
322
+ /**
323
+ * 获取webview内容高度
324
+ * @uniPlatform {
325
+ * "app": {
326
+ * "android": {
327
+ * "osVer": "5.0",
328
+ * "uniVer": "x",
329
+ * "unixVer": "4.63"
330
+ * },
331
+ * "ios": {
332
+ * "osVer": "12.0",
333
+ * "uniVer": "x",
334
+ * "unixVer": "4.63"
186
335
  * },
187
- * "ios": {
188
- * "osVer": "12.0",
189
- * "uniVer": "x",
190
- * "unixVer": "4.85"
191
- * }
192
- * }
193
- * }
194
- */
195
- getContentHeight() : number
196
- /**
197
- * 在 web-view 组件中加载页面内容
198
- * @uniPlatform {
199
- * "app": {
200
- * "android": {
201
- * "osVer": "5.0",
202
- * "uniVer": "x",
203
- * "unixVer": "4.85"
336
+ * "harmony": {
337
+ * "osVer": "5.0.0",
338
+ * "uniVer": "4.63",
339
+ * "unixVer": "4.63"
340
+ * }
341
+ * }
342
+ * }
343
+ */
344
+ getContentHeight() : number
345
+ /**
346
+ * 在 web-view 组件中加载页面内容
347
+ * @uniPlatform {
348
+ * "app": {
349
+ * "android": {
350
+ * "osVer": "5.0",
351
+ * "uniVer": "x",
352
+ * "unixVer": "4.71"
353
+ * },
354
+ * "ios": {
355
+ * "osVer": "12.0",
356
+ * "uniVer": "x",
357
+ * "unixVer": "4.71"
204
358
  * },
205
- * "ios": {
206
- * "osVer": "12.0",
207
- * "uniVer": "x",
208
- * "unixVer": "4.85"
209
- * }
210
- * }
211
- * }
212
- */
213
- loadData(options : UniWebviewContextLoadDataOptions) : void
214
- }
359
+ * "harmony": {
360
+ * "osVer": "5.0.0",
361
+ * "uniVer": "4.71",
362
+ * "unixVer": "4.63"
363
+ * }
364
+ * }
365
+ * }
366
+ */
367
+
368
+ loadData(options : UniWebViewContextLoadDataOptions) : void
369
+
370
+ }
215
371
 
216
- export type CreateWebviewContext = (webviewId : string.WebviewIdString, component ?: ComponentPublicInstance | null) => WebviewContext | null;
372
+ export interface WebViewContext extends WebviewContext {
373
+
374
+ }
375
+ export type WebViewContext = WebviewContext
376
+
377
+ export type CreateWebviewContext = (webviewId : string.WebviewIdString, component ?: ComponentPublicInstance | null) => WebviewContext | null;
217
378
 
218
- export interface Uni {
379
+ export type CreateWebViewContext = (webviewId : string.WebviewIdString, component ?: ComponentPublicInstance | null) => WebViewContext | null;
380
+
381
+ export interface Uni {
382
+ /**
383
+ * 创建 web-view 上下文 WebViewContext 对象。
384
+ *
385
+ * @uniPlatform {
386
+ * "app": {
387
+ * "android": {
388
+ * "osVer": "5.0",
389
+ * "uniVer": "x",
390
+ * "unixVer": "3.9.0"
391
+ * },
392
+ * "ios": {
393
+ * "osVer": "12.0",
394
+ * "uniVer": "x",
395
+ * "unixVer": "4.11"
396
+ * },
397
+ * "harmony": {
398
+ * "osVer": "5.0.0",
399
+ * "uniVer": "4.61",
400
+ * "unixVer": "4.61"
401
+ * }
402
+ * }
403
+ * }
404
+ */
405
+ createWebViewContext : CreateWebViewContext,
219
406
  /**
220
- * 创建 web-view 上下文 WebViewContext 对象。
407
+ * @deprecated 已废弃,仅为了向下兼容保留,建议使用`createWebViewContext`。
408
+ * 创建 web-view 上下文 WebviewContext 对象。
221
409
  *
222
410
  * @uniPlatform {
223
411
  * "app": {
224
412
  * "android": {
225
- * "osVer": "4.4",
413
+ * "osVer": "5.0",
226
414
  * "uniVer": "x",
227
- * "unixVer": "4.61"
415
+ * "unixVer": "3.9.0"
228
416
  * },
229
417
  * "ios": {
230
418
  * "osVer": "12.0",
231
419
  * "uniVer": "x",
232
- * "unixVer": "4.61"
420
+ * "unixVer": "4.11"
233
421
  * },
234
- * "harmony": {
235
- * "osVer": "x",
236
- * "uniVer": "x",
237
- * "unixVer": "x"
422
+ * "harmony": {
423
+ * "osVer": "5.0.0",
424
+ * "uniVer": "4.61",
425
+ * "unixVer": "4.61"
238
426
  * }
239
427
  * }
240
428
  * }
241
429
  */
242
- createWebviewContext : CreateWebviewContext
430
+ createWebviewContext : CreateWebviewContext
243
431
  }
@@ -5,18 +5,21 @@ export type UniWebViewMessageEventDetail = {
5
5
  data: UTSJSONObject[];
6
6
  };
7
7
  export class UniWebViewMessageEvent extends UniWebViewBaseEvent<UniWebViewMessageEventDetail> {
8
+ constructor(target: UniElement, type: string, detail: UniWebViewMessageEventDetail);
8
9
  }
9
10
  export type UniWebViewLoadEventDetail = {
10
11
  url: string;
11
12
  src: string;
12
13
  };
13
14
  export class UniWebViewLoadEvent extends UniWebViewBaseEvent<UniWebViewLoadEventDetail> {
15
+ constructor(target: UniElement, type: string, detail: UniWebViewLoadEventDetail);
14
16
  }
15
17
  export type UniWebViewLoadingEventDetail = {
16
18
  url: string;
17
19
  src: string;
18
20
  };
19
21
  export class UniWebViewLoadingEvent extends UniWebViewBaseEvent<UniWebViewLoadingEventDetail> {
22
+ constructor(target: UniElement, type: string, detail: UniWebViewLoadingEventDetail);
20
23
  }
21
24
  export type UniWebViewDownloadEventDetail = {
22
25
  url: string;
@@ -26,11 +29,13 @@ export type UniWebViewDownloadEventDetail = {
26
29
  contentLength: number;
27
30
  };
28
31
  export class UniWebViewDownloadEvent extends UniWebViewBaseEvent<UniWebViewDownloadEventDetail> {
32
+ constructor(target: UniElement, type: string, detail: UniWebViewDownloadEventDetail);
29
33
  }
30
34
  export type UniWebViewContentHeightChangeEventDetail = {
31
35
  height: number;
32
36
  };
33
37
  export class UniWebViewContentHeightChangeEvent extends UniWebViewBaseEvent<UniWebViewContentHeightChangeEventDetail> {
38
+ constructor(target: UniElement, type: string, detail: UniWebViewContentHeightChangeEventDetail);
34
39
  }
35
40
  export type UniWebViewErrorEventDetail = {
36
41
  errSubject: string;