yandere_fe/src/components/favorite_button/favorite_button.vue

15 lines
301 B
Vue
Raw Normal View History

2016-10-30 08:12:35 -07:00
<template>
<div>
<i :class='classes' class='favorite-button fa' v-on:click.prevent='favorite()'></i>
<span v-if='status.fave_num > 0'>{{status.fave_num}}</span>
</div>
</template>
<script src="./favorite_button.js" ></script>
<style>
.favorite-button {
cursor: pointer
}
</style>