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

[Card] 当文本内容为全数字和符号时无法自动换行 #4471

Closed
grantting opened this issue Aug 10, 2024 · 3 comments
Closed

[Card] 当文本内容为全数字和符号时无法自动换行 #4471

grantting opened this issue Aug 10, 2024 · 3 comments
Labels
easy easy level of difficulties issueShoot

Comments

@grantting
Copy link

grantting commented Aug 10, 2024

tdesign-vue-next 版本

1.9.8

重现链接

https://jsfiddle.net/vd895s2a/

重现步骤

No response

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

IssueShoot

  • 预估时长: 1
  • 期望完成时间: 2024-08-17 00:00:00 +0000 UTC
  • 开发难度: 低
  • 参与人数: 1
  • 需求对接人: ivringpeng
  • 验收标准: 实现期望改造效果,提 PR 并通过验收无误
  • 备注: 最终激励以实际提交 pull request 并合并为准
Copy link
Contributor

👋 @grantting,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@uyarn uyarn added issueShoot easy easy level of difficulties labels Aug 14, 2024
@uyarn uyarn changed the title [卡片组件] 当文本内容为全数字和符号时无法自动换行 [Card] 当文本内容为全数字和符号时无法自动换行 Aug 15, 2024
@taninsist
Copy link
Contributor

已认领

@uyarn uyarn added to be published to be published and removed to be published to be published labels Aug 15, 2024
@taninsist
Copy link
Contributor

taninsist commented Aug 15, 2024

经过讨论不在组件里增加相关CSS样式,建议自己根据实际情况覆盖样式即可
你可以使用 word-break: break-all;
image
或者 white-space: normal; word-wrap: break-word;
image

但不同的 css 样式,都会丢失一些特性,请自查。

@uyarn uyarn closed this as completed Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy easy level of difficulties issueShoot
Projects
None yet
Development

No branches or pull requests

3 participants