优化
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user