visua-vue/src/components/accordion/VAccordion.vue

18 lines
425 B
Vue
Raw Normal View History

<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>