support InputNumber
support InputNumber
This commit is contained in:
parent
456daf3492
commit
c97c42ab2e
8 changed files with 50 additions and 14 deletions
25
test/routers/input-number.vue
Normal file
25
test/routers/input-number.vue
Normal 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>
|
|
@ -35,9 +35,7 @@
|
|||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { Tag, Modal, iButton } from 'iview';
|
||||
export default {
|
||||
components: { Tag, Modal, iButton },
|
||||
data () {
|
||||
return {
|
||||
modal1: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue