@dcloudio/uni-app-plus 3.0.0-alpha-3021320211116001 → 3.0.0-alpha-3021320211117004

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.
@@ -5043,7 +5043,8 @@ var serviceContext = (function (vue) {
5043
5043
  current: {
5044
5044
  type: [Number, String],
5045
5045
  },
5046
- };
5046
+ };
5047
+ const API_CLOSE_PREVIEW_IMAGE = 'closePreviewImage';
5047
5048
 
5048
5049
  const API_GET_VIDEO_INFO = 'getVideoInfo';
5049
5050
  const GetVideoInfoOptions = {
@@ -7499,7 +7500,17 @@ var serviceContext = (function (vue) {
7499
7500
  },
7500
7501
  });
7501
7502
  resolve();
7502
- }, PreviewImageProtocol, PreviewImageOptions);
7503
+ }, PreviewImageProtocol, PreviewImageOptions);
7504
+ const closePreviewImage = defineAsyncApi(API_CLOSE_PREVIEW_IMAGE, (_, { resolve, reject }) => {
7505
+ try {
7506
+ // @ts-expect-error
7507
+ plus.nativeUI.closePreviewImage();
7508
+ resolve();
7509
+ }
7510
+ catch (error) {
7511
+ reject();
7512
+ }
7513
+ });
7503
7514
 
7504
7515
  let recorder;
7505
7516
  let recording = false;
@@ -7647,9 +7658,7 @@ var serviceContext = (function (vue) {
7647
7658
  }, reject);
7648
7659
  });
7649
7660
  }
7650
- const chooseImage = defineAsyncApi(API_CHOOSE_IMAGE,
7651
- // @ts-expect-error crop 属性App特有
7652
- ({ count, sizeType, sourceType, crop } = {}, { resolve, reject }) => {
7661
+ const chooseImage = defineAsyncApi(API_CHOOSE_IMAGE, ({ count, sizeType, sourceType, crop } = {}, { resolve, reject }) => {
7653
7662
  initI18nChooseImageMsgsOnce();
7654
7663
  const { t } = useI18n();
7655
7664
  const errorCallback = warpPlusErrorCallback(reject);
@@ -12906,6 +12915,7 @@ var serviceContext = (function (vue) {
12906
12915
  getImageInfo: getImageInfo,
12907
12916
  getVideoInfo: getVideoInfo,
12908
12917
  previewImage: previewImage,
12918
+ closePreviewImage: closePreviewImage,
12909
12919
  getRecorderManager: getRecorderManager,
12910
12920
  saveVideoToPhotosAlbum: saveVideoToPhotosAlbum,
12911
12921
  saveImageToPhotosAlbum: saveImageToPhotosAlbum,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-plus",
3
- "version": "3.0.0-alpha-3021320211116001",
3
+ "version": "3.0.0-alpha-3021320211117004",
4
4
  "description": "@dcloudio/uni-app-plus",
5
5
  "files": [
6
6
  "dist",
@@ -28,16 +28,16 @@
28
28
  "main": "dist/uni.compiler.js"
29
29
  },
30
30
  "devDependencies": {
31
- "@dcloudio/uni-components": "3.0.0-alpha-3021320211116001",
32
- "@dcloudio/uni-h5": "3.0.0-alpha-3021320211116001",
33
- "@dcloudio/uni-i18n": "3.0.0-alpha-3021320211116001",
34
- "@dcloudio/uni-shared": "3.0.0-alpha-3021320211116001",
31
+ "@dcloudio/uni-components": "3.0.0-alpha-3021320211117004",
32
+ "@dcloudio/uni-h5": "3.0.0-alpha-3021320211117004",
33
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3021320211117004",
34
+ "@dcloudio/uni-shared": "3.0.0-alpha-3021320211117004",
35
35
  "@vue/compiler-sfc": "3.2.22",
36
36
  "autoprefixer": "^10.4.0",
37
37
  "vue": "3.2.22"
38
38
  },
39
39
  "dependencies": {
40
- "@dcloudio/uni-app-vite": "3.0.0-alpha-3021320211116001",
41
- "@dcloudio/uni-app-vue": "3.0.0-alpha-3021320211116001"
40
+ "@dcloudio/uni-app-vite": "3.0.0-alpha-3021320211117004",
41
+ "@dcloudio/uni-app-vue": "3.0.0-alpha-3021320211117004"
42
42
  }
43
43
  }