30 lines
789 B
TypeScript
30 lines
789 B
TypeScript
![]() |
import { IBaseProps } from '../_base';
|
||
|
/**
|
||
|
* @description 输入框。
|
||
|
*/
|
||
|
|
||
|
export interface InputProps extends IBaseProps {
|
||
|
value?: string;
|
||
|
defaultValue?: string;
|
||
|
placeholder?: string;
|
||
|
placeholderClassName?: string;
|
||
|
placeholderStyle?: string;
|
||
|
allowClear?: boolean;
|
||
|
enableNative?: boolean;
|
||
|
confirmType?: string;
|
||
|
confirmHold?: string;
|
||
|
alwaysSystem?: boolean;
|
||
|
selectionStart?: number;
|
||
|
selectionEnd?: number;
|
||
|
cursor?: number;
|
||
|
maxLength?: number;
|
||
|
inputClassName?: string;
|
||
|
inputStyle?: string;
|
||
|
password?: boolean;
|
||
|
onChange?: (value: string, e: any) => void;
|
||
|
onBlur?: (value: string, e: any) => void;
|
||
|
onFocus?: (value: string, e: any) => void;
|
||
|
onConfirm?: (value: string, e: any) => void;
|
||
|
}
|
||
|
export declare const InputDefaultProps: Partial<InputProps>;
|