@dcloudio/uni-app-x 0.7.58 → 0.7.59
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 +6 -2
- package/types/index.d.ts +1 -0
- package/types/native/CSSStyleDeclaration.d.ts +31 -6
- package/types/native/DOMRect.d.ts +60 -10
- package/types/native/IUniElement.d.ts +459 -0
- package/types/native/UniElement.d.ts +3 -2
- package/types/native/UniPage.d.ts +2 -2
- package/types/native/UniWebViewContentHeightChangeEvent.d.ts +31 -0
- package/types/native/UniWebViewElement.d.ts +3 -1
- package/types/native/global.d.ts +8 -0
- package/types/native/index.d.ts +1 -0
- package/types/uni/env/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +554 -0
- package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +224 -0
- package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +77 -0
- package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +365 -0
- package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +77 -0
- package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +972 -0
- package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +410 -0
- package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +459 -0
- package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +203 -0
- package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +2613 -0
- package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +152 -0
- package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +61 -0
- package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +548 -0
- package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +137 -0
- package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +1380 -0
- package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +76 -0
- package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +338 -0
- package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +102 -0
- package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +384 -0
- package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +5316 -0
- package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +35 -0
- package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +616 -0
- package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +2157 -0
- package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +895 -0
- package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +1755 -0
- package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +82 -0
- package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +295 -0
- package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +299 -0
- package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +1764 -0
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +1 -0
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +1 -0
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +736 -0
- package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +274 -0
- package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +198 -0
- package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +634 -0
- package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +980 -0
- package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +5550 -0
- package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +501 -0
- package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +83 -0
- package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +169 -0
- package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +102 -0
- package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +580 -0
- package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +100 -0
- package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +2980 -0
- package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +190 -0
- package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +1002 -0
- package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +3620 -0
- package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +1592 -0
- package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +1 -0
- package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +254 -0
- package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +112 -0
- package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +153 -0
- package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +833 -0
- package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +1 -0
- package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +1 -0
- package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +3 -0
- package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +518 -0
- package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +560 -0
- package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +2607 -0
- package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +189 -0
- package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +710 -0
- package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +2695 -0
- package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +80 -0
- package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +130 -0
- package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +719 -0
- package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +277 -0
- package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +1020 -0
- package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +1148 -0
- package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +1059 -0
- package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +1660 -0
- package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +1941 -0
- package/types/uni/uts-plugin-api/global.d.ts +3 -0
- package/types/uni/uts-plugin-api/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +16 -6
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +45 -0
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +238 -233
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +28 -1
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +0 -9
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +67 -239
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +24 -4
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +293 -179
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +118 -78
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3932 -3514
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +778 -290
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +2254 -1281
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +36 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +180 -0
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +126 -67
- package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +726 -0
- package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +89 -0
- package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +212 -0
- package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +2359 -0
- package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +960 -0
- package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +204 -0
- package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +730 -0
- package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +221 -0
- package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +935 -0
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -0
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +203 -1
- package/types/uni-cloud/interface.d.ts +229 -0
- package/types/vite.d.ts +269 -0
|
@@ -894,6 +894,7 @@ export interface UniElement {
|
|
|
894
894
|
* 成功会返回图片对应的临时文件路径,目前默认png格式
|
|
895
895
|
*
|
|
896
896
|
* @param options 组件截图的参数对象
|
|
897
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/dom/unielement.html#takesnapshot
|
|
897
898
|
* @uniPlatform {
|
|
898
899
|
* "app": {
|
|
899
900
|
* "android": {
|
|
@@ -5227,6 +5228,334 @@ export interface UniTextElement extends UniElement {
|
|
|
5227
5228
|
|
|
5228
5229
|
export type TextElement = UniTextElement
|
|
5229
5230
|
|
|
5231
|
+
/**
|
|
5232
|
+
* web-view UniWebViewElement loadData函数参数
|
|
5233
|
+
* @package io.dcloud.uniapp.runtime
|
|
5234
|
+
* @uniPlatform {
|
|
5235
|
+
* "app": {
|
|
5236
|
+
* "android": {
|
|
5237
|
+
* "osVer": "5.0",
|
|
5238
|
+
* "uniVer": "x",
|
|
5239
|
+
* "unixVer": "4.65"
|
|
5240
|
+
* },
|
|
5241
|
+
* "ios": {
|
|
5242
|
+
* "osVer": "12.0",
|
|
5243
|
+
* "uniVer": "x",
|
|
5244
|
+
* "unixVer": "4.65"
|
|
5245
|
+
* "unixUtsPlugin": "4.65"
|
|
5246
|
+
* }
|
|
5247
|
+
* },
|
|
5248
|
+
* "mp": {
|
|
5249
|
+
* "weixin": {
|
|
5250
|
+
* "hostVer": "√",
|
|
5251
|
+
* "uniVer": "x",
|
|
5252
|
+
* "unixVer": "x"
|
|
5253
|
+
* },
|
|
5254
|
+
* "alipay": {
|
|
5255
|
+
* "hostVer": "√",
|
|
5256
|
+
* "uniVer": "x",
|
|
5257
|
+
* "unixVer": "x"
|
|
5258
|
+
* },
|
|
5259
|
+
* "baidu": {
|
|
5260
|
+
* "hostVer": "√",
|
|
5261
|
+
* "uniVer": "x",
|
|
5262
|
+
* "unixVer": "x"
|
|
5263
|
+
* },
|
|
5264
|
+
* "toutiao": {
|
|
5265
|
+
* "hostVer": "√",
|
|
5266
|
+
* "uniVer": "x",
|
|
5267
|
+
* "unixVer": "x"
|
|
5268
|
+
* },
|
|
5269
|
+
* "lark": {
|
|
5270
|
+
* "hostVer": "√",
|
|
5271
|
+
* "uniVer": "x",
|
|
5272
|
+
* "unixVer": "x"
|
|
5273
|
+
* },
|
|
5274
|
+
* "qq": {
|
|
5275
|
+
* "hostVer": "√",
|
|
5276
|
+
* "uniVer": "x",
|
|
5277
|
+
* "unixVer": "x"
|
|
5278
|
+
* },
|
|
5279
|
+
* "kuaishou": {
|
|
5280
|
+
* "hostVer": "√",
|
|
5281
|
+
* "uniVer": "x",
|
|
5282
|
+
* "unixVer": "x"
|
|
5283
|
+
* },
|
|
5284
|
+
* "jd": {
|
|
5285
|
+
* "hostVer": "√",
|
|
5286
|
+
* "uniVer": "x",
|
|
5287
|
+
* "unixVer": "x"
|
|
5288
|
+
* }
|
|
5289
|
+
* },
|
|
5290
|
+
* "web": {
|
|
5291
|
+
* "uniVer": "x",
|
|
5292
|
+
* "unixVer": "4.65"
|
|
5293
|
+
* }
|
|
5294
|
+
* }
|
|
5295
|
+
*/
|
|
5296
|
+
export type UniWebViewElementLoadDataOptions = {
|
|
5297
|
+
/**
|
|
5298
|
+
* 要加载的html字符串,注意:这里是编码过的字符串
|
|
5299
|
+
* @uniPlatform {
|
|
5300
|
+
* "app": {
|
|
5301
|
+
* "android": {
|
|
5302
|
+
* "osVer": "5.0",
|
|
5303
|
+
* "uniVer": "√",
|
|
5304
|
+
* "unixVer": "4.65"
|
|
5305
|
+
* },
|
|
5306
|
+
* "ios": {
|
|
5307
|
+
* "osVer": "12.0",
|
|
5308
|
+
* "uniVer": "√",
|
|
5309
|
+
* "unixVer": "4.65"
|
|
5310
|
+
* "unixUtsPlugin": "4.65"
|
|
5311
|
+
* }
|
|
5312
|
+
* },
|
|
5313
|
+
* "mp": {
|
|
5314
|
+
* "weixin": {
|
|
5315
|
+
* "hostVer": "√",
|
|
5316
|
+
* "uniVer": "x",
|
|
5317
|
+
* "unixVer": "x"
|
|
5318
|
+
* },
|
|
5319
|
+
* "alipay": {
|
|
5320
|
+
* "hostVer": "√",
|
|
5321
|
+
* "uniVer": "x",
|
|
5322
|
+
* "unixVer": "x"
|
|
5323
|
+
* },
|
|
5324
|
+
* "baidu": {
|
|
5325
|
+
* "hostVer": "√",
|
|
5326
|
+
* "uniVer": "x",
|
|
5327
|
+
* "unixVer": "x"
|
|
5328
|
+
* },
|
|
5329
|
+
* "toutiao": {
|
|
5330
|
+
* "hostVer": "√",
|
|
5331
|
+
* "uniVer": "x",
|
|
5332
|
+
* "unixVer": "x"
|
|
5333
|
+
* },
|
|
5334
|
+
* "lark": {
|
|
5335
|
+
* "hostVer": "√",
|
|
5336
|
+
* "uniVer": "x",
|
|
5337
|
+
* "unixVer": "x"
|
|
5338
|
+
* },
|
|
5339
|
+
* "qq": {
|
|
5340
|
+
* "hostVer": "√",
|
|
5341
|
+
* "uniVer": "x",
|
|
5342
|
+
* "unixVer": "x"
|
|
5343
|
+
* },
|
|
5344
|
+
* "kuaishou": {
|
|
5345
|
+
* "hostVer": "√",
|
|
5346
|
+
* "uniVer": "x",
|
|
5347
|
+
* "unixVer": "x"
|
|
5348
|
+
* },
|
|
5349
|
+
* "jd": {
|
|
5350
|
+
* "hostVer": "√",
|
|
5351
|
+
* "uniVer": "x",
|
|
5352
|
+
* "unixVer": "x"
|
|
5353
|
+
* }
|
|
5354
|
+
* },
|
|
5355
|
+
* "web": {
|
|
5356
|
+
* "uniVer": "√",
|
|
5357
|
+
* "unixVer": "4.65"
|
|
5358
|
+
* }
|
|
5359
|
+
* }
|
|
5360
|
+
*/
|
|
5361
|
+
data: string,
|
|
5362
|
+
/**
|
|
5363
|
+
* 页面的基础URL, 可选
|
|
5364
|
+
* @uniPlatform {
|
|
5365
|
+
* "app": {
|
|
5366
|
+
* "android": {
|
|
5367
|
+
* "osVer": "5.0",
|
|
5368
|
+
* "uniVer": "√",
|
|
5369
|
+
* "unixVer": "4.65"
|
|
5370
|
+
* },
|
|
5371
|
+
* "ios": {
|
|
5372
|
+
* "osVer": "12.0",
|
|
5373
|
+
* "uniVer": "√",
|
|
5374
|
+
* "unixVer": "4.65"
|
|
5375
|
+
* "unixUtsPlugin": "4.65"
|
|
5376
|
+
* }
|
|
5377
|
+
* },
|
|
5378
|
+
* "mp": {
|
|
5379
|
+
* "weixin": {
|
|
5380
|
+
* "hostVer": "√",
|
|
5381
|
+
* "uniVer": "x",
|
|
5382
|
+
* "unixVer": "x"
|
|
5383
|
+
* },
|
|
5384
|
+
* "alipay": {
|
|
5385
|
+
* "hostVer": "√",
|
|
5386
|
+
* "uniVer": "x",
|
|
5387
|
+
* "unixVer": "x"
|
|
5388
|
+
* },
|
|
5389
|
+
* "baidu": {
|
|
5390
|
+
* "hostVer": "√",
|
|
5391
|
+
* "uniVer": "x",
|
|
5392
|
+
* "unixVer": "x"
|
|
5393
|
+
* },
|
|
5394
|
+
* "toutiao": {
|
|
5395
|
+
* "hostVer": "√",
|
|
5396
|
+
* "uniVer": "x",
|
|
5397
|
+
* "unixVer": "x"
|
|
5398
|
+
* },
|
|
5399
|
+
* "lark": {
|
|
5400
|
+
* "hostVer": "√",
|
|
5401
|
+
* "uniVer": "x",
|
|
5402
|
+
* "unixVer": "x"
|
|
5403
|
+
* },
|
|
5404
|
+
* "qq": {
|
|
5405
|
+
* "hostVer": "√",
|
|
5406
|
+
* "uniVer": "x",
|
|
5407
|
+
* "unixVer": "x"
|
|
5408
|
+
* },
|
|
5409
|
+
* "kuaishou": {
|
|
5410
|
+
* "hostVer": "√",
|
|
5411
|
+
* "uniVer": "x",
|
|
5412
|
+
* "unixVer": "x"
|
|
5413
|
+
* },
|
|
5414
|
+
* "jd": {
|
|
5415
|
+
* "hostVer": "√",
|
|
5416
|
+
* "uniVer": "x",
|
|
5417
|
+
* "unixVer": "x"
|
|
5418
|
+
* }
|
|
5419
|
+
* },
|
|
5420
|
+
* "web": {
|
|
5421
|
+
* "uniVer": "√",
|
|
5422
|
+
* "unixVer": "4.65"
|
|
5423
|
+
* }
|
|
5424
|
+
* }
|
|
5425
|
+
*/
|
|
5426
|
+
baseURL?: string | null,
|
|
5427
|
+
/**
|
|
5428
|
+
* 加载的页面内容类型,默认值为"text/html",可选
|
|
5429
|
+
* @uniPlatform {
|
|
5430
|
+
* "app": {
|
|
5431
|
+
* "android": {
|
|
5432
|
+
* "osVer": "5.0",
|
|
5433
|
+
* "uniVer": "√",
|
|
5434
|
+
* "unixVer": "4.65"
|
|
5435
|
+
* },
|
|
5436
|
+
* "ios": {
|
|
5437
|
+
* "osVer": "12.0",
|
|
5438
|
+
* "uniVer": "√",
|
|
5439
|
+
* "unixVer": "4.65"
|
|
5440
|
+
* "unixUtsPlugin": "4.65"
|
|
5441
|
+
* }
|
|
5442
|
+
* },
|
|
5443
|
+
* "mp": {
|
|
5444
|
+
* "weixin": {
|
|
5445
|
+
* "hostVer": "√",
|
|
5446
|
+
* "uniVer": "x",
|
|
5447
|
+
* "unixVer": "x"
|
|
5448
|
+
* },
|
|
5449
|
+
* "alipay": {
|
|
5450
|
+
* "hostVer": "√",
|
|
5451
|
+
* "uniVer": "x",
|
|
5452
|
+
* "unixVer": "x"
|
|
5453
|
+
* },
|
|
5454
|
+
* "baidu": {
|
|
5455
|
+
* "hostVer": "√",
|
|
5456
|
+
* "uniVer": "x",
|
|
5457
|
+
* "unixVer": "x"
|
|
5458
|
+
* },
|
|
5459
|
+
* "toutiao": {
|
|
5460
|
+
* "hostVer": "√",
|
|
5461
|
+
* "uniVer": "x",
|
|
5462
|
+
* "unixVer": "x"
|
|
5463
|
+
* },
|
|
5464
|
+
* "lark": {
|
|
5465
|
+
* "hostVer": "√",
|
|
5466
|
+
* "uniVer": "x",
|
|
5467
|
+
* "unixVer": "x"
|
|
5468
|
+
* },
|
|
5469
|
+
* "qq": {
|
|
5470
|
+
* "hostVer": "√",
|
|
5471
|
+
* "uniVer": "x",
|
|
5472
|
+
* "unixVer": "x"
|
|
5473
|
+
* },
|
|
5474
|
+
* "kuaishou": {
|
|
5475
|
+
* "hostVer": "√",
|
|
5476
|
+
* "uniVer": "x",
|
|
5477
|
+
* "unixVer": "x"
|
|
5478
|
+
* },
|
|
5479
|
+
* "jd": {
|
|
5480
|
+
* "hostVer": "√",
|
|
5481
|
+
* "uniVer": "x",
|
|
5482
|
+
* "unixVer": "x"
|
|
5483
|
+
* }
|
|
5484
|
+
* },
|
|
5485
|
+
* "web": {
|
|
5486
|
+
* "uniVer": "√",
|
|
5487
|
+
* "unixVer": "4.65"
|
|
5488
|
+
* }
|
|
5489
|
+
* }
|
|
5490
|
+
*/
|
|
5491
|
+
mimeType?: string | null,
|
|
5492
|
+
/**
|
|
5493
|
+
* 页面内容的编码类型,默认值为"utf-8",可选
|
|
5494
|
+
* @uniPlatform {
|
|
5495
|
+
* "app": {
|
|
5496
|
+
* "android": {
|
|
5497
|
+
* "osVer": "5.0",
|
|
5498
|
+
* "uniVer": "√",
|
|
5499
|
+
* "unixVer": "4.65"
|
|
5500
|
+
* },
|
|
5501
|
+
* "ios": {
|
|
5502
|
+
* "osVer": "12.0",
|
|
5503
|
+
* "uniVer": "√",
|
|
5504
|
+
* "unixVer": "4.65"
|
|
5505
|
+
* "unixUtsPlugin": "4.65"
|
|
5506
|
+
* }
|
|
5507
|
+
* },
|
|
5508
|
+
* "mp": {
|
|
5509
|
+
* "weixin": {
|
|
5510
|
+
* "hostVer": "√",
|
|
5511
|
+
* "uniVer": "x",
|
|
5512
|
+
* "unixVer": "x"
|
|
5513
|
+
* },
|
|
5514
|
+
* "alipay": {
|
|
5515
|
+
* "hostVer": "√",
|
|
5516
|
+
* "uniVer": "x",
|
|
5517
|
+
* "unixVer": "x"
|
|
5518
|
+
* },
|
|
5519
|
+
* "baidu": {
|
|
5520
|
+
* "hostVer": "√",
|
|
5521
|
+
* "uniVer": "x",
|
|
5522
|
+
* "unixVer": "x"
|
|
5523
|
+
* },
|
|
5524
|
+
* "toutiao": {
|
|
5525
|
+
* "hostVer": "√",
|
|
5526
|
+
* "uniVer": "x",
|
|
5527
|
+
* "unixVer": "x"
|
|
5528
|
+
* },
|
|
5529
|
+
* "lark": {
|
|
5530
|
+
* "hostVer": "√",
|
|
5531
|
+
* "uniVer": "x",
|
|
5532
|
+
* "unixVer": "x"
|
|
5533
|
+
* },
|
|
5534
|
+
* "qq": {
|
|
5535
|
+
* "hostVer": "√",
|
|
5536
|
+
* "uniVer": "x",
|
|
5537
|
+
* "unixVer": "x"
|
|
5538
|
+
* },
|
|
5539
|
+
* "kuaishou": {
|
|
5540
|
+
* "hostVer": "√",
|
|
5541
|
+
* "uniVer": "x",
|
|
5542
|
+
* "unixVer": "x"
|
|
5543
|
+
* },
|
|
5544
|
+
* "jd": {
|
|
5545
|
+
* "hostVer": "√",
|
|
5546
|
+
* "uniVer": "x",
|
|
5547
|
+
* "unixVer": "x"
|
|
5548
|
+
* }
|
|
5549
|
+
* },
|
|
5550
|
+
* "web": {
|
|
5551
|
+
* "uniVer": "√",
|
|
5552
|
+
* "unixVer": "4.65"
|
|
5553
|
+
* }
|
|
5554
|
+
* }
|
|
5555
|
+
*/
|
|
5556
|
+
encoding?: string | null
|
|
5557
|
+
}
|
|
5558
|
+
|
|
5230
5559
|
/**
|
|
5231
5560
|
* web-view元素对象
|
|
5232
5561
|
* @package io.dcloud.uniapp.runtime
|
|
@@ -5618,6 +5947,136 @@ export interface UniWebViewElement extends UniElement {
|
|
|
5618
5947
|
* }
|
|
5619
5948
|
*/
|
|
5620
5949
|
evalJS(js: string): void
|
|
5950
|
+
/**
|
|
5951
|
+
* 获取webview内容高度
|
|
5952
|
+
* @uniPlatform {
|
|
5953
|
+
* "app": {
|
|
5954
|
+
* "android": {
|
|
5955
|
+
* "osVer": "5.0",
|
|
5956
|
+
* "uniVer": "x",
|
|
5957
|
+
* "unixVer": "4.63"
|
|
5958
|
+
* },
|
|
5959
|
+
* "ios": {
|
|
5960
|
+
* "osVer": "12.0",
|
|
5961
|
+
* "uniVer": "x",
|
|
5962
|
+
* "unixVer": "4.63"
|
|
5963
|
+
* "unixUtsPlugin": "4.63"
|
|
5964
|
+
* }
|
|
5965
|
+
* },
|
|
5966
|
+
* "mp": {
|
|
5967
|
+
* "weixin": {
|
|
5968
|
+
* "hostVer": "x",
|
|
5969
|
+
* "uniVer": "x",
|
|
5970
|
+
* "unixVer": "x"
|
|
5971
|
+
* },
|
|
5972
|
+
* "alipay": {
|
|
5973
|
+
* "hostVer": "x",
|
|
5974
|
+
* "uniVer": "x",
|
|
5975
|
+
* "unixVer": "x"
|
|
5976
|
+
* },
|
|
5977
|
+
* "baidu": {
|
|
5978
|
+
* "hostVer": "x",
|
|
5979
|
+
* "uniVer": "x",
|
|
5980
|
+
* "unixVer": "x"
|
|
5981
|
+
* },
|
|
5982
|
+
* "toutiao": {
|
|
5983
|
+
* "hostVer": "x",
|
|
5984
|
+
* "uniVer": "x",
|
|
5985
|
+
* "unixVer": "x"
|
|
5986
|
+
* },
|
|
5987
|
+
* "lark": {
|
|
5988
|
+
* "hostVer": "x",
|
|
5989
|
+
* "uniVer": "x",
|
|
5990
|
+
* "unixVer": "x"
|
|
5991
|
+
* },
|
|
5992
|
+
* "qq": {
|
|
5993
|
+
* "hostVer": "x",
|
|
5994
|
+
* "uniVer": "x",
|
|
5995
|
+
* "unixVer": "x"
|
|
5996
|
+
* },
|
|
5997
|
+
* "kuaishou": {
|
|
5998
|
+
* "hostVer": "x",
|
|
5999
|
+
* "uniVer": "x",
|
|
6000
|
+
* "unixVer": "x"
|
|
6001
|
+
* },
|
|
6002
|
+
* "jd": {
|
|
6003
|
+
* "hostVer": "x",
|
|
6004
|
+
* "uniVer": "x",
|
|
6005
|
+
* "unixVer": "x"
|
|
6006
|
+
* }
|
|
6007
|
+
* },
|
|
6008
|
+
* "web": {
|
|
6009
|
+
* "uniVer": "x",
|
|
6010
|
+
* "unixVer": "x"
|
|
6011
|
+
* }
|
|
6012
|
+
* }
|
|
6013
|
+
*/
|
|
6014
|
+
getContentHeight(): number
|
|
6015
|
+
/**
|
|
6016
|
+
* 加载页面内容
|
|
6017
|
+
* @uniPlatform {
|
|
6018
|
+
* "app": {
|
|
6019
|
+
* "android": {
|
|
6020
|
+
* "osVer": "5.0",
|
|
6021
|
+
* "uniVer": "x",
|
|
6022
|
+
* "unixVer": "4.65"
|
|
6023
|
+
* },
|
|
6024
|
+
* "ios": {
|
|
6025
|
+
* "osVer": "12.0",
|
|
6026
|
+
* "uniVer": "x",
|
|
6027
|
+
* "unixVer": "4.65",
|
|
6028
|
+
* "unixUtsPlugin": "4.65"
|
|
6029
|
+
* }
|
|
6030
|
+
* },
|
|
6031
|
+
* "mp": {
|
|
6032
|
+
* "weixin": {
|
|
6033
|
+
* "hostVer": "x",
|
|
6034
|
+
* "uniVer": "x",
|
|
6035
|
+
* "unixVer": "x"
|
|
6036
|
+
* },
|
|
6037
|
+
* "alipay": {
|
|
6038
|
+
* "hostVer": "x",
|
|
6039
|
+
* "uniVer": "x",
|
|
6040
|
+
* "unixVer": "x"
|
|
6041
|
+
* },
|
|
6042
|
+
* "baidu": {
|
|
6043
|
+
* "hostVer": "x",
|
|
6044
|
+
* "uniVer": "x",
|
|
6045
|
+
* "unixVer": "x"
|
|
6046
|
+
* },
|
|
6047
|
+
* "toutiao": {
|
|
6048
|
+
* "hostVer": "x",
|
|
6049
|
+
* "uniVer": "x",
|
|
6050
|
+
* "unixVer": "x"
|
|
6051
|
+
* },
|
|
6052
|
+
* "lark": {
|
|
6053
|
+
* "hostVer": "x",
|
|
6054
|
+
* "uniVer": "x",
|
|
6055
|
+
* "unixVer": "x"
|
|
6056
|
+
* },
|
|
6057
|
+
* "qq": {
|
|
6058
|
+
* "hostVer": "x",
|
|
6059
|
+
* "uniVer": "x",
|
|
6060
|
+
* "unixVer": "x"
|
|
6061
|
+
* },
|
|
6062
|
+
* "kuaishou": {
|
|
6063
|
+
* "hostVer": "x",
|
|
6064
|
+
* "uniVer": "x",
|
|
6065
|
+
* "unixVer": "x"
|
|
6066
|
+
* },
|
|
6067
|
+
* "jd": {
|
|
6068
|
+
* "hostVer": "x",
|
|
6069
|
+
* "uniVer": "x",
|
|
6070
|
+
* "unixVer": "x"
|
|
6071
|
+
* }
|
|
6072
|
+
* },
|
|
6073
|
+
* "web": {
|
|
6074
|
+
* "uniVer": "x",
|
|
6075
|
+
* "unixVer": "x"
|
|
6076
|
+
* }
|
|
6077
|
+
* }
|
|
6078
|
+
*/
|
|
6079
|
+
loadData(options: UniWebViewElementLoadDataOptions): void
|
|
5621
6080
|
}
|
|
5622
6081
|
|
|
5623
6082
|
export type IWebViewNode = UniWebViewElement
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSStyleDeclaration } from "./CSSStyleDeclaration";
|
|
2
2
|
import { DOMRect } from "./DOMRect";
|
|
3
3
|
import { DrawableContext } from "./DrawableContext";
|
|
4
|
-
import { UniElement, UniViewElement,
|
|
4
|
+
import { UniElement, UniViewElement, GetBoundingClientRectAsyncOptions, RequestFullscreenOptions } from "./IUniElement";
|
|
5
5
|
import { UniEvent } from './UniEvent'
|
|
6
6
|
import { TakeSnapshotOptions } from "./SnapshotOptions";
|
|
7
7
|
import { UniCallbackWrapper } from "./UniCallbackWrapper";
|
|
@@ -51,7 +51,7 @@ export class UniElementImpl implements UniElement {
|
|
|
51
51
|
removeAttribute(key: string): void;
|
|
52
52
|
updateStyle(map: Map<string, any>): void;
|
|
53
53
|
getBoundingClientRect(): DOMRect;
|
|
54
|
-
getBoundingClientRectAsync(
|
|
54
|
+
getBoundingClientRectAsync(options?: GetBoundingClientRectAsyncOptions | null): Promise<DOMRect>
|
|
55
55
|
getDrawableContext(): DrawableContext;
|
|
56
56
|
addEventListener<T extends UniEvent, R>(type: string, callback: (event: T) => R): UniCallbackWrapper;
|
|
57
57
|
removeEventListener(type: string, callbackWrapper: UniCallbackWrapper): void;
|
|
@@ -76,6 +76,7 @@ export class UniElementImpl implements UniElement {
|
|
|
76
76
|
requestFullscreen(options: RequestFullscreenOptions): void;
|
|
77
77
|
animate(keyframes: any, options: any): UniAnimation | null;
|
|
78
78
|
isConnected: boolean
|
|
79
|
+
uniPage: UniPage
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
/**
|
|
@@ -321,7 +321,7 @@ export interface UniPage {
|
|
|
321
321
|
*/
|
|
322
322
|
readonly width: number
|
|
323
323
|
/**
|
|
324
|
-
*
|
|
324
|
+
* 页面窗口高度
|
|
325
325
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
326
326
|
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
327
327
|
* @uniPlatform {
|
|
@@ -357,7 +357,7 @@ export interface UniPage {
|
|
|
357
357
|
*/
|
|
358
358
|
readonly height: number
|
|
359
359
|
/**
|
|
360
|
-
*
|
|
360
|
+
* 页面状态栏高度
|
|
361
361
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
362
362
|
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/unipage.html
|
|
363
363
|
* @uniPlatform {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UniCustomEvent } from "./UniCustomEvent"
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @package io.dcloud.uniapp.runtime
|
|
5
|
+
*/
|
|
6
|
+
export class UniWebViewContentHeightChangeEventDetail {
|
|
7
|
+
/**
|
|
8
|
+
* 内容高度
|
|
9
|
+
*/
|
|
10
|
+
height: number
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
constructor(height: number)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @package io.dcloud.uniapp.runtime
|
|
20
|
+
*/
|
|
21
|
+
export class UniWebViewContentHeightChangeEvent extends UniCustomEvent<UniWebViewContentHeightChangeEventDetail> {
|
|
22
|
+
/**
|
|
23
|
+
* 事件类型,固定值contentheightchange
|
|
24
|
+
*/
|
|
25
|
+
type: string
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
constructor(type: string, detail: UniWebViewContentHeightChangeEventDetail)
|
|
31
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UniWebViewElement } from "./IUniElement"
|
|
1
|
+
import { UniWebViewElement, UniWebViewElementLoadDataOptions } from "./IUniElement"
|
|
2
2
|
import { UniElementImpl } from "./UniElement"
|
|
3
3
|
|
|
4
4
|
export class UniWebViewElementImpl extends UniElementImpl implements UniWebViewElement {
|
|
@@ -7,4 +7,6 @@ export class UniWebViewElementImpl extends UniElementImpl implements UniWebViewE
|
|
|
7
7
|
reload(): void
|
|
8
8
|
stop(): void
|
|
9
9
|
evalJS(js: string): void
|
|
10
|
+
getContentHeight(): number
|
|
11
|
+
loadData(options: UniWebViewElementLoadDataOptions): void
|
|
10
12
|
}
|
package/types/native/global.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ import {
|
|
|
28
28
|
UniWebViewDownloadEvent as UniWebViewDownloadEventOrigin,
|
|
29
29
|
WebViewDownloadEventDetail as WebViewDownloadEventDetailOrigin,
|
|
30
30
|
WebViewDownloadEvent as WebViewDownloadEventOrigin,
|
|
31
|
+
UniWebViewContentHeightChangeEventDetail as UniWebViewContentHeightChangeEventDetailOrigin,
|
|
32
|
+
UniWebViewContentHeightChangeEvent as UniWebViewContentHeightChangeEventOrigin,
|
|
31
33
|
UniVideoElement as UniVideoElementOrigin,
|
|
32
34
|
Danmu as DanmuOrigin,
|
|
33
35
|
RequestFullScreenOptions as RequestFullScreenOptionsOrigin,
|
|
@@ -230,6 +232,7 @@ import {
|
|
|
230
232
|
Element as ElementOrigin,
|
|
231
233
|
ITabsNode as ITabsNodeOrigin,
|
|
232
234
|
TextElement as TextElementOrigin,
|
|
235
|
+
UniWebViewElementLoadDataOptions as UniWebViewElementLoadDataOptionsOrigin,
|
|
233
236
|
IWebViewNode as IWebViewNodeOrigin,
|
|
234
237
|
IComment as ICommentOrigin,
|
|
235
238
|
INavigationBar as INavigationBarOrigin,
|
|
@@ -311,6 +314,10 @@ declare global {
|
|
|
311
314
|
const WebViewDownloadEvent: typeof WebViewDownloadEventOrigin
|
|
312
315
|
type WebViewDownloadEventDetail = WebViewDownloadEventDetailOrigin
|
|
313
316
|
type WebViewDownloadEvent = WebViewDownloadEventOrigin
|
|
317
|
+
const UniWebViewContentHeightChangeEventDetail: typeof UniWebViewContentHeightChangeEventDetailOrigin
|
|
318
|
+
type UniWebViewContentHeightChangeEventDetail = UniWebViewContentHeightChangeEventDetailOrigin
|
|
319
|
+
const UniWebViewContentHeightChangeEvent: typeof UniWebViewContentHeightChangeEventOrigin
|
|
320
|
+
type UniWebViewContentHeightChangeEvent = UniWebViewContentHeightChangeEventOrigin
|
|
314
321
|
const UniVideoElement: typeof UniVideoElementOrigin
|
|
315
322
|
type UniVideoElement = UniVideoElementOrigin
|
|
316
323
|
type Danmu = DanmuOrigin
|
|
@@ -651,6 +658,7 @@ declare global {
|
|
|
651
658
|
type ITabsNode = ITabsNodeOrigin
|
|
652
659
|
type UniTextElement = UniTextElementOrigin
|
|
653
660
|
type TextElement = TextElementOrigin
|
|
661
|
+
type UniWebViewElementLoadDataOptions = UniWebViewElementLoadDataOptionsOrigin
|
|
654
662
|
type UniWebViewElement = UniWebViewElementOrigin
|
|
655
663
|
type IWebViewNode = IWebViewNodeOrigin
|
|
656
664
|
type UniCommentElement = UniCommentElementOrigin
|
package/types/native/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './UniWebViewLoadEvent'
|
|
|
8
8
|
export * from './UniWebViewErrorEvent'
|
|
9
9
|
export * from './UniWebViewElement'
|
|
10
10
|
export * from './UniWebViewDownloadEvent'
|
|
11
|
+
export * from './UniWebViewContentHeightChangeEvent'
|
|
11
12
|
export * from './UniVideoElement'
|
|
12
13
|
export * from './UniTouchEvent'
|
|
13
14
|
export * from './UniTextareaLineChangeEvent'
|
package/types/uni/env/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ interface Uni {
|
|
|
36
36
|
env: {
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* 文件系统中的用户文件目录路径
|
|
40
40
|
* @uniPlatform {
|
|
41
41
|
* "app": {
|
|
42
42
|
* "android": {
|
|
@@ -69,7 +69,7 @@ interface Uni {
|
|
|
69
69
|
*/
|
|
70
70
|
USER_DATA_PATH: string,
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* 文件系统中的缓存文件目录路径
|
|
73
73
|
* @uniPlatform {
|
|
74
74
|
* "app": {
|
|
75
75
|
* "android": {
|
|
@@ -102,7 +102,7 @@ interface Uni {
|
|
|
102
102
|
*/
|
|
103
103
|
CACHE_PATH: "unifile://cache/",
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* 文件系统中的应用沙盒目录路径
|
|
106
106
|
* @uniPlatform {
|
|
107
107
|
* "app": {
|
|
108
108
|
* "android": {
|
|
@@ -135,7 +135,7 @@ interface Uni {
|
|
|
135
135
|
*/
|
|
136
136
|
SANDBOX_PATH: "unifile://sandbox/",
|
|
137
137
|
/**
|
|
138
|
-
*
|
|
138
|
+
* 文件系统中的应用临时目录路径,应用退出自动清理
|
|
139
139
|
* @uniPlatform {
|
|
140
140
|
* "app": {
|
|
141
141
|
* "android": {
|
|
@@ -168,7 +168,7 @@ interface Uni {
|
|
|
168
168
|
*/
|
|
169
169
|
TEMP_PATH: "unifile://temp/",
|
|
170
170
|
/**
|
|
171
|
-
*
|
|
171
|
+
* 文件系统中的应用内置沙盒目录路径(仅app-android平台支持)
|
|
172
172
|
* @uniPlatform {
|
|
173
173
|
* "app": {
|
|
174
174
|
* "android": {
|