@dcloudio/uni-app-x 0.7.38 → 0.7.39
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/UniPage.d.ts +4 -0
- package/types/native/CanvasRenderingContext2D.d.ts +1 -1
- package/types/native/IUniElement.d.ts +105 -44
- package/types/native/global.d.ts +14 -8
- package/types/page.d.ts +45 -3
- package/types/uni/env/index.d.ts +81 -81
- package/types/uni/uni-map-tencent-map.d.ts +7 -7
- package/types/uni/uts-plugin-api/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/index.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +73 -73
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +331 -331
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +73 -73
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +628 -628
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +414 -153
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1218 -1987
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +6 -6
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +156 -81
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +315 -315
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +2530 -2126
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +490 -490
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2138 -2005
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +663 -113
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +217 -217
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +809 -809
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +274 -274
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +969 -969
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +106 -106
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +23 -23
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +41 -41
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +88 -88
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1680 -1528
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +16 -16
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3620 -3618
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +12 -12
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +621 -621
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +22 -22
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2602 -2391
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +26 -26
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +77 -77
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +857 -857
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +17 -17
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1057 -516
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1660 -1660
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1746 -1746
- 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-ad/utssdk/interface.d.ts +84 -0
- package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/interface.d.ts +46 -46
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +72 -20
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +126 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +63 -12
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +308 -308
- package/types/uni/uts-plugin-extend/global.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -0
- package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/index.d.ts +0 -0
- package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +77 -77
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +11 -11
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +6 -6
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +1 -1
- package/types/uni-cloud/interface.d.ts +13 -13
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +0 -24
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +0 -11
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +0 -217
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +0 -21
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +0 -9
- package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +0 -151
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +0 -11
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +0 -4
- package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -224
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +0 -53
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +0 -25
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +0 -487
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +0 -9
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +0 -165
- /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/global.d.ts +0 -0
- /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/index.d.ts +0 -0
package/package.json
CHANGED
package/types/UniPage.d.ts
CHANGED
|
@@ -1489,7 +1489,7 @@ export interface CanvasPattern {
|
|
|
1489
1489
|
*/
|
|
1490
1490
|
export interface CanvasGradient {
|
|
1491
1491
|
/**
|
|
1492
|
-
* 添加颜色的渐变点。小于最小 stop 的部分会按最小 stop 的 color 来渲染,大于最大 stop 的部分会按最大 stop 的 color
|
|
1492
|
+
* 添加颜色的渐变点。小于最小 stop 的部分会按最小 stop 的 color 来渲染,大于最大 stop 的部分会按最大 stop 的 color 来渲染, 最大支持5个分段
|
|
1493
1493
|
* @param {number} stop 表示渐变中开始与结束之间的位置,范围 0-1
|
|
1494
1494
|
* @param {string} color 渐变点的颜色
|
|
1495
1495
|
* @uniPlatform {
|
|
@@ -6,13 +6,13 @@ import { DOMRect } from "./DOMRect"
|
|
|
6
6
|
import { UniCallbackWrapper } from "./UniCallbackWrapper"
|
|
7
7
|
import { CanvasRenderingContext2D } from "./CanvasRenderingContext2D"
|
|
8
8
|
|
|
9
|
-
export type
|
|
10
|
-
export type
|
|
11
|
-
export type
|
|
12
|
-
export type
|
|
13
|
-
success?:
|
|
14
|
-
fail?:
|
|
15
|
-
complete?:
|
|
9
|
+
export type GetBoundingClientRectAsyncSuccessCallback = (rect: DOMRect) => void
|
|
10
|
+
export type GetBoundingClientRectAsyncFailCallback = () => void
|
|
11
|
+
export type GetBoundingClientRectAsyncCompleteCallback = (rect: any | null) => void
|
|
12
|
+
export type GetBoundingClientRectAsyncOptions = {
|
|
13
|
+
success?: GetBoundingClientRectAsyncSuccessCallback | null
|
|
14
|
+
fail?: GetBoundingClientRectAsyncFailCallback | null
|
|
15
|
+
complete?: GetBoundingClientRectAsyncCompleteCallback | null
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -956,7 +956,7 @@ export interface UniElement {
|
|
|
956
956
|
* "android": {
|
|
957
957
|
* "osVer": "5.0",
|
|
958
958
|
* "uniVer": "x",
|
|
959
|
-
* "unixVer": "4.
|
|
959
|
+
* "unixVer": "4.41"
|
|
960
960
|
* },
|
|
961
961
|
* "ios": {
|
|
962
962
|
* "osVer": "12.0",
|
|
@@ -971,7 +971,7 @@ export interface UniElement {
|
|
|
971
971
|
* }
|
|
972
972
|
* }
|
|
973
973
|
*/
|
|
974
|
-
getBoundingClientRectAsync(
|
|
974
|
+
getBoundingClientRectAsync(options?: GetBoundingClientRectAsyncOptions | null): Promise<DOMRect> | null
|
|
975
975
|
|
|
976
976
|
/**
|
|
977
977
|
* 获取组件的绘制对象,仅uvue页面中的 view 组件支持,其它组件不支持则返回null。
|
|
@@ -1437,7 +1437,7 @@ export type Element = UniElement
|
|
|
1437
1437
|
* }
|
|
1438
1438
|
* }
|
|
1439
1439
|
*/
|
|
1440
|
-
export interface UniViewElement extends UniElement {}
|
|
1440
|
+
export interface UniViewElement extends UniElement { }
|
|
1441
1441
|
|
|
1442
1442
|
/**
|
|
1443
1443
|
* scroll-view元素对象
|
|
@@ -1462,7 +1462,7 @@ export interface UniViewElement extends UniElement {}
|
|
|
1462
1462
|
* }
|
|
1463
1463
|
* }
|
|
1464
1464
|
*/
|
|
1465
|
-
export interface UniScrollViewElement extends UniElement {}
|
|
1465
|
+
export interface UniScrollViewElement extends UniElement { }
|
|
1466
1466
|
|
|
1467
1467
|
/**
|
|
1468
1468
|
* list-view元素对象
|
|
@@ -1487,7 +1487,7 @@ export interface UniScrollViewElement extends UniElement {}
|
|
|
1487
1487
|
* }
|
|
1488
1488
|
* }
|
|
1489
1489
|
*/
|
|
1490
|
-
export interface UniListViewElement extends UniScrollViewElement {}
|
|
1490
|
+
export interface UniListViewElement extends UniScrollViewElement { }
|
|
1491
1491
|
|
|
1492
1492
|
/**
|
|
1493
1493
|
* list-item元素对象
|
|
@@ -1512,7 +1512,7 @@ export interface UniListViewElement extends UniScrollViewElement {}
|
|
|
1512
1512
|
* }
|
|
1513
1513
|
* }
|
|
1514
1514
|
*/
|
|
1515
|
-
export interface UniListItemElement extends UniElement {}
|
|
1515
|
+
export interface UniListItemElement extends UniElement { }
|
|
1516
1516
|
|
|
1517
1517
|
/**
|
|
1518
1518
|
* swiper元素对象
|
|
@@ -1537,7 +1537,7 @@ export interface UniListItemElement extends UniElement {}
|
|
|
1537
1537
|
* }
|
|
1538
1538
|
* }
|
|
1539
1539
|
*/
|
|
1540
|
-
export interface UniSwiperElement extends UniElement {}
|
|
1540
|
+
export interface UniSwiperElement extends UniElement { }
|
|
1541
1541
|
|
|
1542
1542
|
/**
|
|
1543
1543
|
* swiper-item元素对象
|
|
@@ -1562,7 +1562,7 @@ export interface UniSwiperElement extends UniElement {}
|
|
|
1562
1562
|
* }
|
|
1563
1563
|
* }
|
|
1564
1564
|
*/
|
|
1565
|
-
export interface UniSwiperItemElement extends UniElement {}
|
|
1565
|
+
export interface UniSwiperItemElement extends UniElement { }
|
|
1566
1566
|
|
|
1567
1567
|
/**
|
|
1568
1568
|
* image元素对象
|
|
@@ -1672,7 +1672,7 @@ export interface Image extends UniElement {
|
|
|
1672
1672
|
* }
|
|
1673
1673
|
* }
|
|
1674
1674
|
*/
|
|
1675
|
-
src: string
|
|
1675
|
+
src: string.ImageURIString
|
|
1676
1676
|
/**
|
|
1677
1677
|
* 图片加载完成事件
|
|
1678
1678
|
* @uniPlatform {
|
|
@@ -1962,7 +1962,7 @@ export interface UniTextareaElement extends UniElement {
|
|
|
1962
1962
|
* }
|
|
1963
1963
|
* }
|
|
1964
1964
|
*/
|
|
1965
|
-
export interface UniRichTextElement extends UniElement {}
|
|
1965
|
+
export interface UniRichTextElement extends UniElement { }
|
|
1966
1966
|
|
|
1967
1967
|
/**
|
|
1968
1968
|
* sticky-header元素对象
|
|
@@ -1987,7 +1987,7 @@ export interface UniRichTextElement extends UniElement {}
|
|
|
1987
1987
|
* }
|
|
1988
1988
|
* }
|
|
1989
1989
|
*/
|
|
1990
|
-
export interface UniStickyHeaderElement extends UniElement {}
|
|
1990
|
+
export interface UniStickyHeaderElement extends UniElement { }
|
|
1991
1991
|
|
|
1992
1992
|
/**
|
|
1993
1993
|
* sticky-section元素对象
|
|
@@ -2012,7 +2012,7 @@ export interface UniStickyHeaderElement extends UniElement {}
|
|
|
2012
2012
|
* }
|
|
2013
2013
|
* }
|
|
2014
2014
|
*/
|
|
2015
|
-
export interface UniStickySectionElement extends UniElement {}
|
|
2015
|
+
export interface UniStickySectionElement extends UniElement { }
|
|
2016
2016
|
|
|
2017
2017
|
/**
|
|
2018
2018
|
* tabs元素对象
|
|
@@ -2699,7 +2699,7 @@ export type IComment = UniCommentElement
|
|
|
2699
2699
|
* }
|
|
2700
2700
|
* }
|
|
2701
2701
|
*/
|
|
2702
|
-
export interface UniButtonElement extends UniElement {}
|
|
2702
|
+
export interface UniButtonElement extends UniElement { }
|
|
2703
2703
|
|
|
2704
2704
|
/**
|
|
2705
2705
|
* 嵌套 scroll-view 场景中属于外层 scroll-view 的节点
|
|
@@ -2724,7 +2724,7 @@ export interface UniButtonElement extends UniElement {}
|
|
|
2724
2724
|
* }
|
|
2725
2725
|
* }
|
|
2726
2726
|
*/
|
|
2727
|
-
export interface UniNestedScrollHeaderElement extends UniElement {}
|
|
2727
|
+
export interface UniNestedScrollHeaderElement extends UniElement { }
|
|
2728
2728
|
|
|
2729
2729
|
/**
|
|
2730
2730
|
* 嵌套 scroll-view 场景中属于里层 scroll-view 的节点
|
|
@@ -2748,7 +2748,7 @@ export interface UniNestedScrollHeaderElement extends UniElement {}
|
|
|
2748
2748
|
* }
|
|
2749
2749
|
* }
|
|
2750
2750
|
*/
|
|
2751
|
-
export interface UniNestedScrollBodyElement extends UniElement {}
|
|
2751
|
+
export interface UniNestedScrollBodyElement extends UniElement { }
|
|
2752
2752
|
|
|
2753
2753
|
/**
|
|
2754
2754
|
* canvas元素对象
|
|
@@ -2870,6 +2870,8 @@ export interface UniCanvasElement extends UniElement {
|
|
|
2870
2870
|
toBlob(callback: BlobCallback, type: string, quality: number): void
|
|
2871
2871
|
/**
|
|
2872
2872
|
* 返回一个包含图片展示的 data URI (iOS平台不支持webp格式)
|
|
2873
|
+
* 如果画布的高度或宽度是 0,那么会返回字符串“data:,”。
|
|
2874
|
+
* 如果传入的类型非“image/png”,但是返回的值以“data:image/png”开头,那么该传入的类型是不支持的。
|
|
2873
2875
|
* @uniPlatform {
|
|
2874
2876
|
* "app": {
|
|
2875
2877
|
* "android": {
|
|
@@ -2893,92 +2895,151 @@ export interface UniCanvasElement extends UniElement {
|
|
|
2893
2895
|
toDataURL(type?: string | null, encoderOptions?: any | null): string
|
|
2894
2896
|
}
|
|
2895
2897
|
|
|
2898
|
+
/**
|
|
2899
|
+
* waterflow元素对象
|
|
2900
|
+
* @package io.dcloud.uniapp.runtime
|
|
2901
|
+
* @uniPlatform {
|
|
2902
|
+
* "app": {
|
|
2903
|
+
* "android": {
|
|
2904
|
+
* "osVer": "5.0",
|
|
2905
|
+
* "uniVer": "x",
|
|
2906
|
+
* "unixVer": "4.41"
|
|
2907
|
+
* },
|
|
2908
|
+
* "ios": {
|
|
2909
|
+
* "osVer": "12.0",
|
|
2910
|
+
* "uniVer": "x",
|
|
2911
|
+
* "unixVer": "4.41"
|
|
2912
|
+
* "unixUtsPlugin": "4.41"
|
|
2913
|
+
* }
|
|
2914
|
+
* },
|
|
2915
|
+
* "web": {
|
|
2916
|
+
* "uniVer": "x",
|
|
2917
|
+
* "unixVer": "x"
|
|
2918
|
+
* }
|
|
2919
|
+
* }
|
|
2920
|
+
*/
|
|
2921
|
+
export interface UniWaterFlowElement extends UniListViewElement{}
|
|
2922
|
+
|
|
2923
|
+
/**
|
|
2924
|
+
* flow-item元素对象
|
|
2925
|
+
* @package io.dcloud.uniapp.runtime
|
|
2926
|
+
* @uniPlatform {
|
|
2927
|
+
* "app": {
|
|
2928
|
+
* "android": {
|
|
2929
|
+
* "osVer": "5.0",
|
|
2930
|
+
* "uniVer": "x",
|
|
2931
|
+
* "unixVer": "4.41"
|
|
2932
|
+
* },
|
|
2933
|
+
* "ios": {
|
|
2934
|
+
* "osVer": "12.0",
|
|
2935
|
+
* "uniVer": "x",
|
|
2936
|
+
* "unixVer": "4.41"
|
|
2937
|
+
* "unixUtsPlugin": "4.41"
|
|
2938
|
+
* }
|
|
2939
|
+
* },
|
|
2940
|
+
* "web": {
|
|
2941
|
+
* "uniVer": "x",
|
|
2942
|
+
* "unixVer": "x"
|
|
2943
|
+
* }
|
|
2944
|
+
* }
|
|
2945
|
+
*/
|
|
2946
|
+
export interface UniFlowItemElement extends UniListItemElement{}
|
|
2947
|
+
|
|
2948
|
+
|
|
2896
2949
|
// 允许instanceof检查
|
|
2897
2950
|
export let UniElement: {
|
|
2898
2951
|
prototype: UniElement
|
|
2899
|
-
new
|
|
2952
|
+
new(): UniElement
|
|
2900
2953
|
}
|
|
2901
2954
|
export let UniButtonElement: {
|
|
2902
2955
|
prototype: UniButtonElement
|
|
2903
|
-
new
|
|
2956
|
+
new(): UniButtonElement
|
|
2904
2957
|
}
|
|
2905
2958
|
export let UniCanvasElement: {
|
|
2906
2959
|
prototype: UniCanvasElement
|
|
2907
|
-
new
|
|
2960
|
+
new(): UniCanvasElement
|
|
2908
2961
|
}
|
|
2909
2962
|
export let UniCommentElement: {
|
|
2910
2963
|
prototype: UniCommentElement
|
|
2911
|
-
new
|
|
2964
|
+
new(): UniCommentElement
|
|
2912
2965
|
}
|
|
2913
2966
|
export let UniImageElement: {
|
|
2914
2967
|
prototype: UniImageElement
|
|
2915
|
-
new
|
|
2968
|
+
new(): UniImageElement
|
|
2916
2969
|
}
|
|
2917
2970
|
export let Image: {
|
|
2918
2971
|
prototype: Image
|
|
2919
|
-
new
|
|
2972
|
+
new(width?: number, height?: number): Image
|
|
2920
2973
|
}
|
|
2921
2974
|
export let UniInputElement: {
|
|
2922
2975
|
prototype: UniInputElement
|
|
2923
|
-
new
|
|
2976
|
+
new(): UniInputElement
|
|
2924
2977
|
}
|
|
2925
2978
|
export let UniListItemElement: {
|
|
2926
2979
|
prototype: UniListItemElement
|
|
2927
|
-
new
|
|
2980
|
+
new(): UniListItemElement
|
|
2928
2981
|
}
|
|
2929
2982
|
export let UniListViewElement: {
|
|
2930
2983
|
prototype: UniListViewElement
|
|
2931
|
-
new
|
|
2984
|
+
new(): UniListViewElement
|
|
2932
2985
|
}
|
|
2933
2986
|
export let UniNestedScrollBodyElement: {
|
|
2934
2987
|
prototype: UniNestedScrollBodyElement
|
|
2935
|
-
new
|
|
2988
|
+
new(): UniNestedScrollBodyElement
|
|
2936
2989
|
}
|
|
2937
2990
|
export let UniNestedScrollHeaderElement: {
|
|
2938
2991
|
prototype: UniNestedScrollHeaderElement
|
|
2939
|
-
new
|
|
2992
|
+
new(): UniNestedScrollHeaderElement
|
|
2940
2993
|
}
|
|
2941
2994
|
export let UniRichTextElement: {
|
|
2942
2995
|
prototype: UniRichTextElement
|
|
2943
|
-
new
|
|
2996
|
+
new(): UniRichTextElement
|
|
2944
2997
|
}
|
|
2945
2998
|
export let UniScrollViewElement: {
|
|
2946
2999
|
prototype: UniScrollViewElement
|
|
2947
|
-
new
|
|
3000
|
+
new(): UniScrollViewElement
|
|
2948
3001
|
}
|
|
2949
3002
|
export let UniStickyHeaderElement: {
|
|
2950
3003
|
prototype: UniStickyHeaderElement
|
|
2951
|
-
new
|
|
3004
|
+
new(): UniStickyHeaderElement
|
|
2952
3005
|
}
|
|
2953
3006
|
export let UniStickySectionElement: {
|
|
2954
3007
|
prototype: UniStickySectionElement
|
|
2955
|
-
new
|
|
3008
|
+
new(): UniStickySectionElement
|
|
2956
3009
|
}
|
|
2957
3010
|
export let UniSwiperElement: {
|
|
2958
3011
|
prototype: UniSwiperElement
|
|
2959
|
-
new
|
|
3012
|
+
new(): UniSwiperElement
|
|
2960
3013
|
}
|
|
2961
3014
|
export let UniSwiperItemElement: {
|
|
2962
3015
|
prototype: UniSwiperItemElement
|
|
2963
|
-
new
|
|
3016
|
+
new(): UniSwiperItemElement
|
|
2964
3017
|
}
|
|
2965
3018
|
export let UniTabsElement: {
|
|
2966
3019
|
prototype: UniTabsElement
|
|
2967
|
-
new
|
|
3020
|
+
new(): UniTabsElement
|
|
2968
3021
|
}
|
|
2969
3022
|
export let UniTextElement: {
|
|
2970
3023
|
prototype: UniTextElement
|
|
2971
|
-
new
|
|
3024
|
+
new(): UniTextElement
|
|
2972
3025
|
}
|
|
2973
3026
|
export let UniTextareaElement: {
|
|
2974
3027
|
prototype: UniTextareaElement
|
|
2975
|
-
new
|
|
3028
|
+
new(): UniTextareaElement
|
|
2976
3029
|
}
|
|
2977
3030
|
export let UniViewElement: {
|
|
2978
3031
|
prototype: UniViewElement
|
|
2979
|
-
new
|
|
3032
|
+
new(): UniViewElement
|
|
2980
3033
|
}
|
|
2981
3034
|
export let UniWebViewElement: {
|
|
2982
3035
|
prototype: UniWebViewElement
|
|
2983
|
-
new
|
|
3036
|
+
new(): UniWebViewElement
|
|
3037
|
+
}
|
|
3038
|
+
export let UniWaterFlowElement: {
|
|
3039
|
+
prototype: UniWaterFlowElement
|
|
3040
|
+
new (): UniWaterFlowElement
|
|
3041
|
+
}
|
|
3042
|
+
export let UniFlowItemElement: {
|
|
3043
|
+
prototype: UniFlowItemElement
|
|
3044
|
+
new (): UniFlowItemElement
|
|
2984
3045
|
}
|
package/types/native/global.d.ts
CHANGED
|
@@ -194,10 +194,12 @@ import {
|
|
|
194
194
|
UniTextareaElement as UniTextareaElementOrigin,
|
|
195
195
|
UniViewElement as UniViewElementOrigin,
|
|
196
196
|
UniWebViewElement as UniWebViewElementOrigin,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
197
|
+
UniWaterFlowElement as UniWaterFlowElementOrigin,
|
|
198
|
+
UniFlowItemElement as UniFlowItemElementOrigin,
|
|
199
|
+
GetBoundingClientRectAsyncSuccessCallback as GetBoundingClientRectAsyncSuccessCallbackOrigin,
|
|
200
|
+
GetBoundingClientRectAsyncFailCallback as GetBoundingClientRectAsyncFailCallbackOrigin,
|
|
201
|
+
GetBoundingClientRectAsyncCompleteCallback as GetBoundingClientRectAsyncCompleteCallbackOrigin,
|
|
202
|
+
GetBoundingClientRectAsyncOptions as GetBoundingClientRectAsyncOptionsOrigin,
|
|
201
203
|
INode as INodeOrigin,
|
|
202
204
|
Element as ElementOrigin,
|
|
203
205
|
ITabsNode as ITabsNodeOrigin,
|
|
@@ -569,10 +571,12 @@ declare global {
|
|
|
569
571
|
const UniTextareaElement: typeof UniTextareaElementOrigin
|
|
570
572
|
const UniViewElement: typeof UniViewElementOrigin
|
|
571
573
|
const UniWebViewElement: typeof UniWebViewElementOrigin
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
type
|
|
575
|
-
type
|
|
574
|
+
const UniWaterFlowElement: typeof UniWaterFlowElementOrigin
|
|
575
|
+
const UniFlowItemElement: typeof UniFlowItemElementOrigin
|
|
576
|
+
type GetBoundingClientRectAsyncSuccessCallback = GetBoundingClientRectAsyncSuccessCallbackOrigin
|
|
577
|
+
type GetBoundingClientRectAsyncFailCallback = GetBoundingClientRectAsyncFailCallbackOrigin
|
|
578
|
+
type GetBoundingClientRectAsyncCompleteCallback = GetBoundingClientRectAsyncCompleteCallbackOrigin
|
|
579
|
+
type GetBoundingClientRectAsyncOptions = GetBoundingClientRectAsyncOptionsOrigin
|
|
576
580
|
type UniElement = UniElementOrigin
|
|
577
581
|
type INode = INodeOrigin
|
|
578
582
|
type Element = ElementOrigin
|
|
@@ -601,6 +605,8 @@ declare global {
|
|
|
601
605
|
type UniNestedScrollHeaderElement = UniNestedScrollHeaderElementOrigin
|
|
602
606
|
type UniNestedScrollBodyElement = UniNestedScrollBodyElementOrigin
|
|
603
607
|
type UniCanvasElement = UniCanvasElementOrigin
|
|
608
|
+
type UniWaterFlowElement = UniWaterFlowElementOrigin
|
|
609
|
+
type UniFlowItemElement = UniFlowItemElementOrigin
|
|
604
610
|
type INavigationBar = INavigationBarOrigin
|
|
605
611
|
const DrawableContext: typeof DrawableContextOrigin
|
|
606
612
|
type DrawableContext = DrawableContextOrigin
|
package/types/page.d.ts
CHANGED
|
@@ -1621,13 +1621,55 @@ declare global {
|
|
|
1621
1621
|
* "android": {
|
|
1622
1622
|
* "osVer": "5.0",
|
|
1623
1623
|
* "uniVer": "√",
|
|
1624
|
-
|
|
1624
|
+
* "unixVer": "3.9"
|
|
1625
1625
|
* },
|
|
1626
1626
|
* "ios": {
|
|
1627
1627
|
* "osVer": "12.0",
|
|
1628
1628
|
* "uniVer": "√",
|
|
1629
|
-
|
|
1630
|
-
|
|
1629
|
+
* "unixVer": "4.11",
|
|
1630
|
+
* "unixUtsPlugin": "4.31"
|
|
1631
|
+
* }
|
|
1632
|
+
* },
|
|
1633
|
+
* "mp": {
|
|
1634
|
+
* "weixin": {
|
|
1635
|
+
* "hostVer": "x",
|
|
1636
|
+
* "uniVer": "x",
|
|
1637
|
+
* "unixVer": "4.41"
|
|
1638
|
+
* },
|
|
1639
|
+
* "alipay": {
|
|
1640
|
+
* "hostVer": "x",
|
|
1641
|
+
* "uniVer": "x",
|
|
1642
|
+
* "unixVer": "x"
|
|
1643
|
+
* },
|
|
1644
|
+
* "baidu": {
|
|
1645
|
+
* "hostVer": "x",
|
|
1646
|
+
* "uniVer": "x",
|
|
1647
|
+
* "unixVer": "x"
|
|
1648
|
+
* },
|
|
1649
|
+
* "toutiao": {
|
|
1650
|
+
* "hostVer": "x",
|
|
1651
|
+
* "uniVer": "x",
|
|
1652
|
+
* "unixVer": "x"
|
|
1653
|
+
* },
|
|
1654
|
+
* "lark": {
|
|
1655
|
+
* "hostVer": "x",
|
|
1656
|
+
* "uniVer": "x",
|
|
1657
|
+
* "unixVer": "x"
|
|
1658
|
+
* },
|
|
1659
|
+
* "qq": {
|
|
1660
|
+
* "hostVer": "x",
|
|
1661
|
+
* "uniVer": "x",
|
|
1662
|
+
* "unixVer": "x"
|
|
1663
|
+
* },
|
|
1664
|
+
* "kuaishou": {
|
|
1665
|
+
* "hostVer": "x",
|
|
1666
|
+
* "uniVer": "x",
|
|
1667
|
+
* "unixVer": "x"
|
|
1668
|
+
* },
|
|
1669
|
+
* "jd": {
|
|
1670
|
+
* "hostVer": "x",
|
|
1671
|
+
* "uniVer": "x",
|
|
1672
|
+
* "unixVer": "x"
|
|
1631
1673
|
* }
|
|
1632
1674
|
* },
|
|
1633
1675
|
* "web": {
|
package/types/uni/env/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ interface Uni {
|
|
|
19
19
|
* "weinxin": {
|
|
20
20
|
* "osVer": "√",
|
|
21
21
|
* "uniVer": "√",
|
|
22
|
-
* "unixVer": "4.
|
|
22
|
+
* "unixVer": "4.41"
|
|
23
23
|
* }
|
|
24
24
|
* },
|
|
25
25
|
* "web": {
|
|
@@ -28,87 +28,87 @@ interface Uni {
|
|
|
28
28
|
* }
|
|
29
29
|
* }
|
|
30
30
|
*/
|
|
31
|
-
env
|
|
31
|
+
env: {
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
33
|
+
/**
|
|
34
|
+
* 应用专属存储空间的外置存储空间根目录下的files目录
|
|
35
|
+
* @uniPlatform {
|
|
36
|
+
* "app": {
|
|
37
|
+
* "android": {
|
|
38
|
+
* "osVer": "5.0",
|
|
39
|
+
* "uniVer": "x",
|
|
40
|
+
* "unixVer": "3.99"
|
|
41
|
+
* },
|
|
42
|
+
* "ios": {
|
|
43
|
+
* "osVer": "12.0",
|
|
44
|
+
* "uniVer": "x",
|
|
45
|
+
* "unixVer": "4.11"
|
|
46
|
+
* }
|
|
47
|
+
* },
|
|
48
|
+
* "mp": {
|
|
49
|
+
* "weinxin": {
|
|
50
|
+
* "osVer": "√",
|
|
51
|
+
* "uniVer": "√",
|
|
52
|
+
* "unixVer": "4.41"
|
|
53
|
+
* }
|
|
54
|
+
* }
|
|
55
|
+
* }
|
|
56
|
+
*/
|
|
57
|
+
USER_DATA_PATH: string,
|
|
58
|
+
/**
|
|
59
|
+
* 应用专属存储空间的外置存储空间根目录下的cache目录
|
|
60
|
+
* @uniPlatform {
|
|
61
|
+
* "app": {
|
|
62
|
+
* "android": {
|
|
63
|
+
* "osVer": "5.0",
|
|
64
|
+
* "uniVer": "x",
|
|
65
|
+
* "unixVer": "3.99"
|
|
66
|
+
* },
|
|
67
|
+
* "ios": {
|
|
68
|
+
* "osVer": "12.0",
|
|
69
|
+
* "uniVer": "x",
|
|
70
|
+
* "unixVer": "4.11"
|
|
71
|
+
* }
|
|
72
|
+
* }
|
|
73
|
+
* }
|
|
74
|
+
*/
|
|
75
|
+
CACHE_PATH: "unifile://cache/",
|
|
76
|
+
/**
|
|
77
|
+
* 应用专属存储空间的外置存储空间根目录(caches/files)
|
|
78
|
+
* @uniPlatform {
|
|
79
|
+
* "app": {
|
|
80
|
+
* "android": {
|
|
81
|
+
* "osVer": "5.0",
|
|
82
|
+
* "uniVer": "x",
|
|
83
|
+
* "unixVer": "3.99"
|
|
84
|
+
* },
|
|
85
|
+
* "ios": {
|
|
86
|
+
* "osVer": "12.0",
|
|
87
|
+
* "uniVer": "x",
|
|
88
|
+
* "unixVer": "4.11"
|
|
89
|
+
* }
|
|
90
|
+
* }
|
|
91
|
+
* }
|
|
92
|
+
*/
|
|
93
|
+
SANDBOX_PATH: "unifile://sandbox/",
|
|
94
|
+
/**
|
|
95
|
+
* 应用专属存储空间的内置存储空间根目录
|
|
96
|
+
* @uniPlatform {
|
|
97
|
+
* "app": {
|
|
98
|
+
* "android": {
|
|
99
|
+
* "osVer": "5.0",
|
|
100
|
+
* "uniVer": "x",
|
|
101
|
+
* "unixVer": "3.99"
|
|
102
|
+
* },
|
|
103
|
+
* "ios": {
|
|
104
|
+
* "osVer": "12.0",
|
|
105
|
+
* "uniVer": "x",
|
|
106
|
+
* "unixVer": "4.11"
|
|
107
|
+
* }
|
|
108
|
+
* }
|
|
109
|
+
* }
|
|
110
|
+
*/
|
|
111
|
+
ANDROID_INTERNAL_SANDBOX_PATH: "unifile://androidInternalSandbox/",
|
|
112
112
|
|
|
113
113
|
}
|
|
114
114
|
|