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