mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
18 lines
576 B
Vue
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>
|