1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-21 23:37:55 +00:00
bramw_baserow/web-frontend/modules/core/components/Tab.vue
2024-10-07 07:07:41 +00:00

42 lines
641 B
Vue

<template>
<div v-if="isActive" class="tab" @click="$emit('click', $event)">
<slot></slot>
</div>
</template>
<script>
export default {
name: 'Tab',
props: {
title: {
type: String,
default: 'Tab',
},
disabled: {
type: Boolean,
default: () => false,
},
tooltip: {
type: String,
default: null,
required: false,
},
to: {
type: Object,
default: () => undefined,
required: false,
},
icon: {
type: String,
required: false,
default: null,
},
},
data() {
return {
isActive: false,
}
},
}
</script>