From 442c42085bedb504172e95f147921ee92598bf1e Mon Sep 17 00:00:00 2001 From: Aresn Date: Mon, 4 Mar 2019 16:44:18 +0800 Subject: [PATCH] add demo --- examples/routers/table.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/routers/table.vue b/examples/routers/table.vue index 15648b34..a0402925 100644 --- a/examples/routers/table.vue +++ b/examples/routers/table.vue @@ -64,7 +64,8 @@ this.$refs.currentRowTable.clearCurrentRow(); }, onDragDrop(a,b){ - console.log(a,b) + console.log(a,b); + this.data1.splice(b,1,...this.data1.splice(a, 1 , this.data1[b])); } } }