euvl / vue-js-grid

:bento: Vue.js 2.x responsive grid system with smooth sorting, drag-n-drop and reordering
https://euvl.github.io/vue-js-grid/
MIT License
952 stars 109 forks source link

安卓系统移动不好使 #18

Closed sxin0 closed 6 years ago

sxin0 commented 6 years ago

错误原因在文件188行: https://github.com/euvl/vue-js-grid/blob/master/src/Grid.vue

代码应该如下: var targetItem = {} var itemLength = this.list.length; for (var i = 0 ; i < itemLength ; i++) { if (this.list[i].index === itemIndex) { targetItem = this.list[i]; }

euvl commented 6 years ago

English pls, otherwise я тебе не понимаю 😄

sxin0 commented 6 years ago

Android mobile doesn't work, The cause of error is Line 188: //github.com/euvl/vue-js-grid/blob/master/src/Grid.vue

Should be replaced by:

var targetItem = {} 
var itemLength = this.list.length; 
for(var i = 0; i <itemLength; i ++){ 
if(this.list [i] .index === itemIndex){ 
targetItem = this.list [i]; 
}
euvl commented 6 years ago

Cool, feel free to create A PR