Skip to content

Commit

Permalink
docs: fix vue-droppable example
Browse files Browse the repository at this point in the history
  • Loading branch information
zjffun committed Jan 5, 2021
1 parent 09b7c10 commit 5277113
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Example
<div id="VueEl"></div>

<script type="text/template" id="VueTemplate">
<vue-droppable :options="options" @swappable:swapped="swapped">
<vue-droppable :options="options" @droppable:dropped="dropped">
<vue-draggable-container>
<div class="dropzone draggable-dropzone--occupied"><div class="item">droppable-item1</div></div>
<div class="dropzone draggable-dropzone--occupied"><div class="item">droppable-item2</div></div>
Expand Down Expand Up @@ -238,7 +238,7 @@ Example
};
},
methods: {
swapped: function (e) {
dropped: function (e) {
console.log(e);
},
},
Expand Down Expand Up @@ -386,7 +386,7 @@ Draggable:
- `drag:out`
- `drag:out:container`
- `drag:stop`
- `drag:stopped`
- `drag:stopped` (added in `@shopify/draggable@1.0.0-beta.12`)
- `drag:pressure`

Sortable:
Expand Down

0 comments on commit 5277113

Please sign in to comment.