We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e3c577 + 70996d5 commit 10379aeCopy full SHA for 10379ae
src/components/nested.vue
@@ -1,5 +1,5 @@
1
<template>
2
- <draggable class="dragArea" tag="ul" :list="data" @start="onStartDrag" @choose="onClick"
+ <draggable class="dragArea" tag="ul" :list="data" @start="onStartDrag" @choose="onClick" :group="{ name: 'g1' }"
3
@end="onEndDrag">
4
<template #item="{ element }">
5
<li class="itemArea">
@@ -28,13 +28,13 @@ export default {
28
computed: {
29
},
30
methods: {
31
- getRawComponentKey,
+ getRawComponentKey,
32
getRawComponentContent,
33
onStartDrag(event) {
34
event.item.classList.add("is-dragging");
35
36
onClick(event) {
37
- if(this.$store.state.currentEditComp){
+ if (this.$store.state.currentEditComp) {
38
this.$store.state.currentEditComp.item.classList.remove("is-dragging");
39
}
40
0 commit comments