Ocelot-Social/components/RelatedUser.vue
2018-10-16 09:44:35 +02:00

24 lines
384 B
Vue

<script>
import HcAuthor from '~/components/Author.vue'
let mouseEnterTimer = null
let mouseLeaveTimer = null
export default {
name: 'HcRelatedUser',
extends: HcAuthor,
computed: {
author() {
return this.hasAuthor
? this.post
: {
name: 'Anonymus'
}
},
hasAuthor() {
return Boolean(this.post)
}
}
}
</script>