We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.10.3
Windows 10
使 TabBar 重写后其原生的样式不变
TabBar 重写后变成了水平排列
查看了 antd 样式后发现,antd 中对于 vertical 方向的 TabBar 的样式定义是这样的:
.ant-tabs-vertical.ant-tabs-left>.ant-tabs-bar { float: left; border-right: 1px solid #e8e8e8; margin-right: -1px; margin-bottom: 0; }
这样,一旦 DefaultTabBar 的外面包裹了一层 div ,就会使该样式失效
The text was updated successfully, but these errors were encountered:
不用div包,使用<React.Fragment>DefaultTabBar </React.Fragment>来包呢?
Sorry, something went wrong.
add className in TabContent.
850f05e
ref ant-design/ant-design#13086
这样的话使用场景就受限了,Fragment 不能渲染为任何 DOM 元素,也就不能加样式了
95a76b0
zombieJ
No branches or pull requests
Version
3.10.3
Environment
Windows 10
Reproduction link
Steps to reproduce
What is expected?
使 TabBar 重写后其原生的样式不变
What is actually happening?
TabBar 重写后变成了水平排列
查看了 antd 样式后发现,antd 中对于 vertical 方向的 TabBar 的样式定义是这样的:
这样,一旦 DefaultTabBar 的外面包裹了一层 div ,就会使该样式失效
The text was updated successfully, but these errors were encountered: