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