File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <draggable class =" dragArea" tag =" ul" :list =" data" @start =" onStartDrag" @choose =" onClick"
2
+ <draggable class =" dragArea" tag =" ul" :list =" data" @start =" onStartDrag" @choose =" onClick" :group = " { name: 'g1' } "
3
3
@end =" onEndDrag" >
4
4
<template #item =" { element } " >
5
5
<li class =" itemArea" >
@@ -28,13 +28,13 @@ export default {
28
28
computed: {
29
29
},
30
30
methods: {
31
- getRawComponentKey,
31
+ getRawComponentKey,
32
32
getRawComponentContent,
33
33
onStartDrag (event ) {
34
34
event .item .classList .add (" is-dragging" );
35
35
},
36
36
onClick (event ) {
37
- if (this .$store .state .currentEditComp ){
37
+ if (this .$store .state .currentEditComp ) {
38
38
this .$store .state .currentEditComp .item .classList .remove (" is-dragging" );
39
39
}
40
40
You can’t perform that action at this time.
0 commit comments