Merge pull request #204 from z3rog/develop

feat: expand NoteAbstractItem click area
This commit is contained in:
reco_luan 2020-06-24 15:42:12 +08:00 committed by GitHub
commit 5e05d2ed65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
<template> <template>
<div <div
class="abstract-item"> class="abstract-item"
@click.self="$router.push(item.path)">
<i v-if="item.frontmatter.sticky" class="iconfont reco-sticky"></i> <i v-if="item.frontmatter.sticky" class="iconfont reco-sticky"></i>
<div class="title"> <div class="title">
<i v-if="item.frontmatter.keys" class="iconfont reco-lock"></i> <i v-if="item.frontmatter.keys" class="iconfont reco-lock"></i>
@ -36,6 +37,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
transition all .3s transition all .3s
background-color var(--background-color) background-color var(--background-color)
cursor: pointer
.reco-sticky .reco-sticky
position absolute position absolute
top 0 top 0

View File

@ -25,7 +25,7 @@
:key="subIndex" :key="subIndex"
class="tag-item" class="tag-item"
:class="{ 'active': currentTag == subItem }" :class="{ 'active': currentTag == subItem }"
@click="goTags(subItem)">{{subItem}}</span> @click.stop="goTags(subItem)">{{subItem}}</span>
</i> </i>
</div> </div>
</template> </template>