/** * BaseModal - 通用弹窗基础组件 * * 基于 Radix UI Dialog 实现的统一弹窗组件,提供遮罩层、关闭按钮等功能 * * @module BaseModal * @date 2026-01-29 */ import React from 'react'; export interface BaseModalProps { /** * 是否显示弹窗 */ isOpen: boolean; /** * 关闭弹窗回调 */ onClose: () => void; /** * 弹窗内容 */ children: React.ReactNode; /** * 弹窗最大宽度类名 * @default 'max-w-[358px] laptop:max-w-[480px]' */ maxWidth?: string; /** * 弹窗背景渐变 * @default 'bg-white' */ background?: string; /** * 是否显示关闭按钮 * @default true */ showCloseButton?: boolean; /** * 自定义类名 */ className?: string; /** * title 弹窗标题 */ title?: string; description?: string; /** * ARIA 标签 */ ariaLabelledBy?: string; /** * 主题模式 * @default 'light' */ theme?: 'light' | 'dark'; } /** * BaseModal 通用弹窗组件(基于 Radix UI Dialog) */ export declare const BaseModal: React.FC; export default BaseModal;