blob: 4a3694bdaf339acdaca4a1f890cd203eb1347f55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<template>
<div class="custom-divider">
<b-button
v-b-toggle="id"
variant="collapse"
class="d-flex flex-nowrap justify-content-start"
>
<slot name="image"></slot>
{{ title }}
<component :is="iconChevronUp" class="icon-expand" />
</b-button>
<b-collapse :id="id">
<slot></slot>
</b-collapse>
</div>
</template>
<script>
import iconChevronUp from '@carbon/icons-vue/es/chevron--up/20';
export default {
name: 'Collapse',
props: {
id: {
type: String,
default: null,
},
title: {
type: String,
default: null,
},
},
data() {
return {
iconChevronUp: iconChevronUp,
};
},
};
</script>
|