Skip to content

Commit

Permalink
feat: outline link add title attribute (#2261)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea authored Apr 20, 2023
1 parent 1769d32 commit 1f5798e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/theme-default/components/VPDocOutlineItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function onClick({ target: el }: Event) {
<template>
<ul :class="root ? 'root' : 'nested'">
<li v-for="{ children, link, title } in headers">
<a class="outline-link" :href="link" @click="onClick">{{ title }}</a>
<a class="outline-link" :href="link" @click="onClick" :title="title">{{ title }}</a>
<template v-if="children?.length">
<VPDocOutlineItem :headers="children" />
</template>
Expand Down

0 comments on commit 1f5798e

Please sign in to comment.