wepy-swipe-delete
wepy-swipe-delete copied to clipboard
Cannot set property 'style' of undefined
使用的时候报错: Cannot set property 'style' of undefined;at pages/raid/teamleader/raiding page lifeCycleMethod onLoad function TypeError: Cannot set property 'style' of undefined
_createClass(Counter, [{ key: 'onLoad', value: function onLoad() { this.swipeData.style = 0; } }]);
移除掉
据查可能是因为嵌套循环的问题。swipe delete在子循环里 多次调用的均是外层循环下的数据。结果均为子循环的对应数据。例如 外层循环2层子循环1层。 swipe delete调用2次的结果均为子循环的第一组数据。 导致插件无法区分。。。