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 (