1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-24 16:36:46 +00:00
bramw_baserow/web-frontend/modules/database/components/card/RowCardFieldDate.vue
2023-03-08 09:13:08 +00:00

22 lines
611 B
Vue

<template functional>
<div class="card-text">
{{ $options.methods.getDate(props.field, props.value) }}
<template v-if="props.field.date_include_time">{{
$options.methods.getTime(props.field, props.value)
}}</template>
<span v-if="props.field.date_show_tzinfo" class="color--tzinfo">
{{ $options.methods.getCellTimezoneAbbr(props.field, props.value) }}
</span>
</div>
</template>
<script>
import readOnlyDateField from '@baserow/modules/database/mixins/readOnlyDateField'
export default {
height: 16,
name: 'RowCardFieldDate',
mixins: [readOnlyDateField],
}
</script>