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

文字怎么自动换行 #5286

Closed
Fzt1120 opened this issue Dec 21, 2023 · 3 comments
Closed

文字怎么自动换行 #5286

Fzt1120 opened this issue Dec 21, 2023 · 3 comments

Comments

@Fzt1120
Copy link

Fzt1120 commented Dec 21, 2023

G6 版本

5.x

问题描述

怎么可以让文字自动换行啊,除了\n换行符,vue3用的JSX自定义的节点,文字过长的话就会向右超出节点,设置过最大宽度,都不管用,还不能超出省略,好难为什么没有这个功能!

重现链接

.

重现步骤

需要给节点加个滚动条,超出文字自动换行

预期行为

需要给节点加个滚动条,超出文字自动换行

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

需要给节点加个滚动条,超出文字自动换行

补充说明(可选)

需要给节点加个滚动条,超出文字自动换行

Copy link

hi @Fzt1120, welcome!

Copy link

Hi @Fzt1120, Please star this repo if you find it useful! Thanks ⭐!
你好 @Fzt1120。如果该仓库对你有用,可以 star 一下,感谢你的 ⭐!

@yvonneyx
Copy link
Contributor

自动换行可以参考一下官网示例:https://g6-next.antv.antgroup.com/examples/item/label/#labelLen1

使用过程中还有任何疑问或问题,请随时再次开启 issue

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

No branches or pull requests

2 participants