Skip to content

Commit

Permalink
docs: update docs (#109)
Browse files Browse the repository at this point in the history
change the format of DOM in < template >
  • Loading branch information
Aaron-zon authored Mar 19, 2024
1 parent 037bb73 commit 07fb14b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 26 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ const draggable = useDraggable(el, list, {
}
]"
>
<div
v-for="item in list"
:key="item.id"
>
<div v-for="item in list" :key="item.id">
{{ item.name }}
</div>
</div>
Expand Down
14 changes: 3 additions & 11 deletions src/__docs__/guide/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,8 @@ const list = ref([

```vue
<template>
<div
ref="el"
>
<div
v-for="item in list"
:key="item.id"
>
<div ref="el">
<div v-for="item in list" :key="item.id">
{{ item.name }}
</div>
</div>
Expand Down Expand Up @@ -129,10 +124,7 @@ const draggable = useDraggable<UseDraggableReturn>(el, list, {
}
]"
>
<div
v-for="item in list"
:key="item.id"
>
<div v-for="item in list" :key="item.id">
{{ item.name }}
</div>
</div>
Expand Down
14 changes: 3 additions & 11 deletions src/__docs__/guide/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,8 @@ const list = ref([

```vue
<template>
<div
ref="el"
>
<div
v-for="item in list"
:key="item.id"
>
<div ref="el">
<div v-for="item in list" :key="item.id">
{{ item.name }}
</div>
</div>
Expand Down Expand Up @@ -126,10 +121,7 @@ const draggable = useDraggable<UseDraggableReturn>(el, list, {
}
]"
>
<div
v-for="item in list"
:key="item.id"
>
<div v-for="item in list" :key="item.id">
{{ item.name }}
</div>
</div>
Expand Down

0 comments on commit 07fb14b

Please sign in to comment.