Skip to content

Commit f2ae674

Browse files
updated README.md
1 parent 5e4a49e commit f2ae674

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { getCurrentInstance } from 'vue'
1414
// get Vue instance
1515
const instance = getCurrentInstance()
1616
```
17+
In `<template>` add:
1718
```html
1819
<vue-dd name="setupState" v-model="instance.setupState" max-height="300px" />
1920
```
@@ -31,15 +32,15 @@ yarn add vue-dd
3132
```
3233

3334

34-
Add globally in main.js
35+
Add globally in `main.js`:
3536
```js
3637
import VueDd from 'vue-dd'
3738
// create app
3839
const app = createApp(App)
3940
// register component
4041
app.component('VueDd', VueDd)
4142
```
42-
or add locally
43+
or add locally in component:
4344
```js
4445
import VueDd from 'vue-dd'
4546
```

0 commit comments

Comments
 (0)