feat: Render conversation custom attributes (#3065)

This commit is contained in:
Muhsin Keloth
2021-10-30 07:09:46 +05:30
committed by GitHub
parent 69f55a25b6
commit ab77e03c92
32 changed files with 1233 additions and 182 deletions

View File

@@ -15,7 +15,11 @@
</div>
</div>
</button>
<div v-if="isOpen" class="cw-accordion--content">
<div
v-if="isOpen"
class="cw-accordion--content"
:class="{ compact: compact }"
>
<slot />
</div>
</div>
@@ -33,6 +37,10 @@ export default {
type: String,
required: true,
},
compact: {
type: Boolean,
default: false,
},
icon: {
type: String,
default: '',
@@ -106,5 +114,9 @@ export default {
.cw-accordion--content {
padding: var(--space-normal);
&.compact {
padding: 0;
}
}
</style>