Commit 3fe51bfca22f3417a11ca34a951298ccb3b4080e
1 parent
c69f8ff5
update Anchor
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
examples/main.js
src/components/anchor/anchor-link.vue
1 | 1 | <template> |
2 | 2 | <div :class="anchorLinkClasses"> |
3 | - <a :class="linkTitleClasses" href="javascript:void(0)" :data-href="href" @click="goAnchor" :title="title">{{ title }}</a> | |
3 | + <a :class="linkTitleClasses" :href="href" :data-href="href" @click.prevent="goAnchor" :title="title">{{ title }}</a> | |
4 | 4 | <slot></slot> |
5 | 5 | </div> |
6 | 6 | </template> | ... | ... |