interface.d.ts 1.29 KB
/// <reference types="react" />
declare type ISize = 'large' | 'middle' | 'small';
export interface InputNumberProps {
    focusOnUpDown: boolean;
    useTouch: boolean;
    prefixCls?: string;
    style: React.CSSProperties;
    className?: string;
    onKeyUp: (e: any, ...arg: any[]) => void;
    onKeyDown: (e: any, ...arg: any[]) => void;
    onMouseUp: (...arg: any[]) => void;
    onFocus: (...arg: any[]) => void;
    onBlur: (...arg: any[]) => void;
    required: boolean;
    autoComplete: string;
    autoFocus?: boolean;
    defaultValue?: number;
    disabled?: boolean;
    formatter?: (value: number | string | undefined) => string;
    max?: number;
    min?: number;
    parser?: (displayValue: string | undefined) => number | string;
    precision?: number;
    decimalSeparator?: string;
    size?: ISize;
    step?: number | string;
    value?: number;
    onChange?: (value: number | string | undefined) => void;
    onPressEnter?: React.KeyboardEventHandler<HTMLInputElement>;
    id?: string;
    name?: string;
    placeholder?: string;
    title?: string;
    upHandler: React.ReactElement;
    downHandler: React.ReactElement;
    tabIndex?: number;
    [key: string]: any;
}
export interface InputNumberState {
    inputValue?: string;
    value?: number;
    focused?: boolean;
}
export {};