element/packages/input-number
2017-01-16 23:33:01 +08:00
..
src InputNumber: prevent cursor from moving to head when pressing up on chrome and safari 2017-01-16 23:33:01 +08:00
cooking.conf.js Support publish component packages 2016-10-17 12:14:10 +08:00
index.js Components: use es2015 export module, fixed #907 2016-11-08 15:01:00 +08:00
package.json Add vue-popup and dom helper 2016-12-26 11:41:15 +08:00
README.md component README update and fix 2016-12-16 10:57:54 +08:00

element-input-number

A element-input-number component for Vue.js.

Demo

http://element-component.github.io/element-input-number

Installation

npm i element-input-number -D

Usage

import Vue from 'vue'
import ElInputNumber from 'element-input-number'
import 'element-theme-default/dist/input-number.css'

Vue.use(ElInputNumber)

or

import Vue from 'vue'
import ElInputNumber from 'element-input-number'

Vue.component('el-input-number', ElInputNumber)

Attributes

参数 说明 类型 可选值 默认值
value 绑定值 number
min 设置计数器允许的最小值 number 0
max 设置计数器允许的最大值 number Infinity
step 计数器步长 number 1
size 计数器尺寸 string large, small
disabled 是否禁用计数器 boolean false
controls 是否使用控制按钮 boolean true

Events

事件名称 说明 回调参数
change 绑定值被改变时触发 最后变更的值

Development

make dev

## test
make test

## build
make build

License

MIT