react-component / react-component/tabs
激活 tabbar 无法显示
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 572
- Forks
- 241
- Avg merge
- 4d 18h
- Merged PRs (30d)
- 4
Description
当组件挂载后,若父元素此时 display: none,激活的下划线无法计算出位置及宽度,当父元素显示时若无重新渲染,则激活 tab 的下划线无法出现。
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.
Research direction
Reproduce the issue by mounting the tabs while its parent has display: none, then showing the parent without rerendering. Trace the tabbar measurement and active underline positioning entry point; done means the active underline appears with the correct position and width after the parent becomes visible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100