zammad/app/frontend/shared/components/ObjectAttributes/attributes/AttributeDate/AttributeDate.vue
2026-01-02 15:41:09 +02:00

18 lines
576 B
Vue

<!-- Copyright (C) 2012-2026 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>