1234567891011121314151617181920 |
- <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
- <script setup lang="ts">
- import CommonDateTime from '#shared/components/CommonDateTime/CommonDateTime.vue'
- import type { ObjectAttributeDate } from './attributeDateTypes.ts'
- defineProps<{
- attribute: ObjectAttributeDate
- value: string
- }>()
- </script>
- <template>
- <CommonDateTime
- :date-time="value"
- :type="attribute.dataType === 'date' ? 'absolute' : 'configured'"
- :absolute-format="attribute.dataType"
- />
- </template>
|