feat: misc improvements
This commit is contained in:
@ -7,6 +7,7 @@ const category = getCurrentInstance()?.parent?.parent?.parent?.parent; // yes in
|
||||
|
||||
const props = defineProps({
|
||||
title: String,
|
||||
tooltip: String,
|
||||
});
|
||||
|
||||
const searched = computed(() => {
|
||||
@ -24,7 +25,15 @@ const searched = computed(() => {
|
||||
|
||||
<template>
|
||||
<div v-if="searched" class="flex flex-row w-full p-2 gap-2 items-center">
|
||||
<div class="grow">{{ title }}</div>
|
||||
<div class="grow">
|
||||
<span>{{ title }}</span>
|
||||
<span
|
||||
v-if="tooltip"
|
||||
class="pi pi-question-circle ml-2"
|
||||
v-tooltip="tooltip"
|
||||
></span>
|
||||
</div>
|
||||
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user