mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 16:28:31 +00:00
Update the nuxt3 version. Co-authored-by: Jonathan Adeline <jonathan@baserow.io> Co-authored-by: Bram Wiepjes <bramw@protonmail.com> Co-authored-by: Cezary <cezary@baserow.io> Co-authored-by: Tsering Paljor <tsering@baserow.io> Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io> Co-authored-by: Bram <bram2w@users.noreply.github.com>
41 lines
941 B
Vue
41 lines
941 B
Vue
<template>
|
|
<div ref="cell" class="grid-view__cell">
|
|
<client-only>
|
|
<div class="grid-field-date">
|
|
<div ref="dateDisplay" class="grid-field-date__date">
|
|
{{ getDate(field, value) || value }}
|
|
</div>
|
|
<div
|
|
v-if="field.date_include_time"
|
|
ref="timeDisplay"
|
|
class="grid-field-date__time"
|
|
>
|
|
{{ getTime(field, value) }}
|
|
</div>
|
|
<div v-if="field.date_show_tzinfo" class="grid-field-date__tzinfo">
|
|
{{ getCellTimezoneAbbr(field, value) }}
|
|
</div>
|
|
</div>
|
|
</client-only>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import readOnlyDateField from '@baserow/modules/database/mixins/readOnlyDateField'
|
|
|
|
export default {
|
|
name: 'FunctionalGridViewFieldDate',
|
|
mixins: [readOnlyDateField],
|
|
props: {
|
|
field: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
value: {
|
|
type: null,
|
|
default: null,
|
|
},
|
|
},
|
|
}
|
|
</script>
|