Logo white

other / mew-iview

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • mew-iview
  • examples
  • routers
  • input-number.vue
  • Input 组件增加autofocus属性
    f15c216a
    丁强 authored
    2017-04-25 16:52:51 +0800  
    Browse Code »
input-number.vue 561 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<template>
    <div>
        <Input-number :max="10" :min="-1" v-model="v1" 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>
    </div>
</template>
<script>
    export default {
        props: {},
        data () {
            return {
                v1: 1,
                v2: 1
            };
        },
        computed: {},
        methods: {
            c () {
                this.v1 = 5;
            }
        }
    };
</script>