From a6c22052e1c70e4ce6b2c7f783667a7f8c6cafa4 Mon Sep 17 00:00:00 2001 From: Sandro Circi Date: Wed, 27 Nov 2024 14:27:47 +0100 Subject: [PATCH] fix(Link): partial query match for Vue (#2787) --- src/runtime/vue/components/Link.vue | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/runtime/vue/components/Link.vue b/src/runtime/vue/components/Link.vue index f383b0f5..335732c1 100644 --- a/src/runtime/vue/components/Link.vue +++ b/src/runtime/vue/components/Link.vue @@ -73,7 +73,7 @@ export interface LinkProps extends NuxtLinkProps { /** Will only be active if the current route is an exact match. */ exact?: boolean /** Will only be active if the current route query is an exact match. */ - exactQuery?: boolean + exactQuery?: boolean | 'partial' /** Will only be active if the current route hash is an exact match. */ exactHash?: boolean /** The class to apply when the link is inactive. */ @@ -91,7 +91,7 @@ export interface LinkSlots {