order workflow
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
<template>
|
||||
<v-btn :color="isCurrent?'primary':undefined" variant="text" :icon="icon" @click="$router.push(path)"/>
|
||||
<v-tooltip :text="tooltip" location="top">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn v-bind="props" :color="isCurrent?'primary':undefined" variant="text"
|
||||
:icon="icon" @click="$router.push(path)"/>
|
||||
</template>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {computed} from "vue";
|
||||
import {useRoute} from "vue-router";
|
||||
|
||||
const props = defineProps(['icon', 'path'])
|
||||
const props = defineProps(['icon', 'path', 'tooltip'])
|
||||
const isCurrent = computed(() => useRoute().path === props.path)
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user