优化
This commit is contained in:
@@ -22,7 +22,10 @@ const groupId = computed(() => `client-nav-group-${props.node.key}`)
|
||||
<li
|
||||
class="client-nav-node"
|
||||
v-if="node.children"
|
||||
:class="{ 'is-active-parent': activeParentKeys.has(node.key) }"
|
||||
:class="{
|
||||
'has-divider-before': node.dividerBefore,
|
||||
'is-active-parent': activeParentKeys.has(node.key),
|
||||
}"
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
@@ -54,7 +57,7 @@ const groupId = computed(() => `client-nav-group-${props.node.key}`)
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li v-else class="client-nav-node">
|
||||
<li v-else class="client-nav-node" :class="{ 'has-divider-before': node.dividerBefore }">
|
||||
<RouterLink
|
||||
:to="node.path"
|
||||
class="client-sidebar-link"
|
||||
|
||||
Reference in New Issue
Block a user