Added Highlighting for Accordions
This commit is contained in:
@@ -268,7 +268,7 @@ const links = computed(() => {
|
|||||||
<template #default="{item,index,open}">
|
<template #default="{item,index,open}">
|
||||||
<UButton
|
<UButton
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
color="gray"
|
:color="item.children.find(i => route.path.includes(i.to)) ? 'primary' : 'gray'"
|
||||||
:icon="item.icon"
|
:icon="item.icon"
|
||||||
>
|
>
|
||||||
{{item.label}}
|
{{item.label}}
|
||||||
|
|||||||
Reference in New Issue
Block a user