All files / lib/components dropdown-item-button.vue

53.85% Statements 7/13
50% Branches 3/6
75% Functions 3/4
53.85% Lines 7/13
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 2718x 18x 18x   18x 18x                     18x     18x              
<template>
    <button class="dropdown-item"
    I        type="button"
            role="menuitem"
           E :disabled="disabled"
            @click="onClick">
        <slot></slot>
    </button>
</template>
 
<script>
export default {
    props: {
        disabled: {
            type: Boolean,
            default: false
        }
    },
    methods: {
        onClick(e) {
            this.$root.$emit("clicked::link", this);
            this.$emit("click", e);
        },
    }
};
</script>