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

5.31.0 Ellipsis对于换行符\n计算问题 #6338

Closed
liuhongcheng1998 opened this issue Aug 28, 2023 · 0 comments · Fixed by #6342
Closed

5.31.0 Ellipsis对于换行符\n计算问题 #6338

liuhongcheng1998 opened this issue Aug 28, 2023 · 0 comments · Fixed by #6342
Assignees
Labels

Comments

@liuhongcheng1998
Copy link

liuhongcheng1998 commented Aug 28, 2023

Version of antd-mobile

5.31.0

Operating system and its version

Others

Browser and its version

No response

Sandbox to reproduce

5.31.0
https://codesandbox.io/s/crimson-http-z75h4w?file=/app.tsx

5.30.0
https://codesandbox.io/s/infallible-cookies-vpxdhv

What happened?

应该是innerText 改为 innerHTML的原因
感觉可以从whiteSpace 上做更改
在获取父元素style样式之前赋值container.style.whiteSpace = 'normal'; 可行吗?

Relevant log output

No response

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