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); } }); }