Skip to content

Commit 10379ae

Browse files
author
shangbin
committed
Merge branch 'vue3' into vue3-vant
2 parents 8e3c577 + 70996d5 commit 10379ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/nested.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<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' }"
33
@end="onEndDrag">
44
<template #item="{ element }">
55
<li class="itemArea">
@@ -28,13 +28,13 @@ export default {
2828
computed: {
2929
},
3030
methods: {
31-
getRawComponentKey,
31+
getRawComponentKey,
3232
getRawComponentContent,
3333
onStartDrag(event) {
3434
event.item.classList.add("is-dragging");
3535
},
3636
onClick(event) {
37-
if(this.$store.state.currentEditComp){
37+
if (this.$store.state.currentEditComp) {
3838
this.$store.state.currentEditComp.item.classList.remove("is-dragging");
3939
}
4040

0 commit comments

Comments
 (0)