This commit is contained in:
syuilo
2018-02-21 01:39:51 +09:00
parent 34f91f04ad
commit b2a6257f93
31 changed files with 100 additions and 94 deletions

View File

@@ -2,7 +2,10 @@
<div class="mk-posts">
<template v-for="(post, i) in _posts">
<x-post :post.sync="post" :key="post.id"/>
<p class="date" :key="post.id + '-time'" v-if="i != posts.length - 1 && post._date != _posts[i + 1]._date"><span>%fa:angle-up%{{ post._datetext }}</span><span>%fa:angle-down%{{ _posts[i + 1]._datetext }}</span></p>
<p class="date" v-if="i != posts.length - 1 && post._date != _posts[i + 1]._date">
<span>%fa:angle-up%{{ post._datetext }}</span>
<span>%fa:angle-down%{{ _posts[i + 1]._datetext }}</span>
</p>
</template>
<footer>
<slot name="footer"></slot>
@@ -16,7 +19,7 @@ import XPost from './posts.post.vue';
export default Vue.extend({
components: {
'x-post': XPost
XPost
},
props: {
posts: {