diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-13 08:31:03 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-13 08:31:03 +0900 |
| commit | 21c4f863ef625e54db54ba5cf454b1ca6b50a148 (patch) | |
| tree | 6264938515e609617eee4cc2eb47b1650a2e8cc6 /src/web | |
| parent | wip (diff) | |
| download | misskey-21c4f863ef625e54db54ba5cf454b1ca6b50a148.tar.gz misskey-21c4f863ef625e54db54ba5cf454b1ca6b50a148.tar.bz2 misskey-21c4f863ef625e54db54ba5cf454b1ca6b50a148.zip | |
wip
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/app/desktop/views/components/timeline.vue | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/web/app/desktop/views/components/timeline.vue b/src/web/app/desktop/views/components/timeline.vue index 933e44825a..c580e59f66 100644 --- a/src/web/app/desktop/views/components/timeline.vue +++ b/src/web/app/desktop/views/components/timeline.vue @@ -1,11 +1,11 @@ <template> -<div class="mk-timeline" ref="root"> +<div class="mk-timeline"> <template v-for="(post, i) in _posts"> <mk-timeline-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> </template> - <footer data-yield="footer"> - <yield from="footer"/> + <footer> + <slot name="footer"></slot> </footer> </div> </template> @@ -21,7 +21,7 @@ export default Vue.extend({ } }, computed: { - _posts(): any { + _posts(): any[] { return this.posts.map(post => { const date = new Date(post.created_at).getDate(); const month = new Date(post.created_at).getMonth() + 1; @@ -36,7 +36,7 @@ export default Vue.extend({ }, methods: { focus() { - (this.$refs.root as any).children[0].focus(); + (this.$el as any).children[0].focus(); } } }); |