2024-01-29 14:46:11 +01:00
|
|
|
<template>
|
|
|
|
<v-tooltip top>
|
|
|
|
<template v-slot:activator="{ on, attrs}">
|
2024-06-26 15:31:48 +02:00
|
|
|
<v-btn v-bind="attrs" :to='to' :large="large" :small="small" text icon v-on="on" @click='$emit("click")' :color='color'>
|
2024-01-29 14:46:11 +01:00
|
|
|
<slot />
|
|
|
|
</v-btn>
|
|
|
|
</template>
|
2024-06-26 15:31:48 +02:00
|
|
|
<span>{{ $t(tooltip) }}</span>
|
2024-01-29 14:46:11 +01:00
|
|
|
</v-tooltip>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'TBtn',
|
|
|
|
props: {
|
|
|
|
tooltip: String,
|
|
|
|
color: String,
|
2024-03-18 09:55:32 +01:00
|
|
|
to: String,
|
2024-06-26 15:31:48 +02:00
|
|
|
large: { type: Boolean, default: false },
|
|
|
|
small: { type: Boolean, default: false }
|
2024-01-29 14:46:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|