You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.3 KiB
45 lines
1.3 KiB
/// <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 {};
|