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

Icon 自定义 size 没效果 #993

Closed
crazyair opened this issue Mar 14, 2017 · 6 comments
Closed

Icon 自定义 size 没效果 #993

crazyair opened this issue Mar 14, 2017 · 6 comments

Comments

@crazyair
Copy link
Member

crazyair commented Mar 14, 2017

看源码
var sizeMap={'xxs':15,'xs':18,'sm':21,'md':22,'lg':36};
var fontSize=typeof size==='string'?sizeMap[size]:size;

就是不知道 size 获取的时候 是不是 string
我是这样传的

<Icon size={25} type='check-circle'/>
@paranoidjk
Copy link
Contributor

@crazyair
Copy link
Member Author

crazyair commented Mar 14, 2017

@paranoidjk 那要怎么用? 上面代码没显示出来

@paranoidjk
Copy link
Contributor

number 类型的size只有RN支持,web只支持 'xxs'/'xs'/'sm'/'md'/'lg'

@crazyair
Copy link
Member Author

crazyair commented Mar 14, 2017

@paranoidjk 哦 文档那句话没看懂。。。。

color 我是看懂了

@paranoidjk
Copy link
Contributor

抱歉,文档在优化的过程中。
也欢迎PR帮我们完善文档

@crazyair
Copy link
Member Author

帮忙 看下 #990

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

2 participants