设置 inkBar 为 false 无法隐藏 inkBar
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start with the animated prop declaration in the .d.ts file and trace its implementation in rc-tabs, reproducing the provided React example with animated.inkBar set to false. Done means the inkBar is hidden as expected and the supported behavior is covered by an appropriate test or documented clearly.
Written by the indexing model from the issue text.
Description
新版的 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
}
}
/>
);
}
- Dominant language
- TypeScript
- Stars
- 572
- Forks
- 241
- Avg merge
- 4d 18h
- Merged PRs (30d)
- 4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from react-component/tabs
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
react-component/tabs#865 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
react-component/tabs#809 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 64/100
react-component/tabs#1013 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
react-component/tabs#777 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
react-component/tabs#726 ·
All issues in react-component/tabs
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ontola/atomic-server#1625 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
melgarafael/DeskcommCRM#1451 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·