All files / lib/components button-group.vue

66.67% Statements 8/12
70% Branches 7/10
100% Functions 4/4
66.67% Lines 8/12
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 3018x 18x 18x   18x 18x                     18x     18x     3x              
<template>
    <div :class="classObject">
    I    <slot></slot>
    </div>
</template>E
 
<script>
    export default {
        computed: {
            classObject() {
                return [
                    'btn-group',
                    this.vertical ? 'btn-group-vertical' : '',
                    this.size ? ('btn-group-' + this.size) : ''
                ];
            }
        },
        props: {
            vertical: {
                type: Boolean,
                default: false
            },
            size: {
                type: String,
                default: null
            }
        }
    };
</script>