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

taro-ui #2

Open
hytStart opened this issue Mar 26, 2019 · 0 comments
Open

taro-ui #2

hytStart opened this issue Mar 26, 2019 · 0 comments

Comments

@hytStart
Copy link
Owner

hytStart commented Mar 26, 2019

由于小程序的限制,无法遍历 this.props.children, AtTabsPane 需要用户自行传入 current 和 index 参数。

可以用 React.Children.map 来遍历子节点,而不用担心 this.props.children 的数据类型是 undefined 还是 object。
renderProps组件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant