1.0.83 • Published 3 years ago
@iwux/tabs v1.0.83
usage
{ "usingComponents": { "wux-tabs": "@iwux/tabs", "wux-tab-item": "@iwux/tabs/tab-item" } }
Page({ onTabChange(e) { console.log('== onChange:', e.detail); }, });
<scroll-view scroll-y enable-back-to-top>
content A...
</scroll-view>
Page({ onTabChange(e) { console.log('== onTabChange:', e.detail); this.setData({ selectedIndex: e.detail.current, }); }, onSwiperChange(e) { if (e.detail.source !== 'touch') { return; } console.log('== onSwiperChange:', e.detail); this.setData({ selectedIndex: e.detail.current, }); }, });
1.0.83
3 years ago