✨ feateure: added accordion compoenent
This commit is contained in:
parent
454fc8e134
commit
1b01779237
17
src/components/accordion/VAccordion.vue
Normal file
17
src/components/accordion/VAccordion.vue
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<script setup lang="ts">
|
||||||
|
import Accordion from 'primevue/accordion';
|
||||||
|
import VAccordionChild from './VAccordionChild.vue';
|
||||||
|
import type IVAccordion from './IVAccordion.type';
|
||||||
|
|
||||||
|
const props = withDefaults(defineProps<IVAccordion>(), {
|
||||||
|
value: null,
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Accordion :value="props.value" class="p-accordion" style="width: 100%;">
|
||||||
|
<slot>
|
||||||
|
<VAccordionChild/>
|
||||||
|
</slot>
|
||||||
|
</Accordion>
|
||||||
|
</template>
|
Loading…
Reference in New Issue
Block a user