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

Checkbox Group设置label为0时,checkbox后面为空 #1811

Closed
xiaxianlin opened this issue May 23, 2016 · 5 comments · Fixed by #1822
Closed

Checkbox Group设置label为0时,checkbox后面为空 #1811

xiaxianlin opened this issue May 23, 2016 · 5 comments · Fixed by #1822

Comments

@xiaxianlin
Copy link

Checkbox Group设置label为0时,checkbox后面为空

@RaoHai
Copy link
Contributor

RaoHai commented May 23, 2016

Thanks for your feedback.

It seems work perfect in my Demonstration... So Please provide me another demonstration ?

@afc163
Copy link
Member

afc163 commented May 23, 2016

@RaoHai
Copy link
Contributor

RaoHai commented May 23, 2016

这个如果让 CheckboxGroup 简单粗暴的把 label toString 也不好吧,万一 label 要传一个 React Component 进去怎么整……

@afc163
Copy link
Member

afc163 commented May 23, 2016

{children ? <span>{children}</span> : null}

{children ? <span>{children}</span> : null}

=>

{children === undefined ? <span>{children}</span> : null}

特指 <Checkbox /> 的用法就好。

@lock
Copy link

lock bot commented May 5, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants