We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
假设此时article为“曲盈盈” 如果人名超过2个字,即显示为(曲...),代码如下 <Ellipsis length={2}>{article}</Ellipsis> 显示的实际效果为"..."
<Ellipsis length={2}>{article}</Ellipsis>
https://codesandbox.io/s/p2wj89wr0
The text was updated successfully, but these errors were encountered:
Translation of this issue:
When ## Ellipsis component text is Chinese, there is a bug in setting length
Sorry, something went wrong.
https://github.com/ant-design/ant-design-pro/blob/master/src/components/Ellipsis/index.js#L19
应该是 length 把 ... 算上了,这个后面要改下,所以现在得每个加 3 个字符,比如 2 + 3 =5...
明白了,那这样的话我字符的长度就必须要达到5,才能实现曲...这样的效果;
const article = "曲盈盈12"; <Ellipsis length={4}>{article}</Ellipsis>
nikogu
Successfully merging a pull request may close this issue.
假设此时article为“曲盈盈”
如果人名超过2个字,即显示为(曲...),代码如下
<Ellipsis length={2}>{article}</Ellipsis>
显示的实际效果为"..."
重现地址:
https://codesandbox.io/s/p2wj89wr0
The text was updated successfully, but these errors were encountered: