zartui 3.1.72 → 3.1.74
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/es/image-preview/ImagePreview.d.ts +14 -1
- package/es/image-preview/ImagePreview.mjs +82 -5
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.d.ts +7 -1
- package/es/image-preview/style/index.mjs +1 -0
- package/es/image-preview/svg/Download.d.ts +2 -0
- package/es/image-preview/svg/Download.mjs +13 -0
- package/es/image-preview/types.d.ts +3 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/media-picker/MediaPicker.d.ts +4 -0
- package/es/media-picker/MediaPicker.mjs +2 -0
- package/es/media-picker/index.d.ts +3 -0
- package/es/uploader/style/index.mjs +1 -0
- package/lib/image-preview/ImagePreview.d.ts +14 -1
- package/lib/image-preview/ImagePreview.js +82 -5
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.d.ts +7 -1
- package/lib/image-preview/style/index.js +1 -0
- package/lib/image-preview/svg/Download.d.ts +2 -0
- package/lib/image-preview/svg/Download.js +32 -0
- package/lib/image-preview/types.d.ts +3 -1
- package/lib/{index-8bc782d2.mjs → index-096e2873.mjs} +4220 -2916
- package/lib/{index-d66aaef4.js → index-bb5638a0.js} +4219 -2916
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/media-picker/MediaPicker.d.ts +4 -0
- package/lib/media-picker/MediaPicker.js +2 -0
- package/lib/media-picker/index.d.ts +3 -0
- package/lib/uploader/style/index.js +1 -0
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +93 -7
- package/lib/zartui.es.js +93 -7
- package/lib/zartui.js +4287 -2895
- package/lib/zartui.min.js +2 -2
- package/package.json +8 -8
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -182,7 +182,7 @@ __reExport(stdin_exports, require("./timeline"), module.exports);
|
|
|
182
182
|
__reExport(stdin_exports, require("./toast"), module.exports);
|
|
183
183
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
|
184
184
|
__reExport(stdin_exports, require("./video"), module.exports);
|
|
185
|
-
const version = "3.1.
|
|
185
|
+
const version = "3.1.74";
|
|
186
186
|
function install(app) {
|
|
187
187
|
const components = [
|
|
188
188
|
import_action_sheet.ActionSheet,
|
|
@@ -8,6 +8,7 @@ declare const mediaPickerProps: {
|
|
|
8
8
|
};
|
|
9
9
|
disabled: BooleanConstructor;
|
|
10
10
|
showTitle: BooleanConstructor;
|
|
11
|
+
showDownload: BooleanConstructor;
|
|
11
12
|
useFileNameAsLabel: BooleanConstructor;
|
|
12
13
|
title: {
|
|
13
14
|
type: PropType<string>;
|
|
@@ -95,6 +96,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
95
96
|
};
|
|
96
97
|
disabled: BooleanConstructor;
|
|
97
98
|
showTitle: BooleanConstructor;
|
|
99
|
+
showDownload: BooleanConstructor;
|
|
98
100
|
useFileNameAsLabel: BooleanConstructor;
|
|
99
101
|
title: {
|
|
100
102
|
type: PropType<string>;
|
|
@@ -177,6 +179,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
177
179
|
};
|
|
178
180
|
disabled: BooleanConstructor;
|
|
179
181
|
showTitle: BooleanConstructor;
|
|
182
|
+
showDownload: BooleanConstructor;
|
|
180
183
|
useFileNameAsLabel: BooleanConstructor;
|
|
181
184
|
title: {
|
|
182
185
|
type: PropType<string>;
|
|
@@ -260,6 +263,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
260
263
|
title: string;
|
|
261
264
|
disabled: boolean;
|
|
262
265
|
showTitle: boolean;
|
|
266
|
+
showDownload: boolean;
|
|
263
267
|
sortable: boolean;
|
|
264
268
|
useFileNameAsLabel: boolean;
|
|
265
269
|
mediaList: Media[];
|
|
@@ -86,6 +86,7 @@ const mediaPickerProps = {
|
|
|
86
86
|
},
|
|
87
87
|
disabled: Boolean,
|
|
88
88
|
showTitle: Boolean,
|
|
89
|
+
showDownload: Boolean,
|
|
89
90
|
useFileNameAsLabel: Boolean,
|
|
90
91
|
title: (0, import_utils.makeStringProp)("\u6DFB\u52A0\u9644\u4EF6"),
|
|
91
92
|
mediaList: (0, import_utils.makeArrayProp)(),
|
|
@@ -776,6 +777,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
|
776
777
|
images: imageList.value.map((image) => ({
|
|
777
778
|
url: image.url || image.showSrc || ""
|
|
778
779
|
})),
|
|
780
|
+
showDownload: props.showDownload,
|
|
779
781
|
startPosition: imageIndex,
|
|
780
782
|
closeable: true
|
|
781
783
|
});
|
|
@@ -5,6 +5,7 @@ export declare const MediaPicker: import("../utils").WithInstall<import("vue").D
|
|
|
5
5
|
};
|
|
6
6
|
disabled: BooleanConstructor;
|
|
7
7
|
showTitle: BooleanConstructor;
|
|
8
|
+
showDownload: BooleanConstructor;
|
|
8
9
|
useFileNameAsLabel: BooleanConstructor;
|
|
9
10
|
title: {
|
|
10
11
|
type: import("vue").PropType<string>;
|
|
@@ -77,6 +78,7 @@ export declare const MediaPicker: import("../utils").WithInstall<import("vue").D
|
|
|
77
78
|
};
|
|
78
79
|
disabled: BooleanConstructor;
|
|
79
80
|
showTitle: BooleanConstructor;
|
|
81
|
+
showDownload: BooleanConstructor;
|
|
80
82
|
useFileNameAsLabel: BooleanConstructor;
|
|
81
83
|
title: {
|
|
82
84
|
type: import("vue").PropType<string>;
|
|
@@ -150,6 +152,7 @@ export declare const MediaPicker: import("../utils").WithInstall<import("vue").D
|
|
|
150
152
|
title: string;
|
|
151
153
|
disabled: boolean;
|
|
152
154
|
showTitle: boolean;
|
|
155
|
+
showDownload: boolean;
|
|
153
156
|
sortable: boolean;
|
|
154
157
|
useFileNameAsLabel: boolean;
|
|
155
158
|
mediaList: import("./type").Media[];
|
|
@@ -5,6 +5,7 @@ require("../../image/index.css");
|
|
|
5
5
|
require("../../overlay/index.css");
|
|
6
6
|
require("../../popup/index.css");
|
|
7
7
|
require("../../loading/index.css");
|
|
8
|
+
require("../../toast/index.css");
|
|
8
9
|
require("../../swipe/index.css");
|
|
9
10
|
require("../../swipe-item/index.css");
|
|
10
11
|
require("../../image-preview/index.css");
|