fix(Accordion): style disclosure div after #1199

This commit is contained in:
Benjamin Canac
2024-02-06 17:52:58 +01:00
parent a297c3b41e
commit 882247e5f4
2 changed files with 9 additions and 1 deletions

View File

@@ -1,6 +1,13 @@
<template>
<div :class="ui.wrapper">
<HDisclosure v-for="(item, index) in items" v-slot="{ open, close }" :key="index" as="div" :default-open="defaultOpen || item.defaultOpen">
<HDisclosure
v-for="(item, index) in items"
v-slot="{ open, close }"
:key="index"
as="div"
:class="ui.container"
:default-open="defaultOpen || item.defaultOpen"
>
<HDisclosureButton
:ref="() => buttonRefs[index] = { open, close }"
as="template"

View File

@@ -1,5 +1,6 @@
export default {
wrapper: 'w-full flex flex-col',
container: 'w-full flex flex-col',
item: {
base: '',
size: 'text-sm',