This commit is contained in:
2026-08-03 17:44:42 +08:00
parent 64d051153d
commit 0260b9bb41
14 changed files with 216 additions and 78 deletions
+12 -2
View File
@@ -35,7 +35,12 @@ const groupId = computed(() => `client-nav-group-${props.node.key}`)
:aria-controls="groupId"
@click="emit('toggle', node.key)"
>
<component v-if="!level" :is="node.icon" :size="20" />
<component
:is="node.icon"
class="client-sidebar-node-icon"
:size="level ? 16 : 20"
aria-hidden="true"
/>
<span>{{ node.title }}</span>
<ChevronDown class="client-sidebar-group-chevron" :size="16" aria-hidden="true" />
</button>
@@ -66,7 +71,12 @@ const groupId = computed(() => `client-nav-group-${props.node.key}`)
:aria-current="node.path === activePath ? 'page' : undefined"
@click="emit('navigate', node.path)"
>
<component v-if="!level" :is="node.icon" :size="20" />
<component
:is="node.icon"
class="client-sidebar-node-icon"
:size="level ? 16 : 20"
aria-hidden="true"
/>
<span>{{ node.title }}</span>
</RouterLink>
</li>