vant icon indicating copy to clipboard operation
vant copied to clipboard

[Feature Request] tabs点击事件返回数据 建议返回整个对象

Open OnlyLady opened this issue 7 years ago • 2 comments

tabs目前的点击事件只是返回了固定值?个人建议是直接返回当前点击的所有数据对象。这样可以方便然后用户决定需要取什么

OnlyLady avatar Sep 03 '19 11:09 OnlyLady

暂时没有计划调整目前的参数结构,如果添加第三个参数,显得太过冗余,调整现有参数则会造成不兼容更新。

你可以通过 name 或 index 去取到对应的数据对象

chenjiahan avatar Sep 03 '19 12:09 chenjiahan

WX20191027-002513@2x name 没有, index 没有, 截图就是绑定的方法的第一个参数的值

boxshadow avatar Oct 26 '19 16:10 boxshadow