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升级到1.0.1版本后,初始化就报错:Failed prop type: Invalid prop className of type object supplied to Tabs, expected string. #904

Closed
liuxingling opened this issue Feb 28, 2017 · 10 comments
Assignees
Labels

Comments

@liuxingling
Copy link

Environment(required)

antd-mobile version:1.0.1
Browser (or mark react-native) and its version:版本 56.0.2924.87 (64-bit)
Operating environment (e.g. OS name) and its version:mac
What did you do? Please provide steps to re-produce your problem.

就用的官方示例代码


<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', height: '5rem', backgroundColor: '#fff' }}>
选项卡一内容



<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', height: '5rem', backgroundColor: '#fff' }}>
选项卡二内容



<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', height: '5rem', backgroundColor: '#fff' }}>
选项卡三内容



What do you expected?

正常运行

What happen?

image

@paranoidjk paranoidjk self-assigned this Feb 28, 2017
@paranoidjk
Copy link
Contributor

关联 #893

@paranoidjk
Copy link
Contributor

能给出完整的示例代码吗?最好格式化一下,谢谢

@paranoidjk
Copy link
Contributor

@liuxingling
Copy link
Author

image

我就copy的官方demo这一段

@liuxingling
Copy link
Author

@paranoidjk 我直接copy的官方demo

@zhouzefei
Copy link

zhouzefei commented Feb 28, 2017

请问解决了么?我也有同样的
image
image

@paranoidjk
Copy link
Contributor

sorry, 将在本周五的release 1.0.2 修复这个问题

@liuxingling
Copy link
Author

@paranoidjk 能不能帮忙紧急解决下这个bug啊,我们今天已经进入测试阶段了。
在安卓机的uc和app里,只要用到tabs的页面都进不去

@paranoidjk
Copy link
Contributor

@liuxingling 那我给你发一个beta版本,你先用这个beta吧

@paranoidjk
Copy link
Contributor

@liuxingling 或者你参考这个commit自己改一下源码? a0f43fd

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

No branches or pull requests

3 participants