2018-04-04 05:57:23 +00:00
|
|
|
## API
|
|
|
|
|
|
|
|
| property | description | type | default |
|
|
|
|
| -------- | ----------- | ---- | ------- |
|
|
|
|
| autoFocus | get focus when component mounted | boolean | false |
|
|
|
|
| defaultValue | initial value | number | |
|
|
|
|
| disabled | disable the input | boolean | false |
|
|
|
|
| formatter | Specifies the format of the value presented | function(value: number \| string): string | - |
|
2018-09-05 13:28:54 +00:00
|
|
|
| max | max value | number | Infinity |
|
2018-04-04 05:57:23 +00:00
|
|
|
| min | min value | number | -Infinity |
|
|
|
|
| parser | Specifies the value extracted from formatter | function( string): number | - |
|
|
|
|
| precision | precision of input value | number | - |
|
2018-12-09 03:49:18 +00:00
|
|
|
| decimalSeparator | decimal separator | string | - |
|
2018-04-04 05:57:23 +00:00
|
|
|
| size | width of input box | string | - |
|
|
|
|
| step | The number to which the current value is increased or decreased. It can be an integer or decimal. | number\|string | 1 |
|
|
|
|
| value(v-model) | current value | number | |
|
|
|
|
|
|
|
|
|
|
|
|
### events
|
|
|
|
| Events Name | Description | Arguments |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| change | The callback triggered when the value is changed. | function(value: number \| string) | |
|
|
|
|
|
|
|
|
## Methods
|
|
|
|
|
|
|
|
| Name | Description |
|
|
|
|
| ---- | ----------- |
|
|
|
|
| blur() | remove focus |
|
|
|
|
| focus() | get focus |
|