18 lines
270 B
Vue
18 lines
270 B
Vue
|
<template>
|
||
|
<td v-tooltip="+date === 0 ? '' : formatDate(date)">
|
||
|
{{ +date === 0 ? '-' : formatDateSince(date) }}
|
||
|
</td>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: 'date-table-cell',
|
||
|
props: {
|
||
|
date: {
|
||
|
type: Date,
|
||
|
required: true,
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
</script>
|