/** * InputBase Component - Lynx 版 MUI InputBase * 100% 一比一复刻 MUI InputBase * * InputBase 是所有输入组件的基础,包含最少的样式 * 用于构建 Input, OutlinedInput, FilledInput 等 * * 对应 MUI: packages/mui-material/src/InputBase/InputBase.js */ import './InputBase.css'; import inputBaseClasses, { getInputBaseUtilityClass } from './inputBaseClasses'; export { inputBaseClasses, getInputBaseUtilityClass }; export type InputBaseColor = 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning'; export type InputBaseSize = 'small' | 'medium'; export type InputBaseMargin = 'dense' | 'none'; export interface InputBaseProps { /** aria-describedby */ 'aria-describedby'?: string; /** 自动完成 */ autoComplete?: string; /** 自动聚焦 */ autoFocus?: boolean; /** 自定义类名 */ className?: string; /** 样式类覆盖 */ classes?: Partial; /** 颜色 */ color?: InputBaseColor; /** 默认值 */ defaultValue?: any; /** 是否禁用 */ disabled?: boolean; /** 结束装饰器 */ endAdornment?: any; /** 是否错误状态 */ error?: boolean; /** 是否全宽 */ fullWidth?: boolean; /** ID */ id?: string; /** 输入组件 */ inputComponent?: any; /** 输入属性 */ inputProps?: Record; /** 输入引用 */ inputRef?: any; /** 边距 */ margin?: InputBaseMargin; /** 最大行数 (多行时) */ maxRows?: number; /** 最小行数 (多行时) */ minRows?: number; /** 是否多行 */ multiline?: boolean; /** 名称 */ name?: string; /** 失焦事件 */ onBlur?: (event?: any) => void; /** 值变化事件 */ onChange?: (event?: any) => void; /** 点击事件 */ onClick?: (event?: any) => void; /** 聚焦事件 */ onFocus?: (event?: any) => void; /** 键盘按下事件 */ onKeyDown?: (event?: any) => void; /** 键盘抬起事件 */ onKeyUp?: (event?: any) => void; /** 占位符 */ placeholder?: string; /** 是否只读 */ readOnly?: boolean; /** 是否必填 */ required?: boolean; /** 行数 (多行时) */ rows?: number; /** 尺寸 */ size?: InputBaseSize; /** 开始装饰器 */ startAdornment?: any; /** 内联样式 */ style?: Record; /** sx 属性 */ sx?: Record; /** 输入类型 */ type?: string; /** 值 */ value?: any; /** 子元素 */ children?: any; } /** * 检查输入是否有值 */ export declare function isFilled(obj: any, SSR?: boolean): boolean; export declare function InputBase(props: InputBaseProps): JSX.Element; export default InputBase; //# sourceMappingURL=index.d.ts.map