Skip to content

Commit d5373d0

Browse files
committed
use vue slot syntax
1 parent 215df5e commit d5373d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/skip-to.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<template>
2-
<a class="vue-skip-to" :href="to" :tabindex="tabindex" v-text="text"></a>
2+
<a class="vue-skip-to" :href="to" :tabindex="tabindex">
3+
<slot>{{ text }}</slot>
4+
</a>
35
</template>
46

57
<script>

0 commit comments

Comments
 (0)