diff options
Diffstat (limited to 'src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue')
-rw-r--r-- | src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue b/src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue index 9a4cf1b..5be2329 100644 --- a/src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue +++ b/src/tools/html-wysiwyg-editor/editor/menu-bar-item.vue @@ -6,13 +6,9 @@ const { icon, title, action, isActive } = toRefs(props); </script> <template> - <n-tooltip trigger="hover"> - <template #trigger> - <c-button circle variant="text" :type="isActive?.() ? 'primary' : 'default'" @click="action"> - <n-icon :component="icon" /> - </c-button> - </template> - - {{ title }} - </n-tooltip> + <c-tooltip :tooltip="title"> + <c-button circle variant="text" :type="isActive?.() ? 'primary' : 'default'" @click="action"> + <n-icon :component="icon" /> + </c-button> + </c-tooltip> </template> |