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

Typography.Paragraph 字符切割失效 #19218

Closed
1 task
shijunwen opened this issue Oct 15, 2019 · 2 comments · Fixed by #25516
Closed
1 task

Typography.Paragraph 字符切割失效 #19218

shijunwen opened this issue Oct 15, 2019 · 2 comments · Fixed by #25516

Comments

@shijunwen
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

当字符串为纯数字、纯字母、数字字母混合时,设置rows失效

What is expected?

rows设置后能正确截取字符串

What is actually happening?

rows设置无效

Environment Info
antd 3.23.6
React react 16.10.02
System windows 10
Browser Google Chrome 版本 77.0.3865.90(正式版本) (32 位)
@zombieJ
Copy link
Member

zombieJ commented Oct 15, 2019

带拓展按钮的省略是通过 DOM 渲染计算出来的,和原生的 ellipsis 不太一样。需要设置长文字断行:https://codesandbox.io/s/eager-lichterman-ep7k9

感觉可以加个 FAQ 提示一下。

@afc163
Copy link
Member

afc163 commented Jul 8, 2020

wordBreak 默认加上?

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

Successfully merging a pull request may close this issue.

4 participants