Skip to content

Commit

Permalink
change "v-if" to "v-show"
Browse files Browse the repository at this point in the history
  • Loading branch information
okuxxbos20 committed Mar 30, 2020
1 parent 86509a5 commit 9529646
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/class.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<div class="zone col-xs-8">
<div class="" v-for="(item, idx) in this.msgArray" :key="item[idx]">
<p class="msg" @click="showTime(idx)">{{ item.msg }}</p>
<p class="sent_time" v-if="item.status">{{ item.time }}
<i class="far fa-heart not_like" v-if="!item.liked" @click="msgLike(idx)"></i>
<i class="fas fa-heart liked" v-if="item.liked" @click="msgLike(idx)"></i>
<p class="sent_time" v-show="item.status">{{ item.time }}
<i class="far fa-heart not_like" v-show="!item.liked" @click="msgLike(idx)"></i>
<i class="fas fa-heart liked" v-show="item.liked" @click="msgLike(idx)"></i>
</p>
</div>
</div>
Expand Down

0 comments on commit 9529646

Please sign in to comment.