sprof 0.0.178 → 0.0.179
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as FileInfo } from '../classes/FileInfo';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
3
|
-
|
|
4
|
-
type: globalThis.PropType<
|
|
3
|
+
images: {
|
|
4
|
+
type: globalThis.PropType<FileInfo[]>;
|
|
5
5
|
reguired: boolean;
|
|
6
6
|
default: () => never[];
|
|
7
7
|
};
|
|
@@ -24,8 +24,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
24
24
|
ratio: (...args: any[]) => void;
|
|
25
25
|
remove: (...args: any[]) => void;
|
|
26
26
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
27
|
-
|
|
28
|
-
type: globalThis.PropType<
|
|
27
|
+
images: {
|
|
28
|
+
type: globalThis.PropType<FileInfo[]>;
|
|
29
29
|
reguired: boolean;
|
|
30
30
|
default: () => never[];
|
|
31
31
|
};
|
|
@@ -48,7 +48,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
48
48
|
onRatio?: ((...args: any[]) => any) | undefined;
|
|
49
49
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
50
50
|
}>, {
|
|
51
|
-
|
|
51
|
+
images: FileInfo[];
|
|
52
52
|
fileListForDelete: string[];
|
|
53
53
|
defaultRatio: number;
|
|
54
54
|
upload: boolean;
|
package/dist/sprof.js
CHANGED
|
@@ -1642,6 +1642,9 @@ class Fe {
|
|
|
1642
1642
|
a(this, "id");
|
|
1643
1643
|
a(this, "originalName", "");
|
|
1644
1644
|
a(this, "fileSystemPath", "");
|
|
1645
|
+
a(this, "itemId");
|
|
1646
|
+
a(this, "description", "");
|
|
1647
|
+
a(this, "order", 0);
|
|
1645
1648
|
L.BuildClass(this, e);
|
|
1646
1649
|
}
|
|
1647
1650
|
getFileUrl() {
|
|
@@ -7900,7 +7903,7 @@ const wv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7900
7903
|
}), oa = /* @__PURE__ */ A(dg, [["__scopeId", "data-v-a7d519dd"]]), hg = { class: "item" }, fg = { class: "move" }, mg = { class: "item-tools" }, gg = ["onClick"], pg = { class: "item-description" }, vg = ["onUpdate:modelValue"], yg = /* @__PURE__ */ $({
|
|
7901
7904
|
__name: "AdminGallery",
|
|
7902
7905
|
props: {
|
|
7903
|
-
|
|
7906
|
+
images: {
|
|
7904
7907
|
type: Array,
|
|
7905
7908
|
reguired: !0,
|
|
7906
7909
|
default: () => []
|
|
@@ -7925,17 +7928,17 @@ const wv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7925
7928
|
const i = t, n = e, s = async (o) => {
|
|
7926
7929
|
n("addImage", o);
|
|
7927
7930
|
}, r = async (o) => {
|
|
7928
|
-
L.RemoveFromClassById(o.id, i.
|
|
7931
|
+
L.RemoveFromClassById(o.id, i.images, []), n("remove", o);
|
|
7929
7932
|
};
|
|
7930
7933
|
return (o, u) => {
|
|
7931
7934
|
const l = z("UploderImage"), c = z("draggable"), d = z("Move");
|
|
7932
7935
|
return g(), w(G, null, [
|
|
7933
7936
|
R(c, {
|
|
7934
7937
|
class: "groups",
|
|
7935
|
-
list: t.
|
|
7938
|
+
list: t.images,
|
|
7936
7939
|
"item-key": "id",
|
|
7937
7940
|
handle: ".move",
|
|
7938
|
-
onEnd: u[0] || (u[0] = (h) => p(rt).Sort(t.
|
|
7941
|
+
onEnd: u[0] || (u[0] = (h) => p(rt).Sort(t.images))
|
|
7939
7942
|
}, {
|
|
7940
7943
|
item: _(({ element: h, index: m }) => [
|
|
7941
7944
|
f("div", hg, [
|
|
@@ -7953,7 +7956,7 @@ const wv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7953
7956
|
"file-info": h,
|
|
7954
7957
|
height: 150,
|
|
7955
7958
|
"default-ratio": t.defaultRatio,
|
|
7956
|
-
onRemoveFile: (v) => p(L).RemoveFromClassByIndex(m, t.
|
|
7959
|
+
onRemoveFile: (v) => p(L).RemoveFromClassByIndex(m, t.images),
|
|
7957
7960
|
onCrop: (v) => s(h)
|
|
7958
7961
|
}, null, 8, ["file-info", "default-ratio", "onRemoveFile", "onCrop"])
|
|
7959
7962
|
]),
|
|
@@ -7974,7 +7977,7 @@ const wv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7974
7977
|
], 64);
|
|
7975
7978
|
};
|
|
7976
7979
|
}
|
|
7977
|
-
}), aa = /* @__PURE__ */ A(yg, [["__scopeId", "data-v-
|
|
7980
|
+
}), aa = /* @__PURE__ */ A(yg, [["__scopeId", "data-v-60c3dae9"]]), wg = /* @__PURE__ */ $({
|
|
7978
7981
|
__name: "GridContainer",
|
|
7979
7982
|
props: {
|
|
7980
7983
|
maxWidth: {
|