@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.
- package/package.json +1 -1
- package/types/app.d.ts +16 -8
- package/types/native/IUniElement.d.ts +0 -2
- package/types/native/UniFormControl.d.ts +1 -1
- 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 +2 -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/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-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/interface.d.ts +10 -10
- 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 +5 -3
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +4 -1
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +26 -11
- 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 +3 -3
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +11 -10
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +8 -6
- 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 +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -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 +4 -4
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +3 -2
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +141 -243
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -696
- 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 +387 -95
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +401 -344
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +52 -52
- 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-prompt/utssdk/interface.d.ts +24 -24
- 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 +39 -25
- 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 +4 -4
- 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/interface.d.ts +49 -49
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +26 -26
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +14 -14
- 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-cloud/interface.d.ts +13 -9
- 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
|
@@ -905,98 +905,56 @@ export type PreviewImageCompleteCallback = ChooseImageCompleteCallback
|
|
|
905
905
|
export type PreviewImageOptions = {
|
|
906
906
|
/**
|
|
907
907
|
* current 为当前显示图片的链接/索引值,不填或填写的值无效则为 urls 的第一张。
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
*
|
|
927
|
-
*
|
|
928
|
-
*
|
|
929
|
-
*
|
|
930
|
-
|
|
931
|
-
* "hostVer": "-",
|
|
932
|
-
* "uniVer": "-",
|
|
933
|
-
* "unixVer": "-"
|
|
934
|
-
* },
|
|
935
|
-
* "qq": {
|
|
936
|
-
* "hostVer": "-",
|
|
937
|
-
* "uniVer": "-",
|
|
938
|
-
* "unixVer": "-"
|
|
939
|
-
* },
|
|
940
|
-
* "kuaishou": {
|
|
941
|
-
* "hostVer": "-",
|
|
942
|
-
* "uniVer": "-",
|
|
943
|
-
* "unixVer": "-"
|
|
944
|
-
* },
|
|
945
|
-
* "jd": {
|
|
946
|
-
* "hostVer": "-",
|
|
947
|
-
* "uniVer": "-",
|
|
948
|
-
* "unixVer": "-"
|
|
949
|
-
* }
|
|
950
|
-
* }
|
|
951
|
-
* }
|
|
908
|
+
* @uniPlatform {
|
|
909
|
+
* "app": {
|
|
910
|
+
* "android": {
|
|
911
|
+
* "osVer": "5.0",
|
|
912
|
+
* "uniVer": "√",
|
|
913
|
+
* "unixVer": "3.9"
|
|
914
|
+
* },
|
|
915
|
+
* "ios": {
|
|
916
|
+
* "osVer": "10.0",
|
|
917
|
+
* "uniVer": "√",
|
|
918
|
+
* "unixVer": "4.11"
|
|
919
|
+
* },
|
|
920
|
+
* "harmony": {
|
|
921
|
+
* "osVer": "5.0.0",
|
|
922
|
+
* "uniVer": "4.23",
|
|
923
|
+
* "unixVer": "4.61"
|
|
924
|
+
* }
|
|
925
|
+
* },
|
|
926
|
+
* "web": {
|
|
927
|
+
* "uniVer": "√",
|
|
928
|
+
* "unixVer": "√"
|
|
929
|
+
* }
|
|
930
|
+
*}
|
|
952
931
|
*/
|
|
953
932
|
current?: any | null,
|
|
954
933
|
/**
|
|
955
934
|
* 需要预览的图片链接列表
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
*
|
|
975
|
-
*
|
|
976
|
-
*
|
|
977
|
-
*
|
|
978
|
-
|
|
979
|
-
* "hostVer": "-",
|
|
980
|
-
* "uniVer": "-",
|
|
981
|
-
* "unixVer": "-"
|
|
982
|
-
* },
|
|
983
|
-
* "qq": {
|
|
984
|
-
* "hostVer": "-",
|
|
985
|
-
* "uniVer": "-",
|
|
986
|
-
* "unixVer": "-"
|
|
987
|
-
* },
|
|
988
|
-
* "kuaishou": {
|
|
989
|
-
* "hostVer": "-",
|
|
990
|
-
* "uniVer": "-",
|
|
991
|
-
* "unixVer": "-"
|
|
992
|
-
* },
|
|
993
|
-
* "jd": {
|
|
994
|
-
* "hostVer": "-",
|
|
995
|
-
* "uniVer": "-",
|
|
996
|
-
* "unixVer": "-"
|
|
997
|
-
* }
|
|
998
|
-
* }
|
|
999
|
-
* }
|
|
935
|
+
* @uniPlatform {
|
|
936
|
+
* "app": {
|
|
937
|
+
* "android": {
|
|
938
|
+
* "osVer": "5.0",
|
|
939
|
+
* "uniVer": "√",
|
|
940
|
+
* "unixVer": "3.9"
|
|
941
|
+
* },
|
|
942
|
+
* "ios": {
|
|
943
|
+
* "osVer": "10.0",
|
|
944
|
+
* "uniVer": "√",
|
|
945
|
+
* "unixVer": "4.11"
|
|
946
|
+
* },
|
|
947
|
+
* "harmony": {
|
|
948
|
+
* "osVer": "5.0.0",
|
|
949
|
+
* "uniVer": "4.23",
|
|
950
|
+
* "unixVer": "4.61"
|
|
951
|
+
* }
|
|
952
|
+
* },
|
|
953
|
+
* "web": {
|
|
954
|
+
* "uniVer": "√",
|
|
955
|
+
* "unixVer": "√"
|
|
956
|
+
* }
|
|
957
|
+
*}
|
|
1000
958
|
*/
|
|
1001
959
|
urls: Array<string.ImageURIString>,
|
|
1002
960
|
/**
|
|
@@ -1149,7 +1107,7 @@ export type PreviewImageOptions = {
|
|
|
1149
1107
|
* "ios": {
|
|
1150
1108
|
* "osVer": "5.0",
|
|
1151
1109
|
* "uniVer": "√",
|
|
1152
|
-
* "unixVer": "
|
|
1110
|
+
* "unixVer": "4.71"
|
|
1153
1111
|
* },
|
|
1154
1112
|
* "harmony": {
|
|
1155
1113
|
* "osVer": "x",
|
|
@@ -1209,146 +1167,85 @@ export type PreviewImageOptions = {
|
|
|
1209
1167
|
longPressActions ?: LongPressActionsOptions | null,
|
|
1210
1168
|
/**
|
|
1211
1169
|
* 接口调用成功的回调函数
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
*
|
|
1231
|
-
*
|
|
1232
|
-
*
|
|
1233
|
-
*
|
|
1234
|
-
|
|
1235
|
-
* "hostVer": "-",
|
|
1236
|
-
* "uniVer": "-",
|
|
1237
|
-
* "unixVer": "-"
|
|
1238
|
-
* },
|
|
1239
|
-
* "qq": {
|
|
1240
|
-
* "hostVer": "-",
|
|
1241
|
-
* "uniVer": "-",
|
|
1242
|
-
* "unixVer": "-"
|
|
1243
|
-
* },
|
|
1244
|
-
* "kuaishou": {
|
|
1245
|
-
* "hostVer": "-",
|
|
1246
|
-
* "uniVer": "-",
|
|
1247
|
-
* "unixVer": "-"
|
|
1248
|
-
* },
|
|
1249
|
-
* "jd": {
|
|
1250
|
-
* "hostVer": "-",
|
|
1251
|
-
* "uniVer": "-",
|
|
1252
|
-
* "unixVer": "-"
|
|
1253
|
-
* }
|
|
1254
|
-
* }
|
|
1255
|
-
* }
|
|
1170
|
+
* @uniPlatform {
|
|
1171
|
+
* "app": {
|
|
1172
|
+
* "android": {
|
|
1173
|
+
* "osVer": "5.0",
|
|
1174
|
+
* "uniVer": "√",
|
|
1175
|
+
* "unixVer": "3.9"
|
|
1176
|
+
* },
|
|
1177
|
+
* "ios": {
|
|
1178
|
+
* "osVer": "10.0",
|
|
1179
|
+
* "uniVer": "√",
|
|
1180
|
+
* "unixVer": "4.11"
|
|
1181
|
+
* },
|
|
1182
|
+
* "harmony": {
|
|
1183
|
+
* "osVer": "5.0.0",
|
|
1184
|
+
* "uniVer": "4.23",
|
|
1185
|
+
* "unixVer": "4.61"
|
|
1186
|
+
* }
|
|
1187
|
+
* },
|
|
1188
|
+
* "web": {
|
|
1189
|
+
* "uniVer": "√",
|
|
1190
|
+
* "unixVer": "√"
|
|
1191
|
+
* }
|
|
1192
|
+
*}
|
|
1256
1193
|
*/
|
|
1257
1194
|
success?: (PreviewImageSuccessCallback) | null,
|
|
1258
1195
|
/**
|
|
1259
1196
|
* 接口调用失败的回调函数
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
*
|
|
1280
|
-
*
|
|
1281
|
-
*
|
|
1282
|
-
*
|
|
1283
|
-
|
|
1284
|
-
* "uniVer": "-",
|
|
1285
|
-
* "unixVer": "-"
|
|
1286
|
-
* },
|
|
1287
|
-
* "qq": {
|
|
1288
|
-
* "hostVer": "-",
|
|
1289
|
-
* "uniVer": "-",
|
|
1290
|
-
* "unixVer": "-"
|
|
1291
|
-
* },
|
|
1292
|
-
* "kuaishou": {
|
|
1293
|
-
* "hostVer": "-",
|
|
1294
|
-
* "uniVer": "-",
|
|
1295
|
-
* "unixVer": "-"
|
|
1296
|
-
* },
|
|
1297
|
-
* "jd": {
|
|
1298
|
-
* "hostVer": "-",
|
|
1299
|
-
* "uniVer": "-",
|
|
1300
|
-
* "unixVer": "-"
|
|
1301
|
-
* }
|
|
1302
|
-
* }
|
|
1303
|
-
* }
|
|
1197
|
+
*
|
|
1198
|
+
* @uniPlatform {
|
|
1199
|
+
* "app": {
|
|
1200
|
+
* "android": {
|
|
1201
|
+
* "osVer": "5.0",
|
|
1202
|
+
* "uniVer": "√",
|
|
1203
|
+
* "unixVer": "3.9"
|
|
1204
|
+
* },
|
|
1205
|
+
* "ios": {
|
|
1206
|
+
* "osVer": "10.0",
|
|
1207
|
+
* "uniVer": "√",
|
|
1208
|
+
* "unixVer": "4.11"
|
|
1209
|
+
* },
|
|
1210
|
+
* "harmony": {
|
|
1211
|
+
* "osVer": "5.0.0",
|
|
1212
|
+
* "uniVer": "4.23",
|
|
1213
|
+
* "unixVer": "4.61"
|
|
1214
|
+
* }
|
|
1215
|
+
* },
|
|
1216
|
+
* "web": {
|
|
1217
|
+
* "uniVer": "√",
|
|
1218
|
+
* "unixVer": "√"
|
|
1219
|
+
* }
|
|
1220
|
+
*}
|
|
1304
1221
|
*/
|
|
1305
1222
|
fail?: (PreviewImageFailCallback) | null,
|
|
1306
1223
|
/**
|
|
1307
1224
|
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
*
|
|
1328
|
-
*
|
|
1329
|
-
*
|
|
1330
|
-
*
|
|
1331
|
-
|
|
1332
|
-
* "uniVer": "-",
|
|
1333
|
-
* "unixVer": "-"
|
|
1334
|
-
* },
|
|
1335
|
-
* "qq": {
|
|
1336
|
-
* "hostVer": "-",
|
|
1337
|
-
* "uniVer": "-",
|
|
1338
|
-
* "unixVer": "-"
|
|
1339
|
-
* },
|
|
1340
|
-
* "kuaishou": {
|
|
1341
|
-
* "hostVer": "-",
|
|
1342
|
-
* "uniVer": "-",
|
|
1343
|
-
* "unixVer": "-"
|
|
1344
|
-
* },
|
|
1345
|
-
* "jd": {
|
|
1346
|
-
* "hostVer": "-",
|
|
1347
|
-
* "uniVer": "-",
|
|
1348
|
-
* "unixVer": "-"
|
|
1349
|
-
* }
|
|
1350
|
-
* }
|
|
1351
|
-
* }
|
|
1225
|
+
*
|
|
1226
|
+
* @uniPlatform {
|
|
1227
|
+
* "app": {
|
|
1228
|
+
* "android": {
|
|
1229
|
+
* "osVer": "5.0",
|
|
1230
|
+
* "uniVer": "√",
|
|
1231
|
+
* "unixVer": "3.9"
|
|
1232
|
+
* },
|
|
1233
|
+
* "ios": {
|
|
1234
|
+
* "osVer": "10.0",
|
|
1235
|
+
* "uniVer": "√",
|
|
1236
|
+
* "unixVer": "4.11"
|
|
1237
|
+
* },
|
|
1238
|
+
* "harmony": {
|
|
1239
|
+
* "osVer": "5.0.0",
|
|
1240
|
+
* "uniVer": "4.23",
|
|
1241
|
+
* "unixVer": "4.61"
|
|
1242
|
+
* }
|
|
1243
|
+
* },
|
|
1244
|
+
* "web": {
|
|
1245
|
+
* "uniVer": "√",
|
|
1246
|
+
* "unixVer": "√"
|
|
1247
|
+
* }
|
|
1248
|
+
*}
|
|
1352
1249
|
*/
|
|
1353
1250
|
complete?: (PreviewImageCompleteCallback) | null
|
|
1354
1251
|
/**
|
|
@@ -5204,9 +5101,9 @@ export interface Uni {
|
|
|
5204
5101
|
* }
|
|
5205
5102
|
* })
|
|
5206
5103
|
* ```
|
|
5207
|
-
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/image.html#chooseimage
|
|
5208
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/choose-image.html
|
|
5209
5104
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/choose-image.html
|
|
5105
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/choose-image.html
|
|
5106
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/image.html#chooseimage
|
|
5210
5107
|
* @autotest {
|
|
5211
5108
|
generated:false
|
|
5212
5109
|
}
|
|
@@ -5292,8 +5189,8 @@ export interface Uni {
|
|
|
5292
5189
|
* }
|
|
5293
5190
|
* })
|
|
5294
5191
|
* ```
|
|
5295
|
-
* @
|
|
5296
|
-
* @
|
|
5192
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/image.html#unipreviewimageobject
|
|
5193
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html
|
|
5297
5194
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html
|
|
5298
5195
|
* @autotest {
|
|
5299
5196
|
generated:false
|
|
@@ -5378,8 +5275,8 @@ export interface Uni {
|
|
|
5378
5275
|
* }
|
|
5379
5276
|
* })
|
|
5380
5277
|
* ```
|
|
5381
|
-
* @
|
|
5382
|
-
* @
|
|
5278
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/image.html#closepreviewimage
|
|
5279
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html#closepreviewimage
|
|
5383
5280
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html#closepreviewimage
|
|
5384
5281
|
* @autotest {
|
|
5385
5282
|
generated:false
|
|
@@ -5465,8 +5362,8 @@ export interface Uni {
|
|
|
5465
5362
|
* },
|
|
5466
5363
|
* })
|
|
5467
5364
|
* ```
|
|
5468
|
-
* @
|
|
5469
|
-
* @
|
|
5365
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/image.html#getimageinfo
|
|
5366
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-image-info.html
|
|
5470
5367
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-image-info.html
|
|
5471
5368
|
* @autotest {
|
|
5472
5369
|
generated:false,
|
|
@@ -5557,8 +5454,8 @@ export interface Uni {
|
|
|
5557
5454
|
* },
|
|
5558
5455
|
* })
|
|
5559
5456
|
* ```
|
|
5560
|
-
* @
|
|
5561
|
-
* @
|
|
5457
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/image.html#saveimagetophotosalbum
|
|
5458
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/save-image-to-photos-album.html
|
|
5562
5459
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/save-image-to-photos-album.html
|
|
5563
5460
|
* @autotest {
|
|
5564
5461
|
generated:false,
|
|
@@ -5650,8 +5547,8 @@ export interface Uni {
|
|
|
5650
5547
|
* },
|
|
5651
5548
|
* })
|
|
5652
5549
|
* ```
|
|
5653
|
-
* @
|
|
5654
|
-
* @
|
|
5550
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/image.html#compressimage
|
|
5551
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/compress-image.html
|
|
5655
5552
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/compress-image.html
|
|
5656
5553
|
* @autotest {
|
|
5657
5554
|
generated:false,
|
|
@@ -5741,8 +5638,8 @@ export interface Uni {
|
|
|
5741
5638
|
* },
|
|
5742
5639
|
* })
|
|
5743
5640
|
* ```
|
|
5744
|
-
* @
|
|
5745
|
-
* @
|
|
5641
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/video.html
|
|
5642
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/choose-video.html
|
|
5746
5643
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/choose-video.html
|
|
5747
5644
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseVideo.html
|
|
5748
5645
|
*/
|
|
@@ -5825,8 +5722,8 @@ export interface Uni {
|
|
|
5825
5722
|
* },
|
|
5826
5723
|
* })
|
|
5827
5724
|
* ```
|
|
5828
|
-
* @
|
|
5829
|
-
* @
|
|
5725
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/video.html#getvideoinfo
|
|
5726
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-video-info.html
|
|
5830
5727
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-video-info.html
|
|
5831
5728
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.getVideoInfo.html
|
|
5832
5729
|
*/
|
|
@@ -5909,8 +5806,8 @@ export interface Uni {
|
|
|
5909
5806
|
* },
|
|
5910
5807
|
* })
|
|
5911
5808
|
* ```
|
|
5912
|
-
* @
|
|
5913
|
-
* @
|
|
5809
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/video.html#savevideotophotosalbum
|
|
5810
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/save-video-to-photos-album.html
|
|
5914
5811
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/save-video-to-photos-album.html
|
|
5915
5812
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.saveVideoToPhotosAlbum.html
|
|
5916
5813
|
*/
|
|
@@ -5994,8 +5891,8 @@ export interface Uni {
|
|
|
5994
5891
|
* },
|
|
5995
5892
|
* })
|
|
5996
5893
|
* ```
|
|
5997
|
-
* @
|
|
5998
|
-
* @
|
|
5894
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/video.html#compressvideo
|
|
5895
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/compress-video.html
|
|
5999
5896
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/compress-video.html
|
|
6000
5897
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.compressVideo.html
|
|
6001
5898
|
*/
|
|
@@ -6003,8 +5900,9 @@ export interface Uni {
|
|
|
6003
5900
|
/**
|
|
6004
5901
|
* 从本地选择文件
|
|
6005
5902
|
*
|
|
6006
|
-
* @tutorial https://
|
|
6007
|
-
* @
|
|
5903
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/choose-file.html#choosefile
|
|
5904
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/choose-file.html#choosefile
|
|
5905
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/file.html#choosefile
|
|
6008
5906
|
* @uniPlatform {
|
|
6009
5907
|
* "app": {
|
|
6010
5908
|
* "android": {
|