File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -7,21 +7,13 @@ https://user-images.githubusercontent.com/150185/213549880-e6b645bd-11f0-461a-b1
77https://user-images.githubusercontent.com/150185/213549905-360698e2-0c6b-4fd1-8023-803e22b68e27.mov
88
99Video example code:
10-
11- ``` html
12- <script setup >
13- ` ` `
1410``` js
11+ import VueDd from ' vue-dd'
1512import { getCurrentInstance } from ' vue'
1613const 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
4032Add globally in main.js
4133``` js
4234import VueDd from ' vue-dd'
35+ // create app
4336const app = createApp (App)
37+ // register component
4438app .component (' VueDd' , VueDd)
4539```
46- or add locally
40+ or add locally
4741``` js
4842import VueDd from ' vue-dd'
4943```
You can’t perform that action at this time.
0 commit comments