Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于tabs组件,itemtap方法无法触发问题。以及索引的获取 #29

Closed
biggestDreamerly opened this issue May 23, 2019 · 1 comment
Assignees
Labels
good first issue Good for newcomers

Comments

@biggestDreamerly
Copy link

No description provided.

@qq865738120
Copy link
Owner

qq865738120 commented May 23, 2019

请使用cache/bind方式绑定组件的自定义事件。
例如tabs组件的itemtap事件的绑定如下:
<e-tabs items='{{ ["全部", "最近", "发布", "最新", "热点" ] }}' selectColor='#455488' theme='smallBar' catchitemtap='testTap'/>
索引在itemtap事件对象中获取。event.detail.currentTarget.dataset.index就是当前点击的tab项,其中event为事件对象。

@qq865738120 qq865738120 reopened this May 23, 2019
@qq865738120 qq865738120 added the good first issue Good for newcomers label May 23, 2019
@qq865738120 qq865738120 pinned this issue May 23, 2019
@qq865738120 qq865738120 unpinned this issue May 23, 2019
@qq865738120 qq865738120 pinned this issue May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants