comand-component-library 4.2.45 → 4.2.46
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.
@@ -10549,8 +10549,7 @@ const Ji = /* @__PURE__ */ F(cp, [["render", Tp]]), Sp = {
|
|
10549
10549
|
},
|
10550
10550
|
methods: {
|
10551
10551
|
activeLinkClass(e, t) {
|
10552
|
-
|
10553
|
-
return e === "router" ? "router-link-exact-active" : "active";
|
10552
|
+
return this.activeLink === t && e !== "router" ? "active" : "";
|
10554
10553
|
},
|
10555
10554
|
clickedStep(e, t) {
|
10556
10555
|
this.activeLink = t, this.$emit("click", { event: e, index: t, stepPath: this.multisteps[t].path });
|
@@ -10571,7 +10570,7 @@ function Lp(e, t, n, s, i, l) {
|
|
10571
10570
|
(a(!0), r(_, null, q(n.multisteps, (c, g) => (a(), r("li", { key: g }, [
|
10572
10571
|
p(u, {
|
10573
10572
|
linkType: c.linkType,
|
10574
|
-
class: C(["stretch-on-small-devices", l.activeLinkClass(c.
|
10573
|
+
class: C(["stretch-on-small-devices", l.activeLinkClass(c.linkType, g)]),
|
10575
10574
|
styleAsButton: n.usePrimaryButtons,
|
10576
10575
|
primaryButton: n.usePrimaryButtons,
|
10577
10576
|
path: c.path,
|
@@ -20697,7 +20696,7 @@ const Ox = /* @__PURE__ */ F(Sx, [["render", _x]]), Lx = [
|
|
20697
20696
|
text: "Zimbabwe",
|
20698
20697
|
value: "zw"
|
20699
20698
|
}
|
20700
|
-
], jC = "comand-component-library", NC = "4.2.
|
20699
|
+
], jC = "comand-component-library", NC = "4.2.46", UC = "GPL-3.0-only", zC = "CoManD-UI", WC = "module", GC = {
|
20701
20700
|
prepublishOnly: "npm run build-lib",
|
20702
20701
|
dev: "vite",
|
20703
20702
|
build: "vite build",
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<!-- begin CmdLink -->
|
5
5
|
<CmdLink
|
6
6
|
:linkType="step.linkType"
|
7
|
-
:class="['stretch-on-small-devices', activeLinkClass(step.
|
7
|
+
:class="['stretch-on-small-devices', activeLinkClass(step.linkType, index)]"
|
8
8
|
:styleAsButton="usePrimaryButtons"
|
9
9
|
:primaryButton="usePrimaryButtons"
|
10
10
|
:path="step.path"
|
@@ -82,12 +82,11 @@ export default {
|
|
82
82
|
methods: {
|
83
83
|
activeLinkClass(linkType, index) {
|
84
84
|
if(this.activeLink === index) {
|
85
|
-
if(linkType
|
86
|
-
return "router-link-exact-active"
|
87
|
-
} else {
|
85
|
+
if(linkType !== "router") {
|
88
86
|
return "active"
|
89
87
|
}
|
90
88
|
}
|
89
|
+
return ""
|
91
90
|
},
|
92
91
|
clickedStep(event, index) {
|
93
92
|
this.activeLink = index;
|