support InputNumber

support InputNumber
This commit is contained in:
梁灏 2017-03-02 13:40:09 +08:00
parent 456daf3492
commit c97c42ab2e
8 changed files with 50 additions and 14 deletions

View file

@ -0,0 +1,25 @@
<template>
<div>
<Input-number :max="10" :min="-1" v-model="v1"></Input-number>
{{ v1 }}
<div @click="c">change v1</div>
<Input-number disabled :max="10" :min="1" :step="1.2" v-model="v2"></Input-number>
</div>
</template>
<script>
export default {
props: {},
data () {
return {
v1: 1,
v2: 1
};
},
computed: {},
methods: {
c () {
this.v1 = 5;
}
}
};
</script>

View file

@ -35,9 +35,7 @@
</div>
</template>
<script>
import { Tag, Modal, iButton } from 'iview';
export default {
components: { Tag, Modal, iButton },
data () {
return {
modal1: false,