Reproduction link
https://4x.ant.design/components/tabs-cn/#API
Steps to reproduce
<div>
<Tabs
className="margin-t-10"
defaultActiveKey="1"
items={[
{
label: '入库审核',
key: '1',
},
{
label: `下载审核`,
key: '2',
},
]}
/>
</div>
What is expected?
正常展示下划线
What is actually happening?
未出现选中下划线ant-tabs-ink-bar 的width和left都是0
Environment | Info |
---|---|
antd | 4.24.6 |
React | 18.0.2 |
System | mac |
Browser | chrome108 |
2条答案
按热度按时间tgabmvqs1#
Hello @wangyingjie123. Please provide a online reproduction by forking codesandbox of antd@5.x or antd@4.x , or provide a minimal GitHub repository. Issues labeled by
Need Reproduce
will be closed if no activities in 3 days.你好 @wangyingjie123, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 antd@5.x 或 antd@4.x 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。
ws51t4hk2#
@wangyingjie123 你可以在这里提供一下复现用例吗?这边使用你提供的代码无法复现问题。
https://codesandbox.io/s/ji-ben-antd-4-24-7-forked-t3tihe