import React from 'react'; import './index.less'; export interface BaseVirtualInputProps { /** 输入值 */ value?: string | React.ReactNode; /** 占位符 */ placeholder?: string; /** 是否自动聚焦 */ autoFocus?: boolean; /** 是否禁用 */ disabled?: boolean; /** 组件高度,默认60px */ height?: number | string; /** 字体大小,默认48px,如果不设置会根据高度自动计算 */ fontSize?: number | string; /** 聚焦回调 */ onFocus?: () => void; /** 失焦回调 */ onBlur?: () => void; /** 文字位置 */ textAlign?: 'start' | 'center' | 'end'; /** 自定义样式 */ style?: React.CSSProperties; /** 自定义类名 */ className?: string; /** showCursor */ showCursor?: boolean; /** 防止失焦的元素选择器或ref */ preventBlurElements?: Array>; /** 是否聚焦(受控模式) */ focused?: boolean; /** 是否选中全部文本(类似浏览器选中效果) */ selected?: boolean; /** 选中状态的背景色,默认为主题色 */ selectedColor?: string; } export interface BaseVirtualInputRef { /** 手动聚焦 */ focus: () => void; /** 手动失焦 */ blur: () => void; } declare const BaseVirtualInput: React.ForwardRefExoticComponent>; export default BaseVirtualInput;