import React from 'react'; import './index.less'; export interface FullScreenAlertProps { /** 是否激活警告效果 */ active?: boolean; /** 警告类型 */ type?: 'success' | 'error'; /** 状态变化回调 */ onChange?: (active: boolean) => void; /** 自动关闭时间(毫秒),默认3000ms */ duration?: number; /** * 中央提示语。不传时按 type 给「成功」/「失败」。 * @author nokecy */ message?: React.ReactNode; /** * 是否显示中央的图标与文字,默认 true。 * 只靠边框颜色区分成功与失败,对色觉障碍者等于零反馈;这一层是给状态加的第二种编码。 * @author nokecy */ showIcon?: boolean; /** 其他 HTML div 属性 */ [key: string]: any; } /** * FullScreenAlert 全屏闪烁警告组件 * * 在屏幕边缘显示闪烁的彩色边框,用于视觉警告提醒 * * @example * ```tsx * setShowAlert(active)} * /> * ``` */ declare const FullScreenAlert: React.FC; export default FullScreenAlert;