Add side bar icon tooltip (#206)

This commit is contained in:
Chenlei Hu
2024-07-23 09:45:47 -04:00
committed by GitHub
parent d87058babf
commit 9b36c6b254
5 changed files with 15 additions and 3 deletions

View File

@@ -11,6 +11,7 @@
icon: 'side-bar-button-icon',
}"
@click="emit('click', $event)"
v-tooltip="{ value: props.tooltip, showDelay: 300, hideDelay: 300 }"
/>
</template>
@@ -20,6 +21,10 @@ import Button from "primevue/button";
const props = defineProps({
icon: String,
selected: Boolean,
tooltip: {
type: String,
default: "",
},
});
const emit = defineEmits(["click"]);