diff --git a/src/views/example/dragTable.vue b/src/views/example/dragTable.vue index 04cd4e636f26c01aaa5648e064e36d7bc6b1c3dc..00eac5e2e7ca9f45547ba8f2445dd0d1c5dc1028 100644 --- a/src/views/example/dragTable.vue +++ b/src/views/example/dragTable.vue @@ -53,7 +53,7 @@ </el-table> - <div class='show-d'>默认顺åº{{olderList}}</div> + <div class='show-d'>é»˜è®¤é¡ºåº {{ olderList}}</div> <div class='show-d'>拖拽åŽé¡ºåº{{newList}}</div> </div> @@ -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); } }); }