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

Tree node text is too long than container width #3561

Closed
sunny9528 opened this issue Aug 21, 2022 · 2 comments
Closed

Tree node text is too long than container width #3561

sunny9528 opened this issue Aug 21, 2022 · 2 comments

Comments

@sunny9528
Copy link
Contributor

TuSimple/naive-ui version (版本)

2.32.2

Vue version (Vue 版本)

3.2.37

Browser and its version (浏览器及其版本)

版本 104.0.5112.79(正式版本) (x86_64)

System and its version (系统及其版本)

MacOS(12.5)

Node version (Node 版本)

Reappearance link (重现链接)

https://github.com/sunny9528/naiveuiTreeLabel.git

Reappearance steps (重现步骤)

  1. Expand the first-level node
  2. The Ellipsis component does not display correctly because the node text exceeds the container width

Expected results (期望的结果)

The Ellipsis component works

Actual results (实际的结果)

node label not set width

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Aug 21, 2022
@sunny9528
Copy link
Contributor Author

tree组件未指定block-line时, 文本节点超出长度后会换行。但当指定了block-line时,文本不会换行,同时应为没有指定文本宽度,导致文本超出容器宽度,且使Ellipsis组件省略效果失效。

@sunny9528
Copy link
Contributor Author

@07akioni 07akioni removed the untriaged need to sort label Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants