@dcloudio/uni-app-x 0.7.59 → 0.7.61
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 +2 -2
- package/types/app.d.ts +24 -9
- package/types/native/IUniElement.d.ts +1 -3
- package/types/native/UniCustomElement.d.ts +2 -2
- package/types/native/UniFormControl.d.ts +1 -1
- package/types/native/UniInputChangeEvent.d.ts +31 -0
- package/types/native/UniPage.d.ts +10 -2
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -0
- package/types/native/UniSwiperChangeEvent.d.ts +1 -0
- package/types/native/WebViewStyles.d.ts +1 -1
- package/types/native/global.d.ts +14 -0
- package/types/native/index.d.ts +1 -0
- package/types/page.d.ts +134 -22
- package/types/uni/uni-camera-global.d.ts +4 -0
- package/types/uni/uni-camera.d.ts +10 -9
- package/types/uni/uts-plugin-api/global.d.ts +1 -0
- package/types/uni/uts-plugin-api/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +77 -433
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +9 -6
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +10 -8
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +16 -0
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +569 -139
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +7 -6
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +22 -37
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +12 -16
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +5 -3
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +5 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +34 -15
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +32 -61
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +45 -80
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +5 -3
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +13 -11
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +16 -15
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +12 -10
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +88 -4
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +54 -7
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +246 -236
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/global.d.ts +38 -0
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/index.d.ts +19 -0
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +1783 -107
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +16 -20
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +209 -451
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -698
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +10 -8
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +474 -184
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +755 -405
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/global.d.ts +16 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +40 -0
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +10 -15
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +116 -124
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +11 -11
- package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +25 -26
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +54 -84
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +71 -89
- package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +300 -6
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +347 -10
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +25 -33
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +20 -20
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +18 -18
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +70 -82
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +6 -5
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +49 -72
- package/types/uni/uts-plugin-biz/global.d.ts +11 -0
- package/types/uni/uts-plugin-biz/index.d.ts +11 -0
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +60 -3
- package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +6 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +52 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +25 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +445 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +48 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +23 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +138 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +28 -12
- package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/global.d.ts +18 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/interface.d.ts +45 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +21 -16
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -2
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -1
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +153 -6
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +37 -44
- package/types/uni/uts-plugin-extend/global.d.ts +0 -2
- package/types/uni/uts-plugin-extend/index.d.ts +0 -2
- package/types/uni-cloud/interface.d.ts +13 -9
- package/types/vue/LifeCycle.d.ts +723 -1
- package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +0 -554
- package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +0 -224
- package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +0 -77
- package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +0 -365
- package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +0 -77
- package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +0 -972
- package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +0 -410
- package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +0 -459
- package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +0 -203
- package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +0 -2613
- package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +0 -152
- package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +0 -61
- package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +0 -548
- package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +0 -137
- package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +0 -1380
- package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +0 -76
- package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +0 -338
- package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +0 -102
- package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +0 -384
- package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +0 -5316
- package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +0 -35
- package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +0 -616
- package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +0 -2157
- package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +0 -895
- package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +0 -1755
- package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +0 -82
- package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +0 -295
- package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +0 -299
- package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +0 -1764
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +0 -736
- package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +0 -274
- package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +0 -198
- package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +0 -634
- package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +0 -980
- package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +0 -5550
- package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +0 -501
- package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +0 -83
- package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +0 -169
- package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +0 -102
- package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +0 -580
- package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +0 -100
- package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +0 -2980
- package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +0 -190
- package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +0 -1002
- package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +0 -3620
- package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +0 -1592
- package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +0 -254
- package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +0 -112
- package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +0 -153
- package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +0 -833
- package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +0 -1
- package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +0 -3
- package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +0 -518
- package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +0 -560
- package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +0 -2607
- package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +0 -189
- package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +0 -710
- package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +0 -2695
- package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +0 -80
- package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +0 -130
- package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +0 -719
- package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +0 -277
- package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +0 -1020
- package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +0 -1148
- package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +0 -1059
- package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +0 -1660
- package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +0 -1941
- package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +0 -726
- package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +0 -89
- package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +0 -212
- package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +0 -2359
- package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +0 -960
- package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +0 -204
- package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +0 -730
- package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +0 -221
- package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +0 -935
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +0 -14
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +0 -1670
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
UniOAuthWeixinProvider as UniOAuthWeixinProviderOrigin,
|
|
4
|
+
OauthWeixinFail as OauthWeixinFailOrigin,
|
|
5
|
+
AuthResp as AuthRespOrigin,
|
|
6
|
+
WeixinAccessTokenResp as WeixinAccessTokenRespOrigin,
|
|
7
|
+
WeixinUserInfoResp as WeixinUserInfoRespOrigin,
|
|
8
|
+
} from './interface'
|
|
9
|
+
|
|
10
|
+
declare global {
|
|
11
|
+
type UniOAuthWeixinProvider = UniOAuthWeixinProviderOrigin
|
|
12
|
+
type OauthWeixinFail = OauthWeixinFailOrigin
|
|
13
|
+
type AuthResp = AuthRespOrigin
|
|
14
|
+
type WeixinAccessTokenResp = WeixinAccessTokenRespOrigin
|
|
15
|
+
type WeixinUserInfoResp = WeixinUserInfoRespOrigin
|
|
16
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface UniOAuthWeixinProvider extends UniOAuthProvider { }
|
|
2
|
+
|
|
3
|
+
export type OauthWeixinFail = IOauthWeixinFail;
|
|
4
|
+
|
|
5
|
+
export interface AuthResp {
|
|
6
|
+
id : number;
|
|
7
|
+
name : string;
|
|
8
|
+
errCode : number;
|
|
9
|
+
authResult : boolean;
|
|
10
|
+
errStr : string;
|
|
11
|
+
transaction : string;
|
|
12
|
+
openId : string | undefined;
|
|
13
|
+
code : string;
|
|
14
|
+
state : string;
|
|
15
|
+
url : string;
|
|
16
|
+
lang : string;
|
|
17
|
+
country : string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// 定义 access_token 接口返回的数据类型
|
|
21
|
+
export interface WeixinAccessTokenResp {
|
|
22
|
+
access_token : string;
|
|
23
|
+
expires_in : number;
|
|
24
|
+
refresh_token : string;
|
|
25
|
+
openid : string;
|
|
26
|
+
scope : string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// 定义 userinfo 接口返回的数据类型
|
|
30
|
+
export interface WeixinUserInfoResp {
|
|
31
|
+
openid : string;
|
|
32
|
+
nickname : string;
|
|
33
|
+
sex : number;
|
|
34
|
+
province : string;
|
|
35
|
+
city : string;
|
|
36
|
+
country : string;
|
|
37
|
+
headimgurl : string;
|
|
38
|
+
privilege : string[];
|
|
39
|
+
unionid ?: string; // 可选字段
|
|
40
|
+
}
|
|
@@ -6,15 +6,16 @@ export interface Uni {
|
|
|
6
6
|
* 跳转系统授权管理页
|
|
7
7
|
* @param {OpenAppAuthorizeSettingOptions} options
|
|
8
8
|
* @return {void}
|
|
9
|
-
* @tutorial
|
|
9
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/open-app-authorize-setting.html#openappauthorizesetting
|
|
10
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/open-app-authorize-setting.html#openappauthorizesetting
|
|
11
|
+
* @tutorial_uni_app http://uniapp.dcloud.io/api/system/openappauthorizesetting
|
|
10
12
|
* @uniPlatform {
|
|
11
13
|
* "app": {
|
|
12
14
|
* "android": {
|
|
13
15
|
* "osVer": "5.0",
|
|
14
16
|
* "uniVer": "√",
|
|
15
17
|
* "uniUtsPlugin": "4.51",
|
|
16
|
-
* "unixVer": "4.51"
|
|
17
|
-
* "unixUtsPlugin": "4.51"
|
|
18
|
+
* "unixVer": "4.51"
|
|
18
19
|
* },
|
|
19
20
|
* "ios": {
|
|
20
21
|
* "osVer": "12.0",
|
|
@@ -96,8 +97,7 @@ export type OpenAppAuthorizeSettingSuccess = {
|
|
|
96
97
|
"osVer": "5.0",
|
|
97
98
|
"uniVer": "√",
|
|
98
99
|
"uniUtsPlugin": "4.51",
|
|
99
|
-
"unixVer": "4.51"
|
|
100
|
-
"unixUtsPlugin": "4.51"
|
|
100
|
+
"unixVer": "4.51"
|
|
101
101
|
},
|
|
102
102
|
"ios": {
|
|
103
103
|
"osVer": "12.0",
|
|
@@ -131,8 +131,7 @@ export type OpenAppAuthorizeSettingFail = {
|
|
|
131
131
|
"osVer": "5.0",
|
|
132
132
|
"uniVer": "√",
|
|
133
133
|
"uniUtsPlugin": "4.51",
|
|
134
|
-
"unixVer": "4.51"
|
|
135
|
-
"unixUtsPlugin": "4.51"
|
|
134
|
+
"unixVer": "4.51"
|
|
136
135
|
},
|
|
137
136
|
"ios": {
|
|
138
137
|
"osVer": "12.0",
|
|
@@ -166,8 +165,7 @@ export type OpenAppAuthorizeSettingComplete = {
|
|
|
166
165
|
"osVer": "5.0",
|
|
167
166
|
"uniVer": "√",
|
|
168
167
|
"uniUtsPlugin": "4.51",
|
|
169
|
-
"unixVer": "4.51"
|
|
170
|
-
"unixUtsPlugin": "4.51"
|
|
168
|
+
"unixVer": "4.51"
|
|
171
169
|
},
|
|
172
170
|
"ios": {
|
|
173
171
|
"osVer": "12.0",
|
|
@@ -202,8 +200,7 @@ export type OpenAppAuthorizeSettingOptions = {
|
|
|
202
200
|
"osVer": "5.0",
|
|
203
201
|
"uniVer": "√",
|
|
204
202
|
"uniUtsPlugin": "4.51",
|
|
205
|
-
"unixVer": "4.51"
|
|
206
|
-
"unixUtsPlugin": "4.51"
|
|
203
|
+
"unixVer": "4.51"
|
|
207
204
|
},
|
|
208
205
|
"ios": {
|
|
209
206
|
"osVer": "12.0",
|
|
@@ -236,8 +233,7 @@ export type OpenAppAuthorizeSettingOptions = {
|
|
|
236
233
|
"osVer": "5.0",
|
|
237
234
|
"uniVer": "√",
|
|
238
235
|
"uniUtsPlugin": "4.51",
|
|
239
|
-
"unixVer": "4.51"
|
|
240
|
-
"unixUtsPlugin": "4.51"
|
|
236
|
+
"unixVer": "4.51"
|
|
241
237
|
},
|
|
242
238
|
"ios": {
|
|
243
239
|
"osVer": "12.0",
|
|
@@ -270,8 +266,7 @@ export type OpenAppAuthorizeSettingOptions = {
|
|
|
270
266
|
"osVer": "5.0",
|
|
271
267
|
"uniVer": "√",
|
|
272
268
|
"uniUtsPlugin": "4.51",
|
|
273
|
-
"unixVer": "4.51"
|
|
274
|
-
"unixUtsPlugin": "4.51"
|
|
269
|
+
"unixVer": "4.51"
|
|
275
270
|
},
|
|
276
271
|
"ios": {
|
|
277
272
|
"osVer": "12.0",
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* uni.openDocument成功回调参数
|
|
3
|
-
*/
|
|
4
|
-
export type OpenDocumentSuccess = {}
|
|
5
|
-
|
|
6
|
-
export type OpenDocumentFail = IOpenDocumentError;
|
|
7
|
-
|
|
8
|
-
export type OpenDocumentErrorCode =
|
|
9
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* uni.openDocument成功回调参数
|
|
3
|
+
*/
|
|
4
|
+
export type OpenDocumentSuccess = {}
|
|
5
|
+
|
|
6
|
+
export type OpenDocumentFail = IOpenDocumentError;
|
|
7
|
+
|
|
8
|
+
export type OpenDocumentErrorCode =
|
|
9
|
+
/**
|
|
10
10
|
* 路径无效
|
|
11
11
|
* @uniPlatform {
|
|
12
12
|
* "app": {
|
|
13
13
|
* "android": {
|
|
14
14
|
* "osVer": "5.0",
|
|
15
15
|
* "uniVer": "x",
|
|
16
|
-
* "unixVer": "4.
|
|
17
|
-
* "unixUtsPlugin": "4.64"
|
|
16
|
+
* "unixVer": "4.71"
|
|
18
17
|
* },
|
|
19
18
|
* "ios": {
|
|
20
19
|
* "osVer": "12.0",
|
|
21
20
|
* "uniVer": "x",
|
|
22
|
-
* "unixVer": "4.
|
|
23
|
-
* "unixUtsPlugin": "4.
|
|
21
|
+
* "unixVer": "4.71",
|
|
22
|
+
* "unixUtsPlugin": "4.71"
|
|
24
23
|
* },
|
|
25
24
|
* "harmony": {
|
|
26
25
|
* "osVer": "5.0.0",
|
|
27
|
-
* "uniVer": "4.
|
|
28
|
-
* "unixVer": "4.
|
|
26
|
+
* "uniVer": "4.71",
|
|
27
|
+
* "unixVer": "4.71"
|
|
29
28
|
* }
|
|
30
29
|
* },
|
|
31
30
|
* "web": {
|
|
@@ -74,29 +73,28 @@ export type OpenDocumentErrorCode =
|
|
|
74
73
|
* "unixVer": "x"
|
|
75
74
|
* }
|
|
76
75
|
* }
|
|
77
|
-
* }
|
|
78
|
-
*/
|
|
79
|
-
1300601 |
|
|
80
|
-
/**
|
|
76
|
+
* }
|
|
77
|
+
*/
|
|
78
|
+
1300601 |
|
|
79
|
+
/**
|
|
81
80
|
* 文件不存在
|
|
82
81
|
* @uniPlatform {
|
|
83
82
|
* "app": {
|
|
84
83
|
* "android": {
|
|
85
84
|
* "osVer": "5.0",
|
|
86
85
|
* "uniVer": "x",
|
|
87
|
-
* "unixVer": "4.
|
|
88
|
-
* "unixUtsPlugin": "4.64"
|
|
86
|
+
* "unixVer": "4.71"
|
|
89
87
|
* },
|
|
90
88
|
* "ios": {
|
|
91
89
|
* "osVer": "12.0",
|
|
92
90
|
* "uniVer": "x",
|
|
93
|
-
* "unixVer": "4.
|
|
94
|
-
* "unixUtsPlugin": "4.
|
|
91
|
+
* "unixVer": "4.71",
|
|
92
|
+
* "unixUtsPlugin": "4.71"
|
|
95
93
|
* },
|
|
96
94
|
* "harmony": {
|
|
97
95
|
* "osVer": "5.0.0",
|
|
98
|
-
* "uniVer": "4.
|
|
99
|
-
* "unixVer": "4.
|
|
96
|
+
* "uniVer": "4.71",
|
|
97
|
+
* "unixVer": "4.71"
|
|
100
98
|
* }
|
|
101
99
|
* },
|
|
102
100
|
* "web": {
|
|
@@ -145,29 +143,28 @@ export type OpenDocumentErrorCode =
|
|
|
145
143
|
* "unixVer": "x"
|
|
146
144
|
* }
|
|
147
145
|
* }
|
|
148
|
-
* }
|
|
149
|
-
*/
|
|
150
|
-
1300602 |
|
|
151
|
-
/**
|
|
146
|
+
* }
|
|
147
|
+
*/
|
|
148
|
+
1300602 |
|
|
149
|
+
/**
|
|
152
150
|
* 不支持该文件类型
|
|
153
151
|
* @uniPlatform {
|
|
154
152
|
* "app": {
|
|
155
153
|
* "android": {
|
|
156
154
|
* "osVer": "5.0",
|
|
157
155
|
* "uniVer": "x",
|
|
158
|
-
* "unixVer": "4.
|
|
159
|
-
* "unixUtsPlugin": "4.64"
|
|
156
|
+
* "unixVer": "4.71"
|
|
160
157
|
* },
|
|
161
158
|
* "ios": {
|
|
162
159
|
* "osVer": "12.0",
|
|
163
160
|
* "uniVer": "x",
|
|
164
|
-
* "unixVer": "4.
|
|
165
|
-
* "unixUtsPlugin": "4.
|
|
161
|
+
* "unixVer": "4.71",
|
|
162
|
+
* "unixUtsPlugin": "4.71"
|
|
166
163
|
* },
|
|
167
164
|
* "harmony": {
|
|
168
165
|
* "osVer": "5.0.0",
|
|
169
|
-
* "uniVer": "4.
|
|
170
|
-
* "unixVer": "4.
|
|
166
|
+
* "uniVer": "4.71",
|
|
167
|
+
* "unixVer": "4.71"
|
|
171
168
|
* }
|
|
172
169
|
* },
|
|
173
170
|
* "web": {
|
|
@@ -216,8 +213,8 @@ export type OpenDocumentErrorCode =
|
|
|
216
213
|
* "unixVer": "x"
|
|
217
214
|
* }
|
|
218
215
|
* }
|
|
219
|
-
* }
|
|
220
|
-
*/
|
|
216
|
+
* }
|
|
217
|
+
*/
|
|
221
218
|
1300603 |
|
|
222
219
|
/**
|
|
223
220
|
* 其他未知错误
|
|
@@ -226,19 +223,18 @@ export type OpenDocumentErrorCode =
|
|
|
226
223
|
* "android": {
|
|
227
224
|
* "osVer": "5.0",
|
|
228
225
|
* "uniVer": "x",
|
|
229
|
-
* "unixVer": "4.
|
|
230
|
-
* "unixUtsPlugin": "4.64"
|
|
226
|
+
* "unixVer": "4.71"
|
|
231
227
|
* },
|
|
232
228
|
* "ios": {
|
|
233
229
|
* "osVer": "12.0",
|
|
234
230
|
* "uniVer": "x",
|
|
235
|
-
* "unixVer": "4.
|
|
236
|
-
* "unixUtsPlugin": "4.
|
|
231
|
+
* "unixVer": "4.71",
|
|
232
|
+
* "unixUtsPlugin": "4.71"
|
|
237
233
|
* },
|
|
238
234
|
* "harmony": {
|
|
239
235
|
* "osVer": "5.0.0",
|
|
240
|
-
* "uniVer": "4.
|
|
241
|
-
* "unixVer": "4.
|
|
236
|
+
* "uniVer": "4.71",
|
|
237
|
+
* "unixVer": "4.71"
|
|
242
238
|
* }
|
|
243
239
|
* },
|
|
244
240
|
* "web": {
|
|
@@ -289,8 +285,8 @@ export type OpenDocumentErrorCode =
|
|
|
289
285
|
* }
|
|
290
286
|
* }
|
|
291
287
|
*/
|
|
292
|
-
1300604 ;
|
|
293
|
-
|
|
288
|
+
1300604 ;
|
|
289
|
+
|
|
294
290
|
export interface IOpenDocumentError extends IUniError {
|
|
295
291
|
/**
|
|
296
292
|
* 错误码
|
|
@@ -299,14 +295,13 @@ export interface IOpenDocumentError extends IUniError {
|
|
|
299
295
|
* "android": {
|
|
300
296
|
* "osVer": "5.0",
|
|
301
297
|
* "uniVer": "x",
|
|
302
|
-
* "unixVer": "4.
|
|
303
|
-
* "unixUtsPlugin": "4.64"
|
|
298
|
+
* "unixVer": "4.71"
|
|
304
299
|
* },
|
|
305
300
|
* "ios": {
|
|
306
301
|
* "osVer": "12.0",
|
|
307
302
|
* "uniVer": "x",
|
|
308
|
-
* "unixVer": "4.
|
|
309
|
-
* "unixUtsPlugin": "4.
|
|
303
|
+
* "unixVer": "4.71",
|
|
304
|
+
* "unixUtsPlugin": "4.71"
|
|
310
305
|
* },
|
|
311
306
|
* "harmony": {
|
|
312
307
|
* "osVer": "5.0.0",
|
|
@@ -361,11 +356,11 @@ export interface IOpenDocumentError extends IUniError {
|
|
|
361
356
|
* }
|
|
362
357
|
* }
|
|
363
358
|
* }
|
|
364
|
-
*/
|
|
365
|
-
errCode : OpenDocumentErrorCode;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
/**
|
|
359
|
+
*/
|
|
360
|
+
errCode : OpenDocumentErrorCode;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/**
|
|
369
364
|
* uni.openDocument成功回调函数定义
|
|
370
365
|
* @uniPlatform {
|
|
371
366
|
* "mp": {
|
|
@@ -411,9 +406,9 @@ export interface IOpenDocumentError extends IUniError {
|
|
|
411
406
|
* }
|
|
412
407
|
* }
|
|
413
408
|
* }
|
|
414
|
-
*/
|
|
415
|
-
export type OpenDocumentSuccessCallback = (res : OpenDocumentSuccess) => void
|
|
416
|
-
/**
|
|
409
|
+
*/
|
|
410
|
+
export type OpenDocumentSuccessCallback = (res : OpenDocumentSuccess) => void
|
|
411
|
+
/**
|
|
417
412
|
* uni.openDocument失败回调函数定义
|
|
418
413
|
* @uniPlatform {
|
|
419
414
|
* "mp": {
|
|
@@ -459,9 +454,9 @@ export type OpenDocumentSuccessCallback = (res : OpenDocumentSuccess) => void
|
|
|
459
454
|
* }
|
|
460
455
|
* }
|
|
461
456
|
* }
|
|
462
|
-
*/
|
|
463
|
-
export type OpenDocumentFailCallback = (res : OpenDocumentFail) => void
|
|
464
|
-
/**
|
|
457
|
+
*/
|
|
458
|
+
export type OpenDocumentFailCallback = (res : OpenDocumentFail) => void
|
|
459
|
+
/**
|
|
465
460
|
* uni.openDocument完成回调函数定义
|
|
466
461
|
* @uniPlatform {
|
|
467
462
|
* "mp": {
|
|
@@ -507,30 +502,29 @@ export type OpenDocumentFailCallback = (res : OpenDocumentFail) => void
|
|
|
507
502
|
* }
|
|
508
503
|
* }
|
|
509
504
|
* }
|
|
510
|
-
*/
|
|
511
|
-
export type OpenDocumentCompleteCallback = (res : any) => void
|
|
512
|
-
|
|
513
|
-
export type OpenDocumentSupportedTypes = string
|
|
514
|
-
|
|
515
|
-
/**
|
|
516
|
-
* uni.openDocument参数定义
|
|
517
|
-
*/
|
|
518
|
-
export type OpenDocumentOptions = {
|
|
519
|
-
/**
|
|
505
|
+
*/
|
|
506
|
+
export type OpenDocumentCompleteCallback = (res : any) => void
|
|
507
|
+
|
|
508
|
+
export type OpenDocumentSupportedTypes = string
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* uni.openDocument参数定义
|
|
512
|
+
*/
|
|
513
|
+
export type OpenDocumentOptions = {
|
|
514
|
+
/**
|
|
520
515
|
* 文件路径,仅支持本地路径
|
|
521
516
|
* @uniPlatform {
|
|
522
517
|
* "app": {
|
|
523
518
|
* "android": {
|
|
524
519
|
* "osVer": "5.0",
|
|
525
520
|
* "uniVer": "x",
|
|
526
|
-
* "unixVer": "4.
|
|
527
|
-
* "unixUtsPlugin": "4.64"
|
|
521
|
+
* "unixVer": "4.71"
|
|
528
522
|
* },
|
|
529
523
|
* "ios": {
|
|
530
524
|
* "osVer": "12.0",
|
|
531
525
|
* "uniVer": "x",
|
|
532
|
-
* "unixVer": "4.
|
|
533
|
-
* "unixUtsPlugin": "4.
|
|
526
|
+
* "unixVer": "4.71",
|
|
527
|
+
* "unixUtsPlugin": "4.71"
|
|
534
528
|
* },
|
|
535
529
|
* "harmony": {
|
|
536
530
|
* "osVer": "5.0.0",
|
|
@@ -584,24 +578,23 @@ export type OpenDocumentOptions = {
|
|
|
584
578
|
* "unixVer": "x"
|
|
585
579
|
* }
|
|
586
580
|
* }
|
|
587
|
-
* }
|
|
588
|
-
*/
|
|
589
|
-
filePath : string,
|
|
590
|
-
/**
|
|
581
|
+
* }
|
|
582
|
+
*/
|
|
583
|
+
filePath : string,
|
|
584
|
+
/**
|
|
591
585
|
* 文件类型,指定文件类型打开文件,微信小程序仅支持类型:doc, xls, ppt, pdf, docx, xlsx, pptx,App端由系统打开,原则上可以打开任意文件;
|
|
592
586
|
* @uniPlatform {
|
|
593
587
|
* "app": {
|
|
594
588
|
* "android": {
|
|
595
589
|
* "osVer": "5.0",
|
|
596
590
|
* "uniVer": "x",
|
|
597
|
-
* "unixVer": "4.
|
|
598
|
-
* "unixUtsPlugin": "4.64"
|
|
591
|
+
* "unixVer": "4.71"
|
|
599
592
|
* },
|
|
600
593
|
* "ios": {
|
|
601
594
|
* "osVer": "12.0",
|
|
602
595
|
* "uniVer": "x",
|
|
603
|
-
* "unixVer": "4.
|
|
604
|
-
* "unixUtsPlugin": "4.
|
|
596
|
+
* "unixVer": "4.71",
|
|
597
|
+
* "unixUtsPlugin": "4.71"
|
|
605
598
|
* },
|
|
606
599
|
* "harmony": {
|
|
607
600
|
* "osVer": "5.0.0",
|
|
@@ -655,24 +648,23 @@ export type OpenDocumentOptions = {
|
|
|
655
648
|
* "unixVer": "x"
|
|
656
649
|
* }
|
|
657
650
|
* }
|
|
658
|
-
* }
|
|
659
|
-
*/
|
|
660
|
-
fileType ?: OpenDocumentSupportedTypes | null,
|
|
661
|
-
/**
|
|
651
|
+
* }
|
|
652
|
+
*/
|
|
653
|
+
fileType ?: OpenDocumentSupportedTypes | null,
|
|
654
|
+
/**
|
|
662
655
|
* 接口调用成功的回调函数
|
|
663
656
|
* @uniPlatform {
|
|
664
657
|
* "app": {
|
|
665
658
|
* "android": {
|
|
666
659
|
* "osVer": "5.0",
|
|
667
660
|
* "uniVer": "x",
|
|
668
|
-
* "unixVer": "4.
|
|
669
|
-
* "unixUtsPlugin": "4.64"
|
|
661
|
+
* "unixVer": "4.71"
|
|
670
662
|
* },
|
|
671
663
|
* "ios": {
|
|
672
664
|
* "osVer": "12.0",
|
|
673
665
|
* "uniVer": "x",
|
|
674
|
-
* "unixVer": "4.
|
|
675
|
-
* "unixUtsPlugin": "4.
|
|
666
|
+
* "unixVer": "4.71",
|
|
667
|
+
* "unixUtsPlugin": "4.71"
|
|
676
668
|
* },
|
|
677
669
|
* "harmony": {
|
|
678
670
|
* "osVer": "5.0.0",
|
|
@@ -726,24 +718,23 @@ export type OpenDocumentOptions = {
|
|
|
726
718
|
* "unixVer": "x"
|
|
727
719
|
* }
|
|
728
720
|
* }
|
|
729
|
-
* }
|
|
730
|
-
*/
|
|
731
|
-
success ?: OpenDocumentSuccessCallback | null,
|
|
732
|
-
/**
|
|
721
|
+
* }
|
|
722
|
+
*/
|
|
723
|
+
success ?: OpenDocumentSuccessCallback | null,
|
|
724
|
+
/**
|
|
733
725
|
* 接口调用失败的回调函数
|
|
734
726
|
* @uniPlatform {
|
|
735
727
|
* "app": {
|
|
736
728
|
* "android": {
|
|
737
729
|
* "osVer": "5.0",
|
|
738
730
|
* "uniVer": "x",
|
|
739
|
-
* "unixVer": "4.
|
|
740
|
-
* "unixUtsPlugin": "4.64"
|
|
731
|
+
* "unixVer": "4.71"
|
|
741
732
|
* },
|
|
742
733
|
* "ios": {
|
|
743
734
|
* "osVer": "12.0",
|
|
744
735
|
* "uniVer": "x",
|
|
745
|
-
* "unixVer": "4.
|
|
746
|
-
* "unixUtsPlugin": "4.
|
|
736
|
+
* "unixVer": "4.71",
|
|
737
|
+
* "unixUtsPlugin": "4.71"
|
|
747
738
|
* },
|
|
748
739
|
* "harmony": {
|
|
749
740
|
* "osVer": "5.0.0",
|
|
@@ -797,24 +788,23 @@ export type OpenDocumentOptions = {
|
|
|
797
788
|
* "unixVer": "x"
|
|
798
789
|
* }
|
|
799
790
|
* }
|
|
800
|
-
* }
|
|
801
|
-
*/
|
|
802
|
-
fail ?: OpenDocumentFailCallback | null,
|
|
803
|
-
/**
|
|
791
|
+
* }
|
|
792
|
+
*/
|
|
793
|
+
fail ?: OpenDocumentFailCallback | null,
|
|
794
|
+
/**
|
|
804
795
|
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
805
796
|
* @uniPlatform {
|
|
806
797
|
* "app": {
|
|
807
798
|
* "android": {
|
|
808
799
|
* "osVer": "5.0",
|
|
809
800
|
* "uniVer": "x",
|
|
810
|
-
* "unixVer": "4.
|
|
811
|
-
* "unixUtsPlugin": "4.64"
|
|
801
|
+
* "unixVer": "4.71"
|
|
812
802
|
* },
|
|
813
803
|
* "ios": {
|
|
814
804
|
* "osVer": "12.0",
|
|
815
805
|
* "uniVer": "x",
|
|
816
|
-
* "unixVer": "4.
|
|
817
|
-
* "unixUtsPlugin": "4.
|
|
806
|
+
* "unixVer": "4.71",
|
|
807
|
+
* "unixUtsPlugin": "4.71"
|
|
818
808
|
* },
|
|
819
809
|
* "harmony": {
|
|
820
810
|
* "osVer": "5.0.0",
|
|
@@ -868,8 +858,8 @@ export type OpenDocumentOptions = {
|
|
|
868
858
|
* "unixVer": "x"
|
|
869
859
|
* }
|
|
870
860
|
* }
|
|
871
|
-
* }
|
|
872
|
-
*/
|
|
861
|
+
* }
|
|
862
|
+
*/
|
|
873
863
|
complete ?: OpenDocumentCompleteCallback | null
|
|
874
864
|
/**
|
|
875
865
|
* 需要基础库: `2.11.0`
|
|
@@ -922,25 +912,27 @@ export type OpenDocumentOptions = {
|
|
|
922
912
|
* }
|
|
923
913
|
*/
|
|
924
914
|
showMenu?: boolean | null;
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
export interface Uni {
|
|
929
|
-
/**
|
|
930
|
-
* 打开文档
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
export interface Uni {
|
|
919
|
+
/**
|
|
920
|
+
* 打开文档
|
|
921
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/open-document.html
|
|
922
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/open-document.html
|
|
923
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/file/file.html#opendocument
|
|
931
924
|
* @uniPlatform {
|
|
932
925
|
* "app": {
|
|
933
926
|
* "android": {
|
|
934
927
|
* "osVer": "5.0",
|
|
935
928
|
* "uniVer": "x",
|
|
936
|
-
* "unixVer": "4.
|
|
937
|
-
* "unixUtsPlugin": "4.64"
|
|
929
|
+
* "unixVer": "4.71"
|
|
938
930
|
* },
|
|
939
931
|
* "ios": {
|
|
940
932
|
* "osVer": "12.0",
|
|
941
933
|
* "uniVer": "x",
|
|
942
|
-
* "unixVer": "4.
|
|
943
|
-
* "unixUtsPlugin": "4.
|
|
934
|
+
* "unixVer": "4.71",
|
|
935
|
+
* "unixUtsPlugin": "4.71"
|
|
944
936
|
* },
|
|
945
937
|
* "harmony": {
|
|
946
938
|
* "osVer": "5.0.0",
|
|
@@ -994,11 +986,11 @@ export interface Uni {
|
|
|
994
986
|
* "unixVer": "x"
|
|
995
987
|
* }
|
|
996
988
|
* }
|
|
997
|
-
* }
|
|
989
|
+
* }
|
|
998
990
|
* @uniVueVersion 2,3 //支持的vue版本
|
|
999
991
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.openDocument.html
|
|
1000
|
-
*/
|
|
1001
|
-
openDocument(options ?: OpenDocumentOptions | null) : void;
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
export type OpenDocument = (options ?: OpenDocumentOptions | null) => void;
|
|
992
|
+
*/
|
|
993
|
+
openDocument(options ?: OpenDocumentOptions | null) : void;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
export type OpenDocument = (options ?: OpenDocumentOptions | null) => void;
|
|
@@ -344,8 +344,8 @@ export interface Uni {
|
|
|
344
344
|
/**
|
|
345
345
|
* 将页面滚动到目标位置
|
|
346
346
|
*
|
|
347
|
-
* @
|
|
348
|
-
* @
|
|
347
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/ui/scroll.html#pagescrollto
|
|
348
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/page-scroll-to.html#pagescrollto
|
|
349
349
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/page-scroll-to.html#pagescrollto
|
|
350
350
|
* @uniPlatform {
|
|
351
351
|
* "app": {
|
|
@@ -2,15 +2,15 @@ import { RequestPaymentFailImpl as RequestPaymentFailImplement } from './unierro
|
|
|
2
2
|
|
|
3
3
|
export type RequestPaymentFailImpl = RequestPaymentFailImplement
|
|
4
4
|
|
|
5
|
-
// #ifdef APP-IOS
|
|
6
|
-
export interface UniPaymentProvider extends Uni, JSExport { }
|
|
7
|
-
// #endif
|
|
8
|
-
|
|
9
|
-
// #ifndef APP-IOS
|
|
10
|
-
export interface UniPaymentProvider extends UniProvider {
|
|
11
|
-
requestPayment(options : RequestPaymentOptions) : void;
|
|
12
|
-
}
|
|
13
|
-
// #endif
|
|
5
|
+
// #ifdef APP-IOS
|
|
6
|
+
export interface UniPaymentProvider extends Uni, JSExport { }
|
|
7
|
+
// #endif
|
|
8
|
+
|
|
9
|
+
// #ifndef APP-IOS
|
|
10
|
+
export interface UniPaymentProvider extends UniProvider {
|
|
11
|
+
requestPayment(options : RequestPaymentOptions) : void;
|
|
12
|
+
}
|
|
13
|
+
// #endif
|
|
14
14
|
|
|
15
15
|
export interface Uni {
|
|
16
16
|
/**
|
|
@@ -26,8 +26,8 @@ export interface Uni {
|
|
|
26
26
|
* }
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
29
|
-
* @
|
|
30
|
-
* @
|
|
29
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/plugins/payment.html#requestpayment
|
|
30
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/request-payment.html#requestpayment
|
|
31
31
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/request-payment.html#requestpayment
|
|
32
32
|
* @uniPlatform {
|
|
33
33
|
* "app": {
|