-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Copy pathinput-number.d.ts
85 lines (72 loc) · 1.53 KB
/
input-number.d.ts
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Project: https://github.com/vueComponent/ant-design-vue
// Definitions by: akki-jat <https://github.com/akki-jat>
// Definitions: https://github.com/vueComponent/ant-design-vue/types
import { AntdComponent } from './component';
export declare class InputNumber extends AntdComponent {
/**
* get focus when component mounted
* @default false
* @type boolean
*/
autoFocus: boolean;
/**
* initial value
* @type number | string
*/
defaultValue: number | string;
/**
* disable the input
* @default false
* @type boolean
*/
disabled: boolean;
/**
* Specifies the format of the value presented
* @type Function
*/
formatter: (value: number | string) => string;
/**
* max value
* @default Infinity
* @type number
*/
max: number;
/**
* mix value
* @default Infinity
* @type number
*/
min: number;
/**
* Specifies the value extracted from formatter
* @type Function
*/
parser: (string: string) => number;
/**
* precision of input value
* @type number
*/
precision: number;
/**
* decimal separator
* @type string
*/
decimalSeparator: string;
/**
* width of input box
* @default 'default'
* @type string
*/
size: "large" | "small" | "default";
/**
* The number to which the current value is increased or decreased. It can be an integer or decimal.
* @default 1
* @type number | string
*/
step: number | string;
/**
* current value
* @type number | string
*/
value: number | string;
}