Skip to content

Commit 0dd3171

Browse files
updated README.md
1 parent d3aa5e8 commit 0dd3171

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

README.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,13 @@ https://user-images.githubusercontent.com/150185/213549880-e6b645bd-11f0-461a-b1
77
https://user-images.githubusercontent.com/150185/213549905-360698e2-0c6b-4fd1-8023-803e22b68e27.mov
88

99
Video example code:
10-
11-
```html
12-
<script setup>
13-
```
1410
```js
11+
import VueDd from 'vue-dd'
1512
import { getCurrentInstance } from 'vue'
1613
const instance = getCurrentInstance()
1714
```
1815
```html
19-
</script>
20-
```
21-
```html
22-
<template>
23-
<vue-dd name="setupState" v-model="instance.setupState" max-height="300px" />
24-
</template>
16+
<vue-dd name="setupState" v-model="instance.setupState" max-height="300px" />
2517
```
2618

2719
## About
@@ -40,10 +32,12 @@ yarn add vue-dd
4032
Add globally in main.js
4133
```js
4234
import VueDd from 'vue-dd'
35+
// create app
4336
const app = createApp(App)
37+
// register component
4438
app.component('VueDd', VueDd)
4539
```
46-
or add locally
40+
or add locally
4741
```js
4842
import VueDd from 'vue-dd'
4943
```

0 commit comments

Comments
 (0)