Tabs 组件微调

This commit is contained in:
tangly1024
2024-01-27 09:42:40 +08:00
parent 156ed85959
commit bc93ccc50f

View File

@@ -33,7 +33,7 @@ const Tabs = ({ className, children }) => {
{validChildren.map((item, index) => (
<section
key={index}
className={`${currentTab === index ? 'opacity-100 static h-auto' : 'opacity-0 absolute h-0 pointer-events-none'}`}>
className={`${currentTab === index ? 'opacity-100 static h-auto' : 'opacity-0 absolute h-0 pointer-events-none overflow-hidden'}`}>
{item}
</section>
))}