import React from 'react'; interface ModalProps { /** * Display Modal */ visible?: boolean; /** * 提示的标题 */ title?: string; /** * 是否显示取消按钮 * @default true */ showCancel?: boolean; /** * 取消按钮的文字,最多 4 个字符 */ cancelText?: string; /** * 取消按钮的文字颜色,必须是 16 进制格式的颜色字符串 * @default '#000' */ cancelColor?: string; /** * 确认按钮的文字颜色,必须是 16 进制格式的颜色字符串 */ confirmColor?: string; /** * 确认按钮的文字,最多 4 个字符 */ confirmText?: string; /** * 提示的内容 */ children?: React.ReactNode; /** * 点击取消 */ onCancel?: () => void; /** * 点击确定 */ onConfirm?: () => void; } declare const Modal: React.FC; export default Modal;