feat: use withDefaults for DateTableCell
This commit is contained in:
parent
fd12c8705e
commit
f586e51aad
@ -9,10 +9,9 @@
|
||||
<script setup lang="ts">
|
||||
import {formatISO, formatDateLong, formatDateSince} from '@/helpers/time/formatDate'
|
||||
|
||||
defineProps({
|
||||
date: {
|
||||
type: Date,
|
||||
default: 0,
|
||||
},
|
||||
withDefaults(defineProps<{
|
||||
date?: Date
|
||||
}>(), {
|
||||
date: 0,
|
||||
})
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user