rithe

Results 6 comments of rithe

how to resolve this problem

我从上往下拖不会有问题,但是从下往上拖就会有问题。而且这个问题有时候会发生有时候突然又正常了。。。。

i think the reason is vue has not update the index after drop(when drop up ,one item insert before.vue should update the index to index +1,but not) this.$nextTick(function () {...

this way cannot suit string and number list @hejianxian ,we need stricter way to get the true index。

duplication element is the biggest bug i think. it will happen certainly, when drag up ward. if the bug exit , no one will use this component at all。

change line 'this.splice(this.index,1)' to 'this.splice(this.wrapper.indexOf(this.draggable), 1)' is useful in my environment. this is just an adivse.