Skip to content

Commit 44d0108

Browse files
committed
docs: update to v5
1 parent 5695931 commit 44d0108

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ New versions:
2323
|Old|New|Target
2424
|---|---|---|
2525
|v-tooltip v3|floating-vue v1|Vue 2|
26-
|v-tooltip v4|floating-vue v2|Vue 3|
26+
|v-tooltip v4|floating-vue v5|Vue 3|
2727

2828
[💚️ Become a Sponsor](https://github.com/sponsors/Akryum)
2929

docs/guide/installation.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| floating-vue | NPM Tag | Vue compatibility |
66
| ------------ | ------- | ----------------- |
7-
| 2.x | latest | 3.x |
7+
| 5.x | latest | 3.x |
88
| 1.x | vue2 | 2.x |
99

1010
## Node
@@ -38,16 +38,16 @@ Or use the directives and components directly:
3838
```javascript
3939
import {
4040
// Directives
41-
VTooltip,
42-
VClosePopper,
41+
vTooltip,
42+
vClosePopper,
4343
// Components
4444
Dropdown,
4545
Tooltip,
4646
Menu
4747
} from 'floating-vue'
4848

49-
app.directive('tooltip', VTooltip)
50-
app.directive('close-popper', VClosePopper)
49+
app.directive('tooltip', vTooltip)
50+
app.directive('close-popper', vClosePopper)
5151

5252
app.component('VDropdown', Dropdown)
5353
app.component('VTooltip', Tooltip)
@@ -84,8 +84,8 @@ Or use the directives and components directly:
8484

8585
```javascript
8686
// Directives
87-
app.directive('tooltip', FloatingVue.VTooltip)
88-
app.directive('close-popper', FloatingVue.VClosePopper)
87+
app.directive('tooltip', FloatingVue.vTooltip)
88+
app.directive('close-popper', FloatingVue.vClosePopper)
8989
// Components
9090
app.component('VDropdown', FloatingVue.Dropdown)
9191
app.component('VTooltip', FloatingVue.Tooltip)
@@ -94,7 +94,7 @@ app.component('VMenu', FloatingVue.Menu)
9494

9595
## Vue 2
9696

97-
floating-vue v2 is compatible with Vue 3. For Vue 2, use floating-vue v1 instead:
97+
floating-vue v5 is compatible with Vue 3. For Vue 2, use floating-vue v1 instead:
9898

9999

100100
::: code-group
@@ -128,16 +128,16 @@ Or use the directives and components directly:
128128
import Vue from 'vue'
129129
import {
130130
// Directives
131-
VTooltip,
132-
VClosePopper,
131+
vTooltip,
132+
vClosePopper,
133133
// Components
134134
Dropdown,
135135
Tooltip,
136136
Menu
137137
} from 'floating-vue'
138138

139-
Vue.directive('tooltip', VTooltip)
140-
Vue.directive('close-popper', VClosePopper)
139+
Vue.directive('tooltip', vTooltip)
140+
Vue.directive('close-popper', vClosePopper)
141141

142142
Vue.component('VDropdown', Dropdown)
143143
Vue.component('VTooltip', Tooltip)

0 commit comments

Comments
 (0)