vue2-number-input
v1.3.5
Published
vue2-number-input
Downloads
78
Maintainers
Readme
vue2-number-input
Installation
npm i vue2-number-input
Usage
import Vue from 'vue'
import vue2NumberInput from 'vue2-number-input'
import 'vue2-number-input/dist/style.css'
Vue.use(vue2NumberInput)
<vue2-number-input v-model="value"></vue2-number-input>
Props
|Property|Description|Required|Type|Default| |--------|-----------|--------|----|-------| |value(v-model)||false|Number,String|''| |digits||false|Number|| |focus-select||false|Boolean|false| |round||false|Boolean|false| |input-style||false|Object|{}| |width||false|Number,String|100| |placeholder||false|String|| |align||false|String|left| |prefix-icon||false|String|| |suffix-icon||false|String|| |allow-empty||false|Boolean|false| |disabled||false|Boolean|false| |replace-end||false|Boolean|false| |enable-negative||false|Boolean|false|
Events
|Name|Params| |----|------| |input|value| |focus|value| |blur|value| |enter|value| |keydown|event| |keyup|event|
Slots
|Name| |----| |prefix| |suffix|