import React from 'react'; import { Input as AntInput } from 'antd'; import MaterialInput from './MaterialInput'; import { InputProps as AntInputProps } from 'antd/es/input'; import { TextAreaProps } from 'antd/lib/input'; export interface IWantInputProps extends AntInputProps { /** 展示当前输入数量与 maxLength */ showCounts?: boolean; /** 是否一直展示数量提示 */ allwaysShowCounts?: boolean; } export declare const Input: InputInterface; export declare type InputBaseProps = Pick & { onChange?(e: React.ChangeEvent): void; onFocus?(e: React.ChangeEvent): void; onBlur?(e: React.ChangeEvent): void; allwaysShowCounts?: boolean; style?: React.CSSProperties; }; interface IWantTextAreaProps extends TextAreaProps { /** 展示当前输入数量与 maxLength,且会添加css resize:none */ showCounts?: boolean; /** 是否一直展示数量提示 */ allwaysShowCounts?: boolean; } declare const TextArea: React.ForwardRefExoticComponent>; export interface InputInterface extends React.FC { MaterialInput: typeof MaterialInput; Group: typeof AntInput.Group; Search: typeof AntInput.Search; TextArea: typeof TextArea; Password: typeof AntInput.Password; } export default Input; export * from 'antd/es/input';