mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 18:30:35 +01:00
fix(Accordion): style disclosure div after #1199
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :class="ui.wrapper">
|
<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
|
<HDisclosureButton
|
||||||
:ref="() => buttonRefs[index] = { open, close }"
|
:ref="() => buttonRefs[index] = { open, close }"
|
||||||
as="template"
|
as="template"
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
export default {
|
export default {
|
||||||
wrapper: 'w-full flex flex-col',
|
wrapper: 'w-full flex flex-col',
|
||||||
|
container: 'w-full flex flex-col',
|
||||||
item: {
|
item: {
|
||||||
base: '',
|
base: '',
|
||||||
size: 'text-sm',
|
size: 'text-sm',
|
||||||
|
|||||||
Reference in New Issue
Block a user