AbnerMing888 / HarmonyOsRefresh

HarmonyOsRefresh是一个鸿蒙版的刷新组件,超简单使用,支持下拉刷新和上拉加载,支持各种组件,List、Grid、Column、Row……
Apache License 2.0
145 stars 15 forks source link

listItemAttribute的onClick方法能不能加上item数据参数? #147

Closed cxmmxc closed 1 week ago

cxmmxc commented 1 month ago

item的点击需要拿到当前item数据,进行判断~现在只有一个event方法

AbnerMing888 commented 4 weeks ago

item布局是你传递写的,你直接给你的组件设置点击事件即可,索引、数据都有

AbnerMing888 commented 4 weeks ago

![Uploading data.jpg…]()