From 45c65c816fef44c5950b63a2b345abf199177f44 Mon Sep 17 00:00:00 2001 From: Pan Date: Tue, 9 May 2017 15:27:23 +0800 Subject: [PATCH] fix bug --- src/views/example/dragTable.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/example/dragTable.vue b/src/views/example/dragTable.vue index 04cd4e63..00eac5e2 100644 --- a/src/views/example/dragTable.vue +++ b/src/views/example/dragTable.vue @@ -53,7 +53,7 @@ -
默认顺序{{olderList}}
+
默认顺序   {{ olderList}}
拖拽后顺序{{newList}}
@@ -112,7 +112,7 @@ // handle: '.drag-handler', onEnd: evt => { const tempIndex = this.newList.splice(evt.oldIndex, 1)[0]; - this.newList.splice(evt.newIndex, 1, tempIndex); + this.newList.splice(evt.newIndex, 0, tempIndex); } }); }