mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
Tabs组件优化
This commit is contained in:
@@ -43,9 +43,8 @@ const Tabs = ({ className, children }) => {
|
||||
</ul>
|
||||
<div>
|
||||
{children.map((item, index) => {
|
||||
return <section key={index}
|
||||
className={`${currentTab === index ? 'block animate__animated animate__fadeIn animate__faster' : 'hidden'}`}>
|
||||
{item}
|
||||
return <section key={index} className={ 'animate__animated animate__fadeIn animate__faster'}>
|
||||
{currentTab === index && item}
|
||||
</section>
|
||||
})}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user