ant-design Tabs下划线ant-tabs-ink-bar 的width和left都是0

shyt4zoc  于 2022-12-31  发布在  其他
关注(0)|答案(2)|浏览(765)

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

EnvironmentInfo
antd4.24.6
React18.0.2
Systemmac
Browserchrome108
tgabmvqs

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.xantd@4.x 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。

ws51t4hk

ws51t4hk2#

@wangyingjie123 你可以在这里提供一下复现用例吗?这边使用你提供的代码无法复现问题。
https://codesandbox.io/s/ji-ben-antd-4-24-7-forked-t3tihe

相关问题