@dcloudio/uni-app-x 0.7.58 → 0.7.60
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/app.d.ts +16 -8
- 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 -2
- package/types/native/UniElement.d.ts +3 -2
- package/types/native/UniFormControl.d.ts +1 -1
- package/types/native/UniPage.d.ts +2 -2
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -0
- package/types/native/UniSwiperChangeEvent.d.ts +1 -0
- package/types/native/UniWebViewContentHeightChangeEvent.d.ts +31 -0
- package/types/native/UniWebViewElement.d.ts +3 -1
- package/types/native/WebViewStyles.d.ts +1 -1
- package/types/native/global.d.ts +10 -0
- package/types/native/index.d.ts +1 -0
- package/types/page.d.ts +134 -22
- package/types/uni/env/index.d.ts +5 -5
- package/types/uni/uni-camera-global.d.ts +4 -0
- package/types/uni/uni-camera.d.ts +10 -9
- 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-addPhoneContact/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +9 -6
- 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-base64ToArrayBuffer/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
- 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 +22 -10
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +2 -2
- 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 +47 -1
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +5 -3
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +4 -1
- 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 +256 -236
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +12 -11
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +8 -6
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +32 -5
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -16
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +263 -425
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +27 -7
- 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 +296 -181
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +259 -321
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -696
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +10 -8
- 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 +4235 -3525
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +401 -344
- 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-pageScrollTo/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +4 -4
- 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 +2268 -1281
- package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +4 -4
- 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-storage/utssdk/interface.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +18 -18
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +135 -76
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +26 -26
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +14 -14
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +30 -0
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +15 -0
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +350 -1
- package/types/uni-cloud/interface.d.ts +233 -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": {
|
|
@@ -1057,7 +1058,6 @@ export interface UniElement {
|
|
|
1057
1058
|
* 设置指定元素上的某个属性值。功能等同setAttribute value支持任意类型
|
|
1058
1059
|
* @param {string} key 属性名称
|
|
1059
1060
|
* @param {string} value 属性值域
|
|
1060
|
-
* @internal
|
|
1061
1061
|
* @uniPlatform {
|
|
1062
1062
|
* "app": {
|
|
1063
1063
|
* "android": {
|
|
@@ -1122,7 +1122,6 @@ export interface UniElement {
|
|
|
1122
1122
|
/**
|
|
1123
1123
|
* 返回元素上一个指定的属性值。如果指定的属性不存在,则返回 null
|
|
1124
1124
|
* @param {string} key 属性名称
|
|
1125
|
-
* @internal
|
|
1126
1125
|
* @uniPlatform {
|
|
1127
1126
|
* "app": {
|
|
1128
1127
|
* "android": {
|
|
@@ -5227,6 +5226,334 @@ export interface UniTextElement extends UniElement {
|
|
|
5227
5226
|
|
|
5228
5227
|
export type TextElement = UniTextElement
|
|
5229
5228
|
|
|
5229
|
+
/**
|
|
5230
|
+
* web-view UniWebViewElement loadData函数参数
|
|
5231
|
+
* @package io.dcloud.uniapp.runtime
|
|
5232
|
+
* @uniPlatform {
|
|
5233
|
+
* "app": {
|
|
5234
|
+
* "android": {
|
|
5235
|
+
* "osVer": "5.0",
|
|
5236
|
+
* "uniVer": "x",
|
|
5237
|
+
* "unixVer": "4.65"
|
|
5238
|
+
* },
|
|
5239
|
+
* "ios": {
|
|
5240
|
+
* "osVer": "12.0",
|
|
5241
|
+
* "uniVer": "x",
|
|
5242
|
+
* "unixVer": "4.65"
|
|
5243
|
+
* "unixUtsPlugin": "4.65"
|
|
5244
|
+
* }
|
|
5245
|
+
* },
|
|
5246
|
+
* "mp": {
|
|
5247
|
+
* "weixin": {
|
|
5248
|
+
* "hostVer": "√",
|
|
5249
|
+
* "uniVer": "x",
|
|
5250
|
+
* "unixVer": "x"
|
|
5251
|
+
* },
|
|
5252
|
+
* "alipay": {
|
|
5253
|
+
* "hostVer": "√",
|
|
5254
|
+
* "uniVer": "x",
|
|
5255
|
+
* "unixVer": "x"
|
|
5256
|
+
* },
|
|
5257
|
+
* "baidu": {
|
|
5258
|
+
* "hostVer": "√",
|
|
5259
|
+
* "uniVer": "x",
|
|
5260
|
+
* "unixVer": "x"
|
|
5261
|
+
* },
|
|
5262
|
+
* "toutiao": {
|
|
5263
|
+
* "hostVer": "√",
|
|
5264
|
+
* "uniVer": "x",
|
|
5265
|
+
* "unixVer": "x"
|
|
5266
|
+
* },
|
|
5267
|
+
* "lark": {
|
|
5268
|
+
* "hostVer": "√",
|
|
5269
|
+
* "uniVer": "x",
|
|
5270
|
+
* "unixVer": "x"
|
|
5271
|
+
* },
|
|
5272
|
+
* "qq": {
|
|
5273
|
+
* "hostVer": "√",
|
|
5274
|
+
* "uniVer": "x",
|
|
5275
|
+
* "unixVer": "x"
|
|
5276
|
+
* },
|
|
5277
|
+
* "kuaishou": {
|
|
5278
|
+
* "hostVer": "√",
|
|
5279
|
+
* "uniVer": "x",
|
|
5280
|
+
* "unixVer": "x"
|
|
5281
|
+
* },
|
|
5282
|
+
* "jd": {
|
|
5283
|
+
* "hostVer": "√",
|
|
5284
|
+
* "uniVer": "x",
|
|
5285
|
+
* "unixVer": "x"
|
|
5286
|
+
* }
|
|
5287
|
+
* },
|
|
5288
|
+
* "web": {
|
|
5289
|
+
* "uniVer": "x",
|
|
5290
|
+
* "unixVer": "4.65"
|
|
5291
|
+
* }
|
|
5292
|
+
* }
|
|
5293
|
+
*/
|
|
5294
|
+
export type UniWebViewElementLoadDataOptions = {
|
|
5295
|
+
/**
|
|
5296
|
+
* 要加载的html字符串,注意:这里是编码过的字符串
|
|
5297
|
+
* @uniPlatform {
|
|
5298
|
+
* "app": {
|
|
5299
|
+
* "android": {
|
|
5300
|
+
* "osVer": "5.0",
|
|
5301
|
+
* "uniVer": "√",
|
|
5302
|
+
* "unixVer": "4.65"
|
|
5303
|
+
* },
|
|
5304
|
+
* "ios": {
|
|
5305
|
+
* "osVer": "12.0",
|
|
5306
|
+
* "uniVer": "√",
|
|
5307
|
+
* "unixVer": "4.65"
|
|
5308
|
+
* "unixUtsPlugin": "4.65"
|
|
5309
|
+
* }
|
|
5310
|
+
* },
|
|
5311
|
+
* "mp": {
|
|
5312
|
+
* "weixin": {
|
|
5313
|
+
* "hostVer": "√",
|
|
5314
|
+
* "uniVer": "x",
|
|
5315
|
+
* "unixVer": "x"
|
|
5316
|
+
* },
|
|
5317
|
+
* "alipay": {
|
|
5318
|
+
* "hostVer": "√",
|
|
5319
|
+
* "uniVer": "x",
|
|
5320
|
+
* "unixVer": "x"
|
|
5321
|
+
* },
|
|
5322
|
+
* "baidu": {
|
|
5323
|
+
* "hostVer": "√",
|
|
5324
|
+
* "uniVer": "x",
|
|
5325
|
+
* "unixVer": "x"
|
|
5326
|
+
* },
|
|
5327
|
+
* "toutiao": {
|
|
5328
|
+
* "hostVer": "√",
|
|
5329
|
+
* "uniVer": "x",
|
|
5330
|
+
* "unixVer": "x"
|
|
5331
|
+
* },
|
|
5332
|
+
* "lark": {
|
|
5333
|
+
* "hostVer": "√",
|
|
5334
|
+
* "uniVer": "x",
|
|
5335
|
+
* "unixVer": "x"
|
|
5336
|
+
* },
|
|
5337
|
+
* "qq": {
|
|
5338
|
+
* "hostVer": "√",
|
|
5339
|
+
* "uniVer": "x",
|
|
5340
|
+
* "unixVer": "x"
|
|
5341
|
+
* },
|
|
5342
|
+
* "kuaishou": {
|
|
5343
|
+
* "hostVer": "√",
|
|
5344
|
+
* "uniVer": "x",
|
|
5345
|
+
* "unixVer": "x"
|
|
5346
|
+
* },
|
|
5347
|
+
* "jd": {
|
|
5348
|
+
* "hostVer": "√",
|
|
5349
|
+
* "uniVer": "x",
|
|
5350
|
+
* "unixVer": "x"
|
|
5351
|
+
* }
|
|
5352
|
+
* },
|
|
5353
|
+
* "web": {
|
|
5354
|
+
* "uniVer": "√",
|
|
5355
|
+
* "unixVer": "4.65"
|
|
5356
|
+
* }
|
|
5357
|
+
* }
|
|
5358
|
+
*/
|
|
5359
|
+
data: string,
|
|
5360
|
+
/**
|
|
5361
|
+
* 页面的基础URL, 可选
|
|
5362
|
+
* @uniPlatform {
|
|
5363
|
+
* "app": {
|
|
5364
|
+
* "android": {
|
|
5365
|
+
* "osVer": "5.0",
|
|
5366
|
+
* "uniVer": "√",
|
|
5367
|
+
* "unixVer": "4.65"
|
|
5368
|
+
* },
|
|
5369
|
+
* "ios": {
|
|
5370
|
+
* "osVer": "12.0",
|
|
5371
|
+
* "uniVer": "√",
|
|
5372
|
+
* "unixVer": "4.65"
|
|
5373
|
+
* "unixUtsPlugin": "4.65"
|
|
5374
|
+
* }
|
|
5375
|
+
* },
|
|
5376
|
+
* "mp": {
|
|
5377
|
+
* "weixin": {
|
|
5378
|
+
* "hostVer": "√",
|
|
5379
|
+
* "uniVer": "x",
|
|
5380
|
+
* "unixVer": "x"
|
|
5381
|
+
* },
|
|
5382
|
+
* "alipay": {
|
|
5383
|
+
* "hostVer": "√",
|
|
5384
|
+
* "uniVer": "x",
|
|
5385
|
+
* "unixVer": "x"
|
|
5386
|
+
* },
|
|
5387
|
+
* "baidu": {
|
|
5388
|
+
* "hostVer": "√",
|
|
5389
|
+
* "uniVer": "x",
|
|
5390
|
+
* "unixVer": "x"
|
|
5391
|
+
* },
|
|
5392
|
+
* "toutiao": {
|
|
5393
|
+
* "hostVer": "√",
|
|
5394
|
+
* "uniVer": "x",
|
|
5395
|
+
* "unixVer": "x"
|
|
5396
|
+
* },
|
|
5397
|
+
* "lark": {
|
|
5398
|
+
* "hostVer": "√",
|
|
5399
|
+
* "uniVer": "x",
|
|
5400
|
+
* "unixVer": "x"
|
|
5401
|
+
* },
|
|
5402
|
+
* "qq": {
|
|
5403
|
+
* "hostVer": "√",
|
|
5404
|
+
* "uniVer": "x",
|
|
5405
|
+
* "unixVer": "x"
|
|
5406
|
+
* },
|
|
5407
|
+
* "kuaishou": {
|
|
5408
|
+
* "hostVer": "√",
|
|
5409
|
+
* "uniVer": "x",
|
|
5410
|
+
* "unixVer": "x"
|
|
5411
|
+
* },
|
|
5412
|
+
* "jd": {
|
|
5413
|
+
* "hostVer": "√",
|
|
5414
|
+
* "uniVer": "x",
|
|
5415
|
+
* "unixVer": "x"
|
|
5416
|
+
* }
|
|
5417
|
+
* },
|
|
5418
|
+
* "web": {
|
|
5419
|
+
* "uniVer": "√",
|
|
5420
|
+
* "unixVer": "4.65"
|
|
5421
|
+
* }
|
|
5422
|
+
* }
|
|
5423
|
+
*/
|
|
5424
|
+
baseURL?: string | null,
|
|
5425
|
+
/**
|
|
5426
|
+
* 加载的页面内容类型,默认值为"text/html",可选
|
|
5427
|
+
* @uniPlatform {
|
|
5428
|
+
* "app": {
|
|
5429
|
+
* "android": {
|
|
5430
|
+
* "osVer": "5.0",
|
|
5431
|
+
* "uniVer": "√",
|
|
5432
|
+
* "unixVer": "4.65"
|
|
5433
|
+
* },
|
|
5434
|
+
* "ios": {
|
|
5435
|
+
* "osVer": "12.0",
|
|
5436
|
+
* "uniVer": "√",
|
|
5437
|
+
* "unixVer": "4.65"
|
|
5438
|
+
* "unixUtsPlugin": "4.65"
|
|
5439
|
+
* }
|
|
5440
|
+
* },
|
|
5441
|
+
* "mp": {
|
|
5442
|
+
* "weixin": {
|
|
5443
|
+
* "hostVer": "√",
|
|
5444
|
+
* "uniVer": "x",
|
|
5445
|
+
* "unixVer": "x"
|
|
5446
|
+
* },
|
|
5447
|
+
* "alipay": {
|
|
5448
|
+
* "hostVer": "√",
|
|
5449
|
+
* "uniVer": "x",
|
|
5450
|
+
* "unixVer": "x"
|
|
5451
|
+
* },
|
|
5452
|
+
* "baidu": {
|
|
5453
|
+
* "hostVer": "√",
|
|
5454
|
+
* "uniVer": "x",
|
|
5455
|
+
* "unixVer": "x"
|
|
5456
|
+
* },
|
|
5457
|
+
* "toutiao": {
|
|
5458
|
+
* "hostVer": "√",
|
|
5459
|
+
* "uniVer": "x",
|
|
5460
|
+
* "unixVer": "x"
|
|
5461
|
+
* },
|
|
5462
|
+
* "lark": {
|
|
5463
|
+
* "hostVer": "√",
|
|
5464
|
+
* "uniVer": "x",
|
|
5465
|
+
* "unixVer": "x"
|
|
5466
|
+
* },
|
|
5467
|
+
* "qq": {
|
|
5468
|
+
* "hostVer": "√",
|
|
5469
|
+
* "uniVer": "x",
|
|
5470
|
+
* "unixVer": "x"
|
|
5471
|
+
* },
|
|
5472
|
+
* "kuaishou": {
|
|
5473
|
+
* "hostVer": "√",
|
|
5474
|
+
* "uniVer": "x",
|
|
5475
|
+
* "unixVer": "x"
|
|
5476
|
+
* },
|
|
5477
|
+
* "jd": {
|
|
5478
|
+
* "hostVer": "√",
|
|
5479
|
+
* "uniVer": "x",
|
|
5480
|
+
* "unixVer": "x"
|
|
5481
|
+
* }
|
|
5482
|
+
* },
|
|
5483
|
+
* "web": {
|
|
5484
|
+
* "uniVer": "√",
|
|
5485
|
+
* "unixVer": "4.65"
|
|
5486
|
+
* }
|
|
5487
|
+
* }
|
|
5488
|
+
*/
|
|
5489
|
+
mimeType?: string | null,
|
|
5490
|
+
/**
|
|
5491
|
+
* 页面内容的编码类型,默认值为"utf-8",可选
|
|
5492
|
+
* @uniPlatform {
|
|
5493
|
+
* "app": {
|
|
5494
|
+
* "android": {
|
|
5495
|
+
* "osVer": "5.0",
|
|
5496
|
+
* "uniVer": "√",
|
|
5497
|
+
* "unixVer": "4.65"
|
|
5498
|
+
* },
|
|
5499
|
+
* "ios": {
|
|
5500
|
+
* "osVer": "12.0",
|
|
5501
|
+
* "uniVer": "√",
|
|
5502
|
+
* "unixVer": "4.65"
|
|
5503
|
+
* "unixUtsPlugin": "4.65"
|
|
5504
|
+
* }
|
|
5505
|
+
* },
|
|
5506
|
+
* "mp": {
|
|
5507
|
+
* "weixin": {
|
|
5508
|
+
* "hostVer": "√",
|
|
5509
|
+
* "uniVer": "x",
|
|
5510
|
+
* "unixVer": "x"
|
|
5511
|
+
* },
|
|
5512
|
+
* "alipay": {
|
|
5513
|
+
* "hostVer": "√",
|
|
5514
|
+
* "uniVer": "x",
|
|
5515
|
+
* "unixVer": "x"
|
|
5516
|
+
* },
|
|
5517
|
+
* "baidu": {
|
|
5518
|
+
* "hostVer": "√",
|
|
5519
|
+
* "uniVer": "x",
|
|
5520
|
+
* "unixVer": "x"
|
|
5521
|
+
* },
|
|
5522
|
+
* "toutiao": {
|
|
5523
|
+
* "hostVer": "√",
|
|
5524
|
+
* "uniVer": "x",
|
|
5525
|
+
* "unixVer": "x"
|
|
5526
|
+
* },
|
|
5527
|
+
* "lark": {
|
|
5528
|
+
* "hostVer": "√",
|
|
5529
|
+
* "uniVer": "x",
|
|
5530
|
+
* "unixVer": "x"
|
|
5531
|
+
* },
|
|
5532
|
+
* "qq": {
|
|
5533
|
+
* "hostVer": "√",
|
|
5534
|
+
* "uniVer": "x",
|
|
5535
|
+
* "unixVer": "x"
|
|
5536
|
+
* },
|
|
5537
|
+
* "kuaishou": {
|
|
5538
|
+
* "hostVer": "√",
|
|
5539
|
+
* "uniVer": "x",
|
|
5540
|
+
* "unixVer": "x"
|
|
5541
|
+
* },
|
|
5542
|
+
* "jd": {
|
|
5543
|
+
* "hostVer": "√",
|
|
5544
|
+
* "uniVer": "x",
|
|
5545
|
+
* "unixVer": "x"
|
|
5546
|
+
* }
|
|
5547
|
+
* },
|
|
5548
|
+
* "web": {
|
|
5549
|
+
* "uniVer": "√",
|
|
5550
|
+
* "unixVer": "4.65"
|
|
5551
|
+
* }
|
|
5552
|
+
* }
|
|
5553
|
+
*/
|
|
5554
|
+
encoding?: string | null
|
|
5555
|
+
}
|
|
5556
|
+
|
|
5230
5557
|
/**
|
|
5231
5558
|
* web-view元素对象
|
|
5232
5559
|
* @package io.dcloud.uniapp.runtime
|
|
@@ -5618,6 +5945,136 @@ export interface UniWebViewElement extends UniElement {
|
|
|
5618
5945
|
* }
|
|
5619
5946
|
*/
|
|
5620
5947
|
evalJS(js: string): void
|
|
5948
|
+
/**
|
|
5949
|
+
* 获取webview内容高度
|
|
5950
|
+
* @uniPlatform {
|
|
5951
|
+
* "app": {
|
|
5952
|
+
* "android": {
|
|
5953
|
+
* "osVer": "5.0",
|
|
5954
|
+
* "uniVer": "x",
|
|
5955
|
+
* "unixVer": "4.63"
|
|
5956
|
+
* },
|
|
5957
|
+
* "ios": {
|
|
5958
|
+
* "osVer": "12.0",
|
|
5959
|
+
* "uniVer": "x",
|
|
5960
|
+
* "unixVer": "4.63"
|
|
5961
|
+
* "unixUtsPlugin": "4.63"
|
|
5962
|
+
* }
|
|
5963
|
+
* },
|
|
5964
|
+
* "mp": {
|
|
5965
|
+
* "weixin": {
|
|
5966
|
+
* "hostVer": "x",
|
|
5967
|
+
* "uniVer": "x",
|
|
5968
|
+
* "unixVer": "x"
|
|
5969
|
+
* },
|
|
5970
|
+
* "alipay": {
|
|
5971
|
+
* "hostVer": "x",
|
|
5972
|
+
* "uniVer": "x",
|
|
5973
|
+
* "unixVer": "x"
|
|
5974
|
+
* },
|
|
5975
|
+
* "baidu": {
|
|
5976
|
+
* "hostVer": "x",
|
|
5977
|
+
* "uniVer": "x",
|
|
5978
|
+
* "unixVer": "x"
|
|
5979
|
+
* },
|
|
5980
|
+
* "toutiao": {
|
|
5981
|
+
* "hostVer": "x",
|
|
5982
|
+
* "uniVer": "x",
|
|
5983
|
+
* "unixVer": "x"
|
|
5984
|
+
* },
|
|
5985
|
+
* "lark": {
|
|
5986
|
+
* "hostVer": "x",
|
|
5987
|
+
* "uniVer": "x",
|
|
5988
|
+
* "unixVer": "x"
|
|
5989
|
+
* },
|
|
5990
|
+
* "qq": {
|
|
5991
|
+
* "hostVer": "x",
|
|
5992
|
+
* "uniVer": "x",
|
|
5993
|
+
* "unixVer": "x"
|
|
5994
|
+
* },
|
|
5995
|
+
* "kuaishou": {
|
|
5996
|
+
* "hostVer": "x",
|
|
5997
|
+
* "uniVer": "x",
|
|
5998
|
+
* "unixVer": "x"
|
|
5999
|
+
* },
|
|
6000
|
+
* "jd": {
|
|
6001
|
+
* "hostVer": "x",
|
|
6002
|
+
* "uniVer": "x",
|
|
6003
|
+
* "unixVer": "x"
|
|
6004
|
+
* }
|
|
6005
|
+
* },
|
|
6006
|
+
* "web": {
|
|
6007
|
+
* "uniVer": "x",
|
|
6008
|
+
* "unixVer": "x"
|
|
6009
|
+
* }
|
|
6010
|
+
* }
|
|
6011
|
+
*/
|
|
6012
|
+
getContentHeight(): number
|
|
6013
|
+
/**
|
|
6014
|
+
* 加载页面内容
|
|
6015
|
+
* @uniPlatform {
|
|
6016
|
+
* "app": {
|
|
6017
|
+
* "android": {
|
|
6018
|
+
* "osVer": "5.0",
|
|
6019
|
+
* "uniVer": "x",
|
|
6020
|
+
* "unixVer": "4.65"
|
|
6021
|
+
* },
|
|
6022
|
+
* "ios": {
|
|
6023
|
+
* "osVer": "12.0",
|
|
6024
|
+
* "uniVer": "x",
|
|
6025
|
+
* "unixVer": "4.65",
|
|
6026
|
+
* "unixUtsPlugin": "4.65"
|
|
6027
|
+
* }
|
|
6028
|
+
* },
|
|
6029
|
+
* "mp": {
|
|
6030
|
+
* "weixin": {
|
|
6031
|
+
* "hostVer": "x",
|
|
6032
|
+
* "uniVer": "x",
|
|
6033
|
+
* "unixVer": "x"
|
|
6034
|
+
* },
|
|
6035
|
+
* "alipay": {
|
|
6036
|
+
* "hostVer": "x",
|
|
6037
|
+
* "uniVer": "x",
|
|
6038
|
+
* "unixVer": "x"
|
|
6039
|
+
* },
|
|
6040
|
+
* "baidu": {
|
|
6041
|
+
* "hostVer": "x",
|
|
6042
|
+
* "uniVer": "x",
|
|
6043
|
+
* "unixVer": "x"
|
|
6044
|
+
* },
|
|
6045
|
+
* "toutiao": {
|
|
6046
|
+
* "hostVer": "x",
|
|
6047
|
+
* "uniVer": "x",
|
|
6048
|
+
* "unixVer": "x"
|
|
6049
|
+
* },
|
|
6050
|
+
* "lark": {
|
|
6051
|
+
* "hostVer": "x",
|
|
6052
|
+
* "uniVer": "x",
|
|
6053
|
+
* "unixVer": "x"
|
|
6054
|
+
* },
|
|
6055
|
+
* "qq": {
|
|
6056
|
+
* "hostVer": "x",
|
|
6057
|
+
* "uniVer": "x",
|
|
6058
|
+
* "unixVer": "x"
|
|
6059
|
+
* },
|
|
6060
|
+
* "kuaishou": {
|
|
6061
|
+
* "hostVer": "x",
|
|
6062
|
+
* "uniVer": "x",
|
|
6063
|
+
* "unixVer": "x"
|
|
6064
|
+
* },
|
|
6065
|
+
* "jd": {
|
|
6066
|
+
* "hostVer": "x",
|
|
6067
|
+
* "uniVer": "x",
|
|
6068
|
+
* "unixVer": "x"
|
|
6069
|
+
* }
|
|
6070
|
+
* },
|
|
6071
|
+
* "web": {
|
|
6072
|
+
* "uniVer": "x",
|
|
6073
|
+
* "unixVer": "x"
|
|
6074
|
+
* }
|
|
6075
|
+
* }
|
|
6076
|
+
*/
|
|
6077
|
+
loadData(options: UniWebViewElementLoadDataOptions): void
|
|
5621
6078
|
}
|
|
5622
6079
|
|
|
5623
6080
|
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,
|
|
@@ -142,6 +144,7 @@ import {
|
|
|
142
144
|
ImageErrorEventDetail as ImageErrorEventDetailOrigin,
|
|
143
145
|
ImageErrorEvent as ImageErrorEventOrigin,
|
|
144
146
|
UniFormControlElement as UniFormControlElementOrigin,
|
|
147
|
+
UniFormControl as UniFormControlOrigin,
|
|
145
148
|
UniEvent as UniEventOrigin,
|
|
146
149
|
UniKeyEvent as UniKeyEventOrigin,
|
|
147
150
|
Event as EventOrigin,
|
|
@@ -230,6 +233,7 @@ import {
|
|
|
230
233
|
Element as ElementOrigin,
|
|
231
234
|
ITabsNode as ITabsNodeOrigin,
|
|
232
235
|
TextElement as TextElementOrigin,
|
|
236
|
+
UniWebViewElementLoadDataOptions as UniWebViewElementLoadDataOptionsOrigin,
|
|
233
237
|
IWebViewNode as IWebViewNodeOrigin,
|
|
234
238
|
IComment as ICommentOrigin,
|
|
235
239
|
INavigationBar as INavigationBarOrigin,
|
|
@@ -311,6 +315,10 @@ declare global {
|
|
|
311
315
|
const WebViewDownloadEvent: typeof WebViewDownloadEventOrigin
|
|
312
316
|
type WebViewDownloadEventDetail = WebViewDownloadEventDetailOrigin
|
|
313
317
|
type WebViewDownloadEvent = WebViewDownloadEventOrigin
|
|
318
|
+
const UniWebViewContentHeightChangeEventDetail: typeof UniWebViewContentHeightChangeEventDetailOrigin
|
|
319
|
+
type UniWebViewContentHeightChangeEventDetail = UniWebViewContentHeightChangeEventDetailOrigin
|
|
320
|
+
const UniWebViewContentHeightChangeEvent: typeof UniWebViewContentHeightChangeEventOrigin
|
|
321
|
+
type UniWebViewContentHeightChangeEvent = UniWebViewContentHeightChangeEventOrigin
|
|
314
322
|
const UniVideoElement: typeof UniVideoElementOrigin
|
|
315
323
|
type UniVideoElement = UniVideoElementOrigin
|
|
316
324
|
type Danmu = DanmuOrigin
|
|
@@ -517,6 +525,7 @@ declare global {
|
|
|
517
525
|
type ImageErrorEvent = ImageErrorEventOrigin
|
|
518
526
|
const UniFormControlElement: typeof UniFormControlElementOrigin
|
|
519
527
|
type UniFormControlElement<T> = UniFormControlElementOrigin<T>
|
|
528
|
+
type UniFormControl<T> = UniFormControlOrigin<T>
|
|
520
529
|
const UniEvent: typeof UniEventOrigin
|
|
521
530
|
type UniEvent = UniEventOrigin
|
|
522
531
|
const UniKeyEvent: typeof UniKeyEventOrigin
|
|
@@ -651,6 +660,7 @@ declare global {
|
|
|
651
660
|
type ITabsNode = ITabsNodeOrigin
|
|
652
661
|
type UniTextElement = UniTextElementOrigin
|
|
653
662
|
type TextElement = TextElementOrigin
|
|
663
|
+
type UniWebViewElementLoadDataOptions = UniWebViewElementLoadDataOptionsOrigin
|
|
654
664
|
type UniWebViewElement = UniWebViewElementOrigin
|
|
655
665
|
type IWebViewNode = IWebViewNodeOrigin
|
|
656
666
|
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'
|