0.4.2 • Published 8 years ago

pzvue-inputnumber v0.4.2

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

vue-inputnumber

install

npm install pzvue-inputnumber

Demo

http://vue.zuoyan.space/#/component/inputnumber

Quick Start

import pzinputnumber from 'pzvue-inputnumber'

in component

components: {
    pzinputnumber
}

in template

<h2 class="title">普通</h2>
<h2 class="title">普通</h2>
<pzinputnumber :max="10"></pzinputnumber> max:10<br><br/>
<pzinputnumber :max="10" :min="-10" :step="0.2"></pzinputnumber> max:10, min:-10,step:0.2
<h2 class="title">尺寸</h2>
<pzinputnumber :max="10" size="larger"></pzinputnumber> max:10<br><br/>
<pzinputnumber :max="10" :min="-10" :step="0.2" size="larger"></pzinputnumber> max:10, min:-10,step:0.2
<h2 class="title">禁用</h2>
<pzinputnumber :max="10" :disabled="true"></pzinputnumber> max:10<br><br/>
<pzinputnumber :max="10" :min="-10" :step="0.2" :disabled="true"></pzinputnumber> max:10, min:-10,step:0.2

Attribute

参数说明类型可选值默认值
sizestringlarger
disabled禁用booleantrue, falsefalse
value当前值number1
min最小值number1
max当大值number1
step步长number1

Event

事件名说明原型
onchange值变化时触发,返回当前的值function(value){}
0.4.2

8 years ago

0.4.1

8 years ago