feature: 侧边目录颜色、动画

This commit is contained in:
tangly1024
2022-01-07 10:55:06 +08:00
parent b16b3dee59
commit 309e42f4a1
4 changed files with 6 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ const Progress = ({ targetRef, showPercent = true }) => {
}, [percent])
return (<div className='h-4 w-full shadow-2xl bg-gray-400'>
<div className='h-4 bg-gray-600 duration-200' style={{ width: `${percent}%` }}>
<div className='h-4 bg-red-400 duration-200' style={{ width: `${percent}%` }}>
{showPercent && <div className='text-right text-white text-xs'>{percent}%</div>}
</div>
</div>)