ArticleSystem.vue 561 B

12345678910111213141516171819202122232425262728
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import { ref } from 'vue'
  4. import { useArticleSeen } from '../../composable/useArticleSeen.ts'
  5. interface Props {
  6. subject?: Maybe<string>
  7. to?: Maybe<string>
  8. }
  9. defineProps<Props>()
  10. const emit = defineEmits<{
  11. seen: []
  12. }>()
  13. const articleElement = ref<HTMLDivElement>()
  14. useArticleSeen(articleElement, emit)
  15. </script>
  16. <template>
  17. <div ref="articleElement" class="text-gray text-center">
  18. "{{ subject }}" -&gt; "{{ to }}"
  19. </div>
  20. </template>