@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.
Files changed (138) hide show
  1. package/package.json +6 -2
  2. package/types/index.d.ts +1 -0
  3. package/types/native/CSSStyleDeclaration.d.ts +31 -6
  4. package/types/native/DOMRect.d.ts +60 -10
  5. package/types/native/IUniElement.d.ts +459 -0
  6. package/types/native/UniElement.d.ts +3 -2
  7. package/types/native/UniPage.d.ts +2 -2
  8. package/types/native/UniWebViewContentHeightChangeEvent.d.ts +31 -0
  9. package/types/native/UniWebViewElement.d.ts +3 -1
  10. package/types/native/global.d.ts +8 -0
  11. package/types/native/index.d.ts +1 -0
  12. package/types/uni/env/index.d.ts +5 -5
  13. package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +554 -0
  14. package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +224 -0
  15. package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +77 -0
  16. package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +365 -0
  17. package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +77 -0
  18. package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +972 -0
  19. package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +410 -0
  20. package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +459 -0
  21. package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +203 -0
  22. package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +2613 -0
  23. package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +152 -0
  24. package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +61 -0
  25. package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +548 -0
  26. package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +137 -0
  27. package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +1380 -0
  28. package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +76 -0
  29. package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +338 -0
  30. package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +102 -0
  31. package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +384 -0
  32. package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +5316 -0
  33. package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +35 -0
  34. package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +616 -0
  35. package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +2157 -0
  36. package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +895 -0
  37. package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +1755 -0
  38. package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +82 -0
  39. package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +295 -0
  40. package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +299 -0
  41. package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +1764 -0
  42. package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +1 -0
  43. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +1 -0
  44. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +736 -0
  45. package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +274 -0
  46. package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +198 -0
  47. package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +634 -0
  48. package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +980 -0
  49. package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +5550 -0
  50. package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +501 -0
  51. package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +83 -0
  52. package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +169 -0
  53. package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +102 -0
  54. package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +580 -0
  55. package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +100 -0
  56. package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +2980 -0
  57. package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +190 -0
  58. package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +1002 -0
  59. package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +3620 -0
  60. package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +1592 -0
  61. package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +1 -0
  62. package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +254 -0
  63. package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +112 -0
  64. package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +153 -0
  65. package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +833 -0
  66. package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +1 -0
  67. package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +1 -0
  68. package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +3 -0
  69. package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +518 -0
  70. package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +560 -0
  71. package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +2607 -0
  72. package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +189 -0
  73. package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +710 -0
  74. package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +2695 -0
  75. package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +80 -0
  76. package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +130 -0
  77. package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +719 -0
  78. package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +277 -0
  79. package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +1020 -0
  80. package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +1148 -0
  81. package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +1059 -0
  82. package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +1660 -0
  83. package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +1941 -0
  84. package/types/uni/uts-plugin-api/global.d.ts +3 -0
  85. package/types/uni/uts-plugin-api/index.d.ts +3 -0
  86. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/global.d.ts +8 -0
  87. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/index.d.ts +4 -0
  88. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
  89. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +4 -0
  90. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +2 -0
  91. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +16 -6
  92. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
  93. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +2 -0
  94. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +1 -0
  95. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +45 -0
  96. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +3 -0
  97. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +238 -233
  98. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
  99. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +28 -1
  100. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +0 -9
  101. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +67 -239
  102. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +24 -4
  103. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +4 -0
  104. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +2 -0
  105. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +293 -179
  106. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +118 -78
  107. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +8 -0
  108. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +4 -0
  109. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3932 -3514
  110. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +4 -0
  111. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +2 -0
  112. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +778 -290
  113. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/global.d.ts +4 -0
  114. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/index.d.ts +2 -0
  115. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +2254 -1281
  116. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
  117. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +36 -0
  118. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +17 -0
  119. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +180 -0
  120. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/global.d.ts +8 -0
  121. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/index.d.ts +4 -0
  122. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -0
  123. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +2 -2
  124. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +126 -67
  125. package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +726 -0
  126. package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +89 -0
  127. package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +212 -0
  128. package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +2359 -0
  129. package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +960 -0
  130. package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +204 -0
  131. package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +730 -0
  132. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +221 -0
  133. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +935 -0
  134. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -0
  135. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -0
  136. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +203 -1
  137. package/types/uni-cloud/interface.d.ts +229 -0
  138. package/types/vite.d.ts +269 -0
@@ -0,0 +1 @@
1
+ export interface UniOAuthHuaweiProvider extends UniOAuthProvider { }
@@ -0,0 +1,254 @@
1
+ export interface Uni {
2
+
3
+ /**
4
+ * openAppAuthorizeSetting()
5
+ * @description
6
+ * 跳转系统授权管理页
7
+ * @param {OpenAppAuthorizeSettingOptions} options
8
+ * @return {void}
9
+ * @tutorial http://uniapp.dcloud.io/api/system/openappauthorizesetting
10
+ * @uniPlatform
11
+ {
12
+ "app": {
13
+ "android": {
14
+ "osVer": "5.0",
15
+ "uniVer": "√",
16
+ "uniUtsPlugin": "4.51",
17
+ "unixVer": "4.51",
18
+ "unixUtsPlugin": "4.51"
19
+ },
20
+ "ios": {
21
+ "osVer": "12.0",
22
+ "uniVer": "√",
23
+ "uniUtsPlugin": "4.51",
24
+ "unixVer": "4.51",
25
+ "unixUtsPlugin": "4.51"
26
+ },
27
+ "harmony": {
28
+ "osVer": "3.0",
29
+ "uniVer": "4.23",
30
+ "unixVer": "4.61"
31
+ }
32
+ },
33
+ "web": {
34
+ "uniVer": "x",
35
+ "unixVer": "x"
36
+ }
37
+ }
38
+ * @example
39
+ ```typescript
40
+ uni.openAppAuthorizeSetting({});
41
+ ```
42
+ */
43
+ openAppAuthorizeSetting(options: OpenAppAuthorizeSettingOptions): void;
44
+ }
45
+
46
+ export type OpenAppAuthorizeSetting = (options: OpenAppAuthorizeSettingOptions) => void;
47
+ export type OpenAppAuthorizeSettingSuccess = {
48
+ /**
49
+ * 错误信息
50
+ * @uniPlatform
51
+ {
52
+ "app": {
53
+ "android": {
54
+ "osVer": "5.0",
55
+ "uniVer": "√",
56
+ "uniUtsPlugin": "4.51",
57
+ "unixVer": "4.51",
58
+ "unixUtsPlugin": "4.51"
59
+ },
60
+ "ios": {
61
+ "osVer": "12.0",
62
+ "uniVer": "√",
63
+ "uniUtsPlugin": "4.51",
64
+ "unixVer": "4.51",
65
+ "unixUtsPlugin": "4.51"
66
+ },
67
+ "harmony": {
68
+ "osVer": "3.0",
69
+ "uniVer": "4.23",
70
+ "unixVer": "4.61"
71
+ }
72
+ },
73
+ "web": {
74
+ "uniVer": "x",
75
+ "unixVer": "x"
76
+ }
77
+ }
78
+ */
79
+ errMsg: string
80
+ };
81
+ export type OpenAppAuthorizeSettingSuccessCallback = (result: OpenAppAuthorizeSettingSuccess) => void;
82
+ export type OpenAppAuthorizeSettingFail = {
83
+ /**
84
+ * 错误信息
85
+ * @uniPlatform
86
+ {
87
+ "app": {
88
+ "android": {
89
+ "osVer": "5.0",
90
+ "uniVer": "√",
91
+ "uniUtsPlugin": "4.51",
92
+ "unixVer": "4.51",
93
+ "unixUtsPlugin": "4.51"
94
+ },
95
+ "ios": {
96
+ "osVer": "12.0",
97
+ "uniVer": "√",
98
+ "uniUtsPlugin": "4.51",
99
+ "unixVer": "4.51",
100
+ "unixUtsPlugin": "4.51"
101
+ },
102
+ "harmony": {
103
+ "osVer": "3.0",
104
+ "uniVer": "4.23",
105
+ "unixVer": "4.61"
106
+ }
107
+ },
108
+ "web": {
109
+ "uniVer": "x",
110
+ "unixVer": "x"
111
+ }
112
+ }
113
+ */
114
+ errMsg: string
115
+ };
116
+ export type OpenAppAuthorizeSettingFailCallback = (result: OpenAppAuthorizeSettingFail) => void;
117
+ export type OpenAppAuthorizeSettingComplete = {
118
+ /**
119
+ * 错误信息
120
+ * @uniPlatform
121
+ {
122
+ "app": {
123
+ "android": {
124
+ "osVer": "5.0",
125
+ "uniVer": "√",
126
+ "uniUtsPlugin": "4.51",
127
+ "unixVer": "4.51",
128
+ "unixUtsPlugin": "4.51"
129
+ },
130
+ "ios": {
131
+ "osVer": "12.0",
132
+ "uniVer": "√",
133
+ "uniUtsPlugin": "4.51",
134
+ "unixVer": "4.51",
135
+ "unixUtsPlugin": "4.51"
136
+ },
137
+ "harmony": {
138
+ "osVer": "3.0",
139
+ "uniVer": "4.23",
140
+ "unixVer": "4.61"
141
+ }
142
+ },
143
+ "web": {
144
+ "uniVer": "x",
145
+ "unixVer": "x"
146
+ }
147
+ }
148
+ */
149
+ errMsg: string
150
+ };
151
+ export type OpenAppAuthorizeSettingCompleteCallback = (result: OpenAppAuthorizeSettingComplete) => void;
152
+ export type OpenAppAuthorizeSettingOptions = {
153
+ /**
154
+ * 接口调用成功的回调函数
155
+ * @defaultValue null
156
+ * @uniPlatform
157
+ {
158
+ "app": {
159
+ "android": {
160
+ "osVer": "5.0",
161
+ "uniVer": "√",
162
+ "uniUtsPlugin": "4.51",
163
+ "unixVer": "4.51",
164
+ "unixUtsPlugin": "4.51"
165
+ },
166
+ "ios": {
167
+ "osVer": "12.0",
168
+ "uniVer": "√",
169
+ "uniUtsPlugin": "4.51",
170
+ "unixVer": "4.51",
171
+ "unixUtsPlugin": "4.51"
172
+ },
173
+ "harmony": {
174
+ "osVer": "3.0",
175
+ "uniVer": "4.23",
176
+ "unixVer": "4.61"
177
+ }
178
+ },
179
+ "web": {
180
+ "uniVer": "x",
181
+ "unixVer": "x"
182
+ }
183
+ }
184
+ */
185
+ success?: OpenAppAuthorizeSettingSuccessCallback | null,
186
+
187
+ /**
188
+ * 接口调用失败的回调函数
189
+ * @defaultValue null
190
+ * @uniPlatform
191
+ {
192
+ "app": {
193
+ "android": {
194
+ "osVer": "5.0",
195
+ "uniVer": "√",
196
+ "uniUtsPlugin": "4.51",
197
+ "unixVer": "4.51",
198
+ "unixUtsPlugin": "4.51"
199
+ },
200
+ "ios": {
201
+ "osVer": "12.0",
202
+ "uniVer": "√",
203
+ "uniUtsPlugin": "4.51",
204
+ "unixVer": "4.51",
205
+ "unixUtsPlugin": "4.51"
206
+ },
207
+ "harmony": {
208
+ "osVer": "3.0",
209
+ "uniVer": "4.23",
210
+ "unixVer": "4.61"
211
+ }
212
+ },
213
+ "web": {
214
+ "uniVer": "x",
215
+ "unixVer": "x"
216
+ }
217
+ }
218
+ */
219
+ fail?: OpenAppAuthorizeSettingFailCallback | null,
220
+
221
+ /**
222
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
223
+ * @defaultValue null
224
+ * @uniPlatform
225
+ {
226
+ "app": {
227
+ "android": {
228
+ "osVer": "5.0",
229
+ "uniVer": "√",
230
+ "uniUtsPlugin": "4.51",
231
+ "unixVer": "4.51",
232
+ "unixUtsPlugin": "4.51"
233
+ },
234
+ "ios": {
235
+ "osVer": "12.0",
236
+ "uniVer": "√",
237
+ "uniUtsPlugin": "4.51",
238
+ "unixVer": "4.51",
239
+ "unixUtsPlugin": "4.51"
240
+ },
241
+ "harmony": {
242
+ "osVer": "3.0",
243
+ "uniVer": "4.23",
244
+ "unixVer": "4.61"
245
+ }
246
+ },
247
+ "web": {
248
+ "uniVer": "x",
249
+ "unixVer": "x"
250
+ }
251
+ }
252
+ */
253
+ complete?: OpenAppAuthorizeSettingCompleteCallback | null
254
+ };
@@ -0,0 +1,112 @@
1
+ /**
2
+ * uni.openDocument成功回调参数
3
+ */
4
+ export type OpenDocumentSuccess = {}
5
+
6
+ export type OpenDocumentFail = {}
7
+ /**
8
+ * uni.openDocument成功回调函数定义
9
+ */
10
+ export type OpenDocumentSuccessCallback = (res: OpenDocumentSuccess) => void
11
+ /**
12
+ * uni.openDocument失败回调函数定义
13
+ */
14
+ export type OpenDocumentFailCallback = (res: OpenDocumentFail) => void
15
+ /**
16
+ * uni.openDocument完成回调函数定义
17
+ */
18
+ export type OpenDocumentCompleteCallback = (res: any) => void
19
+
20
+ export type OpenDocumentSupportedTypes = 'doc' | 'xls' | 'ppt' | 'pdf' | 'docx' | 'xlsx' | 'pptx'
21
+
22
+ /**
23
+ * uni.openDocument参数定义
24
+ */
25
+ export type OpenDocumentOptions = {
26
+ /**
27
+ * 文件路径,仅支持本地路径
28
+ */
29
+ filePath: string,
30
+ /**
31
+ * 文件类型,指定文件类型打开文件,有效值 doc, xls, ppt, pdf, docx, xlsx, pptx
32
+ */
33
+ fileType?: OpenDocumentSupportedTypes | null,
34
+ /**
35
+ * 接口调用成功的回调函数
36
+ */
37
+ success?: OpenDocumentSuccessCallback | null,
38
+ /**
39
+ * 接口调用失败的回调函数
40
+ */
41
+ fail?: OpenDocumentFailCallback | null,
42
+ /**
43
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
44
+ */
45
+ complete?: OpenDocumentCompleteCallback | null
46
+ }
47
+
48
+
49
+ export interface Uni {
50
+ /**
51
+ * 打开文档
52
+ * @uniPlatform {
53
+ * "app": {
54
+ * "harmony": {
55
+ * "osVer": "3.0",
56
+ * "uniVer": "4.23",
57
+ * "unixVer": "4.61"
58
+ * }
59
+ * },
60
+ * "mp": {
61
+ * "weixin": {
62
+ * "hostVer": "√",
63
+ * "uniVer": "√",
64
+ * "unixVer": "4.41"
65
+ * },
66
+ * "alipay": {
67
+ * "hostVer": "√",
68
+ * "uniVer": "√",
69
+ * "unixVer": "x"
70
+ * },
71
+ * "baidu": {
72
+ * "hostVer": "√",
73
+ * "uniVer": "√",
74
+ * "unixVer": "x"
75
+ * },
76
+ * "toutiao": {
77
+ * "hostVer": "√",
78
+ * "uniVer": "√",
79
+ * "unixVer": "x"
80
+ * },
81
+ * "lark": {
82
+ * "hostVer": "√",
83
+ * "uniVer": "√",
84
+ * "unixVer": "x"
85
+ * },
86
+ * "qq": {
87
+ * "hostVer": "√",
88
+ * "uniVer": "√",
89
+ * "unixVer": "x"
90
+ * },
91
+ * "kuaishou": {
92
+ * "hostVer": "√",
93
+ * "uniVer": "√",
94
+ * "unixVer": "x"
95
+ * },
96
+ * "jd": {
97
+ * "hostVer": "√",
98
+ * "uniVer": "√",
99
+ * "unixVer": "x"
100
+ * }
101
+ * },
102
+ * "web": {
103
+ * "uniVer": "x",
104
+ * "unixVer": "x"
105
+ * }
106
+ * }
107
+ * @uniVueVersion 2,3 //支持的vue版本
108
+ */
109
+ openDocument(options?: OpenDocumentOptions | null): void;
110
+ }
111
+
112
+ export type OpenDocument = (options?: OpenDocumentOptions | null) => void;
@@ -0,0 +1,153 @@
1
+ /**
2
+ * 设置页面滚动错误码
3
+ * - 4: 框架内部异常
4
+ */
5
+ export type PageScrollToErrorCode = 4
6
+ export interface PageScrollToFail extends IUniError {
7
+ errCode: PageScrollToErrorCode
8
+ }
9
+
10
+ export type PageScrollToSuccess = AsyncApiSuccessResult
11
+ export type PageScrollToSuccessCallback = (result: PageScrollToSuccess) => void
12
+
13
+ export type PageScrollToFailCallback = (result: PageScrollToFail) => void
14
+ export type PageScrollToComplete = AsyncApiResult
15
+ export type PageScrollToCompleteCallback = (
16
+ result: PageScrollToComplete,
17
+ ) => void
18
+ export type PageScrollToOptions = {
19
+ /**
20
+ * 滚动到页面的目标位置
21
+ */
22
+ scrollTop?: number | null
23
+ /**
24
+ * 选择器
25
+ */
26
+ selector?: string | null
27
+ /**
28
+ * 偏移距离,可以滚动到 selector 加偏移距离的位置
29
+ * @uniPlatform {
30
+ * "app": {
31
+ * "android": {
32
+ * "osVer": "5.0",
33
+ * "uniVer": "x",
34
+ * "unixVer": "3.91"
35
+ * },
36
+ * "ios": {
37
+ * "osVer": "12.0",
38
+ * "uniVer": "x",
39
+ * "unixVer": "4.11"
40
+ * },
41
+ * "harmony": {
42
+ * "osVer": "3.0",
43
+ * "uniVer": "4.23",
44
+ * "unixVer": "4.61"
45
+ * }
46
+ * },
47
+ * "mp": {
48
+ * "weixin": {
49
+ * "hostVer": "√",
50
+ * "uniVer": "√",
51
+ * "unixVer": "4.41"
52
+ * }
53
+ * },
54
+ * "web": {
55
+ * "uniVer": "√",
56
+ * "unixVer": "4.0"
57
+ * }
58
+ * }
59
+ */
60
+ offsetTop?: number | null
61
+ /**
62
+ * 滚动动画的时长
63
+ */
64
+ duration?: number | null
65
+ /**
66
+ * 接口调用成功的回调函数
67
+ */
68
+ success?: PageScrollToSuccessCallback | null
69
+ /**
70
+ * 接口调用失败的回调函数
71
+ */
72
+ fail?: PageScrollToFailCallback | null
73
+ /**
74
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
75
+ */
76
+ complete?: PageScrollToCompleteCallback | null
77
+ }
78
+ export type PageScrollTo = (options: PageScrollToOptions) => Promise<PageScrollToSuccess> | null
79
+ export interface Uni {
80
+ /**
81
+ * 将页面滚动到目标位置
82
+ *
83
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/ui/scroll.html#pagescrollto
84
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/page-scroll-to.html#pagescrollto
85
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/page-scroll-to.html#pagescrollto
86
+ * @uniPlatform {
87
+ * "app": {
88
+ * "android": {
89
+ * "osVer": "5.0",
90
+ * "uniVer": "√",
91
+ * "unixVer": "3.91"
92
+ * },
93
+ * "ios": {
94
+ * "osVer": "12.0",
95
+ * "uniVer": "√",
96
+ * "unixVer": "4.11"
97
+ * },
98
+ * "harmony": {
99
+ * "osVer": "3.0",
100
+ * "uniVer": "4.23",
101
+ * "unixVer": "4.61"
102
+ * }
103
+ * },
104
+ * "mp": {
105
+ * "weixin": {
106
+ * "hostVer": "√",
107
+ * "uniVer": "√",
108
+ * "unixVer": "4.41"
109
+ * },
110
+ * "alipay": {
111
+ * "hostVer": "√",
112
+ * "uniVer": "√",
113
+ * "unixVer": "x"
114
+ * },
115
+ * "baidu": {
116
+ * "hostVer": "√",
117
+ * "uniVer": "√",
118
+ * "unixVer": "x"
119
+ * },
120
+ * "toutiao": {
121
+ * "hostVer": "√",
122
+ * "uniVer": "√",
123
+ * "unixVer": "x"
124
+ * },
125
+ * "lark": {
126
+ * "hostVer": "√",
127
+ * "uniVer": "√",
128
+ * "unixVer": "x"
129
+ * },
130
+ * "qq": {
131
+ * "hostVer": "√",
132
+ * "uniVer": "√",
133
+ * "unixVer": "x"
134
+ * },
135
+ * "kuaishou": {
136
+ * "hostVer": "√",
137
+ * "uniVer": "√",
138
+ * "unixVer": "x"
139
+ * },
140
+ * "jd": {
141
+ * "hostVer": "√",
142
+ * "uniVer": "√",
143
+ * "unixVer": "x"
144
+ * }
145
+ * },
146
+ * "web": {
147
+ * "uniVer": "√",
148
+ * "unixVer": "4.0"
149
+ * }
150
+ * }
151
+ */
152
+ pageScrollTo(options: PageScrollToOptions): Promise<PageScrollToSuccess> | null
153
+ }