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

tabs 设置 type="segment" 在 <n-layout has-sider> 中 滚动会出现异常 #5728

Closed
5 tasks done
zhannan-cn opened this issue Feb 28, 2024 · 0 comments · Fixed by #5735
Closed
5 tasks done

tabs 设置 type="segment" 在 <n-layout has-sider> 中 滚动会出现异常 #5728

zhannan-cn opened this issue Feb 28, 2024 · 0 comments · Fixed by #5735
Labels
untriaged need to sort

Comments

@zhannan-cn
Copy link

zhannan-cn commented Feb 28, 2024

描述错误

tabs 设置 type="segment" 后, 放置 <n-layout has-sider> <n-layout-content style="height: calc(100vh - 64px)"></n-layout-content></n-layout> 中 滚动页面时会出现异常显示
image

复现步骤

1.把 tabs 的 type 设置成 segment
2.放入<n-layout has-sider> <n-layout-content style="height: calc(100vh - 64px)"></n-layout-content></n-layout>
3.往 n-tab-pane 填充内容, 使其出现滚动条
4.滚动时 tabs 抬头就会显示异常, 跟着一起滚动

最小复现链接

https://stackblitz.com/edit/vitejs-vite-uhs9pr?file=src%2FApp.vue

系统信息

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.14.0 - /usr/local/bin/pnpm
  npmPackages:
    naive-ui: ^2.38.1 => 2.38.1 
    vue: ^3.4.20 => 3.4.20

使用的包管理器

npm

验证

@zhannan-cn zhannan-cn added the untriaged need to sort label Feb 28, 2024
jizai1125 added a commit to jizai1125/naive-ui that referenced this issue Feb 29, 2024
jizai1125 added a commit to jizai1125/naive-ui that referenced this issue Feb 29, 2024
winssps added a commit to winssps/naive-ui that referenced this issue Mar 1, 2024
winssps added a commit to winssps/naive-ui that referenced this issue Mar 1, 2024
07akioni added a commit that referenced this issue Mar 11, 2024
Co-authored-by: 07akioni <07akioni2@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged need to sort
Projects
None yet
1 participant