AttributeDate.vue 576 B

123456789101112131415161718
  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. import type { ObjectAttributeProps } from '../../types.ts'
  6. defineProps<ObjectAttributeProps<ObjectAttributeDate, string>>()
  7. </script>
  8. <template>
  9. <CommonDateTime
  10. :date-time="value"
  11. :type="attribute.dataType === 'date' ? 'absolute' : 'configured'"
  12. :absolute-format="attribute.dataType"
  13. />
  14. </template>