AttributeDate.vue 520 B

1234567891011121314151617181920
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import CommonDateTime from '#shared/components/CommonDateTime/CommonDateTime.vue'
  4. import type { ObjectAttributeDate } from './attributeDateTypes.ts'
  5. defineProps<{
  6. attribute: ObjectAttributeDate
  7. value: string
  8. }>()
  9. </script>
  10. <template>
  11. <CommonDateTime
  12. :date-time="value"
  13. :type="attribute.dataType === 'date' ? 'absolute' : 'configured'"
  14. :absolute-format="attribute.dataType"
  15. />
  16. </template>