You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/input-number/doc/index.en-US.md
+38-38Lines changed: 38 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -17,49 +17,49 @@ import { NzInputNumberModule } from 'ng-zorro-antd/input-number';
17
17
18
18
## API
19
19
20
-
### nz-input-number
20
+
### nz-input-number:standalone
21
21
22
-
| property | description | type | default |
23
-
| -------- | ----------- | ---- | ------- |
24
-
|`[ngModel]`| current value, double binding |`number \| string`\|`string`| - |
25
-
|`[nzAutoFocus]`| get focus when component mounted |`boolean`|`false`|
26
-
|`[nzDisabled]`| disable the input |`boolean`|`false`|
27
-
|`[nzReadOnly]`| If readonly the input |`boolean`|`false`|
28
-
|`[nzMax]`| max value |`number`|`Infinity`|
29
-
|`[nzMin]`| min value |`number`|`-Infinity`|
30
-
|`[nzFormatter]`| Specifies the format of the value presented |`(value: number \| string) => string \| number`| - |
31
-
|`[nzParser]`| Specifies the value extracted from nzFormatter |`(value: string) => string \| number`|`(value: string) => value.trim().replace(/。/g, '.').replace(/[^\w\.-]+/g, '')`|
32
-
|`[nzPrecision]`| precision of input value |`number`| - |
33
-
|`[nzPrecisionMode]`| The method for calculating the precision of input value |`'cut' \| 'toFixed' \| ((value: number \| string, precision?: number) => number)`|`'toFixed'`|
34
-
|`[nzSize]`| width of input box |`'large' \| 'small' \| 'default'`|`'default'`|
35
-
|`[nzStatus]`| Set validation status |`'error' \| 'warning'`| - |
36
-
|`[nzStep]`| The number to which the current value is increased or decreased. It can be an integer or decimal. |`number \| string`|`1`|
37
-
|`[nzInputMode]`| enumerated attribute that hints at the type of data that might be entered by the user, [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode)|`string`|`decimal`|
38
-
|`[nzPlaceHolder]`| Placeholder of select |`string`| - |
39
-
|`[nzId]`| input id attribute inside the component|`string`| - |
40
-
|`(ngModelChange)`| The callback triggered when the value is changed |`EventEmitter<number>`| - |
|`[ngModel]`| current value, double binding |`number \| string`\|`string`| -|
25
+
|`[nzAutoFocus]`| get focus when component mounted |`boolean`|`false`|
26
+
|`[nzDisabled]`| disable the input |`boolean`|`false`|
27
+
|`[nzReadOnly]`| If readonly the input |`boolean`|`false`|
28
+
|`[nzMax]`| max value |`number`|`Infinity`|
29
+
|`[nzMin]`| min value |`number`|`-Infinity`|
30
+
|`[nzFormatter]`| Specifies the format of the value presented |`(value: number \| string) => string \| number`| -|
31
+
|`[nzParser]`| Specifies the value extracted from nzFormatter |`(value: string) => string \| number`|`(value: string) => value.trim().replace(/。/g, '.').replace(/[^\w\.-]+/g, '')`|
32
+
|`[nzPrecision]`| precision of input value |`number`| -|
33
+
|`[nzPrecisionMode]`| The method for calculating the precision of input value |`'cut' \| 'toFixed' \| ((value: number \| string, precision?: number) => number)`|`'toFixed'`|
34
+
|`[nzSize]`| width of input box |`'large' \| 'small' \| 'default'`|`'default'`|
35
+
|`[nzStatus]`| Set validation status |`'error' \| 'warning'`| -|
36
+
|`[nzStep]`| The number to which the current value is increased or decreased. It can be an integer or decimal. |`number \| string`|`1`|
37
+
|`[nzInputMode]`| enumerated attribute that hints at the type of data that might be entered by the user, [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode)|`string`|`decimal`|
38
+
|`[nzPlaceHolder]`| Placeholder of select |`string`| -|
39
+
|`[nzId]`| input id attribute inside the component|`string`| -|
40
+
|`(ngModelChange)`| The callback triggered when the value is changed |`EventEmitter<number>`| -|
|`[nzAddOnAfter]`| The label text displayed after (on the right side of) the input number field, can work with `nzAddOnBefore`|`string \| TemplateRef<void>`| - |
49
-
|`[nzAddOnBefore]`| The label text displayed before (on the left side of) the input number field, can work with `nzAddOnAfter`|`string \| TemplateRef<void>`| - |
50
-
|`[nzPrefix]`| The prefix icon for the Input Number, can work with `nzSuffix`|`string \| TemplateRef<void>`| - |
51
-
|`[nzSuffix]`| The suffix icon for the Input Number, can work with `nzPrefix`|`string \| TemplateRef<void>`| - |
52
-
|`[nzPrefixIcon]`| The prefix icon for the Input Number |`string`| - |
53
-
|`[nzSuffixIcon]`| The suffix icon for the Input Number |`string`| - |
54
-
|`[nzCompact]`| Whether use compact style |`boolean`|`false`|
55
-
|`[nzSize]`| The size of `nz-input-number-group` specifies the size of the included `nz-input-number` fields |`'large' \| 'small' \| 'default'`|`'default'`|
56
-
|`[nzStatus]`| Set validation status |`'error' \| 'warning'`| - |
|`[nzAddOnAfter]`| The label text displayed after (on the right side of) the input number field, can work with `nzAddOnBefore`|`string \| TemplateRef<void>`| -|
49
+
|`[nzAddOnBefore]`| The label text displayed before (on the left side of) the input number field, can work with `nzAddOnAfter`|`string \| TemplateRef<void>`| -|
50
+
|`[nzPrefix]`| The prefix icon for the Input Number, can work with `nzSuffix`|`string \| TemplateRef<void>`| -|
51
+
|`[nzSuffix]`| The suffix icon for the Input Number, can work with `nzPrefix`|`string \| TemplateRef<void>`| -|
52
+
|`[nzPrefixIcon]`| The prefix icon for the Input Number |`string`| -|
53
+
|`[nzSuffixIcon]`| The suffix icon for the Input Number |`string`| -|
54
+
|`[nzCompact]`| Whether use compact style |`boolean`|`false`|
55
+
|`[nzSize]`| The size of `nz-input-number-group` specifies the size of the included `nz-input-number` fields|`'large' \| 'small' \| 'default'`|`'default'`|
56
+
|`[nzStatus]`| Set validation status |`'error' \| 'warning'`| -|
0 commit comments