Item.vue 920 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div class="subjects-item">
  3. <nuxt-link :to="getNewsItemLink(moduleNews)" class="subjects-item__link" >
  4. <div class="subjects-item__title" v-html="moduleNews.title"></div>
  5. <div class="subjects-item__comments" v-if="moduleNews.comments_count && moduleNews.comments_count > 0">
  6. <BaseIcon :name="'comments'" clear /><span class="subjects-item__comments-text" v-html="moduleNews.comments_count"></span>
  7. </div>
  8. </nuxt-link>
  9. </div>
  10. </template>
  11. <script>
  12. import global from "@/mixins/global";
  13. export default {
  14. mixins: [global],
  15. props: {
  16. moduleNews: {
  17. type: Object,
  18. },
  19. },
  20. methods: {
  21. }
  22. };
  23. </script>
  24. <style lang="less">
  25. .subjects-item{
  26. &__comments{
  27. .icon{
  28. fill: #fff;
  29. width: 10px;
  30. height: 10px;
  31. }
  32. }
  33. &__comments-text{
  34. color: #fff;
  35. font-size: 12px;
  36. margin-left: 7px;
  37. }
  38. }
  39. </style>