This commit is contained in:
梁灏 2017-05-10 09:22:10 +08:00
parent 5a9a12cd1c
commit 7959adf7a8
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,6 @@
<template>
<div>
<Input-number :max="10" :min="-1" v-model="v1" :autofocus="autofocus"></Input-number>
<Input-number :max="10" name="he" :min="-1" v-model="v1" :autofocus="autofocus"></Input-number>
{{ v1 }}
<div @click="c">change v1</div>
<Input-number disabled :max="10" :min="1" :step="1.2" v-model="v2"></Input-number>

View file

@ -24,6 +24,7 @@
@blur="blur"
@keydown.stop="keyDown"
@change="change"
:name="name"
:value="value">
</div>
</div>
@ -94,6 +95,9 @@
autofocus: {
type: Boolean,
default: false
},
name: {
type: String
}
},
data () {