feat: outline link add title attribute (#2261)

pull/2283/head
btea 2 years ago committed by GitHub
parent 1769d329cc
commit 1f5798e437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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>

Loading…
Cancel
Save