Author.vue 685 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <div class="news-author__wrapper">
  3. <!-- <div class="news-author__figure">
  4. <img
  5. class="news-author__img"
  6. :src="avatar"
  7. :alt="name"
  8. />
  9. </div> -->
  10. <!-- <div class="news-author__title">
  11. {{ name }}
  12. </div> -->
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. props: {
  18. news: {
  19. type: Object,
  20. },
  21. },
  22. computed: {
  23. name() {
  24. // return this.news.author ? this.news.author.name : '"ИА Амител"';
  25. return '"ИА Амител"';
  26. },
  27. avatar() {
  28. return this.news.author ? this.news.author.img : require(`~/assets/img/authors/author1.jpg`);
  29. },
  30. },
  31. };
  32. </script>
  33. <style>
  34. </style>