feat(web): forgetting memory

This commit is contained in:
zhaoying
2026-01-07 20:37:34 +08:00
parent 75d5121234
commit a1e8d858a2
18 changed files with 717 additions and 83 deletions

View File

@@ -3,23 +3,27 @@ import { Tag } from 'antd';
import clsx from 'clsx';
interface StatusTagProps {
status: 'success' | 'error' | 'warning',
status: 'success' | 'error' | 'warning' | 'default' | 'lightBlue' | 'purple',
text: string;
}
const Colors = {
success: 'rb:bg-[#369F21]',
error: 'rb:bg-[#FF5D34]',
warning: 'rb:bg-[#FF8A4C]',
default: 'rb:bg-[#155EEF]',
lightBlue: 'rb:bg-[#4DA8FF]',
purple: 'rb:bg-[#9C6FFF]'
}
const StatusTag: FC<StatusTagProps> = ({
status,
text
}) => {
console.log('status', status)
return (
<Tag style={{ backgroundColor: '#fff', borderColor: '#DFE4ED' }}>
<span className='rb:flex rb:items-center rb:text-[#5B6167] rb:pl-[1px] rb:pr-[1px]'>
<span className={clsx(' rb:w-[5px] rb:h-[5px] rb:rounded-full rb:mr-[4px]', Colors[status])}></span>
<span className='rb:flex rb:items-center rb:text-[#5B6167] rb:pl-px rb:pr-px'>
<span className={clsx(' rb:w-1.25 rb:h-1.25 rb:rounded-full rb:mr-1', Colors[status])}></span>
{ text }
</span>
</Tag>