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组件分段类型,外层容器没有使用相对定位时,选中的tab页签样式异常 #5569
Labels
bug
Something isn't working
Comments
maddenBoy
changed the title
标签页Tabs组件分段类型,外层容器没有使用相对定位时,选中的tab页签样式正常异常
标签页Tabs组件分段类型,外层容器没有使用相对定位时,选中的tab页签样式异常
Jan 10, 2024
暂时解决一下燃眉之急😩 .n-tabs--segment-type > .n-tabs-nav--segment-type {
& > .n-tabs-rail > .n-tabs-capsule {
display: none;
}
& .n-tabs-tab--active {
background-color: var(--n-tab-color-segment);
}
} |
可以解决问题 |
目前我用的setTimeout延迟加载的n-tabs,这里修复了各位踢一下谢谢 |
Fix, instantly! 修 马上就修! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TuSimple/naive-ui version (版本)
2.37.3
Vue version (Vue 版本)
3.4.7
Browser and its version (浏览器及其版本)
Chrome(120.0.6099.200)
System and its version (系统及其版本)
Window11
Node version (Node 版本)
Reappearance link (重现链接)
https://codesandbox.io/p/sandbox/icy-surf-sr9jj2?file=%2Fsrc%2FDemo.vue%3A28%2C14
Reappearance steps (重现步骤)
方法一:
官方文档https://www.naiveui.com/zh-CN/light/components/tabs
把tabs外层n-card的相对定位注释掉,选中的tab页签样式会丢失
方法二:
打开https://codesandbox.io/p/sandbox/icy-surf-sr9jj2?file=%2Fsrc%2FDemo.vue%3A28%2C14 ,滚动页面,tabs激活页签样式错乱
Expected results (期望的结果)
分段类型的标签页,外层容器没有使用相对定位时,选中的tab页签样式可以正常显示
Actual results (实际的结果)
分段类型的标签页,外层容器没有使用相对定位时,选中的tab页签样式显示异常
Remarks (补充说明)
把tabs外层n-card的相对定位注释掉后显示的样式
使用n-scrollbar包裹tabs后滚动页面的样式
The text was updated successfully, but these errors were encountered: