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

设置 inkBar 为 false 无法隐藏 inkBar #605

Open
Chorer opened this issue Oct 31, 2022 · 3 comments
Open

设置 inkBar 为 false 无法隐藏 inkBar #605

Chorer opened this issue Oct 31, 2022 · 3 comments

Comments

@Chorer
Copy link

Chorer commented Oct 31, 2022

新版的 rc-tabs 没有找到相关的使用文档,从源码的 .d.ts 文件来看,tabs 组件可以接受 animated prop,设置 inkBar 为 false 后应该可以隐藏 inkBar,但实际上设置后无效

import React from "react";
import "rc-tabs/assets/index.css";
import RcTabs from "rc-tabs";

const items = [
  {
    key: 1,
    label: "first",
    children: "content 1",
  },
  {
    key: 2,
    label: "second",
    children: "content 2",
  },
  {
    key: 3,
    label: "third",
    children: "content 3",
  }
]

export default function App() {
  return (
    <RcTabs
      items={items}
      animated={
        {
          inkBar: false
        }  
      }
    />
  );
}
@Sneaken
Copy link

Sneaken commented Jan 8, 2023

... 这个配置是用来关闭动画的

@Chorer
Copy link
Author

Chorer commented Jan 11, 2023

... 这个配置是用来关闭动画的

文档该更新了,目前的文档和最新版的完全对不上

@Sneaken
Copy link

Sneaken commented Jan 11, 2023

... 这个配置是用来关闭动画的

文档该更新了,目前的文档和最新版的完全对不上

antd 的 文档上我看没写错啊..
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants