@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
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 下拉刷新错误码
|
|
3
|
+
* - 4: 框架内部异常
|
|
4
|
+
*/
|
|
5
|
+
export type PullDownRefreshErrorCode = 4
|
|
6
|
+
|
|
7
|
+
export interface StartPullDownRefreshFail extends IUniError {
|
|
8
|
+
errCode: PullDownRefreshErrorCode
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type StartPullDownRefreshOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* 接口调用成功的回调函数
|
|
14
|
+
*/
|
|
15
|
+
success?: StartPullDownRefreshSuccessCallback
|
|
16
|
+
/**
|
|
17
|
+
* 接口调用失败的回调函数
|
|
18
|
+
*/
|
|
19
|
+
fail?: StartPullDownRefreshFailCallback
|
|
20
|
+
/**
|
|
21
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
22
|
+
*/
|
|
23
|
+
complete?: StartPullDownRefreshCompleteCallback
|
|
24
|
+
}
|
|
25
|
+
export type StartPullDownRefreshSuccess = AsyncApiSuccessResult
|
|
26
|
+
export type StartPullDownRefreshSuccessCallback = (
|
|
27
|
+
result: StartPullDownRefreshSuccess,
|
|
28
|
+
) => void
|
|
29
|
+
export type StartPullDownRefreshFailCallback = (
|
|
30
|
+
result: StartPullDownRefreshFail,
|
|
31
|
+
) => void
|
|
32
|
+
export type StartPullDownRefreshComplete = AsyncApiResult
|
|
33
|
+
export type StartPullDownRefreshCompleteCallback = (
|
|
34
|
+
result: StartPullDownRefreshComplete,
|
|
35
|
+
) => void
|
|
36
|
+
export type StartPullDownRefresh = (options: StartPullDownRefreshOptions) => void
|
|
37
|
+
|
|
38
|
+
export type StopPullDownRefresh = () => void
|
|
39
|
+
|
|
40
|
+
export interface Uni {
|
|
41
|
+
/**
|
|
42
|
+
* 开始下拉刷新
|
|
43
|
+
*
|
|
44
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/pulldown.html#startpulldownrefresh
|
|
45
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/pull-down-refresh.html#startpulldownrefresh
|
|
46
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/pull-down-refresh.html#startpulldownrefresh
|
|
47
|
+
* @uniPlatform {
|
|
48
|
+
* "app": {
|
|
49
|
+
* "android": {
|
|
50
|
+
* "osVer": "5.0",
|
|
51
|
+
* "uniVer": "√",
|
|
52
|
+
* "unixVer": "3.91"
|
|
53
|
+
* },
|
|
54
|
+
* "ios": {
|
|
55
|
+
* "osVer": "12.0",
|
|
56
|
+
* "uniVer": "√",
|
|
57
|
+
* "unixVer": "4.11"
|
|
58
|
+
* },
|
|
59
|
+
* "harmony": {
|
|
60
|
+
* "osVer": "3.0",
|
|
61
|
+
* "uniVer": "4.23",
|
|
62
|
+
* "unixVer": "4.61"
|
|
63
|
+
* }
|
|
64
|
+
* },
|
|
65
|
+
* "mp": {
|
|
66
|
+
* "weixin": {
|
|
67
|
+
* "hostVer": "√",
|
|
68
|
+
* "uniVer": "√",
|
|
69
|
+
* "unixVer": "4.41"
|
|
70
|
+
* },
|
|
71
|
+
* "alipay": {
|
|
72
|
+
* "hostVer": "√",
|
|
73
|
+
* "uniVer": "√",
|
|
74
|
+
* "unixVer": "x"
|
|
75
|
+
* },
|
|
76
|
+
* "baidu": {
|
|
77
|
+
* "hostVer": "√",
|
|
78
|
+
* "uniVer": "√",
|
|
79
|
+
* "unixVer": "x"
|
|
80
|
+
* },
|
|
81
|
+
* "toutiao": {
|
|
82
|
+
* "hostVer": "√",
|
|
83
|
+
* "uniVer": "√",
|
|
84
|
+
* "unixVer": "x"
|
|
85
|
+
* },
|
|
86
|
+
* "lark": {
|
|
87
|
+
* "hostVer": "√",
|
|
88
|
+
* "uniVer": "√",
|
|
89
|
+
* "unixVer": "x"
|
|
90
|
+
* },
|
|
91
|
+
* "qq": {
|
|
92
|
+
* "hostVer": "√",
|
|
93
|
+
* "uniVer": "√",
|
|
94
|
+
* "unixVer": "x"
|
|
95
|
+
* },
|
|
96
|
+
* "kuaishou": {
|
|
97
|
+
* "hostVer": "√",
|
|
98
|
+
* "uniVer": "√",
|
|
99
|
+
* "unixVer": "x"
|
|
100
|
+
* },
|
|
101
|
+
* "jd": {
|
|
102
|
+
* "hostVer": "√",
|
|
103
|
+
* "uniVer": "√",
|
|
104
|
+
* "unixVer": "x"
|
|
105
|
+
* }
|
|
106
|
+
* },
|
|
107
|
+
* "web": {
|
|
108
|
+
* "uniVer": "√",
|
|
109
|
+
* "unixVer": "4.0"
|
|
110
|
+
* }
|
|
111
|
+
* }
|
|
112
|
+
*/
|
|
113
|
+
startPullDownRefresh(
|
|
114
|
+
options?: StartPullDownRefreshOptions | null,
|
|
115
|
+
): Promise<StartPullDownRefreshSuccess> | null
|
|
116
|
+
/**
|
|
117
|
+
* 停止当前页面下拉刷新
|
|
118
|
+
*
|
|
119
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/pulldown.html#stoppulldownrefresh
|
|
120
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/pull-down-refresh.html#stoppulldownrefresh
|
|
121
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/pull-down-refresh.html#stoppulldownrefresh
|
|
122
|
+
* @uniPlatform {
|
|
123
|
+
* "app": {
|
|
124
|
+
* "android": {
|
|
125
|
+
* "osVer": "5.0",
|
|
126
|
+
* "uniVer": "√",
|
|
127
|
+
* "unixVer": "3.91"
|
|
128
|
+
* },
|
|
129
|
+
* "ios": {
|
|
130
|
+
* "osVer": "12.0",
|
|
131
|
+
* "uniVer": "√",
|
|
132
|
+
* "unixVer": "4.11"
|
|
133
|
+
* },
|
|
134
|
+
* "harmony": {
|
|
135
|
+
* "osVer": "3.0",
|
|
136
|
+
* "uniVer": "4.23",
|
|
137
|
+
* "unixVer": "4.61"
|
|
138
|
+
* }
|
|
139
|
+
* },
|
|
140
|
+
* "mp": {
|
|
141
|
+
* "weixin": {
|
|
142
|
+
* "hostVer": "√",
|
|
143
|
+
* "uniVer": "√",
|
|
144
|
+
* "unixVer": "4.41"
|
|
145
|
+
* },
|
|
146
|
+
* "alipay": {
|
|
147
|
+
* "hostVer": "√",
|
|
148
|
+
* "uniVer": "√",
|
|
149
|
+
* "unixVer": "x"
|
|
150
|
+
* },
|
|
151
|
+
* "baidu": {
|
|
152
|
+
* "hostVer": "√",
|
|
153
|
+
* "uniVer": "√",
|
|
154
|
+
* "unixVer": "x"
|
|
155
|
+
* },
|
|
156
|
+
* "toutiao": {
|
|
157
|
+
* "hostVer": "√",
|
|
158
|
+
* "uniVer": "√",
|
|
159
|
+
* "unixVer": "x"
|
|
160
|
+
* },
|
|
161
|
+
* "lark": {
|
|
162
|
+
* "hostVer": "√",
|
|
163
|
+
* "uniVer": "√",
|
|
164
|
+
* "unixVer": "x"
|
|
165
|
+
* },
|
|
166
|
+
* "qq": {
|
|
167
|
+
* "hostVer": "√",
|
|
168
|
+
* "uniVer": "√",
|
|
169
|
+
* "unixVer": "x"
|
|
170
|
+
* },
|
|
171
|
+
* "kuaishou": {
|
|
172
|
+
* "hostVer": "√",
|
|
173
|
+
* "uniVer": "√",
|
|
174
|
+
* "unixVer": "x"
|
|
175
|
+
* },
|
|
176
|
+
* "jd": {
|
|
177
|
+
* "hostVer": "√",
|
|
178
|
+
* "uniVer": "√",
|
|
179
|
+
* "unixVer": "x"
|
|
180
|
+
* }
|
|
181
|
+
* },
|
|
182
|
+
* "web": {
|
|
183
|
+
* "uniVer": "√",
|
|
184
|
+
* "unixVer": "4.0"
|
|
185
|
+
* }
|
|
186
|
+
* }
|
|
187
|
+
*/
|
|
188
|
+
stopPullDownRefresh(): void
|
|
189
|
+
}
|