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

The scrollbar will be lost when ellipsis is added to DataTable columns. #6464

Open
5 tasks done
wcnhna opened this issue Oct 14, 2024 · 4 comments
Open
5 tasks done
Labels
bug Something isn't working consideration-needed

Comments

@wcnhna
Copy link

wcnhna commented Oct 14, 2024

Describe the bug

When some cloumn active ellipsis prop, the data table will lost scrollbar.

Steps to reproduce

Just like that.

App.vue

OR

https://codesandbox.io/p/sandbox/d2lv2z

Link to minimal reproduction

https://wcnhna.github.io/naive-ui-demo/dist/

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-13500H
    Memory: 5.22 GB / 15.75 GB
  Binaries:
    Node: 20.18.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.12.0 - ~\AppData\Roaming\npm\pnpm.CMD
  npmPackages:
    naive-ui: ^2.40.1 => 2.40.1
    vue: ^3.5.11 => 3.5.12

Used Package Manager

pnpm

Validations

@wcnhna wcnhna added the untriaged need to sort label Oct 14, 2024
@jahnli
Copy link
Collaborator

jahnli commented Oct 14, 2024

Provide a based on CodeSandbox or stackblitz [Minimal, Reproducible Example] (https://stackoverflow.com/help/minimal-reproducible-example)

@jahnli jahnli added waiting for response and removed untriaged need to sort labels Oct 14, 2024
@wcnhna
Copy link
Author

wcnhna commented Oct 14, 2024

Provide a based on CodeSandbox or stackblitz [Minimal, Reproducible Example] (https://stackoverflow.com/help/minimal-reproducible-example)

https://codesandbox.io/p/sandbox/d2lv2z

@jahnli
Copy link
Collaborator

jahnli commented Oct 15, 2024

不确定设计是不是这样,设置scroll-x

@wcnhna
Copy link
Author

wcnhna commented Oct 15, 2024

Adding scroll-x prop does indeed solve the problem, but this should be considered a bug.

@jahnli jahnli added bug Something isn't working consideration-needed and removed waiting for response labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working consideration-needed
Projects
None yet
Development

No branches or pull requests

2 participants