tabs icon indicating copy to clipboard operation
tabs copied to clipboard

设置 inkBar 为 false 无法隐藏 inkBar

Open Chorer opened this issue 1 year ago • 3 comments

新版的 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
        }  
      }
    />
  );
}

Chorer avatar Oct 31 '22 09:10 Chorer