1
0

feat: use withDefaults for ProjectCardGrid

This commit is contained in:
Dominik Pschenitschni 2024-06-26 20:27:40 +02:00 committed by konrad
parent daeefeb487
commit 479b786761

View File

@ -11,24 +11,19 @@
</template>
<script lang="ts" setup>
import {computed, type PropType} from 'vue'
import {computed} from 'vue'
import type {IProject} from '@/modelTypes/IProject'
import ProjectCard from './ProjectCard.vue'
const props = defineProps({
projects: {
type: Array as PropType<IProject[]>,
default: () => [],
},
showArchived: {
default: false,
type: Boolean,
},
itemLimit: {
type: Boolean,
default: false,
},
const props = withDefaults(defineProps<{
projects: IProject[],
showArchived?: boolean,
itemLimit?: boolean
}>(), {
projects: () => [],
showArchived: false,
itemLimit: false,
})
const filteredProjects = computed(() => {