@hunter-industries/hunter-components 0.0.92 → 0.0.94
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/dist/hunter-components.js +4 -2
- package/dist/hunter-components.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +59 -59
|
@@ -3678,16 +3678,18 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3678
3678
|
return;
|
|
3679
3679
|
nuxtLinks.value = nuxtLinkContainer == null ? void 0 : nuxtLinkContainer.value.querySelectorAll("a");
|
|
3680
3680
|
nuxtLinks.value.forEach((el) => {
|
|
3681
|
+
var _a;
|
|
3681
3682
|
const { pathname } = new URL(el.href);
|
|
3682
|
-
pathname === currentRoute.value.route ? el.classList.add("nav-link-active") : el.classList.add("link-inactive");
|
|
3683
|
+
pathname === ((_a = currentRoute == null ? void 0 : currentRoute.value) == null ? void 0 : _a.route) ? el.classList.add("nav-link-active") : el.classList.add("link-inactive");
|
|
3683
3684
|
});
|
|
3684
3685
|
});
|
|
3685
3686
|
watch(currentRoute, () => {
|
|
3686
3687
|
if (!nuxtLinkContainer.value)
|
|
3687
3688
|
return;
|
|
3688
3689
|
nuxtLinks.value && nuxtLinks.value.forEach((el) => {
|
|
3690
|
+
var _a;
|
|
3689
3691
|
const { pathname } = new URL(el.href);
|
|
3690
|
-
if (pathname === currentRoute.value.route) {
|
|
3692
|
+
if (pathname === ((_a = currentRoute.value) == null ? void 0 : _a.route)) {
|
|
3691
3693
|
el.classList.remove("link-inactive");
|
|
3692
3694
|
el.classList.add("nav-link-active");
|
|
3693
3695
|
} else {
|