gancio-upstream/components/TBtn.vue

22 lines
590 B
Vue
Raw Permalink Normal View History

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