Open huangche007 opened 3 years ago
when i use toRaw
api,it also dose not work:
import { defineComponent, ref, Ref, watch, toRaw } from 'vue'
let mList: Array<any[]> = []
mList = toRaw(checkedList.value)
<draggable
v-model="mList"
@start="drag=true"
@end="drag=false"
item-key="id">
<template #item="{element}">
<div>{{element.name}}</div>
</template>
</draggable>
Hey!, any update on this issue? did you come up with the solution?
澈哥真有缘
I also don't see anything after installing with yarn.
Actually it does work in composition API. I reread the instructions and forgot to import draggable and expose it as a component. Stuff works beautifully now.
First check https://github.com/SortableJS/Vue.Draggable/blob/master/CONTRIBUTING.md
Hi, when i use this plugin in vue3,it dose not work(view dose not show correctly)。
"vuedraggable": "^4.0.3"
example is there: