zartui 3.1.92 → 3.1.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/es/composables/use-media-download.d.ts +20 -0
  2. package/es/composables/use-media-download.mjs +111 -0
  3. package/es/drawer-select/DrawerSelect.mjs +13 -30
  4. package/es/drawer-select/index.css +1 -1
  5. package/es/image-preview/ImagePreview.d.ts +2 -5
  6. package/es/image-preview/ImagePreview.mjs +32 -79
  7. package/es/image-preview/function-call.mjs +4 -1
  8. package/es/image-preview/index.css +1 -1
  9. package/es/image-preview/index.d.ts +1 -2
  10. package/es/image-preview/style/index.mjs +2 -0
  11. package/es/image-preview/types.d.ts +3 -1
  12. package/es/index.d.ts +1 -1
  13. package/es/index.mjs +1 -1
  14. package/es/media-picker/MediaPicker.d.ts +1 -1
  15. package/es/media-picker/MediaPicker.mjs +54 -36
  16. package/es/media-picker/index.d.ts +2 -2
  17. package/es/media-picker/style/index.mjs +3 -1
  18. package/es/media-player/MediaPlayer.d.ts +21 -0
  19. package/es/media-player/MediaPlayer.mjs +25 -2
  20. package/es/media-player/index.css +1 -1
  21. package/es/media-player/index.d.ts +14 -0
  22. package/es/media-player/style/index.mjs +4 -0
  23. package/es/photo-picker/index.d.ts +2 -2
  24. package/es/photo-picker/style/index.mjs +2 -0
  25. package/es/uploader/style/index.mjs +2 -0
  26. package/lib/composables/use-media-download.d.ts +20 -0
  27. package/lib/composables/use-media-download.js +138 -0
  28. package/lib/drawer-select/DrawerSelect.js +12 -29
  29. package/lib/drawer-select/index.css +1 -1
  30. package/lib/image-preview/ImagePreview.d.ts +2 -5
  31. package/lib/image-preview/ImagePreview.js +32 -79
  32. package/lib/image-preview/function-call.js +4 -1
  33. package/lib/image-preview/index.css +1 -1
  34. package/lib/image-preview/index.d.ts +1 -2
  35. package/lib/image-preview/style/index.js +2 -0
  36. package/lib/image-preview/types.d.ts +3 -1
  37. package/lib/index.css +1 -1
  38. package/lib/index.d.ts +1 -1
  39. package/lib/index.js +1 -1
  40. package/lib/media-picker/MediaPicker.d.ts +1 -1
  41. package/lib/media-picker/MediaPicker.js +51 -35
  42. package/lib/media-picker/index.d.ts +2 -2
  43. package/lib/media-picker/style/index.js +3 -1
  44. package/lib/media-player/MediaPlayer.d.ts +21 -0
  45. package/lib/media-player/MediaPlayer.js +25 -2
  46. package/lib/media-player/index.css +1 -1
  47. package/lib/media-player/index.d.ts +14 -0
  48. package/lib/media-player/style/index.js +4 -0
  49. package/lib/photo-picker/index.d.ts +2 -2
  50. package/lib/photo-picker/style/index.js +2 -0
  51. package/lib/uploader/style/index.js +2 -0
  52. package/lib/web-types.json +1 -1
  53. package/lib/zartui.cjs.js +208 -134
  54. package/lib/zartui.es.js +208 -134
  55. package/lib/zartui.js +216 -142
  56. package/lib/zartui.min.js +2 -2
  57. package/package.json +5 -5
package/lib/index.d.ts CHANGED
@@ -86,4 +86,4 @@ declare namespace _default {
86
86
  }
87
87
  export default _default;
88
88
  export function install(app: any): void;
89
- export const version: "3.1.92";
89
+ export const version: "3.1.94";
package/lib/index.js CHANGED
@@ -186,7 +186,7 @@ __reExport(stdin_exports, require("./timeline"), module.exports);
186
186
  __reExport(stdin_exports, require("./toast"), module.exports);
187
187
  __reExport(stdin_exports, require("./uploader"), module.exports);
188
188
  __reExport(stdin_exports, require("./video"), module.exports);
189
- const version = "3.1.92";
189
+ const version = "3.1.94";
190
190
  function install(app) {
191
191
  const components = [
192
192
  import_action_sheet.ActionSheet,
@@ -1,7 +1,7 @@
1
1
  import { ComponentPublicInstance, ExtractPropTypes, PropType } from 'vue';
2
2
  import type { Media, MediaAddType, MediaAfterRead, MediaBeforeDelete, MediaBeforeRead, MediaPick, MediaPreview, MediaSizeType, MediaType } from './type';
3
3
  import { MediaPlayerProps } from '../media-player';
4
- import { DownloadActionParams } from '../image-preview/ImagePreview';
4
+ import type { DownloadActionParams } from '../composables/use-media-download';
5
5
  declare const mediaPickerProps: {
6
6
  sortable: {
7
7
  type: BooleanConstructor;
@@ -1,9 +1,26 @@
1
1
  var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
8
  var __getProtoOf = Object.getPrototypeOf;
6
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7
24
  var __export = (target, all) => {
8
25
  for (var name2 in all)
9
26
  __defProp(target, name2, { get: all[name2], enumerable: true });
@@ -78,6 +95,7 @@ var import_utils2 = require("../field/utils");
78
95
  var import_wx_util = require("./util/wx-util");
79
96
  var import_use_expose = require("../composables/use-expose");
80
97
  var import_sortablejs = __toESM(require("sortablejs"));
98
+ var import_use_media_download = require("../composables/use-media-download");
81
99
  const [name, bem] = (0, import_utils.createNamespace)("media-picker");
82
100
  const FILE_SIZE_LIMIT = 100;
83
101
  const COMPATIBLE_TYPE_MAPPINGS = {
@@ -163,6 +181,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
163
181
  emit,
164
182
  slots
165
183
  }) {
184
+ const {
185
+ downloadFile
186
+ } = (0, import_use_media_download.useMediaDownload)(props);
166
187
  const videoOptionsVisible = (0, import_vue2.ref)(false);
167
188
  const audioOptionsVisible = (0, import_vue2.ref)(false);
168
189
  const photoOptionsVisible = (0, import_vue2.ref)(false);
@@ -170,6 +191,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
170
191
  const mediaPlayerVisible = (0, import_vue2.ref)(false);
171
192
  const mediaTypeToPlay = (0, import_vue2.ref)("file");
172
193
  const mediaUrlToPlay = (0, import_vue2.ref)("");
194
+ const mediaFileNameToPlay = (0, import_vue2.ref)("");
195
+ const mediaIndexToPlay = (0, import_vue2.ref)(0);
173
196
  const cameraInputRef = (0, import_vue2.ref)();
174
197
  const imageInputRef = (0, import_vue2.ref)();
175
198
  const camcorderInputRef = (0, import_vue2.ref)();
@@ -855,7 +878,6 @@ var stdin_default = (0, import_vue2.defineComponent)({
855
878
  deleteMedia(media, index);
856
879
  });
857
880
  const previewMedia = (index) => __async(this, null, function* () {
858
- var _a;
859
881
  if (props.preview && (yield props.preview(props.mediaList, index))) {
860
882
  return;
861
883
  }
@@ -864,7 +886,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
864
886
  const imageIndex = imageList.value.indexOf(media);
865
887
  (0, import_image_preview.showImagePreview)({
866
888
  images: imageList.value.map((image) => ({
867
- url: image.url || image.showSrc || ""
889
+ url: image.url || image.showSrc || "",
890
+ title: image.label,
891
+ fileName: image.originalName || image.fileName
868
892
  })),
869
893
  showDownload: props.showDownload,
870
894
  downloadAction: props.downloadAction,
@@ -876,45 +900,28 @@ var stdin_default = (0, import_vue2.defineComponent)({
876
900
  (0, import_toast.showFailToast)("\u6587\u4EF6\u53C2\u6570\u7F3A\u5931");
877
901
  } else {
878
902
  mediaTypeToPlay.value = media.type;
903
+ mediaFileNameToPlay.value = media.originalName || media.fileName;
904
+ mediaIndexToPlay.value = index;
879
905
  mediaUrlToPlay.value = media.url || (URL || webkitURL).createObjectURL(media.file);
880
906
  mediaPlayerVisible.value = true;
881
907
  }
882
908
  } else if (media.type === "file") {
883
- try {
884
- let universalJsSdk = yield import("@egova/universal-js-sdk");
885
- if (universalJsSdk && universalJsSdk.getJSI && media.url) {
886
- let fileJsi = (_a = universalJsSdk.getJSI()) == null ? void 0 : _a.file;
887
- if (fileJsi && fileJsi.download && fileJsi.openDocument) {
888
- (0, import_toast.showLoadingToast)({
889
- message: "\u6253\u5F00\u4E2D...",
890
- forbidClick: true,
891
- duration: 0
892
- });
893
- fileJsi.download({
894
- url: media.url
895
- }).then(({
896
- tempFilePath
897
- }) => {
898
- if (fileJsi && fileJsi.openDocument) {
899
- fileJsi.openDocument({
900
- localFilePath: tempFilePath
901
- }).finally(() => {
902
- (0, import_toast.closeToast)();
903
- });
904
- } else {
905
- (0, import_toast.closeToast)();
906
- }
907
- }).catch(() => {
908
- (0, import_toast.closeToast)();
909
- (0, import_toast.showFailToast)("\u4E0B\u8F7D\u5931\u8D25");
910
- });
911
- return;
909
+ if (props.showDownload) {
910
+ const url = media.url || (media.file ? URL.createObjectURL(media.file) : "");
911
+ try {
912
+ yield downloadFile({
913
+ url,
914
+ fileName: media.originalName || media.fileName,
915
+ index
916
+ });
917
+ } finally {
918
+ if (!media.url && url) {
919
+ URL.revokeObjectURL(url);
912
920
  }
913
921
  }
914
- } catch (e) {
915
- console.log(e.message);
922
+ } else {
923
+ (0, import_toast.showFailToast)("\u6682\u4E0D\u652F\u6301\u6B64\u7C7B\u6587\u4EF6\u7684\u9884\u89C8");
916
924
  }
917
- (0, import_toast.showFailToast)("\u6682\u4E0D\u652F\u6301\u6B64\u7C7B\u6587\u4EF6\u7684\u9884\u89C8");
918
925
  }
919
926
  });
920
927
  const renderMediaListPlaceholder = () => {
@@ -981,7 +988,16 @@ var stdin_default = (0, import_vue2.defineComponent)({
981
988
  "mediaType": mediaTypeToPlay.value,
982
989
  "mediaUrl": mediaUrlToPlay.value,
983
990
  "teleport": "body"
984
- }, props.mediaPlayerProps), null), (0, import_vue.createVNode)(import_action_sheet.default, {
991
+ }, props.mediaPlayerProps, {
992
+ "showDownload": props.showDownload,
993
+ "fileName": mediaFileNameToPlay.value,
994
+ "downloadAction": (params) => {
995
+ var _a, _b, _c;
996
+ return (_c = (_b = props.downloadAction || ((_a = props.mediaPlayerProps) == null ? void 0 : _a.downloadAction)) == null ? void 0 : _b(__spreadProps(__spreadValues({}, params), {
997
+ index: mediaIndexToPlay.value
998
+ }))) != null ? _c : false;
999
+ }
1000
+ }), null), (0, import_vue.createVNode)(import_action_sheet.default, {
985
1001
  "show": actionVisible.value,
986
1002
  "onUpdate:show": ($event) => actionVisible.value = $event,
987
1003
  "actions": actionOptions.value,
@@ -6,7 +6,7 @@ export declare const MediaPicker: import("../utils").WithInstall<import("vue").D
6
6
  disabled: BooleanConstructor;
7
7
  showTitle: BooleanConstructor;
8
8
  showDownload: BooleanConstructor;
9
- downloadAction: import("vue").PropType<(params: import("../image-preview/ImagePreview").DownloadActionParams) => boolean>;
9
+ downloadAction: import("vue").PropType<(params: import("..").DownloadActionParams) => boolean>;
10
10
  useFileNameAsLabel: BooleanConstructor;
11
11
  title: {
12
12
  type: import("vue").PropType<string>;
@@ -84,7 +84,7 @@ export declare const MediaPicker: import("../utils").WithInstall<import("vue").D
84
84
  disabled: BooleanConstructor;
85
85
  showTitle: BooleanConstructor;
86
86
  showDownload: BooleanConstructor;
87
- downloadAction: import("vue").PropType<(params: import("../image-preview/ImagePreview").DownloadActionParams) => boolean>;
87
+ downloadAction: import("vue").PropType<(params: import("..").DownloadActionParams) => boolean>;
88
88
  useFileNameAsLabel: BooleanConstructor;
89
89
  title: {
90
90
  type: import("vue").PropType<string>;
@@ -4,9 +4,11 @@ require("../../icon/index.css");
4
4
  require("../../image/index.css");
5
5
  require("../../overlay/index.css");
6
6
  require("../../popup/index.css");
7
- require("../../media-player/index.css");
8
7
  require("../../loading/index.css");
9
8
  require("../../toast/index.css");
9
+ require("../../button/index.css");
10
+ require("../../dialog/index.css");
11
+ require("../../media-player/index.css");
10
12
  require("../../action-sheet/index.css");
11
13
  require("../../swipe/index.css");
12
14
  require("../../swipe-item/index.css");
@@ -1,5 +1,6 @@
1
1
  import type { MediaType } from '../media-picker/type';
2
2
  import { ExtractPropTypes, PropType } from 'vue';
3
+ import type { DownloadActionParams } from '../composables/use-media-download';
3
4
  declare const mediaPlayerProps: {
4
5
  show: BooleanConstructor;
5
6
  mediaType: {
@@ -10,6 +11,12 @@ declare const mediaPlayerProps: {
10
11
  type: PropType<string>;
11
12
  default: string;
12
13
  };
14
+ fileName: {
15
+ type: PropType<string>;
16
+ default: string;
17
+ };
18
+ showDownload: BooleanConstructor;
19
+ downloadAction: PropType<(params: DownloadActionParams) => boolean>;
13
20
  /** 视频播放时的控件展示列表,参考:https://wicg.github.io/controls-list/explainer.html */
14
21
  controlsList: {
15
22
  type: PropType<string[]>;
@@ -28,6 +35,12 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
28
35
  type: PropType<string>;
29
36
  default: string;
30
37
  };
38
+ fileName: {
39
+ type: PropType<string>;
40
+ default: string;
41
+ };
42
+ showDownload: BooleanConstructor;
43
+ downloadAction: PropType<(params: DownloadActionParams) => boolean>;
31
44
  /** 视频播放时的控件展示列表,参考:https://wicg.github.io/controls-list/explainer.html */
32
45
  controlsList: {
33
46
  type: PropType<string[]>;
@@ -44,6 +57,12 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
44
57
  type: PropType<string>;
45
58
  default: string;
46
59
  };
60
+ fileName: {
61
+ type: PropType<string>;
62
+ default: string;
63
+ };
64
+ showDownload: BooleanConstructor;
65
+ downloadAction: PropType<(params: DownloadActionParams) => boolean>;
47
66
  /** 视频播放时的控件展示列表,参考:https://wicg.github.io/controls-list/explainer.html */
48
67
  controlsList: {
49
68
  type: PropType<string[]>;
@@ -55,7 +74,9 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
55
74
  }>, {
56
75
  show: boolean;
57
76
  controlsList: string[];
77
+ showDownload: boolean;
58
78
  mediaType: MediaType;
59
79
  mediaUrl: string;
80
+ fileName: string;
60
81
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
61
82
  export default _default;
@@ -34,10 +34,15 @@ var import_vue = require("vue");
34
34
  var import_utils = require("../utils");
35
35
  var import_vue2 = require("vue");
36
36
  var import_popup = __toESM(require("../popup"));
37
+ var import_icon = __toESM(require("../icon"));
38
+ var import_use_media_download = require("../composables/use-media-download");
37
39
  const mediaPlayerProps = {
38
40
  show: Boolean,
39
41
  mediaType: (0, import_utils.makeStringProp)("file"),
40
42
  mediaUrl: (0, import_utils.makeStringProp)(""),
43
+ fileName: (0, import_utils.makeStringProp)(""),
44
+ showDownload: Boolean,
45
+ downloadAction: Function,
41
46
  /** 视频播放时的控件展示列表,参考:https://wicg.github.io/controls-list/explainer.html */
42
47
  controlsList: (0, import_utils.makeArrayProp)([]),
43
48
  teleport: [String, Object]
@@ -52,6 +57,15 @@ var stdin_default = (0, import_vue2.defineComponent)({
52
57
  }) {
53
58
  const audioRef = (0, import_vue2.ref)();
54
59
  const videoRef = (0, import_vue2.ref)();
60
+ const {
61
+ downloading,
62
+ download
63
+ } = (0, import_use_media_download.useMediaDownload)(props);
64
+ const onDownload = () => download({
65
+ index: 0,
66
+ url: props.mediaUrl,
67
+ fileName: props.fileName
68
+ });
55
69
  const getMediaElement = () => {
56
70
  let player;
57
71
  if (props.mediaType === "audio") {
@@ -98,7 +112,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
98
112
  "src": props.mediaUrl,
99
113
  "ref": videoRef,
100
114
  "controls": true,
101
- "controlslist": props.controlsList.join(" "),
115
+ "controlslist": [.../* @__PURE__ */ new Set([...props.controlsList, "nodownload"])].join(" "),
102
116
  "autoplay": true,
103
117
  "id": "video",
104
118
  "webkit-playsinline": true,
@@ -134,7 +148,16 @@ var stdin_default = (0, import_vue2.defineComponent)({
134
148
  "type": "button",
135
149
  "class": bem("cancel-btn"),
136
150
  "onClick": onClose
137
- }, [(0, import_vue.createTextVNode)("\u5173\u95ED")])])]
151
+ }, [(0, import_vue.createTextVNode)("\u5173\u95ED")]), props.showDownload && props.mediaType === "video" && props.mediaUrl && !props.mediaUrl.startsWith("data:") && (0, import_vue.createVNode)("button", {
152
+ "type": "button",
153
+ "class": bem("download-btn"),
154
+ "aria-label": "\u4E0B\u8F7D\u89C6\u9891",
155
+ "disabled": downloading.value,
156
+ "onClick": onDownload
157
+ }, [(0, import_vue.createVNode)(import_icon.default, {
158
+ "name": "download",
159
+ "size": "24"
160
+ }, null)])])]
138
161
  });
139
162
  }
140
163
  });
@@ -1 +1 @@
1
- .zt-media-player{background-color:var(--zt-background);font-size:0}.zt-media-player__video{width:100%;height:400px;max-height:70%;background-color:rgba(0,0,0,.8)}.zt-media-player__audio{width:100%}.zt-media-player__cancel{padding:8px 16px;color:var(--zt-text-color)}.zt-media-player__cancel-btn{width:100%;border:none;cursor:pointer;background-color:var(--zt-gray-a04);border-radius:20px;height:44px;font-size:var(--zt-font-size-lg);color:var(--zt-text-color);line-height:var(--zt-line-height-lg)}.zt-media-player__cancel-btn:active{opacity:var(--zt-active-opacity)}
1
+ .zt-media-player{background-color:var(--zt-background);font-size:0}.zt-media-player__video{width:100%;height:400px;max-height:70%;background-color:rgba(0,0,0,.8)}.zt-media-player__audio{width:100%}.zt-media-player__cancel{display:flex;align-items:center;gap:12px;padding:8px 16px;color:var(--zt-text-color)}.zt-media-player__download-btn{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:0;border:none;border-radius:20px;background-color:var(--zt-gray-a04);color:var(--zt-text-color);cursor:pointer}.zt-media-player__download-btn:active{opacity:var(--zt-active-opacity)}.zt-media-player__cancel-btn{flex:1;min-width:0;width:100%;border:none;cursor:pointer;background-color:var(--zt-gray-a04);border-radius:20px;height:44px;font-size:var(--zt-font-size-lg);color:var(--zt-text-color);line-height:var(--zt-line-height-lg)}.zt-media-player__cancel-btn:active{opacity:var(--zt-active-opacity)}
@@ -8,6 +8,12 @@ export declare const MediaPlayer: import("../utils").WithInstall<import("vue").D
8
8
  type: import("vue").PropType<string>;
9
9
  default: string;
10
10
  };
11
+ fileName: {
12
+ type: import("vue").PropType<string>;
13
+ default: string;
14
+ };
15
+ showDownload: BooleanConstructor;
16
+ downloadAction: import("vue").PropType<(params: import("..").DownloadActionParams) => boolean>;
11
17
  controlsList: {
12
18
  type: import("vue").PropType<string[]>;
13
19
  default: () => string[];
@@ -23,6 +29,12 @@ export declare const MediaPlayer: import("../utils").WithInstall<import("vue").D
23
29
  type: import("vue").PropType<string>;
24
30
  default: string;
25
31
  };
32
+ fileName: {
33
+ type: import("vue").PropType<string>;
34
+ default: string;
35
+ };
36
+ showDownload: BooleanConstructor;
37
+ downloadAction: import("vue").PropType<(params: import("..").DownloadActionParams) => boolean>;
26
38
  controlsList: {
27
39
  type: import("vue").PropType<string[]>;
28
40
  default: () => string[];
@@ -33,8 +45,10 @@ export declare const MediaPlayer: import("../utils").WithInstall<import("vue").D
33
45
  }>, {
34
46
  show: boolean;
35
47
  controlsList: string[];
48
+ showDownload: boolean;
36
49
  mediaType: import("..").MediaType;
37
50
  mediaUrl: string;
51
+ fileName: string;
38
52
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
39
53
  export default MediaPlayer;
40
54
  export type { MediaPlayerProps } from './MediaPlayer';
@@ -3,4 +3,8 @@ require("../../badge/index.css");
3
3
  require("../../icon/index.css");
4
4
  require("../../overlay/index.css");
5
5
  require("../../popup/index.css");
6
+ require("../../loading/index.css");
7
+ require("../../toast/index.css");
8
+ require("../../button/index.css");
9
+ require("../../dialog/index.css");
6
10
  require("../index.css");
@@ -2,7 +2,7 @@ export declare const PhotoPicker: import("../utils").WithInstall<import("vue").D
2
2
  disabled: BooleanConstructor;
3
3
  showTitle: BooleanConstructor;
4
4
  showDownload: BooleanConstructor;
5
- downloadAction: import("vue").PropType<(params: import("../image-preview/ImagePreview").DownloadActionParams) => boolean>;
5
+ downloadAction: import("vue").PropType<(params: import("..").DownloadActionParams) => boolean>;
6
6
  useFileNameAsLabel: BooleanConstructor;
7
7
  title: {
8
8
  type: import("vue").PropType<string>;
@@ -59,7 +59,7 @@ export declare const PhotoPicker: import("../utils").WithInstall<import("vue").D
59
59
  disabled: BooleanConstructor;
60
60
  showTitle: BooleanConstructor;
61
61
  showDownload: BooleanConstructor;
62
- downloadAction: import("vue").PropType<(params: import("../image-preview/ImagePreview").DownloadActionParams) => boolean>;
62
+ downloadAction: import("vue").PropType<(params: import("..").DownloadActionParams) => boolean>;
63
63
  useFileNameAsLabel: BooleanConstructor;
64
64
  title: {
65
65
  type: import("vue").PropType<string>;
@@ -6,6 +6,8 @@ require("../../overlay/index.css");
6
6
  require("../../popup/index.css");
7
7
  require("../../loading/index.css");
8
8
  require("../../toast/index.css");
9
+ require("../../button/index.css");
10
+ require("../../dialog/index.css");
9
11
  require("../../action-sheet/index.css");
10
12
  require("../../swipe/index.css");
11
13
  require("../../swipe-item/index.css");
@@ -6,6 +6,8 @@ require("../../overlay/index.css");
6
6
  require("../../popup/index.css");
7
7
  require("../../loading/index.css");
8
8
  require("../../toast/index.css");
9
+ require("../../button/index.css");
10
+ require("../../dialog/index.css");
9
11
  require("../../swipe/index.css");
10
12
  require("../../swipe-item/index.css");
11
13
  require("../../image-preview/index.css");