mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +00:00
Add side bar icon tooltip (#206)
This commit is contained in:
@@ -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"]);
|
||||
|
||||
Reference in New Issue
Block a user