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

switch的宽度无法自动调整吗 #3380

Closed
asoqa opened this issue Oct 11, 2016 · 2 comments · Fixed by #3516
Closed

switch的宽度无法自动调整吗 #3380

asoqa opened this issue Oct 11, 2016 · 2 comments · Fixed by #3516
Assignees
Labels
help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request.

Comments

@asoqa
Copy link

asoqa commented Oct 11, 2016

发生问题的环境是:

  • antd 版本: 2.0.1
  • 操作系统及其版本:
  • 浏览器及其版本:

您做了什么?

<Switch checkedChildren={'有效'} unCheckedChildren={'无效'} />

当有两个以上字符时,没有办法显示完整。看api的文档,没有找到相关属性可以进行调整的。
难道必须进行样式的覆盖?

您期待的结果是:

实际上的结果是:

可重现的在线演示

@afc163
Copy link
Member

afc163 commented Oct 11, 2016

来个 PR 如何?

@benjycui benjycui added the help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request. label Oct 13, 2016
@lock
Copy link

lock bot commented May 3, 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 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants