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