@dcloudio/uni-app-x 0.7.77 → 0.7.79
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 +3 -2
- package/types/dom2/UniCSSTransform.d.ts +1 -1
- package/types/dom2/UniCSSType.d.ts +1 -1
- package/types/dom2/UniNativeBaseView.d.ts +11 -15
- package/types/dom2/UniNativeDefines.d.ts +2 -44
- package/types/dom2/UniNativeViewElement.d.ts +60 -0
- package/types/dom2/UniTextElement.d.ts +7 -0
- package/types/dom2/UniTextLayout.d.ts +7 -0
- package/types/dom2/global.d.ts +3 -6
- package/types/dom2/sharedData.d.ts +13 -5
- package/types/native/UniPage.d.ts +9 -0
- 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/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +334 -1
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +604 -8
- package/types/uni/uts-plugin-biz/global.d.ts +1 -0
- package/types/uni/uts-plugin-biz/index.d.ts +1 -0
- package/types/uni/uts-plugin-biz/lib/uni-map-amap/utssdk/global.d.ts +14 -0
- package/types/uni/uts-plugin-biz/lib/uni-map-amap/utssdk/index.d.ts +7 -0
- package/types/uni/uts-plugin-biz/lib/uni-map-amap/utssdk/interface.d.ts +101 -0
- package/types/uni/uts-plugin-component/global.d.ts +5 -0
- package/types/uni/uts-plugin-component/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-camera-global/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-component/lib/uni-camera-global/utssdk/index.d.ts +12 -0
- package/types/uni/uts-plugin-component/lib/uni-camera-global/utssdk/interface.d.ts +38 -0
- package/types/uni/{uni-map-tencent-global.d.ts → uts-plugin-component/lib/uni-map-tencent-global/utssdk/global.d.ts} +22 -20
- package/types/uni/uts-plugin-component/lib/uni-map-tencent-global/utssdk/index.d.ts +20 -0
- package/types/uni/uts-plugin-component/lib/uni-map-tencent-global/utssdk/interface.d.ts +56 -0
- package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/global.d.ts +39 -0
- package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/index.d.ts +20 -0
- package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/interface.d.ts +94 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/global.d.ts +19 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +243 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view-global/utssdk/global.d.ts +31 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view-global/utssdk/index.d.ts +16 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view-global/utssdk/interface.d.ts +46 -0
- package/types/uni/uni-camera-global.d.ts +0 -23
- package/types/uni/uni-camera.d.ts +0 -35
- package/types/uni/uni-map-tencent-map.d.ts +0 -63
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
export type WebViewProgressStyles = {
|
|
2
|
+
color ?: string.ColorString | null,
|
|
3
|
+
show ?: boolean | null
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export type WebViewStyles = {
|
|
7
|
+
progress ?: WebViewProgressStyles | boolean | null
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type UniWebviewContextLoadDataOptions = {
|
|
11
|
+
/**
|
|
12
|
+
* 要加载的内容,编码后的字符串
|
|
13
|
+
* @uniPlatform {
|
|
14
|
+
* "app": {
|
|
15
|
+
* "android": {
|
|
16
|
+
* "osVer": "5.0",
|
|
17
|
+
* "uniVer": "x",
|
|
18
|
+
* "unixVer": "4.85"
|
|
19
|
+
* },
|
|
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"
|
|
37
|
+
* },
|
|
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"
|
|
56
|
+
* },
|
|
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"
|
|
75
|
+
* },
|
|
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"
|
|
96
|
+
* },
|
|
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"
|
|
114
|
+
* },
|
|
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"
|
|
132
|
+
* },
|
|
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"
|
|
150
|
+
* },
|
|
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"
|
|
168
|
+
* },
|
|
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"
|
|
186
|
+
* },
|
|
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"
|
|
204
|
+
* },
|
|
205
|
+
* "ios": {
|
|
206
|
+
* "osVer": "12.0",
|
|
207
|
+
* "uniVer": "x",
|
|
208
|
+
* "unixVer": "4.85"
|
|
209
|
+
* }
|
|
210
|
+
* }
|
|
211
|
+
* }
|
|
212
|
+
*/
|
|
213
|
+
loadData(options : UniWebviewContextLoadDataOptions) : void
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export type CreateWebviewContext = (webviewId : string.WebviewIdString, component ?: ComponentPublicInstance | null) => WebviewContext | null;
|
|
217
|
+
|
|
218
|
+
export interface Uni {
|
|
219
|
+
/**
|
|
220
|
+
* 创建 web-view 上下文 WebViewContext 对象。
|
|
221
|
+
*
|
|
222
|
+
* @uniPlatform {
|
|
223
|
+
* "app": {
|
|
224
|
+
* "android": {
|
|
225
|
+
* "osVer": "4.4",
|
|
226
|
+
* "uniVer": "x",
|
|
227
|
+
* "unixVer": "4.61"
|
|
228
|
+
* },
|
|
229
|
+
* "ios": {
|
|
230
|
+
* "osVer": "12.0",
|
|
231
|
+
* "uniVer": "x",
|
|
232
|
+
* "unixVer": "4.61"
|
|
233
|
+
* },
|
|
234
|
+
* "harmony": {
|
|
235
|
+
* "osVer": "x",
|
|
236
|
+
* "uniVer": "x",
|
|
237
|
+
* "unixVer": "x"
|
|
238
|
+
* }
|
|
239
|
+
* }
|
|
240
|
+
* }
|
|
241
|
+
*/
|
|
242
|
+
createWebviewContext : CreateWebviewContext
|
|
243
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
UniWebViewMessageEventDetail as UniWebViewMessageEventDetailOrigin,
|
|
4
|
+
UniWebViewMessageEvent as UniWebViewMessageEventOrigin,
|
|
5
|
+
UniWebViewLoadEventDetail as UniWebViewLoadEventDetailOrigin,
|
|
6
|
+
UniWebViewLoadEvent as UniWebViewLoadEventOrigin,
|
|
7
|
+
UniWebViewLoadingEventDetail as UniWebViewLoadingEventDetailOrigin,
|
|
8
|
+
UniWebViewLoadingEvent as UniWebViewLoadingEventOrigin,
|
|
9
|
+
UniWebViewDownloadEventDetail as UniWebViewDownloadEventDetailOrigin,
|
|
10
|
+
UniWebViewDownloadEvent as UniWebViewDownloadEventOrigin,
|
|
11
|
+
UniWebViewContentHeightChangeEventDetail as UniWebViewContentHeightChangeEventDetailOrigin,
|
|
12
|
+
UniWebViewContentHeightChangeEvent as UniWebViewContentHeightChangeEventOrigin,
|
|
13
|
+
UniWebViewErrorEventDetail as UniWebViewErrorEventDetailOrigin,
|
|
14
|
+
UniWebViewErrorEvent as UniWebViewErrorEventOrigin,
|
|
15
|
+
} from './interface'
|
|
16
|
+
|
|
17
|
+
declare global {
|
|
18
|
+
type UniWebViewMessageEventDetail = UniWebViewMessageEventDetailOrigin
|
|
19
|
+
type UniWebViewMessageEvent = UniWebViewMessageEventOrigin
|
|
20
|
+
type UniWebViewLoadEventDetail = UniWebViewLoadEventDetailOrigin
|
|
21
|
+
type UniWebViewLoadEvent = UniWebViewLoadEventOrigin
|
|
22
|
+
type UniWebViewLoadingEventDetail = UniWebViewLoadingEventDetailOrigin
|
|
23
|
+
type UniWebViewLoadingEvent = UniWebViewLoadingEventOrigin
|
|
24
|
+
type UniWebViewDownloadEventDetail = UniWebViewDownloadEventDetailOrigin
|
|
25
|
+
type UniWebViewDownloadEvent = UniWebViewDownloadEventOrigin
|
|
26
|
+
type UniWebViewContentHeightChangeEventDetail = UniWebViewContentHeightChangeEventDetailOrigin
|
|
27
|
+
type UniWebViewContentHeightChangeEvent = UniWebViewContentHeightChangeEventOrigin
|
|
28
|
+
type UniWebViewErrorEventDetail = UniWebViewErrorEventDetailOrigin
|
|
29
|
+
type UniWebViewErrorEvent = UniWebViewErrorEventOrigin
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
export {
|
|
3
|
+
UniWebViewMessageEventDetail,
|
|
4
|
+
UniWebViewMessageEvent,
|
|
5
|
+
UniWebViewLoadEventDetail,
|
|
6
|
+
UniWebViewLoadEvent,
|
|
7
|
+
UniWebViewLoadingEventDetail,
|
|
8
|
+
UniWebViewLoadingEvent,
|
|
9
|
+
UniWebViewDownloadEventDetail,
|
|
10
|
+
UniWebViewDownloadEvent,
|
|
11
|
+
UniWebViewContentHeightChangeEventDetail,
|
|
12
|
+
UniWebViewContentHeightChangeEvent,
|
|
13
|
+
UniWebViewErrorEventDetail,
|
|
14
|
+
UniWebViewErrorEvent,
|
|
15
|
+
} from './interface'
|
|
16
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
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 class UniWebViewMessageEvent extends UniWebViewBaseEvent<UniWebViewMessageEventDetail> {
|
|
8
|
+
}
|
|
9
|
+
export type UniWebViewLoadEventDetail = {
|
|
10
|
+
url: string;
|
|
11
|
+
src: string;
|
|
12
|
+
};
|
|
13
|
+
export class UniWebViewLoadEvent extends UniWebViewBaseEvent<UniWebViewLoadEventDetail> {
|
|
14
|
+
}
|
|
15
|
+
export type UniWebViewLoadingEventDetail = {
|
|
16
|
+
url: string;
|
|
17
|
+
src: string;
|
|
18
|
+
};
|
|
19
|
+
export class UniWebViewLoadingEvent extends UniWebViewBaseEvent<UniWebViewLoadingEventDetail> {
|
|
20
|
+
}
|
|
21
|
+
export type UniWebViewDownloadEventDetail = {
|
|
22
|
+
url: string;
|
|
23
|
+
userAgent: string;
|
|
24
|
+
contentDisposition: string;
|
|
25
|
+
mimetype: string;
|
|
26
|
+
contentLength: number;
|
|
27
|
+
};
|
|
28
|
+
export class UniWebViewDownloadEvent extends UniWebViewBaseEvent<UniWebViewDownloadEventDetail> {
|
|
29
|
+
}
|
|
30
|
+
export type UniWebViewContentHeightChangeEventDetail = {
|
|
31
|
+
height: number;
|
|
32
|
+
};
|
|
33
|
+
export class UniWebViewContentHeightChangeEvent extends UniWebViewBaseEvent<UniWebViewContentHeightChangeEventDetail> {
|
|
34
|
+
}
|
|
35
|
+
export type UniWebViewErrorEventDetail = {
|
|
36
|
+
errSubject: string;
|
|
37
|
+
errCode: number;
|
|
38
|
+
errMsg: string;
|
|
39
|
+
url: string;
|
|
40
|
+
fullUrl: string;
|
|
41
|
+
src: string;
|
|
42
|
+
};
|
|
43
|
+
export class UniWebViewErrorEvent extends UniWebViewBaseEvent<UniWebViewErrorEventDetail> {
|
|
44
|
+
constructor(target: UniElement, type: string, detail: UniWebViewErrorEventDetail);
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
UniCameraStopEventDetail as UniCameraStopEventDetailOrigin,
|
|
3
|
-
UniCameraStopEvent as uniCameraStopEventOrigin,
|
|
4
|
-
UniCameraErrorEventDetail as UniCameraErrorEventDetailOrigin,
|
|
5
|
-
UniCameraErrorEvent as UniCameraErrorEventOrigin,
|
|
6
|
-
UniCameraInitDoneEventDetail as UniCameraInitDoneEventDetailOrigin,
|
|
7
|
-
UniCameraInitDoneEvent as UniCameraInitDoneEventOrigin,
|
|
8
|
-
UniCameraScanCodeEventDetail as UniCameraScanCodeEventDetailOrigin,
|
|
9
|
-
UniCameraScanCodeEvent as UniCameraScanCodeEventOrigin
|
|
10
|
-
} from './uni-camera'
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
declare global {
|
|
15
|
-
type UniCameraStopEventDetail = UniCameraStopEventDetailOrigin
|
|
16
|
-
type UniCameraStopEvent = uniCameraStopEventOrigin
|
|
17
|
-
type UniCameraErrorEventDetail = UniCameraErrorEventDetailOrigin
|
|
18
|
-
type UniCameraErrorEvent = UniCameraErrorEventOrigin
|
|
19
|
-
type UniCameraInitDoneEventDetail = UniCameraInitDoneEventDetailOrigin
|
|
20
|
-
type UniCameraInitDoneEvent = UniCameraInitDoneEventOrigin
|
|
21
|
-
type UniCameraScanCodeEventDetail = UniCameraScanCodeEventDetailOrigin
|
|
22
|
-
type UniCameraScanCodeEvent = UniCameraScanCodeEventOrigin
|
|
23
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export declare type UniCameraStopEventDetail = {
|
|
3
|
-
errorCause?: string | null
|
|
4
|
-
}
|
|
5
|
-
export declare class UniCameraStopEvent extends UniCustomEvent<UniCameraStopEventDetail> {
|
|
6
|
-
constructor(type: string, detail: UniCameraStopEventDetail)
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare type UniCameraErrorEventDetail = {
|
|
11
|
-
msg?: string | null
|
|
12
|
-
}
|
|
13
|
-
export declare class UniCameraErrorEvent extends UniCustomEvent<UniCameraErrorEventDetail> {
|
|
14
|
-
constructor(type: string, detail: UniCameraErrorEventDetail)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export declare type UniCameraInitDoneEventDetail = {
|
|
19
|
-
maxZoom?: number | null
|
|
20
|
-
}
|
|
21
|
-
export declare class UniCameraInitDoneEvent extends UniCustomEvent<UniCameraInitDoneEventDetail> {
|
|
22
|
-
constructor(type: string, detail: UniCameraInitDoneEventDetail)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export declare type UniCameraScanCodeEventDetail = {
|
|
26
|
-
type?: string | null;
|
|
27
|
-
result?: string | null;
|
|
28
|
-
rawData?: string | null;
|
|
29
|
-
charSet?: string | null;
|
|
30
|
-
scanArea?: Array<number> | null;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export declare class UniCameraScanCodeEvent extends UniCustomEvent<UniCameraScanCodeEventDetail> {
|
|
34
|
-
constructor(type : string, detail : UniCameraScanCodeEventDetail)
|
|
35
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
export declare type UniMapUpdatedEventDetail = { }
|
|
2
|
-
export declare class UniMapUpdatedEvent extends UniCustomEvent<UniMapUpdatedEventDetail> {
|
|
3
|
-
constructor(type: string, detail: UniMapUpdatedEventDetail)
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export declare type UniMapTapEventDetail = {
|
|
7
|
-
latitude: number | null
|
|
8
|
-
longitude: number | null
|
|
9
|
-
}
|
|
10
|
-
export declare class UniMapTapEvent extends UniPointerEvent {
|
|
11
|
-
detail ?: UniMapTapEventDetail | null
|
|
12
|
-
constructor(type : string, x : number, y : number, clientX : number, clientY : number, pageX : number, pageY : number, screenX : number, screenY : number)
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export declare type UniMapRegionChangeEventDetail = {
|
|
16
|
-
skew: number | null
|
|
17
|
-
rotate: number | null
|
|
18
|
-
}
|
|
19
|
-
export declare class UniMapRegionChangeEvent extends UniCustomEvent<UniMapRegionChangeEventDetail | null> {
|
|
20
|
-
causedBy?: string | null
|
|
21
|
-
constructor(type: string, detail: UniMapRegionChangeEventDetail | null)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export declare type UniMapMarkerTapEventDetail = {
|
|
25
|
-
markerId: number | null
|
|
26
|
-
}
|
|
27
|
-
export declare class UniMapMarkerTapEvent extends UniPointerEvent {
|
|
28
|
-
detail ?: UniMapMarkerTapEventDetail | null
|
|
29
|
-
constructor(type : string, x : number, y : number, clientX : number, clientY : number, pageX : number, pageY : number, screenX : number, screenY : number)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export declare type UniMapControlTapEventDetail = {
|
|
33
|
-
controlId: number | null
|
|
34
|
-
}
|
|
35
|
-
export declare class UniMapControlTapEvent extends UniCustomEvent<UniMapControlTapEventDetail> {
|
|
36
|
-
constructor(type: string, detail: UniMapControlTapEventDetail)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export declare type UniMapAnchorPointTapEventDetail = {
|
|
40
|
-
latitude: number | null
|
|
41
|
-
longitude: number | null
|
|
42
|
-
}
|
|
43
|
-
export declare class UniMapAnchorPointTapEvent extends UniPointerEvent {
|
|
44
|
-
detail ?: UniMapAnchorPointTapEventDetail | null
|
|
45
|
-
constructor(type : string, x : number, y : number, clientX : number, clientY : number, pageX : number, pageY : number, screenX : number, screenY : number)
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export declare type UniMapPoiTapEventDetail = {
|
|
49
|
-
latitude: number | null
|
|
50
|
-
longitude: number | null
|
|
51
|
-
name: string | null
|
|
52
|
-
}
|
|
53
|
-
export declare class UniMapPoiTapEvent extends UniPointerEvent {
|
|
54
|
-
detail ?: UniMapPoiTapEventDetail | null
|
|
55
|
-
constructor(type : string, x : number, y : number, clientX : number, clientY : number, pageX : number, pageY : number, screenX : number, screenY : number)
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export declare type UniMapCalloutTapEventDetail = {
|
|
59
|
-
markerId : number | null;
|
|
60
|
-
}
|
|
61
|
-
export declare class UniMapCalloutTapEvent extends UniCustomEvent<UniMapCalloutTapEventDetail> {
|
|
62
|
-
constructor(type : string, detail : UniMapCalloutTapEventDetail)
|
|
63
|
-
}
|