Skip to content

Commit 978f0de

Browse files
feat: expand NoteAbstractItem clickable area
1 parent 978e744 commit 978f0de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/vuepress-theme-reco/components/NoteAbstractItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div
33
class="abstract-item"
4-
@click="$router.push(item.path)">
4+
@click.self="$router.push(item.path)">
55
<i v-if="item.frontmatter.sticky" class="iconfont reco-sticky"></i>
66
<div class="title">
77
<i v-if="item.frontmatter.keys" class="iconfont reco-lock"></i>

packages/vuepress-theme-reco/components/PageInfo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
:key="subIndex"
2626
class="tag-item"
2727
:class="{ 'active': currentTag == subItem }"
28-
@click="goTags(subItem)">{{subItem}}</span>
28+
@click.stop="goTags(subItem)">{{subItem}}</span>
2929
</i>
3030
</div>
3131
</template>

0 commit comments

Comments
 (0)