@dcloudio/uni-app-x 0.7.41 → 0.7.43
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/UniPage.d.ts +32 -77
- package/types/app.d.ts +39 -2
- package/types/native/CSSStyleDeclaration.d.ts +40 -7
- package/types/native/CanvasRenderingContext2D.d.ts +56 -6
- package/types/native/IUniElement.d.ts +31 -2
- package/types/native/UniAnimation.d.ts +578 -0
- package/types/native/UniAnimationPlaybackEvent.d.ts +12 -0
- package/types/native/UniNativePage.d.ts +1 -19
- package/types/native/UniSafeAreaInsets.d.ts +74 -0
- package/types/native/global.d.ts +6 -2
- package/types/native/index.d.ts +3 -1
- package/types/uni/uni-map-tencent-global.d.ts +5 -1
- package/types/uni/uni-map-tencent-map.d.ts +7 -0
- package/types/uni/uts-plugin-api/global.d.ts +3 -0
- package/types/uni/uts-plugin-api/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +680 -51
- package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/global.d.ts +32 -0
- package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/index.d.ts +15 -0
- package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +685 -0
- package/types/uni/uts-plugin-api/lib/uni-document/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-document/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-document/utssdk/interface.d.ts +76 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +105 -104
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +75 -1
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +4 -5
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +0 -22
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +0 -11
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +171 -896
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/global.d.ts +46 -0
- package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/index.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +339 -0
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +6 -4
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +2187 -2066
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +268 -20
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +398 -203
- package/types/native/UniSafeArea.d.ts +0 -185
|
@@ -878,6 +878,8 @@ export type ChooseImageOptions = {
|
|
|
878
878
|
|
|
879
879
|
export type ChooseImage = (options: ChooseImageOptions) => void
|
|
880
880
|
|
|
881
|
+
// #ifndef UNI-APP-X && !APP-HARMONY
|
|
882
|
+
|
|
881
883
|
export type PreviewImageSuccess = {
|
|
882
884
|
/**
|
|
883
885
|
* 调用API的名称
|
|
@@ -1505,7 +1507,7 @@ export type ClosePreviewImageOptions = {
|
|
|
1505
1507
|
*/
|
|
1506
1508
|
complete?: (ClosePreviewImageCompleteCallback) | null
|
|
1507
1509
|
};
|
|
1508
|
-
|
|
1510
|
+
// #endif
|
|
1509
1511
|
export type GetImageInfo = (options: GetImageInfoOptions) => void;
|
|
1510
1512
|
export type GetImageInfoSuccess = {
|
|
1511
1513
|
/**
|
|
@@ -5005,316 +5007,203 @@ export type ChooseFileOptions = {
|
|
|
5005
5007
|
complete?: ChooseFileCompleteCallback | null
|
|
5006
5008
|
};
|
|
5007
5009
|
|
|
5008
|
-
|
|
5009
|
-
export type ChooseMediaFileType = 'image' | 'video'
|
|
5010
|
-
export type ChooseMediaTempFile = {
|
|
5011
|
-
/**
|
|
5012
|
-
* 选定视频的临时文件路径
|
|
5013
|
-
*/
|
|
5014
|
-
tempFilePath: string,
|
|
5015
|
-
/**
|
|
5016
|
-
* 文件类型
|
|
5017
|
-
*/
|
|
5018
|
-
fileType: ChooseMediaFileType
|
|
5019
|
-
/**
|
|
5020
|
-
* 选定视频的数据量大小
|
|
5021
|
-
*/
|
|
5022
|
-
size: number,
|
|
5023
|
-
/**
|
|
5024
|
-
* 选定视频的时间长度
|
|
5025
|
-
*/
|
|
5026
|
-
duration?: number | null,
|
|
5027
|
-
/**
|
|
5028
|
-
* 返回选定视频的长
|
|
5029
|
-
*/
|
|
5030
|
-
height?: number | null,
|
|
5031
|
-
/**
|
|
5032
|
-
* 返回选定视频的宽
|
|
5033
|
-
*/
|
|
5034
|
-
width?: number | null,
|
|
5010
|
+
export interface Uni {
|
|
5035
5011
|
/**
|
|
5036
|
-
*
|
|
5037
|
-
|
|
5038
|
-
thumbTempFilePath?: string | null
|
|
5039
|
-
}
|
|
5040
|
-
export type ChooseMediaSuccess = {
|
|
5041
|
-
tempFiles: ChooseMediaTempFile[],
|
|
5042
|
-
type: 'image' | 'video' | 'mix'
|
|
5043
|
-
};
|
|
5044
|
-
|
|
5045
|
-
export type ChooseMediaFail = IMediaError;
|
|
5046
|
-
export type ChooseMediaSuccessCallback = (callback: ChooseMediaSuccess) => void
|
|
5047
|
-
export type ChooseMediaFailCallback = (callback: ChooseMediaFail) => void
|
|
5048
|
-
export type ChooseMediaCompleteCallback = ChooseImageCompleteCallback
|
|
5049
|
-
export type ChooseMediaPageOrientation = ChooseImagePageOrientation
|
|
5050
|
-
export type ChooseMediaAlbumMode = ChooseImageAlbumMode
|
|
5051
|
-
|
|
5052
|
-
export type ChooseMediaOptions = {
|
|
5053
|
-
/**
|
|
5054
|
-
* 屏幕方向。默认为page.json中的pageOrientation。
|
|
5055
|
-
* @uniPlatform {
|
|
5056
|
-
* "app": {
|
|
5057
|
-
* "android": {
|
|
5058
|
-
* "osVer": "5.0",
|
|
5059
|
-
* "uniVer": "4.42",
|
|
5060
|
-
* "unixVer": "4.42"
|
|
5061
|
-
* },
|
|
5062
|
-
* "ios": {
|
|
5063
|
-
* "osVer": "12.0",
|
|
5064
|
-
* "uniVer": "4.42",
|
|
5065
|
-
* "unixVer": "4.42"
|
|
5066
|
-
* },
|
|
5067
|
-
* "harmony": {
|
|
5068
|
-
* "osVer": "3.0",
|
|
5069
|
-
* "uniVer": "x",
|
|
5070
|
-
* "unixVer": "x"
|
|
5071
|
-
* }
|
|
5072
|
-
* },
|
|
5073
|
-
* "mp": {
|
|
5074
|
-
* "weixin": {
|
|
5075
|
-
* "hostVer": "√",
|
|
5076
|
-
* "uniVer": "√",
|
|
5077
|
-
* "unixVer": "4.41"
|
|
5078
|
-
* },
|
|
5079
|
-
* "alipay": {
|
|
5080
|
-
* "hostVer": "√",
|
|
5081
|
-
* "uniVer": "√",
|
|
5082
|
-
* "unixVer": "x"
|
|
5083
|
-
* },
|
|
5084
|
-
* "baidu": {
|
|
5085
|
-
* "hostVer": "√",
|
|
5086
|
-
* "uniVer": "√",
|
|
5087
|
-
* "unixVer": "x"
|
|
5088
|
-
* },
|
|
5089
|
-
* "toutiao": {
|
|
5090
|
-
* "hostVer": "√",
|
|
5091
|
-
* "uniVer": "√",
|
|
5092
|
-
* "unixVer": "x"
|
|
5093
|
-
* },
|
|
5094
|
-
* "lark": {
|
|
5095
|
-
* "hostVer": "√",
|
|
5096
|
-
* "uniVer": "√",
|
|
5097
|
-
* "unixVer": "x"
|
|
5098
|
-
* },
|
|
5099
|
-
* "qq": {
|
|
5100
|
-
* "hostVer": "√",
|
|
5101
|
-
* "uniVer": "√",
|
|
5102
|
-
* "unixVer": "x"
|
|
5103
|
-
* },
|
|
5104
|
-
* "kuaishou": {
|
|
5105
|
-
* "hostVer": "√",
|
|
5106
|
-
* "uniVer": "√",
|
|
5107
|
-
* "unixVer": "x"
|
|
5108
|
-
* },
|
|
5109
|
-
* "jd": {
|
|
5110
|
-
* "hostVer": "√",
|
|
5111
|
-
* "uniVer": "√",
|
|
5112
|
-
* "unixVer": "x"
|
|
5113
|
-
* }
|
|
5114
|
-
* },
|
|
5115
|
-
* "web": {
|
|
5116
|
-
* "uniVer": "x",
|
|
5117
|
-
* "unixVer": "x"
|
|
5118
|
-
* }
|
|
5119
|
-
* }
|
|
5120
|
-
*/
|
|
5121
|
-
pageOrientation?: ChooseMediaPageOrientation | null,
|
|
5122
|
-
/**
|
|
5123
|
-
* 图片选择模式
|
|
5124
|
-
* @default "custom"
|
|
5125
|
-
* @uniPlatform {
|
|
5126
|
-
* "app": {
|
|
5127
|
-
* "android": {
|
|
5128
|
-
* "osVer": "5.0",
|
|
5129
|
-
* "uniVer": "4.33",
|
|
5130
|
-
* "unixVer": "4.33"
|
|
5131
|
-
* },
|
|
5132
|
-
* "ios": {
|
|
5133
|
-
* "osVer": "10.0",
|
|
5134
|
-
* "uniVer": "x",
|
|
5135
|
-
* "unixVer": "x"
|
|
5136
|
-
* },
|
|
5137
|
-
* "harmony": {
|
|
5138
|
-
* "osVer": "3.0",
|
|
5139
|
-
* "uniVer": "x",
|
|
5140
|
-
* "unixVer": "x"
|
|
5141
|
-
* }
|
|
5142
|
-
* },
|
|
5143
|
-
* "web": {
|
|
5144
|
-
* "uniVer": "x",
|
|
5145
|
-
* "unixVer": "x"
|
|
5146
|
-
* }
|
|
5147
|
-
* }
|
|
5148
|
-
*/
|
|
5149
|
-
albumMode?: ChooseMediaAlbumMode | null,
|
|
5150
|
-
/**
|
|
5151
|
-
* 最多可以选择的文件个数
|
|
5152
|
-
* @defaultValue 9
|
|
5153
|
-
* @uniPlatform {
|
|
5154
|
-
* "mp": {
|
|
5155
|
-
* "weixin": {
|
|
5156
|
-
* "hostVer": "√",
|
|
5157
|
-
* "uniVer": "√",
|
|
5158
|
-
* "unixVer": "4.41"
|
|
5159
|
-
* },
|
|
5160
|
-
* "alipay": {
|
|
5161
|
-
* "hostVer": "-",
|
|
5162
|
-
* "uniVer": "-",
|
|
5163
|
-
* "unixVer": "-"
|
|
5164
|
-
* },
|
|
5165
|
-
* "baidu": {
|
|
5166
|
-
* "hostVer": "-",
|
|
5167
|
-
* "uniVer": "-",
|
|
5168
|
-
* "unixVer": "-"
|
|
5169
|
-
* },
|
|
5170
|
-
* "toutiao": {
|
|
5171
|
-
* "hostVer": "-",
|
|
5172
|
-
* "uniVer": "-",
|
|
5173
|
-
* "unixVer": "-"
|
|
5174
|
-
* },
|
|
5175
|
-
* "lark": {
|
|
5176
|
-
* "hostVer": "-",
|
|
5177
|
-
* "uniVer": "-",
|
|
5178
|
-
* "unixVer": "-"
|
|
5179
|
-
* },
|
|
5180
|
-
* "qq": {
|
|
5181
|
-
* "hostVer": "-",
|
|
5182
|
-
* "uniVer": "-",
|
|
5183
|
-
* "unixVer": "-"
|
|
5184
|
-
* },
|
|
5185
|
-
* "kuaishou": {
|
|
5186
|
-
* "hostVer": "-",
|
|
5187
|
-
* "uniVer": "-",
|
|
5188
|
-
* "unixVer": "-"
|
|
5189
|
-
* },
|
|
5190
|
-
* "jd": {
|
|
5191
|
-
* "hostVer": "-",
|
|
5192
|
-
* "uniVer": "-",
|
|
5193
|
-
* "unixVer": "-"
|
|
5194
|
-
* }
|
|
5195
|
-
* }
|
|
5196
|
-
* }
|
|
5197
|
-
*/
|
|
5198
|
-
count?: number | null
|
|
5199
|
-
/**
|
|
5200
|
-
* album 从相册选视频,camera 使用相机拍摄,合法值:'image'、'video'、'mix'
|
|
5201
|
-
* @defaultValue ['image', 'video']
|
|
5012
|
+
* 从本地相册选择图片或使用相机拍照
|
|
5013
|
+
* @description 从本地相册选择图片或使用相机拍照
|
|
5202
5014
|
* @uniPlatform {
|
|
5015
|
+
* "app": {
|
|
5016
|
+
* "android": {
|
|
5017
|
+
* "osVer": "5.0",
|
|
5018
|
+
* "uniVer": "√",
|
|
5019
|
+
* "unixVer": "3.9+"
|
|
5020
|
+
* },
|
|
5021
|
+
* "ios": {
|
|
5022
|
+
* "osVer": "12.0",
|
|
5023
|
+
* "uniVer": "√",
|
|
5024
|
+
* "unixVer": "4.11"
|
|
5025
|
+
* },
|
|
5026
|
+
* "harmony": {
|
|
5027
|
+
* "osVer": "3.0",
|
|
5028
|
+
* "uniVer": "4.23",
|
|
5029
|
+
* "unixVer": "x"
|
|
5030
|
+
* }
|
|
5031
|
+
* },
|
|
5032
|
+
* "web": {
|
|
5033
|
+
* "uniVer": "√",
|
|
5034
|
+
* "unixVer": "4.0"
|
|
5035
|
+
* },
|
|
5203
5036
|
* "mp": {
|
|
5204
5037
|
* "weixin": {
|
|
5205
|
-
* "hostVer": "
|
|
5038
|
+
* "hostVer": "1.9.6",
|
|
5206
5039
|
* "uniVer": "√",
|
|
5207
5040
|
* "unixVer": "4.41"
|
|
5208
5041
|
* },
|
|
5209
5042
|
* "alipay": {
|
|
5210
|
-
* "hostVer": "
|
|
5211
|
-
* "uniVer": "
|
|
5212
|
-
* "unixVer": "
|
|
5043
|
+
* "hostVer": "√",
|
|
5044
|
+
* "uniVer": "√",
|
|
5045
|
+
* "unixVer": "x"
|
|
5213
5046
|
* },
|
|
5214
5047
|
* "baidu": {
|
|
5215
|
-
* "hostVer": "
|
|
5216
|
-
* "uniVer": "
|
|
5217
|
-
* "unixVer": "
|
|
5048
|
+
* "hostVer": "√",
|
|
5049
|
+
* "uniVer": "√",
|
|
5050
|
+
* "unixVer": "x"
|
|
5218
5051
|
* },
|
|
5219
5052
|
* "toutiao": {
|
|
5220
|
-
* "hostVer": "
|
|
5221
|
-
* "uniVer": "
|
|
5222
|
-
* "unixVer": "
|
|
5053
|
+
* "hostVer": "√",
|
|
5054
|
+
* "uniVer": "√",
|
|
5055
|
+
* "unixVer": "x"
|
|
5223
5056
|
* },
|
|
5224
5057
|
* "lark": {
|
|
5225
|
-
* "hostVer": "
|
|
5226
|
-
* "uniVer": "
|
|
5227
|
-
* "unixVer": "
|
|
5058
|
+
* "hostVer": "√",
|
|
5059
|
+
* "uniVer": "√",
|
|
5060
|
+
* "unixVer": "x"
|
|
5228
5061
|
* },
|
|
5229
5062
|
* "qq": {
|
|
5230
|
-
* "hostVer": "
|
|
5231
|
-
* "uniVer": "
|
|
5232
|
-
* "unixVer": "
|
|
5063
|
+
* "hostVer": "√",
|
|
5064
|
+
* "uniVer": "√",
|
|
5065
|
+
* "unixVer": "x"
|
|
5233
5066
|
* },
|
|
5234
5067
|
* "kuaishou": {
|
|
5235
|
-
* "hostVer": "
|
|
5236
|
-
* "uniVer": "
|
|
5237
|
-
* "unixVer": "
|
|
5068
|
+
* "hostVer": "√",
|
|
5069
|
+
* "uniVer": "√",
|
|
5070
|
+
* "unixVer": "x"
|
|
5238
5071
|
* },
|
|
5239
5072
|
* "jd": {
|
|
5240
|
-
* "hostVer": "
|
|
5241
|
-
* "uniVer": "
|
|
5242
|
-
* "unixVer": "
|
|
5073
|
+
* "hostVer": "√",
|
|
5074
|
+
* "uniVer": "√",
|
|
5075
|
+
* "unixVer": "x"
|
|
5243
5076
|
* }
|
|
5244
5077
|
* }
|
|
5245
5078
|
* }
|
|
5079
|
+
* @uniVueVersion 2,3
|
|
5080
|
+
* @example
|
|
5081
|
+
* ```typescript
|
|
5082
|
+
* uni.chooseImage({
|
|
5083
|
+
* count:3,
|
|
5084
|
+
* success(e){
|
|
5085
|
+
* console.log(JSON.stringify(e))
|
|
5086
|
+
* }
|
|
5087
|
+
* })
|
|
5088
|
+
* ```
|
|
5089
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/image.html#chooseimage
|
|
5090
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/choose-image.html
|
|
5091
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/choose-image.html
|
|
5092
|
+
* @autotest {
|
|
5093
|
+
generated:false
|
|
5094
|
+
}
|
|
5095
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseImage.html
|
|
5246
5096
|
*/
|
|
5247
|
-
|
|
5097
|
+
chooseImage(options: ChooseImageOptions): void;
|
|
5098
|
+
// #ifndef UNI-APP-X && !APP-HARMONY
|
|
5248
5099
|
/**
|
|
5249
|
-
*
|
|
5250
|
-
* @
|
|
5100
|
+
* 预览图片
|
|
5101
|
+
* @description 预览图片
|
|
5251
5102
|
* @uniPlatform {
|
|
5103
|
+
* "app": {
|
|
5104
|
+
* "android": {
|
|
5105
|
+
* "osVer": "5.0",
|
|
5106
|
+
* "uniVer": "√",
|
|
5107
|
+
* "unixVer": "3.9+"
|
|
5108
|
+
* },
|
|
5109
|
+
* "ios": {
|
|
5110
|
+
* "osVer": "12.0",
|
|
5111
|
+
* "uniVer": "√",
|
|
5112
|
+
* "unixVer": "4.11"
|
|
5113
|
+
* },
|
|
5114
|
+
* "harmony": {
|
|
5115
|
+
* "osVer": "3.0",
|
|
5116
|
+
* "uniVer": "4.23",
|
|
5117
|
+
* "unixVer": "x"
|
|
5118
|
+
* }
|
|
5119
|
+
* },
|
|
5120
|
+
* "web": {
|
|
5121
|
+
* "uniVer": "√",
|
|
5122
|
+
* "unixVer": "4.0"
|
|
5123
|
+
* },
|
|
5252
5124
|
* "mp": {
|
|
5253
5125
|
* "weixin": {
|
|
5254
|
-
* "hostVer": "
|
|
5126
|
+
* "hostVer": "1.9.6",
|
|
5255
5127
|
* "uniVer": "√",
|
|
5256
5128
|
* "unixVer": "4.41"
|
|
5257
5129
|
* },
|
|
5258
5130
|
* "alipay": {
|
|
5259
|
-
* "hostVer": "
|
|
5260
|
-
* "uniVer": "
|
|
5261
|
-
* "unixVer": "
|
|
5131
|
+
* "hostVer": "√",
|
|
5132
|
+
* "uniVer": "√",
|
|
5133
|
+
* "unixVer": "x"
|
|
5262
5134
|
* },
|
|
5263
5135
|
* "baidu": {
|
|
5264
|
-
* "hostVer": "
|
|
5265
|
-
* "uniVer": "
|
|
5266
|
-
* "unixVer": "
|
|
5136
|
+
* "hostVer": "√",
|
|
5137
|
+
* "uniVer": "√",
|
|
5138
|
+
* "unixVer": "x"
|
|
5267
5139
|
* },
|
|
5268
5140
|
* "toutiao": {
|
|
5269
|
-
* "hostVer": "
|
|
5270
|
-
* "uniVer": "
|
|
5271
|
-
* "unixVer": "
|
|
5141
|
+
* "hostVer": "√",
|
|
5142
|
+
* "uniVer": "√",
|
|
5143
|
+
* "unixVer": "x"
|
|
5272
5144
|
* },
|
|
5273
5145
|
* "lark": {
|
|
5274
|
-
* "hostVer": "
|
|
5275
|
-
* "uniVer": "
|
|
5276
|
-
* "unixVer": "
|
|
5146
|
+
* "hostVer": "√",
|
|
5147
|
+
* "uniVer": "√",
|
|
5148
|
+
* "unixVer": "x"
|
|
5277
5149
|
* },
|
|
5278
5150
|
* "qq": {
|
|
5279
|
-
* "hostVer": "
|
|
5280
|
-
* "uniVer": "
|
|
5281
|
-
* "unixVer": "
|
|
5151
|
+
* "hostVer": "√",
|
|
5152
|
+
* "uniVer": "√",
|
|
5153
|
+
* "unixVer": "x"
|
|
5282
5154
|
* },
|
|
5283
5155
|
* "kuaishou": {
|
|
5284
|
-
* "hostVer": "
|
|
5285
|
-
* "uniVer": "
|
|
5286
|
-
* "unixVer": "
|
|
5156
|
+
* "hostVer": "√",
|
|
5157
|
+
* "uniVer": "√",
|
|
5158
|
+
* "unixVer": "x"
|
|
5287
5159
|
* },
|
|
5288
5160
|
* "jd": {
|
|
5289
|
-
* "hostVer": "
|
|
5290
|
-
* "uniVer": "
|
|
5291
|
-
* "unixVer": "
|
|
5161
|
+
* "hostVer": "x",
|
|
5162
|
+
* "uniVer": "x",
|
|
5163
|
+
* "unixVer": "x"
|
|
5292
5164
|
* }
|
|
5293
5165
|
* }
|
|
5294
5166
|
* }
|
|
5167
|
+
* @uniVueVersion 2,3
|
|
5168
|
+
* @example
|
|
5169
|
+
* ```typescript
|
|
5170
|
+
* uni.previewImage({
|
|
5171
|
+
* urls:['/static/a.jpg','/static/b.jpg'],
|
|
5172
|
+
* success(e){
|
|
5173
|
+
* console.log(JSON.stringify(e))
|
|
5174
|
+
* }
|
|
5175
|
+
* })
|
|
5176
|
+
* ```
|
|
5177
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/image.html#unipreviewimageobject
|
|
5178
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html
|
|
5179
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html
|
|
5180
|
+
* @autotest {
|
|
5181
|
+
generated:false
|
|
5182
|
+
}
|
|
5183
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.previewImage.html
|
|
5295
5184
|
*/
|
|
5296
|
-
|
|
5185
|
+
previewImage(options: PreviewImageOptions): void;
|
|
5297
5186
|
/**
|
|
5298
|
-
*
|
|
5299
|
-
* @
|
|
5187
|
+
* 关闭图片预览
|
|
5188
|
+
* @description 关闭图片预览
|
|
5300
5189
|
* @uniPlatform {
|
|
5301
|
-
*
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
*
|
|
5190
|
+
* "app": {
|
|
5191
|
+
* "android": {
|
|
5192
|
+
* "osVer": "5.0",
|
|
5193
|
+
* "uniVer": "√",
|
|
5194
|
+
* "unixVer": "3.9+"
|
|
5195
|
+
* },
|
|
5196
|
+
* "ios": {
|
|
5197
|
+
* "osVer": "12.0",
|
|
5198
|
+
* "uniVer": "√",
|
|
5199
|
+
* "unixVer": "4.11"
|
|
5200
|
+
* },
|
|
5201
|
+
* "harmony": {
|
|
5202
|
+
* "osVer": "3.0",
|
|
5203
|
+
* "uniVer": "4.23",
|
|
5204
|
+
* "unixVer": "x"
|
|
5205
|
+
* }
|
|
5206
|
+
* },
|
|
5318
5207
|
* "mp": {
|
|
5319
5208
|
* "weixin": {
|
|
5320
5209
|
* "hostVer": "√",
|
|
@@ -5357,569 +5246,29 @@ export type ChooseMediaOptions = {
|
|
|
5357
5246
|
* "unixVer": "x"
|
|
5358
5247
|
* }
|
|
5359
5248
|
* },
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5249
|
+
* "web": {
|
|
5250
|
+
* "uniVer": "√",
|
|
5251
|
+
* "unixVer": "4.0"
|
|
5252
|
+
* }
|
|
5364
5253
|
* }
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
*
|
|
5369
|
-
*
|
|
5370
|
-
*
|
|
5371
|
-
*
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
* "unixVer": "4.42"
|
|
5381
|
-
* },
|
|
5382
|
-
* "harmony": {
|
|
5383
|
-
* "osVer": "3.0",
|
|
5384
|
-
* "uniVer": "4.31",
|
|
5385
|
-
* "unixVer": "x"
|
|
5386
|
-
* }
|
|
5387
|
-
* },
|
|
5388
|
-
* "mp": {
|
|
5389
|
-
* "weixin": {
|
|
5390
|
-
* "hostVer": "√",
|
|
5391
|
-
* "uniVer": "√",
|
|
5392
|
-
* "unixVer": "4.41"
|
|
5393
|
-
* },
|
|
5394
|
-
* "alipay": {
|
|
5395
|
-
* "hostVer": "√",
|
|
5396
|
-
* "uniVer": "√",
|
|
5397
|
-
* "unixVer": "x"
|
|
5398
|
-
* },
|
|
5399
|
-
* "baidu": {
|
|
5400
|
-
* "hostVer": "√",
|
|
5401
|
-
* "uniVer": "√",
|
|
5402
|
-
* "unixVer": "x"
|
|
5403
|
-
* },
|
|
5404
|
-
* "toutiao": {
|
|
5405
|
-
* "hostVer": "√",
|
|
5406
|
-
* "uniVer": "√",
|
|
5407
|
-
* "unixVer": "x"
|
|
5408
|
-
* },
|
|
5409
|
-
* "lark": {
|
|
5410
|
-
* "hostVer": "√",
|
|
5411
|
-
* "uniVer": "√",
|
|
5412
|
-
* "unixVer": "x"
|
|
5413
|
-
* },
|
|
5414
|
-
* "qq": {
|
|
5415
|
-
* "hostVer": "√",
|
|
5416
|
-
* "uniVer": "√",
|
|
5417
|
-
* "unixVer": "x"
|
|
5418
|
-
* },
|
|
5419
|
-
* "kuaishou": {
|
|
5420
|
-
* "hostVer": "√",
|
|
5421
|
-
* "uniVer": "√",
|
|
5422
|
-
* "unixVer": "x"
|
|
5423
|
-
* },
|
|
5424
|
-
* "jd": {
|
|
5425
|
-
* "hostVer": "√",
|
|
5426
|
-
* "uniVer": "√",
|
|
5427
|
-
* "unixVer": "x"
|
|
5428
|
-
* }
|
|
5429
|
-
* },
|
|
5430
|
-
* "web": {
|
|
5431
|
-
* "uniVer": "x",
|
|
5432
|
-
* "unixVer": "x"
|
|
5433
|
-
* }
|
|
5434
|
-
* }
|
|
5435
|
-
*/
|
|
5436
|
-
maxDuration?: number | null,
|
|
5437
|
-
/**
|
|
5438
|
-
* 仅在 sourceType 为 camera 时生效,使用前置或后置摄像头
|
|
5439
|
-
*
|
|
5440
|
-
* @uniPlatform {
|
|
5441
|
-
* "app": {
|
|
5442
|
-
* "android": {
|
|
5443
|
-
* "osVer": "5.0",
|
|
5444
|
-
* "uniVer": "4.42",
|
|
5445
|
-
* "unixVer": "4.42"
|
|
5446
|
-
* },
|
|
5447
|
-
* "ios": {
|
|
5448
|
-
* "osVer": "10.0",
|
|
5449
|
-
* "uniVer": "4.42",
|
|
5450
|
-
* "unixVer": "4.42"
|
|
5451
|
-
* },
|
|
5452
|
-
* "harmony": {
|
|
5453
|
-
* "osVer": "3.0",
|
|
5454
|
-
* "uniVer": "4.25",
|
|
5455
|
-
* "unixVer": "x"
|
|
5456
|
-
* }
|
|
5457
|
-
* },
|
|
5458
|
-
* "mp": {
|
|
5459
|
-
* "weixin": {
|
|
5460
|
-
* "hostVer": "√",
|
|
5461
|
-
* "uniVer": "√",
|
|
5462
|
-
* "unixVer": "4.41"
|
|
5463
|
-
* },
|
|
5464
|
-
* "alipay": {
|
|
5465
|
-
* "hostVer": "√",
|
|
5466
|
-
* "uniVer": "√",
|
|
5467
|
-
* "unixVer": "x"
|
|
5468
|
-
* },
|
|
5469
|
-
* "baidu": {
|
|
5470
|
-
* "hostVer": "√",
|
|
5471
|
-
* "uniVer": "√",
|
|
5472
|
-
* "unixVer": "x"
|
|
5473
|
-
* },
|
|
5474
|
-
* "toutiao": {
|
|
5475
|
-
* "hostVer": "√",
|
|
5476
|
-
* "uniVer": "√",
|
|
5477
|
-
* "unixVer": "x"
|
|
5478
|
-
* },
|
|
5479
|
-
* "lark": {
|
|
5480
|
-
* "hostVer": "√",
|
|
5481
|
-
* "uniVer": "√",
|
|
5482
|
-
* "unixVer": "x"
|
|
5483
|
-
* },
|
|
5484
|
-
* "qq": {
|
|
5485
|
-
* "hostVer": "√",
|
|
5486
|
-
* "uniVer": "√",
|
|
5487
|
-
* "unixVer": "x"
|
|
5488
|
-
* },
|
|
5489
|
-
* "kuaishou": {
|
|
5490
|
-
* "hostVer": "√",
|
|
5491
|
-
* "uniVer": "√",
|
|
5492
|
-
* "unixVer": "x"
|
|
5493
|
-
* },
|
|
5494
|
-
* "jd": {
|
|
5495
|
-
* "hostVer": "√",
|
|
5496
|
-
* "uniVer": "√",
|
|
5497
|
-
* "unixVer": "x"
|
|
5498
|
-
* }
|
|
5499
|
-
* },
|
|
5500
|
-
* "web": {
|
|
5501
|
-
* "uniVer": "x",
|
|
5502
|
-
* "unixVer": "x"
|
|
5503
|
-
* }
|
|
5504
|
-
* }
|
|
5505
|
-
*/
|
|
5506
|
-
camera?:
|
|
5507
|
-
/**
|
|
5508
|
-
* 前置摄像头
|
|
5509
|
-
*/
|
|
5510
|
-
'front' |
|
|
5511
|
-
/**
|
|
5512
|
-
* 后置摄像头
|
|
5513
|
-
*/
|
|
5514
|
-
'back' | null,
|
|
5515
|
-
/**
|
|
5516
|
-
* 接口调用成功,返回视频文件的临时文件路径,详见返回参数说明
|
|
5517
|
-
* @uniPlatform {
|
|
5518
|
-
* "mp": {
|
|
5519
|
-
* "weixin": {
|
|
5520
|
-
* "hostVer": "√",
|
|
5521
|
-
* "uniVer": "√",
|
|
5522
|
-
* "unixVer": "4.41"
|
|
5523
|
-
* },
|
|
5524
|
-
* "alipay": {
|
|
5525
|
-
* "hostVer": "-",
|
|
5526
|
-
* "uniVer": "-",
|
|
5527
|
-
* "unixVer": "-"
|
|
5528
|
-
* },
|
|
5529
|
-
* "baidu": {
|
|
5530
|
-
* "hostVer": "-",
|
|
5531
|
-
* "uniVer": "-",
|
|
5532
|
-
* "unixVer": "-"
|
|
5533
|
-
* },
|
|
5534
|
-
* "toutiao": {
|
|
5535
|
-
* "hostVer": "-",
|
|
5536
|
-
* "uniVer": "-",
|
|
5537
|
-
* "unixVer": "-"
|
|
5538
|
-
* },
|
|
5539
|
-
* "lark": {
|
|
5540
|
-
* "hostVer": "-",
|
|
5541
|
-
* "uniVer": "-",
|
|
5542
|
-
* "unixVer": "-"
|
|
5543
|
-
* },
|
|
5544
|
-
* "qq": {
|
|
5545
|
-
* "hostVer": "-",
|
|
5546
|
-
* "uniVer": "-",
|
|
5547
|
-
* "unixVer": "-"
|
|
5548
|
-
* },
|
|
5549
|
-
* "kuaishou": {
|
|
5550
|
-
* "hostVer": "-",
|
|
5551
|
-
* "uniVer": "-",
|
|
5552
|
-
* "unixVer": "-"
|
|
5553
|
-
* },
|
|
5554
|
-
* "jd": {
|
|
5555
|
-
* "hostVer": "-",
|
|
5556
|
-
* "uniVer": "-",
|
|
5557
|
-
* "unixVer": "-"
|
|
5558
|
-
* }
|
|
5559
|
-
* }
|
|
5560
|
-
* }
|
|
5561
|
-
*/
|
|
5562
|
-
success?: (ChooseMediaSuccessCallback) | null,
|
|
5563
|
-
/**
|
|
5564
|
-
* 接口调用失败的回调函数
|
|
5565
|
-
* @uniPlatform {
|
|
5566
|
-
* "mp": {
|
|
5567
|
-
* "weixin": {
|
|
5568
|
-
* "hostVer": "√",
|
|
5569
|
-
* "uniVer": "√",
|
|
5570
|
-
* "unixVer": "4.41"
|
|
5571
|
-
* },
|
|
5572
|
-
* "alipay": {
|
|
5573
|
-
* "hostVer": "-",
|
|
5574
|
-
* "uniVer": "-",
|
|
5575
|
-
* "unixVer": "-"
|
|
5576
|
-
* },
|
|
5577
|
-
* "baidu": {
|
|
5578
|
-
* "hostVer": "-",
|
|
5579
|
-
* "uniVer": "-",
|
|
5580
|
-
* "unixVer": "-"
|
|
5581
|
-
* },
|
|
5582
|
-
* "toutiao": {
|
|
5583
|
-
* "hostVer": "-",
|
|
5584
|
-
* "uniVer": "-",
|
|
5585
|
-
* "unixVer": "-"
|
|
5586
|
-
* },
|
|
5587
|
-
* "lark": {
|
|
5588
|
-
* "hostVer": "-",
|
|
5589
|
-
* "uniVer": "-",
|
|
5590
|
-
* "unixVer": "-"
|
|
5591
|
-
* },
|
|
5592
|
-
* "qq": {
|
|
5593
|
-
* "hostVer": "-",
|
|
5594
|
-
* "uniVer": "-",
|
|
5595
|
-
* "unixVer": "-"
|
|
5596
|
-
* },
|
|
5597
|
-
* "kuaishou": {
|
|
5598
|
-
* "hostVer": "-",
|
|
5599
|
-
* "uniVer": "-",
|
|
5600
|
-
* "unixVer": "-"
|
|
5601
|
-
* },
|
|
5602
|
-
* "jd": {
|
|
5603
|
-
* "hostVer": "-",
|
|
5604
|
-
* "uniVer": "-",
|
|
5605
|
-
* "unixVer": "-"
|
|
5606
|
-
* }
|
|
5607
|
-
* }
|
|
5608
|
-
* }
|
|
5609
|
-
*/
|
|
5610
|
-
fail?: (ChooseMediaFailCallback) | null,
|
|
5611
|
-
/**
|
|
5612
|
-
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
5613
|
-
* @uniPlatform {
|
|
5614
|
-
* "mp": {
|
|
5615
|
-
* "weixin": {
|
|
5616
|
-
* "hostVer": "√",
|
|
5617
|
-
* "uniVer": "√",
|
|
5618
|
-
* "unixVer": "4.41"
|
|
5619
|
-
* },
|
|
5620
|
-
* "alipay": {
|
|
5621
|
-
* "hostVer": "-",
|
|
5622
|
-
* "uniVer": "-",
|
|
5623
|
-
* "unixVer": "-"
|
|
5624
|
-
* },
|
|
5625
|
-
* "baidu": {
|
|
5626
|
-
* "hostVer": "-",
|
|
5627
|
-
* "uniVer": "-",
|
|
5628
|
-
* "unixVer": "-"
|
|
5629
|
-
* },
|
|
5630
|
-
* "toutiao": {
|
|
5631
|
-
* "hostVer": "-",
|
|
5632
|
-
* "uniVer": "-",
|
|
5633
|
-
* "unixVer": "-"
|
|
5634
|
-
* },
|
|
5635
|
-
* "lark": {
|
|
5636
|
-
* "hostVer": "-",
|
|
5637
|
-
* "uniVer": "-",
|
|
5638
|
-
* "unixVer": "-"
|
|
5639
|
-
* },
|
|
5640
|
-
* "qq": {
|
|
5641
|
-
* "hostVer": "-",
|
|
5642
|
-
* "uniVer": "-",
|
|
5643
|
-
* "unixVer": "-"
|
|
5644
|
-
* },
|
|
5645
|
-
* "kuaishou": {
|
|
5646
|
-
* "hostVer": "-",
|
|
5647
|
-
* "uniVer": "-",
|
|
5648
|
-
* "unixVer": "-"
|
|
5649
|
-
* },
|
|
5650
|
-
* "jd": {
|
|
5651
|
-
* "hostVer": "-",
|
|
5652
|
-
* "uniVer": "-",
|
|
5653
|
-
* "unixVer": "-"
|
|
5654
|
-
* }
|
|
5655
|
-
* }
|
|
5656
|
-
* }
|
|
5657
|
-
*/
|
|
5658
|
-
complete?: (ChooseMediaCompleteCallback) | null
|
|
5659
|
-
};
|
|
5660
|
-
|
|
5661
|
-
export type ChooseMedia = (options: ChooseMediaOptions) => void;
|
|
5662
|
-
|
|
5663
|
-
export interface Uni {
|
|
5664
|
-
/**
|
|
5665
|
-
* 从本地相册选择图片或使用相机拍照
|
|
5666
|
-
* @description 从本地相册选择图片或使用相机拍照
|
|
5667
|
-
* @uniPlatform {
|
|
5668
|
-
* "app": {
|
|
5669
|
-
* "android": {
|
|
5670
|
-
* "osVer": "5.0",
|
|
5671
|
-
* "uniVer": "√",
|
|
5672
|
-
* "unixVer": "3.9+"
|
|
5673
|
-
* },
|
|
5674
|
-
* "ios": {
|
|
5675
|
-
* "osVer": "12.0",
|
|
5676
|
-
* "uniVer": "√",
|
|
5677
|
-
* "unixVer": "4.11"
|
|
5678
|
-
* },
|
|
5679
|
-
* "harmony": {
|
|
5680
|
-
* "osVer": "3.0",
|
|
5681
|
-
* "uniVer": "4.23",
|
|
5682
|
-
* "unixVer": "x"
|
|
5683
|
-
* }
|
|
5684
|
-
* },
|
|
5685
|
-
* "web": {
|
|
5686
|
-
* "uniVer": "√",
|
|
5687
|
-
* "unixVer": "4.0"
|
|
5688
|
-
* },
|
|
5689
|
-
* "mp": {
|
|
5690
|
-
* "weixin": {
|
|
5691
|
-
* "hostVer": "1.9.6",
|
|
5692
|
-
* "uniVer": "√",
|
|
5693
|
-
* "unixVer": "4.41"
|
|
5694
|
-
* },
|
|
5695
|
-
* "alipay": {
|
|
5696
|
-
* "hostVer": "√",
|
|
5697
|
-
* "uniVer": "√",
|
|
5698
|
-
* "unixVer": "x"
|
|
5699
|
-
* },
|
|
5700
|
-
* "baidu": {
|
|
5701
|
-
* "hostVer": "√",
|
|
5702
|
-
* "uniVer": "√",
|
|
5703
|
-
* "unixVer": "x"
|
|
5704
|
-
* },
|
|
5705
|
-
* "toutiao": {
|
|
5706
|
-
* "hostVer": "√",
|
|
5707
|
-
* "uniVer": "√",
|
|
5708
|
-
* "unixVer": "x"
|
|
5709
|
-
* },
|
|
5710
|
-
* "lark": {
|
|
5711
|
-
* "hostVer": "√",
|
|
5712
|
-
* "uniVer": "√",
|
|
5713
|
-
* "unixVer": "x"
|
|
5714
|
-
* },
|
|
5715
|
-
* "qq": {
|
|
5716
|
-
* "hostVer": "√",
|
|
5717
|
-
* "uniVer": "√",
|
|
5718
|
-
* "unixVer": "x"
|
|
5719
|
-
* },
|
|
5720
|
-
* "kuaishou": {
|
|
5721
|
-
* "hostVer": "√",
|
|
5722
|
-
* "uniVer": "√",
|
|
5723
|
-
* "unixVer": "x"
|
|
5724
|
-
* },
|
|
5725
|
-
* "jd": {
|
|
5726
|
-
* "hostVer": "√",
|
|
5727
|
-
* "uniVer": "√",
|
|
5728
|
-
* "unixVer": "x"
|
|
5729
|
-
* }
|
|
5730
|
-
* }
|
|
5731
|
-
* }
|
|
5732
|
-
* @uniVueVersion 2,3
|
|
5733
|
-
* @example
|
|
5734
|
-
* ```typescript
|
|
5735
|
-
* uni.chooseImage({
|
|
5736
|
-
* count:3,
|
|
5737
|
-
* success(e){
|
|
5738
|
-
* console.log(JSON.stringify(e))
|
|
5739
|
-
* }
|
|
5740
|
-
* })
|
|
5741
|
-
* ```
|
|
5742
|
-
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/image.html#chooseimage
|
|
5743
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/choose-image.html
|
|
5744
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/choose-image.html
|
|
5745
|
-
* @autotest {
|
|
5746
|
-
generated:false
|
|
5747
|
-
}
|
|
5748
|
-
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseImage.html
|
|
5749
|
-
*/
|
|
5750
|
-
chooseImage(options: ChooseImageOptions): void;
|
|
5751
|
-
/**
|
|
5752
|
-
* 预览图片
|
|
5753
|
-
* @description 预览图片
|
|
5754
|
-
* @uniPlatform {
|
|
5755
|
-
* "app": {
|
|
5756
|
-
* "android": {
|
|
5757
|
-
* "osVer": "5.0",
|
|
5758
|
-
* "uniVer": "√",
|
|
5759
|
-
* "unixVer": "3.9+"
|
|
5760
|
-
* },
|
|
5761
|
-
* "ios": {
|
|
5762
|
-
* "osVer": "12.0",
|
|
5763
|
-
* "uniVer": "√",
|
|
5764
|
-
* "unixVer": "4.11"
|
|
5765
|
-
* },
|
|
5766
|
-
* "harmony": {
|
|
5767
|
-
* "osVer": "3.0",
|
|
5768
|
-
* "uniVer": "4.23",
|
|
5769
|
-
* "unixVer": "x"
|
|
5770
|
-
* }
|
|
5771
|
-
* },
|
|
5772
|
-
* "web": {
|
|
5773
|
-
* "uniVer": "√",
|
|
5774
|
-
* "unixVer": "4.0"
|
|
5775
|
-
* },
|
|
5776
|
-
* "mp": {
|
|
5777
|
-
* "weixin": {
|
|
5778
|
-
* "hostVer": "1.9.6",
|
|
5779
|
-
* "uniVer": "√",
|
|
5780
|
-
* "unixVer": "4.41"
|
|
5781
|
-
* },
|
|
5782
|
-
* "alipay": {
|
|
5783
|
-
* "hostVer": "√",
|
|
5784
|
-
* "uniVer": "√",
|
|
5785
|
-
* "unixVer": "x"
|
|
5786
|
-
* },
|
|
5787
|
-
* "baidu": {
|
|
5788
|
-
* "hostVer": "√",
|
|
5789
|
-
* "uniVer": "√",
|
|
5790
|
-
* "unixVer": "x"
|
|
5791
|
-
* },
|
|
5792
|
-
* "toutiao": {
|
|
5793
|
-
* "hostVer": "√",
|
|
5794
|
-
* "uniVer": "√",
|
|
5795
|
-
* "unixVer": "x"
|
|
5796
|
-
* },
|
|
5797
|
-
* "lark": {
|
|
5798
|
-
* "hostVer": "√",
|
|
5799
|
-
* "uniVer": "√",
|
|
5800
|
-
* "unixVer": "x"
|
|
5801
|
-
* },
|
|
5802
|
-
* "qq": {
|
|
5803
|
-
* "hostVer": "√",
|
|
5804
|
-
* "uniVer": "√",
|
|
5805
|
-
* "unixVer": "x"
|
|
5806
|
-
* },
|
|
5807
|
-
* "kuaishou": {
|
|
5808
|
-
* "hostVer": "√",
|
|
5809
|
-
* "uniVer": "√",
|
|
5810
|
-
* "unixVer": "x"
|
|
5811
|
-
* },
|
|
5812
|
-
* "jd": {
|
|
5813
|
-
* "hostVer": "x",
|
|
5814
|
-
* "uniVer": "x",
|
|
5815
|
-
* "unixVer": "x"
|
|
5816
|
-
* }
|
|
5817
|
-
* }
|
|
5818
|
-
* }
|
|
5819
|
-
* @uniVueVersion 2,3
|
|
5820
|
-
* @example
|
|
5821
|
-
* ```typescript
|
|
5822
|
-
* uni.previewImage({
|
|
5823
|
-
* urls:['/static/a.jpg','/static/b.jpg'],
|
|
5824
|
-
* success(e){
|
|
5825
|
-
* console.log(JSON.stringify(e))
|
|
5826
|
-
* }
|
|
5827
|
-
* })
|
|
5828
|
-
* ```
|
|
5829
|
-
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/image.html#unipreviewimageobject
|
|
5830
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html
|
|
5831
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html
|
|
5832
|
-
* @autotest {
|
|
5833
|
-
generated:false
|
|
5834
|
-
}
|
|
5835
|
-
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.previewImage.html
|
|
5836
|
-
*/
|
|
5837
|
-
previewImage(options: PreviewImageOptions): void;
|
|
5838
|
-
/**
|
|
5839
|
-
* 关闭图片预览
|
|
5840
|
-
* @description 关闭图片预览
|
|
5841
|
-
* @uniPlatform {
|
|
5842
|
-
* "app": {
|
|
5843
|
-
* "android": {
|
|
5844
|
-
* "osVer": "5.0",
|
|
5845
|
-
* "uniVer": "√",
|
|
5846
|
-
* "unixVer": "3.9+"
|
|
5847
|
-
* },
|
|
5848
|
-
* "ios": {
|
|
5849
|
-
* "osVer": "12.0",
|
|
5850
|
-
* "uniVer": "√",
|
|
5851
|
-
* "unixVer": "4.11"
|
|
5852
|
-
* },
|
|
5853
|
-
* "harmony": {
|
|
5854
|
-
* "osVer": "3.0",
|
|
5855
|
-
* "uniVer": "4.23",
|
|
5856
|
-
* "unixVer": "x"
|
|
5857
|
-
* }
|
|
5858
|
-
* },
|
|
5859
|
-
* "mp": {
|
|
5860
|
-
* "weixin": {
|
|
5861
|
-
* "hostVer": "√",
|
|
5862
|
-
* "uniVer": "√",
|
|
5863
|
-
* "unixVer": "4.41"
|
|
5864
|
-
* },
|
|
5865
|
-
* "alipay": {
|
|
5866
|
-
* "hostVer": "√",
|
|
5867
|
-
* "uniVer": "√",
|
|
5868
|
-
* "unixVer": "x"
|
|
5869
|
-
* },
|
|
5870
|
-
* "baidu": {
|
|
5871
|
-
* "hostVer": "√",
|
|
5872
|
-
* "uniVer": "√",
|
|
5873
|
-
* "unixVer": "x"
|
|
5874
|
-
* },
|
|
5875
|
-
* "toutiao": {
|
|
5876
|
-
* "hostVer": "√",
|
|
5877
|
-
* "uniVer": "√",
|
|
5878
|
-
* "unixVer": "x"
|
|
5879
|
-
* },
|
|
5880
|
-
* "lark": {
|
|
5881
|
-
* "hostVer": "√",
|
|
5882
|
-
* "uniVer": "√",
|
|
5883
|
-
* "unixVer": "x"
|
|
5884
|
-
* },
|
|
5885
|
-
* "qq": {
|
|
5886
|
-
* "hostVer": "√",
|
|
5887
|
-
* "uniVer": "√",
|
|
5888
|
-
* "unixVer": "x"
|
|
5889
|
-
* },
|
|
5890
|
-
* "kuaishou": {
|
|
5891
|
-
* "hostVer": "√",
|
|
5892
|
-
* "uniVer": "√",
|
|
5893
|
-
* "unixVer": "x"
|
|
5894
|
-
* },
|
|
5895
|
-
* "jd": {
|
|
5896
|
-
* "hostVer": "√",
|
|
5897
|
-
* "uniVer": "√",
|
|
5898
|
-
* "unixVer": "x"
|
|
5899
|
-
* }
|
|
5900
|
-
* },
|
|
5901
|
-
* "web": {
|
|
5902
|
-
* "uniVer": "√",
|
|
5903
|
-
* "unixVer": "4.0"
|
|
5904
|
-
* }
|
|
5905
|
-
* }
|
|
5906
|
-
* @uniVueVersion 2,3
|
|
5907
|
-
* @example
|
|
5908
|
-
* ```typescript
|
|
5909
|
-
* uni.closePreviewImage({
|
|
5910
|
-
* success(e){
|
|
5911
|
-
* console.log(JSON.stringify(e))
|
|
5912
|
-
* }
|
|
5913
|
-
* })
|
|
5914
|
-
* ```
|
|
5915
|
-
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/image.html#closepreviewimage
|
|
5916
|
-
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html#closepreviewimage
|
|
5917
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html#closepreviewimage
|
|
5918
|
-
* @autotest {
|
|
5919
|
-
generated:false
|
|
5920
|
-
}
|
|
5254
|
+
* @uniVueVersion 2,3
|
|
5255
|
+
* @example
|
|
5256
|
+
* ```typescript
|
|
5257
|
+
* uni.closePreviewImage({
|
|
5258
|
+
* success(e){
|
|
5259
|
+
* console.log(JSON.stringify(e))
|
|
5260
|
+
* }
|
|
5261
|
+
* })
|
|
5262
|
+
* ```
|
|
5263
|
+
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/image.html#closepreviewimage
|
|
5264
|
+
* @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html#closepreviewimage
|
|
5265
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/preview-image.html#closepreviewimage
|
|
5266
|
+
* @autotest {
|
|
5267
|
+
generated:false
|
|
5268
|
+
}
|
|
5921
5269
|
*/
|
|
5922
5270
|
closePreviewImage(options: ClosePreviewImageOptions): void;
|
|
5271
|
+
// #endif
|
|
5923
5272
|
/**
|
|
5924
5273
|
* 获取图片信息
|
|
5925
5274
|
* @description 获取图片信息
|
|
@@ -6543,7 +5892,7 @@ export interface Uni {
|
|
|
6543
5892
|
* "android": {
|
|
6544
5893
|
* "osVer": "x",
|
|
6545
5894
|
* "uniVer": "x",
|
|
6546
|
-
* "unixVer": "4.
|
|
5895
|
+
* "unixVer": "4.51"
|
|
6547
5896
|
* },
|
|
6548
5897
|
* "ios": {
|
|
6549
5898
|
* "osVer": "x",
|
|
@@ -6605,78 +5954,4 @@ export interface Uni {
|
|
|
6605
5954
|
* }
|
|
6606
5955
|
*/
|
|
6607
5956
|
chooseFile: ChooseFile;
|
|
6608
|
-
/**
|
|
6609
|
-
* 拍摄或从手机相册中选择图片或视频。
|
|
6610
|
-
*
|
|
6611
|
-
* @tutorial https://uniapp.dcloud.net.cn/api/media/video.html#choosemedia
|
|
6612
|
-
* @tutorial-uni-app https://uniapp.dcloud.net.cn/api/media/video.html#choosemedia
|
|
6613
|
-
* @uniPlatform {
|
|
6614
|
-
* "app": {
|
|
6615
|
-
* "android": {
|
|
6616
|
-
* "osVer": "x",
|
|
6617
|
-
* "uniVer": "x",
|
|
6618
|
-
* "unixVer": "x"
|
|
6619
|
-
* },
|
|
6620
|
-
* "ios": {
|
|
6621
|
-
* "osVer": "x",
|
|
6622
|
-
* "uniVer": "x",
|
|
6623
|
-
* "unixVer": "x"
|
|
6624
|
-
* },
|
|
6625
|
-
* "harmony": {
|
|
6626
|
-
* "osVer": "3.0",
|
|
6627
|
-
* "uniVer": "4.31",
|
|
6628
|
-
* "unixVer": "x"
|
|
6629
|
-
* }
|
|
6630
|
-
* },
|
|
6631
|
-
* "mp": {
|
|
6632
|
-
* "weixin": {
|
|
6633
|
-
* "hostVer": "2.10.0",
|
|
6634
|
-
* "uniVer": "√",
|
|
6635
|
-
* "unixVer": "4.41"
|
|
6636
|
-
* },
|
|
6637
|
-
* "alipay": {
|
|
6638
|
-
* "hostVer": "√",
|
|
6639
|
-
* "uniVer": "√",
|
|
6640
|
-
* "unixVer": "x"
|
|
6641
|
-
* },
|
|
6642
|
-
* "baidu": {
|
|
6643
|
-
* "hostVer": "√",
|
|
6644
|
-
* "uniVer": "√",
|
|
6645
|
-
* "unixVer": "x"
|
|
6646
|
-
* },
|
|
6647
|
-
* "toutiao": {
|
|
6648
|
-
* "hostVer": "√",
|
|
6649
|
-
* "uniVer": "√",
|
|
6650
|
-
* "unixVer": "x"
|
|
6651
|
-
* },
|
|
6652
|
-
* "lark": {
|
|
6653
|
-
* "hostVer": "√",
|
|
6654
|
-
* "uniVer": "√",
|
|
6655
|
-
* "unixVer": "x"
|
|
6656
|
-
* },
|
|
6657
|
-
* "qq": {
|
|
6658
|
-
* "hostVer": "√",
|
|
6659
|
-
* "uniVer": "√",
|
|
6660
|
-
* "unixVer": "x"
|
|
6661
|
-
* },
|
|
6662
|
-
* "kuaishou": {
|
|
6663
|
-
* "hostVer": "√",
|
|
6664
|
-
* "uniVer": "√",
|
|
6665
|
-
* "unixVer": "x"
|
|
6666
|
-
* },
|
|
6667
|
-
* "jd": {
|
|
6668
|
-
* "hostVer": "√",
|
|
6669
|
-
* "uniVer": "√",
|
|
6670
|
-
* "unixVer": "x"
|
|
6671
|
-
* }
|
|
6672
|
-
* },
|
|
6673
|
-
* "web": {
|
|
6674
|
-
* "uniVer": "x",
|
|
6675
|
-
* "unixVer": "x"
|
|
6676
|
-
* }
|
|
6677
|
-
* }
|
|
6678
|
-
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html
|
|
6679
|
-
*/
|
|
6680
|
-
chooseMedia: ChooseMedia;
|
|
6681
|
-
|
|
6682
5957
|
}
|