forked from EnergySage/es-ds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EsTabs.vue
49 lines (47 loc) · 976 Bytes
/
EsTabs.vue
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
39
40
41
42
43
44
45
46
47
48
49
<template>
<b-tabs
class="es-tabs"
v-bind="$attrs"
:active-nav-item-class="['font-weight-bolder', 'active-tab']"
:vertical="vertical"
:style="cssProps"
no-nav-style
v-on="$listeners">
<slot />
</b-tabs>
</template>
<script lang="js">
import { BTabs } from 'bootstrap-vue';
export default {
name: 'EsTabs',
components: {
BTabs,
},
props: {
/**
* Vertical
* optional, defaults to false
*/
vertical: {
type: Boolean,
default: false,
},
/**
* Border
*/
border: {
type: Boolean,
default: true,
},
},
computed: {
cssProps() {
return (
this.border
? { '--border-bottom': '1px solid' }
: { '--border-bottom': '0' }
);
},
},
};
</script>