Skip to content

Commit 8b4c66e

Browse files
committed
fix(WaterFlow): 修复 linitemtap 事件未返回自定义数据问题
close #923
1 parent 978f5c8 commit 8b4c66e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/water-flow/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Component({
4848
}
4949
this._select(data, refresh).then(() => {
5050
success && success();
51-
}).catch(err=>{
51+
}).catch(err => {
5252
console.error(err);
5353
});
5454
};
@@ -91,7 +91,7 @@ Component({
9191
* @param e 事件对象
9292
*/
9393
onTapItem(e) {
94-
eventUtil.emit(this, 'linitemtap', e.detail);
94+
eventUtil.emit(this, 'linitemtap', { item: e.currentTarget.dataset.item });
9595
}
9696
}
9797
});

0 commit comments

Comments
 (0)