|
5 | 5 | import { AntdComponent } from './component'; |
6 | 6 |
|
7 | 7 | export declare class InputNumber extends AntdComponent { |
8 | | - /** |
9 | | - * get focus when component mounted |
10 | | - * @default false |
11 | | - * @type boolean |
12 | | - */ |
13 | | - autofocus: boolean; |
| 8 | + $props: { |
| 9 | + /** |
| 10 | + * get focus when component mounted |
| 11 | + * @default false |
| 12 | + * @type boolean |
| 13 | + */ |
| 14 | + autofocus?: boolean; |
14 | 15 |
|
15 | | - /** |
16 | | - * initial value |
17 | | - * @type number | string |
18 | | - */ |
19 | | - defaultValue: number | string; |
| 16 | + /** |
| 17 | + * initial value |
| 18 | + * @type number | string |
| 19 | + */ |
| 20 | + defaultValue?: number | string; |
20 | 21 |
|
21 | | - /** |
22 | | - * disable the input |
23 | | - * @default false |
24 | | - * @type boolean |
25 | | - */ |
26 | | - disabled: boolean; |
| 22 | + /** |
| 23 | + * disable the input |
| 24 | + * @default false |
| 25 | + * @type boolean |
| 26 | + */ |
| 27 | + disabled?: boolean; |
27 | 28 |
|
28 | | - /** |
29 | | - * Specifies the format of the value presented |
30 | | - * @type Function |
31 | | - */ |
32 | | - formatter: (value: number | string) => string; |
| 29 | + /** |
| 30 | + * Specifies the format of the value presented |
| 31 | + * @type Function |
| 32 | + */ |
| 33 | + formatter?: (value: number | string) => string; |
33 | 34 |
|
34 | | - /** |
35 | | - * max value |
36 | | - * @default Infinity |
37 | | - * @type number |
38 | | - */ |
39 | | - max: number; |
| 35 | + /** |
| 36 | + * max value |
| 37 | + * @default Infinity |
| 38 | + * @type number |
| 39 | + */ |
| 40 | + max?: number; |
40 | 41 |
|
41 | | - /** |
42 | | - * mix value |
43 | | - * @default Infinity |
44 | | - * @type number |
45 | | - */ |
46 | | - min: number; |
| 42 | + /** |
| 43 | + * mix value |
| 44 | + * @default -Infinity |
| 45 | + * @type number |
| 46 | + */ |
| 47 | + min?: number; |
47 | 48 |
|
48 | | - /** |
49 | | - * Specifies the value extracted from formatter |
50 | | - * @type Function |
51 | | - */ |
52 | | - parser: (string: string) => number; |
| 49 | + /** |
| 50 | + * Specifies the value extracted from formatter |
| 51 | + * @type Function |
| 52 | + */ |
| 53 | + parser?: (string: string) => number; |
53 | 54 |
|
54 | | - /** |
55 | | - * precision of input value |
56 | | - * @type number |
57 | | - */ |
58 | | - precision: number; |
| 55 | + /** |
| 56 | + * precision of input value |
| 57 | + * @type number |
| 58 | + */ |
| 59 | + precision?: number; |
59 | 60 |
|
60 | | - /** |
61 | | - * decimal separator |
62 | | - * @type string |
63 | | - */ |
64 | | - decimalSeparator: string; |
| 61 | + /** |
| 62 | + * decimal separator |
| 63 | + * @type string |
| 64 | + */ |
| 65 | + decimalSeparator?: string; |
65 | 66 |
|
66 | | - /** |
67 | | - * width of input box |
68 | | - * @default 'default' |
69 | | - * @type string |
70 | | - */ |
71 | | - size: 'large' | 'small' | 'default'; |
| 67 | + /** |
| 68 | + * width of input box |
| 69 | + * @default 'default' |
| 70 | + * @type string |
| 71 | + */ |
| 72 | + size?: 'large' | 'small' | 'default'; |
72 | 73 |
|
73 | | - /** |
74 | | - * The number to which the current value is increased or decreased. It can be an integer or decimal. |
75 | | - * @default 1 |
76 | | - * @type number | string |
77 | | - */ |
78 | | - step: number | string; |
| 74 | + /** |
| 75 | + * The number to which the current value is increased or decreased. It can be an integer or decimal. |
| 76 | + * @default 1 |
| 77 | + * @type number | string |
| 78 | + */ |
| 79 | + step?: number | string; |
79 | 80 |
|
80 | | - /** |
81 | | - * current value |
82 | | - * @type number | string |
83 | | - */ |
84 | | - value: number | string; |
| 81 | + /** |
| 82 | + * current value |
| 83 | + * @type number | string |
| 84 | + */ |
| 85 | + value?: number | string; |
| 86 | + } |
85 | 87 | } |
0 commit comments