wepy-swipe-delete icon indicating copy to clipboard operation
wepy-swipe-delete copied to clipboard

Cannot set property 'style' of undefined

Open jinyanhuan opened this issue 7 years ago • 2 comments

使用的时候报错: 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; } }]);

jinyanhuan avatar Jan 25 '18 10:01 jinyanhuan

移除掉

tinybright avatar Mar 17 '18 02:03 tinybright

据查可能是因为嵌套循环的问题。swipe delete在子循环里 多次调用的均是外层循环下的数据。结果均为子循环的对应数据。例如 外层循环2层子循环1层。 swipe delete调用2次的结果均为子循环的第一组数据。 导致插件无法区分。。。

Shaoning-Yu avatar Apr 01 '19 02:04 Shaoning-Yu