Commit 442c42085bedb504172e95f147921ee92598bf1e
Committed by
GitHub
1 parent
7f035c37
add demo
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
examples/routers/table.vue
@@ -64,7 +64,8 @@ | @@ -64,7 +64,8 @@ | ||
64 | this.$refs.currentRowTable.clearCurrentRow(); | 64 | this.$refs.currentRowTable.clearCurrentRow(); |
65 | }, | 65 | }, |
66 | onDragDrop(a,b){ | 66 | onDragDrop(a,b){ |
67 | - console.log(a,b) | 67 | + console.log(a,b); |
68 | + this.data1.splice(b,1,...this.data1.splice(a, 1 , this.data1[b])); | ||
68 | } | 69 | } |
69 | } | 70 | } |
70 | } | 71 | } |