Skip to content

Commit

Permalink
feat: solve a label with stopPropagation 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
nicejade committed May 12, 2018
1 parent 36a6cab commit 6102450
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/linksList/LinkItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@
@click.stop.prevent="onThemeClick(item.theme)">
{{ fillThemeName(item.classify, item.theme) }}
</span>
<a class="item username" :href="getUserPath(item.createdBy)" target="_blank" rel="noreferrer noopener">
<a class="item username" :href="getUserPath(item.createdBy)"
@click.stop="onStopPropagationClick"
target="_blank" rel="noreferrer noopener">
{{ item.createdBy || '' }}
</a>
<span >{{ item.created | dateOffset }}</span>
<a class="tag"
v-for="(iitem, index) in item.tags" :key="index"
:href="getTagPath(iitem)"
@click.stop="onStopPropagationClick"
target="_blank" rel="noreferrer noopener">
{{ iitem }}
</a>
</div>
<h3 class="title">
<a class="title-link" :href="item.urlPath"
@click.stop="onStopPropagationClick"
target="_blank" rel="noreferrer noopener">
{{ item.title }}
</a>
Expand Down Expand Up @@ -165,6 +169,9 @@ export default {
},
/* -----------------------onClickEvent-----------------------Start */
onStopPropagationClick (elem) {
},
onThemeClick (theme) {
this.$switchRouteByTheme(theme)
},
Expand Down

0 comments on commit 6102450

Please sign in to comment.