@dcloudio/uni-app-x 0.7.59 → 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.
Files changed (149) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +16 -8
  3. package/types/native/IUniElement.d.ts +0 -2
  4. package/types/native/UniFormControl.d.ts +1 -1
  5. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -0
  6. package/types/native/UniSwiperChangeEvent.d.ts +1 -0
  7. package/types/native/WebViewStyles.d.ts +1 -1
  8. package/types/native/global.d.ts +2 -0
  9. package/types/page.d.ts +134 -22
  10. package/types/uni/uni-camera-global.d.ts +4 -0
  11. package/types/uni/uni-camera.d.ts +10 -9
  12. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +3 -2
  13. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +3 -2
  14. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +9 -6
  15. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +3 -2
  16. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
  17. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +10 -8
  18. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +10 -10
  19. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +3 -2
  20. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +2 -2
  21. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +2 -2
  22. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +7 -6
  23. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +5 -3
  24. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +8 -8
  25. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +4 -1
  26. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +26 -11
  27. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
  28. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +3 -3
  29. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +11 -10
  30. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2 -2
  31. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +1 -1
  32. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +4 -4
  33. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +8 -8
  34. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +8 -6
  35. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
  36. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +4 -4
  37. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -7
  38. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
  39. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +1 -1
  40. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
  41. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +246 -236
  42. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +4 -4
  43. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +3 -2
  44. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +141 -243
  45. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -696
  46. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +10 -8
  47. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +387 -95
  48. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +401 -344
  49. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +52 -52
  50. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +2 -2
  51. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +11 -11
  52. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +5 -5
  53. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +24 -24
  54. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +4 -4
  55. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +39 -25
  56. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +3 -0
  57. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
  58. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
  59. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +4 -4
  60. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +20 -20
  61. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +18 -18
  62. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +49 -49
  63. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +5 -5
  64. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +26 -26
  65. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +14 -14
  66. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -2
  67. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -1
  68. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +153 -6
  69. package/types/uni-cloud/interface.d.ts +13 -9
  70. package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +0 -554
  71. package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +0 -224
  72. package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +0 -77
  73. package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +0 -365
  74. package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +0 -77
  75. package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +0 -972
  76. package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +0 -410
  77. package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +0 -459
  78. package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +0 -203
  79. package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +0 -2613
  80. package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +0 -152
  81. package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +0 -61
  82. package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +0 -548
  83. package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +0 -137
  84. package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +0 -1380
  85. package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +0 -76
  86. package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +0 -338
  87. package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +0 -102
  88. package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +0 -384
  89. package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +0 -5316
  90. package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +0 -35
  91. package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +0 -616
  92. package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +0 -2157
  93. package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +0 -895
  94. package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +0 -1755
  95. package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +0 -82
  96. package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +0 -295
  97. package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +0 -299
  98. package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +0 -1764
  99. package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +0 -1
  100. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +0 -1
  101. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +0 -736
  102. package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +0 -274
  103. package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +0 -198
  104. package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +0 -634
  105. package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +0 -980
  106. package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +0 -5550
  107. package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +0 -501
  108. package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +0 -83
  109. package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +0 -169
  110. package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +0 -102
  111. package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +0 -580
  112. package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +0 -100
  113. package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +0 -2980
  114. package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +0 -190
  115. package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +0 -1002
  116. package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +0 -3620
  117. package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +0 -1592
  118. package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +0 -1
  119. package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +0 -254
  120. package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +0 -112
  121. package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +0 -153
  122. package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +0 -833
  123. package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +0 -1
  124. package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +0 -1
  125. package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +0 -3
  126. package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +0 -518
  127. package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +0 -560
  128. package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +0 -2607
  129. package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +0 -189
  130. package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +0 -710
  131. package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +0 -2695
  132. package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +0 -80
  133. package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +0 -130
  134. package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +0 -719
  135. package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +0 -277
  136. package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +0 -1020
  137. package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +0 -1148
  138. package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +0 -1059
  139. package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +0 -1660
  140. package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +0 -1941
  141. package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +0 -726
  142. package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +0 -89
  143. package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +0 -212
  144. package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +0 -2359
  145. package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +0 -960
  146. package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +0 -204
  147. package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +0 -730
  148. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +0 -221
  149. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +0 -935
@@ -1 +0,0 @@
1
- export interface UniOAuthHuaweiProvider extends UniOAuthProvider { }
@@ -1,254 +0,0 @@
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
- };
@@ -1,112 +0,0 @@
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;
@@ -1,153 +0,0 @@
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
- }