@comercti/vue-components-hmg 0.23.15 → 0.23.16
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/comerc-style-guide.cjs.js +1 -1
- package/comerc-style-guide.es.js +3 -3
- package/comerc-style-guide.umd.js +1 -1
- package/index.d.ts +1 -0
- package/package.json +1 -1
package/comerc-style-guide.es.js
CHANGED
|
@@ -7833,8 +7833,8 @@ const Wu = /* @__PURE__ */ X({
|
|
|
7833
7833
|
Ft(() => {
|
|
7834
7834
|
e.allOpen ? a.value = e.items.map(() => !0) : e.openTheFirst ? a.value = e.items.map((m, g) => g === 0) : a.value = e.items.map(() => !1), e.closeCollapse && (a.value[e.closeCollapse] = !1);
|
|
7835
7835
|
});
|
|
7836
|
-
const o = (m) => {
|
|
7837
|
-
a.value[m] = !a.value[m], n.value.some((
|
|
7836
|
+
const o = (m, g) => {
|
|
7837
|
+
a.value[m] = !a.value[m], n.value.some((h) => h.index === m) ? n.value = n.value.filter((h) => h.index !== m) : n.value.push({ index: m, value: a.value[m], item: g }), t("toggle-collapse", n.value);
|
|
7838
7838
|
}, l = (m) => a.value[m], u = U(() => {
|
|
7839
7839
|
if (e.variant === "accordion" && e.direction === "column")
|
|
7840
7840
|
return "flex flex-col";
|
|
@@ -7898,7 +7898,7 @@ const Wu = /* @__PURE__ */ X({
|
|
|
7898
7898
|
s("div", tu, [
|
|
7899
7899
|
N(g.$slots, "header", { item: k }),
|
|
7900
7900
|
s("button", {
|
|
7901
|
-
onClick: (y) => r(l)(v),
|
|
7901
|
+
onClick: (y) => r(l)(v, k),
|
|
7902
7902
|
class: "text-left focus:outline-none",
|
|
7903
7903
|
type: "button"
|
|
7904
7904
|
}, [
|