zartui 3.1.72 → 3.1.73
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 +94 -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 +1 -0
- 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 +94 -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 +1 -0
- 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 +105 -7
- package/lib/zartui.es.js +105 -7
- package/lib/zartui.js +4297 -2893
- package/lib/zartui.min.js +2 -2
- package/package.json +7 -7
|
@@ -26,6 +26,8 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
|
26
26
|
type: BooleanConstructor;
|
|
27
27
|
default: true;
|
|
28
28
|
};
|
|
29
|
+
showDownload: BooleanConstructor;
|
|
30
|
+
downloadAction: import("vue").PropType<(params: import("./ImagePreview").DownloadActionParams) => boolean | void>;
|
|
29
31
|
className: import("vue").PropType<unknown>;
|
|
30
32
|
closeIcon: {
|
|
31
33
|
type: import("vue").PropType<string>;
|
|
@@ -57,7 +59,7 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
|
57
59
|
default: import("..").PopupCloseIconPosition;
|
|
58
60
|
};
|
|
59
61
|
teleport: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
|
60
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "closed" | "update:show" | "scale" | "longPress")[], "change" | "close" | "closed" | "update:show" | "scale" | "longPress", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("download" | "change" | "close" | "closed" | "update:show" | "scale" | "longPress")[], "download" | "change" | "close" | "closed" | "update:show" | "scale" | "longPress", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
61
63
|
show: BooleanConstructor;
|
|
62
64
|
loop: {
|
|
63
65
|
type: BooleanConstructor;
|
|
@@ -84,6 +86,8 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
|
84
86
|
type: BooleanConstructor;
|
|
85
87
|
default: true;
|
|
86
88
|
};
|
|
89
|
+
showDownload: BooleanConstructor;
|
|
90
|
+
downloadAction: import("vue").PropType<(params: import("./ImagePreview").DownloadActionParams) => boolean | void>;
|
|
87
91
|
className: import("vue").PropType<unknown>;
|
|
88
92
|
closeIcon: {
|
|
89
93
|
type: import("vue").PropType<string>;
|
|
@@ -122,6 +126,7 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
|
122
126
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
123
127
|
onScale?: ((...args: any[]) => any) | undefined;
|
|
124
128
|
onLongPress?: ((...args: any[]) => any) | undefined;
|
|
129
|
+
onDownload?: ((...args: any[]) => any) | undefined;
|
|
125
130
|
}>, {
|
|
126
131
|
loop: boolean;
|
|
127
132
|
overlay: boolean;
|
|
@@ -137,6 +142,7 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
|
137
142
|
maxZoom: string | number;
|
|
138
143
|
images: import("./types").ImageItem[];
|
|
139
144
|
showIndex: boolean;
|
|
145
|
+
showDownload: boolean;
|
|
140
146
|
startPosition: string | number;
|
|
141
147
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
142
148
|
export default ImagePreview;
|
|
@@ -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("../index.css");
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var stdin_exports = {};
|
|
19
|
+
__export(stdin_exports, {
|
|
20
|
+
Download: () => Download
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(stdin_exports);
|
|
23
|
+
var import_vue = require("vue");
|
|
24
|
+
const Download = (bem) => (0, import_vue.createVNode)("svg", {
|
|
25
|
+
"class": bem("svg-download-icon"),
|
|
26
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
27
|
+
"viewBox": "0 0 20 20"
|
|
28
|
+
}, [(0, import_vue.createVNode)("path", {
|
|
29
|
+
"d": "M3.75,17.5 C3.28976271,17.5 2.91666667,17.126904 2.91666667,16.6666667 L2.91666667,12.5 C2.91666667,12.0397627 3.28976271,11.6666667 3.75,11.6666667 C4.21023729,11.6666667 4.58333333,12.0397627 4.58333333,12.5 L4.58266667,15.833 L15.4166667,15.833 L15.4166667,12.5 C15.4166667,12.0397627 15.7897627,11.6666667 16.25,11.6666667 C16.7102373,11.6666667 17.0833333,12.0397627 17.0833333,12.5 L17.0833333,16.6666667 C17.0833333,17.0915011 16.765429,17.442085 16.3545316,17.4935072 L16.25,17.5 L3.75,17.5 Z M10,2.5 C10.4602373,2.5 10.8333333,2.87309604 10.8333333,3.33333333 L10.834,10.904 L12.327411,9.41074435 L12.3804172,9.36206404 C12.7078286,9.08620893 13.1976137,9.1024357 13.5059223,9.41074435 C13.8313592,9.73618126 13.8313592,10.2638187 13.5059223,10.5892557 L10.5892557,13.5059223 L10.5659501,13.5283458 C10.5602582,13.5336148 10.5544926,13.5388053 10.548655,13.5439156 L10.5362495,13.5546026 L10.5121742,13.5740743 C10.4949132,13.5875412 10.4771081,13.6003432 10.4586783,13.6126074 C10.4455853,13.6212563 10.4323019,13.6294968 10.4192578,13.6370097 C10.4029078,13.6465464 10.3862038,13.6555423 10.3690405,13.664083 C10.3522054,13.6723976 10.3351478,13.6801087 10.3177097,13.6872958 C10.3045293,13.6927357 10.2911788,13.6978473 10.2777746,13.7025471 C10.2584813,13.7093513 10.2389875,13.7154237 10.2194971,13.7207897 C10.2011918,13.7257748 10.1826357,13.7301514 10.1634324,13.7339067 L10.1207556,13.7413147 C10.0813306,13.7470375 10.0410112,13.75 10,13.75 L10.0566667,13.747 L10.0399512,13.7490477 L9.96132783,13.7491078 C9.94161389,13.7481976 9.92192612,13.746591 9.89546844,13.7435072 C9.79274407,13.7306516 9.69583178,13.6990985 9.6082458,13.6523619 L9.59484365,13.6451239 C9.58442452,13.639322 9.57410342,13.6332795 9.56375825,13.6268308 C9.54437371,13.6148978 9.52551484,13.6021934 9.50686916,13.5885746 L9.48480346,13.5717051 L9.41074435,13.5059223 L6.49407768,10.5892557 L6.44539737,10.5362495 C6.16954226,10.2088381 6.18576903,9.719053 6.49407768,9.41074435 L6.54708384,9.36206404 C6.87449527,9.08620893 7.36428033,9.1024357 7.67258898,9.41074435 L9.167,10.905 L9.16666667,3.33333333 C9.16666667,2.87309604 9.53976271,2.5 10,2.5 Z",
|
|
30
|
+
"fill": "#FFF",
|
|
31
|
+
"fill-rule": "nonzero"
|
|
32
|
+
}, null)]);
|