gitbook-collapse

This commit is contained in:
tangly1024.com
2023-06-29 15:55:23 +08:00
parent bb8d0a5fa7
commit bcddec5748
13 changed files with 107 additions and 65 deletions

View File

@@ -84,7 +84,7 @@ const Collapse = props => {
}, [props.isOpen])
return (
<div ref={ref} style={type === 'vertical' ? { height: '0px' } : { width: '0px' }} className={'overflow-hidden duration-200 ' + props.className}>
<div ref={ref} style={type === 'vertical' ? { height: '0px' } : { width: '0px' }} className={`${props.className} overflow-hidden duration-200 `}>
{props.children}
</div>
)