easycomponentstools 1.1.35 → 1.1.36
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.
|
@@ -5695,26 +5695,30 @@ var pp = /* @__PURE__ */ f({
|
|
|
5695
5695
|
}
|
|
5696
5696
|
}), hp = /* @__PURE__ */ f({
|
|
5697
5697
|
__name: "Gallery",
|
|
5698
|
-
props: {
|
|
5698
|
+
props: {
|
|
5699
|
+
media: {},
|
|
5700
|
+
deleteBtn: { type: Boolean }
|
|
5701
|
+
},
|
|
5699
5702
|
emits: ["onDelete"],
|
|
5700
5703
|
setup(e, { emit: t }) {
|
|
5701
5704
|
let r = va(), i = t;
|
|
5702
|
-
return (t,
|
|
5703
|
-
let
|
|
5705
|
+
return (t, c) => {
|
|
5706
|
+
let l = M("v-btn"), d = M("v-carousel-item"), f = M("v-carousel");
|
|
5704
5707
|
return O(), a(f, null, {
|
|
5705
|
-
default: V(() => [(O(!0), s(n, null, A(e.media, (
|
|
5706
|
-
key:
|
|
5707
|
-
src:
|
|
5708
|
+
default: V(() => [(O(!0), s(n, null, A(e.media, (t, n) => (O(), a(d, {
|
|
5709
|
+
key: n,
|
|
5710
|
+
src: t.src
|
|
5708
5711
|
}, {
|
|
5709
|
-
default: V(() => [
|
|
5712
|
+
default: V(() => [e.deleteBtn ? (O(), a(l, {
|
|
5713
|
+
key: 0,
|
|
5710
5714
|
class: "delete_btn",
|
|
5711
5715
|
color: "error",
|
|
5712
5716
|
variant: "flat",
|
|
5713
|
-
onClick: (
|
|
5717
|
+
onClick: (e) => i("onDelete", t.id)
|
|
5714
5718
|
}, {
|
|
5715
5719
|
default: V(() => [u(F(L(r).t("form.delete")), 1)]),
|
|
5716
5720
|
_: 1
|
|
5717
|
-
}, 8, ["onClick"])]),
|
|
5721
|
+
}, 8, ["onClick"])) : o("", !0)]),
|
|
5718
5722
|
_: 2
|
|
5719
5723
|
}, 1032, ["src"]))), 128))]),
|
|
5720
5724
|
_: 1
|
|
@@ -5755,10 +5759,15 @@ var pp = /* @__PURE__ */ f({
|
|
|
5755
5759
|
key: 0,
|
|
5756
5760
|
id: e.input.key,
|
|
5757
5761
|
ref: e.input.key,
|
|
5762
|
+
"delete-btn": typeof e.input.onDelete == "function",
|
|
5758
5763
|
media: t.value,
|
|
5759
5764
|
eager: "",
|
|
5760
5765
|
onOnDelete: s[0] ||= (t) => typeof e.input.onDelete == "function" ? e.input.onDelete(t) : null
|
|
5761
|
-
}, null, 8, [
|
|
5766
|
+
}, null, 8, [
|
|
5767
|
+
"id",
|
|
5768
|
+
"delete-btn",
|
|
5769
|
+
"media"
|
|
5770
|
+
])) : o("", !0)]),
|
|
5762
5771
|
_: 1
|
|
5763
5772
|
})) : o("", !0), d(f, {
|
|
5764
5773
|
cols: "12",
|