fix: deprecated slot syntax

This commit is contained in:
axolotle 2024-02-24 16:55:32 +01:00
parent fea5730a29
commit 0c433ac71f

View file

@ -3,14 +3,16 @@
v-bind="$attrs" v-bind="$attrs"
no-body :class="_class" no-body :class="_class"
> >
<slot name="header" slot="header"> <template #header>
<h2> <slot name="header">
<BButton v-b-toggle="id" :variant="variant" class="card-collapse-button"> <h2>
{{ title }} <BButton v-b-toggle="id" :variant="variant" class="card-collapse-button">
<YIcon class="ml-auto" iname="chevron-right" /> {{ title }}
</BButton> <YIcon class="ml-auto" iname="chevron-right" />
</h2> </BButton>
</slot> </h2>
</slot>
</template>
<BCollapse :id="id" :visible="visible" role="region"> <BCollapse :id="id" :visible="visible" role="region">
<slot name="default" /> <slot name="default" />