Skip to content

Commit

Permalink
fix(WaterFlow): 修复 linitemtap 事件未返回自定义数据问题
Browse files Browse the repository at this point in the history
close #923
  • Loading branch information
juzi214032 committed Jun 23, 2020
1 parent 978f5c8 commit 8b4c66e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/water-flow/index.js
Expand Up @@ -48,7 +48,7 @@ Component({
}
this._select(data, refresh).then(() => {
success && success();
}).catch(err=>{
}).catch(err => {
console.error(err);
});
};
Expand Down Expand Up @@ -91,7 +91,7 @@ Component({
* @param e 事件对象
*/
onTapItem(e) {
eventUtil.emit(this, 'linitemtap', e.detail);
eventUtil.emit(this, 'linitemtap', { item: e.currentTarget.dataset.item });
}
}
});

0 comments on commit 8b4c66e

Please sign in to comment.