@dcloudio/uni-app-x 0.7.79 → 0.7.80
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/UniCSSProperty.d.ts +0 -1
- package/types/dom2/UniCSSTransition.d.ts +30 -6
- package/types/dom2/UniElement.d.ts +5 -0
- package/types/dom2/UniNativeBaseView.d.ts +5 -3
- package/types/dom2/UniNativeDefines.d.ts +10 -10
- package/types/dom2/UniPage.d.ts +36 -3
- package/types/dom2/UniTextElement.d.ts +5 -0
- package/types/dom2/global.d.ts +21 -7
- package/types/dom2/sharedData.d.ts +10 -1
- package/types/dom2-internal/UniElement.d.ts +15 -0
- package/types/native/UniPage.d.ts +97 -1
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +7 -6
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +4 -3
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +2 -1
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +7 -6
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +4 -3
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +69 -23
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +7 -40
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +4 -20
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +66 -495
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +9 -8
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +5 -4
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +29 -28
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +400 -212
- package/types/uni/uts-plugin-component/lib/uni-web-view-global/utssdk/interface.d.ts +5 -0
- package/types/node_modules/.package-lock.json +0 -20
- package/types/node_modules/typescript/LICENSE.txt +0 -55
- package/types/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
- package/types/node_modules/typescript/bin/tsc +0 -2
- package/types/node_modules/typescript/bin/tsserver +0 -2
- package/types/node_modules/typescript/lib/cancellationToken.js +0 -90
- package/types/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/lib.d.ts +0 -22
- package/types/node_modules/typescript/lib/lib.decorators.d.ts +0 -386
- package/types/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
- package/types/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -33
- package/types/node_modules/typescript/lib/lib.dom.d.ts +0 -28596
- package/types/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -475
- package/types/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
- package/types/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
- package/types/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
- package/types/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
- package/types/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -495
- package/types/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
- package/types/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
- package/types/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
- package/types/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
- package/types/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
- package/types/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
- package/types/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
- package/types/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
- package/types/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
- package/types/node_modules/typescript/lib/lib.es2017.d.ts +0 -25
- package/types/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
- package/types/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
- package/types/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
- package/types/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
- package/types/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
- package/types/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
- package/types/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
- package/types/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
- package/types/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -43
- package/types/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
- package/types/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
- package/types/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
- package/types/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
- package/types/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
- package/types/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
- package/types/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
- package/types/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -727
- package/types/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
- package/types/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
- package/types/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
- package/types/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
- package/types/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
- package/types/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -97
- package/types/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -42
- package/types/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -37
- package/types/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
- package/types/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
- package/types/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
- package/types/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
- package/types/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -76
- package/types/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
- package/types/node_modules/typescript/lib/lib.es2022.d.ts +0 -26
- package/types/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -73
- package/types/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -117
- package/types/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
- package/types/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
- package/types/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts +0 -39
- package/types/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
- package/types/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
- package/types/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
- package/types/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
- package/types/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
- package/types/node_modules/typescript/lib/lib.es5.d.ts +0 -4585
- package/types/node_modules/typescript/lib/lib.es6.d.ts +0 -23
- package/types/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
- package/types/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -106
- package/types/node_modules/typescript/lib/lib.esnext.d.ts +0 -28
- package/types/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
- package/types/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -185
- package/types/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
- package/types/node_modules/typescript/lib/lib.esnext.object.d.ts +0 -29
- package/types/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -35
- package/types/node_modules/typescript/lib/lib.esnext.regexp.d.ts +0 -25
- package/types/node_modules/typescript/lib/lib.esnext.string.d.ts +0 -29
- package/types/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
- package/types/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -33
- package/types/node_modules/typescript/lib/lib.webworker.d.ts +0 -9431
- package/types/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
- package/types/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -276
- package/types/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/tsc.js +0 -129741
- package/types/node_modules/typescript/lib/tsserver.js +0 -621
- package/types/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
- package/types/node_modules/typescript/lib/tsserverlibrary.js +0 -21
- package/types/node_modules/typescript/lib/typesMap.json +0 -497
- package/types/node_modules/typescript/lib/typescript.d.ts +0 -11240
- package/types/node_modules/typescript/lib/typescript.js +0 -194910
- package/types/node_modules/typescript/lib/typingsInstaller.js +0 -236
- package/types/node_modules/typescript/lib/watchGuard.js +0 -53
- package/types/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/package.json +0 -116
|
@@ -1,243 +1,431 @@
|
|
|
1
|
-
export type WebViewProgressStyles = {
|
|
2
|
-
color
|
|
3
|
-
|
|
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
|
|
7
|
-
progress ?: WebViewProgressStyles | boolean | null
|
|
8
|
-
}
|
|
106
|
+
export type UniWebViewContextLoadDataOptions = UniWebviewContextLoadDataOptions
|
|
9
107
|
|
|
10
|
-
export type
|
|
11
|
-
/**
|
|
12
|
-
* 要加载的内容,编码后的字符串
|
|
13
|
-
* @uniPlatform {
|
|
14
|
-
* "app": {
|
|
15
|
-
* "android": {
|
|
16
|
-
* "osVer": "5.0",
|
|
17
|
-
* "uniVer": "x",
|
|
18
|
-
* "unixVer": "4.
|
|
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
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
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.
|
|
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
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
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.
|
|
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
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
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.
|
|
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
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* }
|
|
82
|
-
* }
|
|
83
|
-
*/
|
|
84
|
-
encoding ?: string | null
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* "
|
|
95
|
-
* "
|
|
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
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
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": "
|
|
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
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
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": "
|
|
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
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
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": "
|
|
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
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
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": "
|
|
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
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
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.
|
|
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
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
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.
|
|
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
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
* }
|
|
211
|
-
* }
|
|
212
|
-
*/
|
|
213
|
-
|
|
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
|
|
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
|
|
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
|
-
*
|
|
407
|
+
* @deprecated 已废弃,仅为了向下兼容保留,建议使用`createWebViewContext`。
|
|
408
|
+
* 创建 web-view 上下文 WebviewContext 对象。
|
|
221
409
|
*
|
|
222
410
|
* @uniPlatform {
|
|
223
411
|
* "app": {
|
|
224
412
|
* "android": {
|
|
225
|
-
* "osVer": "
|
|
413
|
+
* "osVer": "5.0",
|
|
226
414
|
* "uniVer": "x",
|
|
227
|
-
* "unixVer": "
|
|
415
|
+
* "unixVer": "3.9.0"
|
|
228
416
|
* },
|
|
229
417
|
* "ios": {
|
|
230
418
|
* "osVer": "12.0",
|
|
231
419
|
* "uniVer": "x",
|
|
232
|
-
* "unixVer": "4.
|
|
420
|
+
* "unixVer": "4.11"
|
|
233
421
|
* },
|
|
234
|
-
|
|
235
|
-
* "osVer": "
|
|
236
|
-
* "uniVer": "
|
|
237
|
-
* "unixVer": "
|
|
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;
|