Update README.md
This commit is contained in:
@@ -56,18 +56,8 @@ app.mount('#app')
|
|||||||
<button v-tippy="'Hello!'">Tippy!</button>
|
<button v-tippy="'Hello!'">Tippy!</button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!--
|
<script setup>
|
||||||
The below is optional in case you
|
import { directive as VTippy } from 'vue-tippy'
|
||||||
installed the plugin globally
|
|
||||||
-->
|
|
||||||
<script>
|
|
||||||
import { directive } from 'vue-tippy'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
directives: {
|
|
||||||
tippy: directive,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -75,21 +65,13 @@ app.mount('#app')
|
|||||||
|
|
||||||
```html
|
```html
|
||||||
<template>
|
<template>
|
||||||
<tippy content="Hi!">
|
<Tippy content="Hi!">
|
||||||
<button>Tippy!</button>
|
<button>Tippy!</button>
|
||||||
</tippy>
|
</Tippy>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!--
|
<script setup>
|
||||||
The below is optional in case you
|
import { Tippy } from 'vue-tippy'
|
||||||
installed the plugin globally
|
|
||||||
-->
|
|
||||||
<script>
|
|
||||||
import { Tippy } from 'vue-tippy'
|
|
||||||
|
|
||||||
export default {
|
|
||||||
components: [Tippy],
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user