import { getBackgroundImage, getStaticImage } from '@/lib/utils' export interface ErrorAlertProps { /** 文本 */ text: string /** 是否可见 */ visible?: boolean /** 点击遮罩层回调 */ onMaskClick?: () => void /** 关闭回调 */ onClose?: () => void /** 自定义 zIndex */ zIndex?: number } /** * Alert 组件 - 提示弹窗 * @returns */ const ErrorAlert = ({ text, visible = true, onMaskClick, onClose, zIndex = 10000, }: ErrorAlertProps) => { if (!visible) return null return (
{/* 蒙版背景 */}
{/* 内容 */}
{/* 标题和副标题容器 - 带深色背景条 */}
{/* 副标题 */}
{text}
{/* 继续按钮 */}
e.stopPropagation()} >
) } export default ErrorAlert