File tree 1 file changed +6
-24
lines changed
1 file changed +6
-24
lines changed Original file line number Diff line number Diff line change @@ -56,40 +56,22 @@ app.mount('#app')
56
56
<button v-tippy =" 'Hello!'" >Tippy!</button >
57
57
</template >
58
58
59
- <!--
60
- The below is optional in case you
61
- installed the plugin globally
62
- -->
63
- <script >
64
- import { directive } from ' vue-tippy'
65
-
66
- export default {
67
- directives: {
68
- tippy: directive,
69
- },
70
- }
59
+ <script setup >
60
+ import { directive as VTippy } from ' vue-tippy'
71
61
</script >
72
62
```
73
63
74
64
### Vue Component
75
65
76
66
``` html
77
67
<template >
78
- <tippy content =" Hi!" >
68
+ <Tippy content =" Hi!" >
79
69
<button >Tippy!</button >
80
- </tippy >
70
+ </Tippy >
81
71
</template >
82
72
83
- <!--
84
- The below is optional in case you
85
- installed the plugin globally
86
- -->
87
- <script >
88
- import { Tippy } from ' vue-tippy'
89
-
90
- export default {
91
- components: [Tippy],
92
- }
73
+ <script setup >
74
+ import { Tippy } from ' vue-tippy'
93
75
</script >
94
76
```
95
77
You can’t perform that action at this time.
0 commit comments