initial commit (long overdue)
This commit is contained in:
19
17th Website/src/components/dropdown/DropdownContent.vue
Normal file
19
17th Website/src/components/dropdown/DropdownContent.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<script>
|
||||
import { inject } from 'vue';
|
||||
|
||||
export default {
|
||||
name: 'DropdownContent',
|
||||
inject: ['sharedState'],
|
||||
computed: {
|
||||
active() {
|
||||
return this.sharedState.active
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div v-if="active">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user