feat: statistics graphs

This commit is contained in:
Jannat Patel
2024-02-06 22:39:08 +05:30
parent f59f6c617a
commit d7d222842b
8 changed files with 254 additions and 70 deletions

View File

@@ -48,6 +48,10 @@ const props = defineProps({
type: String,
default: '',
},
activeFor: {
type: Array,
default: [],
},
isCollapsed: {
type: Boolean,
default: false,
@@ -59,6 +63,6 @@ function handleClick() {
}
let isActive = computed(() => {
return router.currentRoute.value.name === props.to
return props.activeFor.includes(router.currentRoute.value.name)
})
</script>