start dynamizing inspirations page
This commit is contained in:
parent
e27fab3553
commit
0afb0dfe54
18 changed files with 346 additions and 488 deletions
|
|
@ -22,26 +22,8 @@
|
|||
import { computed } from "vue";
|
||||
import slugify from "slugify";
|
||||
|
||||
const { currentProjects, archivedProjects } = defineProps({
|
||||
currentProjects: Array,
|
||||
archivedProjects: Array,
|
||||
});
|
||||
|
||||
const tabs = computed(() => {
|
||||
return [
|
||||
{
|
||||
label: "Projets en cours",
|
||||
id: "currentProjects",
|
||||
count: currentProjects.length,
|
||||
isActive: true,
|
||||
},
|
||||
{
|
||||
label: "Projets archivés",
|
||||
id: "archivedProjects",
|
||||
count: archivedProjects.length,
|
||||
isActive: false,
|
||||
},
|
||||
];
|
||||
const { tabs } = defineProps({
|
||||
tabs: Array,
|
||||
});
|
||||
|
||||
const emit = defineEmits(["update:currentTab"]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue