File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<script setup lang="ts">
2- import { useTooltip } from ' @vingy/vueltip'
2+ import { useVueltip } from ' @vingy/vueltip'
33import { useTemplateRef } from ' vue'
44
55const tooltipElement = useTemplateRef (' tooltipElement' )
66const arrowElement = useTemplateRef (' arrowElement' )
77
88const { tooltipStyles, arrowStyles, show, content } =
9- useTooltip ({
9+ useVueltip ({
1010 tooltipElement ,
1111 arrowElement ,
1212 offset: 8 ,
Original file line number Diff line number Diff line change 11import Vuebugger from '@vingy/vuebugger'
2- import { tooltipPlugin } from '@vingy/vueltip'
2+ import {
3+ vueltipDirective ,
4+ vueltipPlugin ,
5+ } from '@vingy/vueltip'
36import { createPinia } from 'pinia'
47import { createApp } from 'vue'
58import App from './App.vue'
69import Tooltip from './Tooltip.vue'
710
811const app = createApp ( App )
912
10- app . use ( createPinia ( ) ) . use ( Vuebugger ) . use ( tooltipPlugin , {
11- component : Tooltip ,
12- handleDialogModals : true ,
13- } )
13+ app
14+ . use ( createPinia ( ) )
15+ . use ( Vuebugger )
16+ . use ( vueltipPlugin , {
17+ component : Tooltip ,
18+ handleDialogModals : true ,
19+ } )
20+ . directive ( 'tooltip' , vueltipDirective )
1421
1522app . mount ( '#app' )
You can’t perform that action at this time.
0 commit comments