interface.d.ts
1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/// <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 {};