index.tsx
418 Bytes
import { Alert, type AlertProps } from 'antd';
export type UAlertProps = AlertProps;
/**
* 项目提示条。
* 淡底与淡描边由 themeConfig 的 color*Bg / color*Border 别名统一给出,
* 不在页面里为每种状态各写一套背景色。
*/
export function UAlert({ className, ...rest }: UAlertProps) {
return <Alert className={['uj-alert', className].filter(Boolean).join(' ')} {...rest} />;
}